Page 1 of 1

[solved] A/V out of sync 2-3 seconds from beginning

Posted: 14 Feb 2011 00:47
by python
Hi,

If I dump an MMS stream to an AVI file, for instance

Code: Select all

vlc mms://apasf.apa.at/cms-worldwide/2011-02-10_2245_sd_01_WILLKOMMEN-OESTERREI_____1923785__o__0000490525__s1930973___ch_ORF1HiRes_22434517P_23292819P.wmv --sout file/avi:willkommen.avi
A/V is out of sync 2-3 seconds if I play the result using MPlayer. VLC produces almost no sound at all. How can I fix this? And what is the reason for the sync problem? If I play the stream directly, A/V are in sync. But I need a dump because I need to recode the stream using Handbrake.

How can I dump the stream to a file without sync problems?

Greetings
Chris

Re: A/V out of sync 2-3 seconds from beginning

Posted: 14 Feb 2011 18:16
by Jean-Baptiste Kempf
Do not use .avi for this. Dump it in .wmv

Re: A/V out of sync 2-3 seconds from beginning

Posted: 14 Feb 2011 18:50
by python
Thanks for your reply.

But unfortunately this won't work. VLC aborts:

Code: Select all

$ vlc mms://apasf.apa.at/cms-worldwide/2011-02-10_2245_sd_01_WILLKOMMEN-OESTERREI_____1923785__o__0000490525__s1930973___ch_ORF1HiRes_22434517P_23292819P.wmv --sout file/wmv:willkommen.wmv VLC media player 1.0.6 Goldeneye [0x8547148] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface. [0x87bc5c0] main mux error: no sout mux module matched "wmv" [0x87b5760] stream_out_standard stream out error: no suitable sout mux module for `file/wmv://willkommen.wmv' [0x85e8ee0] main stream output error: stream chain failed for `standard{mux="wmv",access="file",dst="willkommen.wmv"}' [0xb7400f10] main input error: cannot start stream output instance, aborting

Re: A/V out of sync 2-3 seconds from beginning

Posted: 14 Feb 2011 23:02
by python
I got it working using file/asf as output type instead of wmv.

However, the sync problem still exists if I continue processing through a video encoder.

If I stream into a Theora video, using VLC, instead of dumping, A/V is out of sync too. What am I doing wrong here?

Re: A/V out of sync 2-3 seconds from beginning

Posted: 17 Feb 2011 21:39
by python
For those who are interested in how I eventually solved this problem:

It works this way:

Code: Select all

vlc mms://apasf.apa.at/cms-worldwide/2011-02-16_2230_sd_02_WELTJOURNAL_____1942683__o__0000498433__s1949421___al_ORF2HiRes_22311209P_22595205P.wmv?SAMI=http://tvthek.orf.at/assets/1297895402/orf_segments/sami_file/1949437.smi --sout-transcode-audio-sync --sout file/asf:/tmp/weltjournal.wmv
Now, if I transcode to M4V, A/V stay in sync.

--sout-transcode-audio-sync seems to be the magic option... Quite easy, actually, but it took me several hours to figure it out...

Greetings
Chris

Re: [solved] A/V out of sync 2-3 seconds from beginning

Posted: 23 Feb 2011 13:02
by paradeiser
könntest du mir bitte kurz die entsprechenden Einstellungen fürs GUI dazu durchgeben.

• Streaming/Transcoding Wizzard
• Transcode / Save to file
• Select Stream: [1942683-Weltjournal.download.asx]
• Transcode video: Codec ???
• Transcode audio: Codec ???

Ich würds gerne auch auf OSX/iOS abspielen, aber MP4 kommen bei mir immer ohne Ton raus.

vielen Dank,
paradeiser