[FFmpeg-trac] #615(undetermined:new): ALSA buffer xrun
FFmpeg
trac at avcodec.org
Mon Nov 28 19:10:01 CET 2011
#615: ALSA buffer xrun
-------------------------------------+-------------------------------------
Reporter: burek | Owner: michael
Type: defect | Status: new
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
Blocking: | Blocked By:
Analyzed by developer: 0 | Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by reimar):
Replying to [comment:9 burek]:
> I'm also starting to believe it might be an ALSA bug actually. Because,
every time I try to capture video from my usb webcam and audio (either
from webcam or pci sound card), these errors are kinda normal thing to
happen.
Did you try capturing audio and video at the same time bug from different
FFmpeg processes?
I would have guessed that due to the overhead of video processing FFmpeg
might not get data often enough from the audio device.
Even if that is not the case, clocks and thus timestamps for audio and
video running apart might cause FFmpeg to read audio data not often
enough.
For both cases creating a separate thread that can buffer far more data
than ALSA on its own (similar to what is done in libavformat/udp.c) should
help.
--
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/615#comment:13>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list