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

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
python
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2011 00:36

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

Postby python » 14 Feb 2011 00:47

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
Last edited by python on 17 Feb 2011 21:39, edited 1 time in total.

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

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

Postby Jean-Baptiste Kempf » 14 Feb 2011 18:16

Do not use .avi for this. Dump it in .wmv
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.

python
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2011 00:36

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

Postby python » 14 Feb 2011 18:50

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

python
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2011 00:36

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

Postby python » 14 Feb 2011 23:02

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?

python
New Cone
New Cone
Posts: 4
Joined: 14 Feb 2011 00:36

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

Postby python » 17 Feb 2011 21:39

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

paradeiser
New Cone
New Cone
Posts: 5
Joined: 25 Nov 2009 08:32

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

Postby paradeiser » 23 Feb 2011 13:02

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


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 51 guests