Discussion:
[MPlayer-users] a/v sync issue while playing separate video and audio webm files
Rasz
2015-06-05 11:42:21 UTC
Permalink
--------------------------------------------
actually streaming has nothing to do with it, same effect while
playing local files (same as in post above, but downloaded to disk):
D:\_learning>C:\Users\bofh\AppData\Roaming\smplayer\mplayer\mplayer
"The Witcher 3 Gameplay Walkthrough Part 25 [1080p HD] Witcher 3 Wild
Hunt - No Commentary-M3IgHiWq5x4.webm1" -audiofile "The Witcher 3
Gameplay Walkthrough Part 25 [1080p HD] Witcher 3 Wild Hunt - No
Commentary-M3IgHiWq5x4.webm" -mc 10

There are two problems:
1 after seeking mplayer knows perfectly well where in the audio and
where in the video file it is (A: 71.0 V: 64.0 A-V: 7.013), despite
that it doesnt bother doing anything about it and simply starts
playing at mismatched indexes
2 mplayer corrects maybe ~100ms of desync per second instead of
snapping into place
--
Who logs in to gdm? Not I, said the duck.
Reimar Döffinger
2015-06-10 21:23:08 UTC
Permalink
Post by Rasz
--------------------------------------------
actually streaming has nothing to do with it, same effect while
D:\_learning>C:\Users\bofh\AppData\Roaming\smplayer\mplayer\mplayer
"The Witcher 3 Gameplay Walkthrough Part 25 [1080p HD] Witcher 3 Wild
Hunt - No Commentary-M3IgHiWq5x4.webm1" -audiofile "The Witcher 3
Gameplay Walkthrough Part 25 [1080p HD] Witcher 3 Wild Hunt - No
Commentary-M3IgHiWq5x4.webm" -mc 10
1 after seeking mplayer knows perfectly well where in the audio and
where in the video file it is (A: 71.0 V: 64.0 A-V: 7.013), despite
that it doesnt bother doing anything about it and simply starts
playing at mismatched indexes
2 mplayer corrects maybe ~100ms of desync per second instead of
snapping into place
Well, "snapping" isn't really possible for various reasons (decode
speed, MPlayer design issues, ...).
But the -mc option specifies the maximum allowed adjustment,
so just try increasing that significantly for this use-case.
Reimar Döffinger
2015-06-10 21:26:43 UTC
Permalink
Post by Reimar Döffinger
Post by Rasz
--------------------------------------------
actually streaming has nothing to do with it, same effect while
D:\_learning>C:\Users\bofh\AppData\Roaming\smplayer\mplayer\mplayer
"The Witcher 3 Gameplay Walkthrough Part 25 [1080p HD] Witcher 3 Wild
Hunt - No Commentary-M3IgHiWq5x4.webm1" -audiofile "The Witcher 3
Gameplay Walkthrough Part 25 [1080p HD] Witcher 3 Wild Hunt - No
Commentary-M3IgHiWq5x4.webm" -mc 10
1 after seeking mplayer knows perfectly well where in the audio and
where in the video file it is (A: 71.0 V: 64.0 A-V: 7.013), despite
that it doesnt bother doing anything about it and simply starts
playing at mismatched indexes
2 mplayer corrects maybe ~100ms of desync per second instead of
snapping into place
Well, "snapping" isn't really possible for various reasons (decode
speed, MPlayer design issues, ...).
But the -mc option specifies the maximum allowed adjustment,
so just try increasing that significantly for this use-case.
Sorry, missed you are already using that.
As audio is ahead, that means that your compute is probably
too slow for it to catch up any faster.
You can adjust the speed to make audio go slower as a work-around.
Also disabling vsync can help.
That -framedrop shows no progress is expected, it will drop
frames until video caught up (unless I misread the issue
you reported with that).

Loading...