Vorbis | Vorbis decoder for NAudio | Runtime Evironment library
kandi X-RAY | Vorbis Summary
kandi X-RAY | Vorbis Summary
NAudio.Vorbis is a convenience wrapper to enable easy integration of NVorbis into NAudio projects. If you have any questions or comments, feel free to join us on Gitter. If you have any issues or feature requests, please submit them in the issue tracker.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Vorbis
Vorbis Key Features
Vorbis Examples and Code Snippets
// add a reference to NVorbis.dll
// add a reference to NAudio.Vorbis.dll
using (var vorbisStream = new NAudio.Vorbis.VorbisWaveReader("path/to/file.ogg"))
using (var waveOut = new NAudio.Wave.WaveOutEvent())
{
waveOut.Init(vorbisStream);
wa
Community Discussions
Trending Discussions on Vorbis
QUESTION
I am trying to combine two audio files, and delaying the second one. Here's my command
...ANSWER
Answered 2022-Apr-02 at 00:10The fundamental issue in these audio files appears to be the frequently dropped frames (each containing 960 audio samples). There is an instance of 8117 seconds gap between 2 successive frames in the first file. Because the MKA files were formed without filling these dropped frames, they are effectively variable-sampling-rate streams while labeled as constant-sampling-rate. This discrepancy makes your audios to appear shorter than they were recorded, explaining why your output is often much longer than expected and has been wrecking havoc on your attempt to work on these files.
While atm I do not know if FFmpeg offers a mechanism to fix/estimate the dropped frames in these files, yYou can brute-force/ignore the dropped frames by:
amix
QUESTION
My plan was to put a transparent red box behind a video. This box should only be present from second 1-45. But if the videos are 3 hours long, the process takes a long time although it only has to process 45 seconds.
My first attempt takes too long:
ffmpeg -i %1 -vf drawbox=0:9*ih/10:iw:ih/10:t=fill:color=red@0.5:enable='between(t,1,45)' "%~dp0transpred\%~n1%~x1
Then i tried splitting the video into two parts. put the box on the first video, and then put the two back together again.
ffmpeg -ss 00:00:00.0000 -i %1 -to 00:00:45.0000 -vf drawbox=0:9*ih/10:iw:ih/10:t=fill:color=red@0.5:enable='between(t,1,45)' "%~dp0transpred\%~n1A%~x1"
FFMpeg -ss 00:00:45.0000 -i %1 -c:v copy -c:a copy -avoid_negative_ts make_zero "%~dp0transpred\%~n1B%~x1"
But i don't even have to try to put these two together, because they are not separated exactly at the second. I have read that this is due to "timestamps" and the different video and audio streams.
Now I'm trying an approach to create a stream with the bar, and then overlay it with the finished video. I haven't quite managed that yet, and I don't know if it's faster. Shortening the video is very fast.
EDIT (Added as a replacement for the comment later)
Thanks for your help I have almost done it with a slightly different approach. Unfortunately, the second part now always has no sound. No matter if I put A and B (B no sound) or B and A (A no sound) together.
- First split with mkvmerge so i have no worrys about the keyframes and get the exact time
mkvmerge --split timestamps:00:00:45.100 A.MKV -o splitmkm.mkv
- Then add the Bar (Black because of easier testing):
ffmpeg -i splitmkm-001.mkv -vf drawbox=0:9*ih/10:iw:ih/10:t=fill BAR1.MKV
- Merge (mkvmerge ends with error):
ffmpeg -safe 0 -f concat -i list.txt -c copy output1.mkv
EDIT (Answer to kesh)
This was the error Again, audio codec config's must match across all your concat files
. The drawbox
changed the audio Codec from AC-3 to Vorbis.
the procedure is now:
mkvtoolnix\mkvmerge --split timestamps:00:00:05.100 %1 -o A_splitmkm.mkv
with mkvmerge i have an exact split at the time, and i don't have to learn about keyframes.ffmpeg -i A_splitmkm-001.mkv -vf drawbox=0:9*ih/10:iw:ih/10:t=fill:color=red A_BARmkm.MKV
create the Barffmpeg -i A_BARmkm.MKV -i A_splitmkm-001.mkv -map 0:v -map 1 -map -1:v -c copy A_BARwithAudio.mkv
redo the step with the changed audio from drawboxffmpeg -safe 0 -f concat -i list.txt -map 0 -c copy A_output1.mkv
merge
Now everything works. Thanks alot!
...ANSWER
Answered 2022-Mar-29 at 18:31See if this works for you:
QUESTION
Whats up?
What might be causing this error while trying to compile?:
Ps: I am using MacOS Monterey.
[ 99%] Building CXX object src/CMakeFiles/otclient.dir/main.cpp.o make[2]: No rule to make target /usr/local/lib/liblua5.1.dylib}', needed by bin/otclient'. Stop. make[1]: [src/CMakeFiles/otclient.dir/all] Error 2 make: *** [all] Error 2
Here is my CmakeLists.txt:
...ANSWER
Answered 2022-Mar-27 at 16:16QUESTION
With "wrong total duration" I mean a total duration different from the sum of individual duration of audio files.
sum_duration_files != duration( concatenation of files )
In particular I am concatenating 2 OGG audio files with this command
...ANSWER
Answered 2022-Mar-08 at 14:34I don't know WHY it happens, but I know how to avoid the problem in my particular case.
My case: I am mixing (concatenating) different audio files generated by one single source with silence files generated by me.
Initially I generated the silence files with
QUESTION
Got this Dahua vto stream link: that works with omxplayer, but vlc won't play it:
...ANSWER
Answered 2021-Nov-10 at 05:29So what happened is that the library in Debian providing support for live555 was removed in February of this year, this affects all downstream distros including but not limited to RPi OS and Ubuntu:
https://askubuntu.com/a/1363113
The 2 active versions were 2020.01.19-1 and 2018.11.26-1.1, Live555 has since added GPL license headers to the offending files, however the RFC issue remains.
Now you may be tempted to just download the latest Live555 source code and compile it... it does not work. There have been changes to function names and structures referenced by VLC, and as such VLC will not compile against the source. You need to get an older version, I specifically used this one, which is a tweaked snapshot from 2020 prior to the modifications that prevent VLC compilation:
https://github.com/rgaufman/live555
The configuration you want is ./genMakefiles linux-with-shared-libraries
, I do not know if it is required but since my system is x86-64-bit I added -m64 to the compiler options first
After compilation and install, I went on to compile VLC, adding '--enable-live555'
and '--with-live555-tree=extras/live555-master'
after placing the root Live555 folder in the VLC extras folder, however VLC failed to compile, it turns out the Live555's make install does not copy all the header files needed to where VLC is looking. They were dropped as 4 subfolders into /usr/local/include/, and the actual libs into /usr/local/lib/. Adding the correct CXX/CPP flags will make it look where they were put, however I put them all in a single folder and used 1 flag.
I also had to '--disable-mod'
to work around a dependency version issue that I had no interest in fixing, since I do not use modplug or any mod files.
50 minutes later... VLC successfully compiled! However it was expecting the libraries for Live555 to be in /usr/lib/ not /usr/local/lib/, since it took so long to compile I was just fine with linking or copying the libraries into the expected folder, and after that VLC works with RTSP when linked to the new file. Or you can choose to maintain the original VLC and run the new file directly if you need to load the camera feeds.
QUESTION
ffmpeg.js uses a custom build of FFmpeg to keep its size low. I am trying to convert a .ts
into a .mp4
which has always been an easy task on my desktop (especially since they are even using the same codecs, aac and h.264), but on the custom build, I get the error sample1.ts: Invalid data found when processing input
.
The command being run is ffmpeg -i sample1.ts -report -c copy out.mp4
.
Other questions I see on this topic get past the initial reading of the input file and I cannot find good resources on what my problem is or how to fix it.
This is a rather nondescript error so I am not sure exactly what the problem is. I assume it means that this build does not have support for ts
files, but I am not even sure what that means in terms of codecs and muxers.
From the custom build make file, the enabled demuxers and decoders are
...ANSWER
Answered 2021-Nov-04 at 17:44This is very similar to How to compile ffmpeg to get only mp3 and mp4 support, but with a few different compilation options:
./configure --disable-everything --disable-network --disable-autodetect --enable-small --enable-demuxer=mpegts --enable-muxer=mp4 --enable-parser=aac,h264 --enable-decoder=aac,h264 --enable-protocol=file
The the link above for more details.
QUESTION
I am trying to use xargs
to run ffmpeg
on every file in a folder and output the names of files that have vorbis audio.
I have come up with the following that mostly works, but it fails on files that have single quotes in the filename.
...ANSWER
Answered 2021-Oct-14 at 11:09All this could be simplified a lot, probably, but if you want to stick with your onlyvideos
script you could try:
QUESTION
I would like to make a low latency video streaming service and open source (to improve my web development). I started the project last February, but I didn’t have much time to move on it. The project The project is called twitch-with-nodejs. Anyway. I dont understand clearly how works the MediaSources (I think).
My code use the MediaRecorded in one client and stop it to send every 2 seconds the video flux. Then, the server puts it in memory for 30s, then stands ready to return it as a stream.
Another client want to watch the stream, so he makes requests to the server every 2 seconds to have the video flux. Then, it work for the first call but not the following.
This is an exemple of my code : 1rst Client (streamer) :
...ANSWER
Answered 2021-Oct-10 at 15:45Okay, so for anyone want to know the correct awnser because It's cool to know the awnser.
I tried to change how my code work. So, the 2nd client who watch the video have this code (now) :
QUESTION
Hello guys I am trying to create a web-dash manifest for VOD with ffmpeg, but I am getting this error Could not write header for output file #0 (incorrect codec parameters ?): Operation not permitted Error initializing output stream 0:2 --
while using vp9 codec and doesn't understand the error and how to resolve it. Can someone help me out? If I use vp8 instead of vp9 codec, I get the same error, but the ffmpeg log doesn't show any error.
ANSWER
Answered 2021-Oct-01 at 16:12You forgot a "
. Try:
QUESTION
I'm trying to generate build files for sfml on linux ubuntu using cmake, but the dependencies were not installed. I installed most with not issues, but one still persists. I got the following error message in the cmake gui:
...ANSWER
Answered 2021-Aug-24 at 14:20The SFML CMakeLists.txt searches for the following files:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Vorbis
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page