Audio and video sync problem at h264 real time streaming

About encoding, codec settings, muxers and filter usage
jbolivar
New Cone
New Cone
Posts: 6
Joined: 02 Oct 2004 05:26
Location: Electronic Engineer
Contact:

Audio and video sync problem at h264 real time streaming

Postby jbolivar » 10 May 2007 21:44

Hello everybody, I’m trying to stream a real time signal, captured by a TV card over an mmsh streaming, using h264 video and MP3 audio.

I use openSuSE Linux 10.2 (32bits), and videolan 0.8.6, the capture card is a FlyVideo 3000 FM.

The computer hardware is an AMD64 3200MHz, 2 GB RAM and 120G hard disk.

I use the command line to start the videolan streaming:

“vlc --spdif --color --hq-resampling --force-dolby-surround=0 --volume=1024 --audio-desync=70000 v4l:/dev/video0:channel=0:adev=/dev/dsp1:audio=1:norm=ntsc:frequency=61250:size=320x240 --sout "#transcode{vcodec=h264,acodec=mp3,vb=128,ab=128,deinterlace,cabac,analyse,frameref=3,keyint=19,idrint=10,bframes=3,qp=15 ,fps=19,threads=2,samplerate=44100,channels=2,loopfilter,audio-sync}:std{access=mmsh,mux=asfh,dst=:8080}" --ttl 12 -I dummy &”

Everything work fine, but the problem is the audio and video synchronization, I think that the problem is that process the video using x264 codec is a heavier computer work that process a MP3 and videolan can buffer the audio much time to synchronize it. If you see the command, I used the audio-sync directive and it don’t do too much, and use the –audio-desync command option and it work, but can’t compensate at all the delay.

Any one had an idea what more I can do to try to solve this problem?

You can see the video streaming using videolan and opening mmsh://www.julianbolivar.com:8080

Thanks and regards,
L _ Julian E. Bolívar G.
I °v° Ingeniero en Telecomunicaciones
N /(_)\ http://www.julianbolivar.com
U ^ ^
X Powered

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 6 guests