Audio / Video sync problem

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
knald
New Cone
New Cone
Posts: 4
Joined: 25 Nov 2003 22:06
Location: Copenhagen, Technical University of Denmark

Audio / Video sync problem

Postby knald » 26 Nov 2003 10:26

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?
Best Regards!
Linux IS user friendly...it just chooses its friends with care :)

BigBen
Cone that earned his stripes
Cone that earned his stripes
Posts: 115
Joined: 25 Nov 2003 10:48

Postby BigBen » 26 Nov 2003 10:38

could you please try reading the file with VLC and give us the log ?

knald
New Cone
New Cone
Posts: 4
Joined: 25 Nov 2003 22:06
Location: Copenhagen, Technical University of Denmark

Postby knald » 26 Nov 2003 11:05

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.
Best Regards!
Linux IS user friendly...it just chooses its friends with care :)


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 13 guests