[vlc-devel] v4l/v4l2 demux

Markus Rechberger mrechberger at empiatech.com
Thu May 1 00:23:24 CEST 2008


I recently had a look at vlc 0.8.6d as well as 0.9. (I
ported the alsa changes to 0.8.6d v4l1).

    if( p_sys->fd_audio < 0 || !( p_block = GrabAudio(
p_demux ) ) )
        /* Try grabbing video frame */
        p_es = p_sys->p_es_video;
        if( p_sys->fd_video > 0 ) p_block = GrabVideo(
p_demux );

the problem I experienced here is that audio will mute
if the video becomes too slow if the system is on load
for a short time.

Wouldn't it be better to move audio into a second
thread, to make it a bit more independent from the

Beside that I tested 2 USB video devices here (one
time usbaudio compatible, and the second time I have
my own driver for it), for some reason I also have to
add a small hack to read a few audio frames in advance
and sleep for a few ms before continuing that in a
loop with a short period. At the moment I'm not sure
if this bug is usbaudio, or target audio driver


More information about the vlc-devel mailing list