Page 1 of 1

Audio / Video sync problem

Posted: 26 Nov 2003 10:26
by knald
Hi

I am trying to use vlc for encoding to a darwin server. First I wanted to check if everything was ok by storing a local file. And it turned out that the sound plays back at too high a pitch. I am grabbing from a camera with the following vlc command:
"vlc -vvv v4l:/dev/video0:norm=pal:size=640x480:channel=0,adev=/dev/dsp:audio=1 --sout '#transcode{vcodec=mp4v,acodec=mp3,vb=1000,ab=256,deinterlace}:std{access=file,mux=avi,url=/root/test.avi}'"

this results in a avi fil, where the picture is perfect, but the sound is out of sync at too high a pitch. mplayer gives the following message:
"marker bit missing before vop_coded
hmm, seems the headers arnt complete, trying to guess time_increment_bits
My guess is 5 bits"

I have also tried with acodec=mpga with the same result. Also I have made sure that no artsd or esd is running as stated in the FAQ.

Has anyone seen this from mplayer before, or got an idea to what is wrong?

Posted: 26 Nov 2003 10:38
by BigBen
could you please try reading the file with VLC and give us the log ?

Posted: 26 Nov 2003 11:05
by knald
Thank you for a quick response time. The log from vlc follows here:

"dhcp04:~ # vlc test.avi
VideoLAN Client 0.7.0-test1 Trevelyan
[00000178] main input: playlist item `test.avi'
header damaged
[00000183] freetype video output error: failed to load font file /usr/share/font
s/truetype/freefont/FreeSerifBold.ttf
[00000182] mpeg_audio decoder: MPGA channels:2 samplerate:44100 bitrate:256
[00000178] main input: EOF reached
header damaged
[00000178] access_file input: closing `/://test.avi'
[00000188] main input: playlist item `test.avi'
header damaged
[00000192] freetype video output error: failed to load font file /usr/share/font
s/truetype/freefont/FreeSerifBold.ttf
[00000191] mpeg_audio decoder: MPGA channels:2 samplerate:44100 bitrate:256
[00000188] main input: EOF reached
header damaged
[00000188] access_file input: closing `/://test.avi'

Playback in vlc gives the same result, the sound outruns the video and actually end before the videostream.