[MPlayer-users] a/v sync issue while playing separate video and audio streams at the same time

Rasz citizenr at gmail.com
Fri Jun 5 04:44:44 CEST 2015


--------------------------------------------
D:\_learning>youtube-dl.exe https://www.youtube.com/watch?v=M3IgHiWq5x4 -F
[youtube] M3IgHiWq5x4: Downloading webpage
[youtube] M3IgHiWq5x4: Extracting video information
[youtube] M3IgHiWq5x4: Downloading DASH manifest
[info] Available formats for M3IgHiWq5x4:
format code  extension  resolution note
140          m4a        audio only DASH audio  129k , m4a_dash
container, aac  @128k (44100Hz), 27.84MiB
171          webm       audio only DASH audio  149k , audio at 128k
(44100Hz), 24.75MiB
141          m4a        audio only DASH audio  257k , m4a_dash
container, aac  @256k (44100Hz), 55.89MiB
160          mp4        256x144    DASH video  115k , 15fps, video
only, 23.71MiB
278          webm       256x144    DASH video  144k , webm container,
VP9, 15fps, video only, 22.78MiB
133          mp4        426x240    DASH video  252k , 30fps, video
only, 53.20MiB
242          webm       426x240    DASH video  293k , 30fps, video
only, 44.73MiB
243          webm       640x360    DASH video  546k , 30fps, video
only, 85.39MiB
134          mp4        640x360    DASH video  634k , 30fps, video
only, 95.42MiB
244          webm       854x480    DASH video 1045k , 30fps, video
only, 157.52MiB
135          mp4        854x480    DASH video 1134k , 30fps, video
only, 187.37MiB
247          webm       1280x720   DASH video 2192k , 30fps, video
only, 326.61MiB
136          mp4        1280x720   DASH video 2262k , 30fps, video
only, 362.02MiB
248          webm       1920x1080  DASH video 3968k , 30fps, video
only, 605.60MiB
137          mp4        1920x1080  DASH video 4219k , 30fps, video
only, 668.94MiB
17           3gp        176x144
36           3gp        320x240
5            flv        400x240
43           webm       640x360
18           mp4        640x360
22           mp4        1280x720   (best)

extracting direct stream links:
D:\_learning>for /f "delims=" %A in ('youtube-dl.exe
"https://www.youtube.com/watch?v=M3IgHiWq5x4" -f 278 -g') do @echo
"%A" >video
D:\_learning>for /f "delims=" %A in ('youtube-dl.exe
"https://www.youtube.com/watch?v=M3IgHiWq5x4" -f 171 -g') do @echo
"%A" >audio

dealing with retarded windows command line parameter parsing:
D:\_learning>head -c -2 video >3
D:\_learning>cat audio >>3

playing webm 256x144 VP9 15fps video with webm audio at 128k:
D:\_learning>FOR /F "tokens=1-3" %A IN (3) DO
@C:\Users\bofh\AppData\Roaming\smplayer\mplayer\mplayer %A -audiofile
%B

Doesnt sync if you start seeking forward. "-mc 10" almost fixes it,
but now mplayer starts throwing occasional "Your system is too SLOW to
play this!" on 4GHz cpu (utilisation jumps to 60% for a split second
while seeking).

Now lets try 1920x1080 stream:

D:\_learning>for /f "delims=" %A in ('youtube-dl.exe
"https://www.youtube.com/watch?v=M3IgHiWq5x4" -f 248 -g') do @echo
"%A" >video
D:\_learning>for /f "delims=" %A in ('youtube-dl.exe
"https://www.youtube.com/watch?v=M3IgHiWq5x4" -f 171 -g') do @echo
"%A" >audio

D:\_learning>head -c -2 video >3
D:\_learning>cat audio >>3

D:\_learning>FOR /F "tokens=1-3" %A IN (3) DO
@C:\Users\bofh\AppData\Roaming\smplayer\mplayer\mplayer %A -audiofile
%B -mc 10

it starts ok, but as soon as you fast forward it breaks badly

A:  41.4 V:  41.2 A-V:  0.213 ct: 14.785   0/  0 23%  6%  0.3% 344 0
A:  60.1 V:  53.3 A-V:  6.787 ct:  0.100   0/  0 ??% ??% ??,?% 0 0
A:  81.0 V:  64.0 A-V: 17.003 ct: 26.192   0/  0 36%  0%  0.3% 610 0
A: 100.2 V:  96.0 A-V:  4.190 ct:  0.100   0/  0 ??% ??% ??,?% 0 0
A: 120.6 V: 120.3 A-V:  0.218 ct: 15.835   0/  0 23%  3%  0.3% 372 0

If by any chance you manage to randomly land from the seek with good
sync it will hold it firmly no problem, if you land off by a few
seconds it will not even try to fix it tho :/
Its even worse when combining "-mc 10" with -"framedrop", whole video
freezes as if its waiting to resync, except audio is already ahead.


-- 
Who logs in to gdm? Not I, said the duck.


More information about the MPlayer-users mailing list