Different length for audio and video tracks after transcode?

About encoding, codec settings, muxers and filter usage
Sound
Blank Cone
Blank Cone
Posts: 12
Joined: 31 Jan 2005 13:30
Contact:

Different length for audio and video tracks after transcode?

Postby Sound » 08 Dec 2006 13:20

Hello all,
I'm capturing clips from a DVB device and transcoding them to MP4 files (I need to open them with QuickTime, so they must be regular MP4+mp4v+aac files). This is the command I use:

Code: Select all

vlc dvb:// --dvb-adapter=0 --dvb-bandwidth=8 --dvb-frequency=602000000 --program=44 --sout '#transcode{vcodec=mp4v,acodec=mp4a,vb=300,scale=0.4,ab=64,channels=2,deinterlace,audio-sync}:dst=standard{access=file,mux=mp4,url=file.mp4}'
However for 1hour+ clips I get audio/video sync issues. By inspecting the files with QT Player Pro I see that the audio and video tracks have different lenghts! For example:

Code: Select all

Audio track length: 1:59:25.40 Video track length: 2:16:57.22
Why does this happen? How can I force them to be of the same length?
Thanks in advance!

Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 34 guests