Topic: SVP4 Mac + mvp + 60FPS YouTube video = stuttery mess

Trying to play a native 60FPS YouTube video with mpv. Whenever I have SVP enabled, I get a stuttery mess. Just disabling/kill SVP and it's buttery smooth.

2 (edited by TayyabKhalid 27-01-2017 17:46:34)

Re: SVP4 Mac + mvp + 60FPS YouTube video = stuttery mess

trandoanhung1991 wrote:

Trying to play a native 60FPS YouTube video with mpv. Whenever I have SVP enabled, I get a stuttery mess. Just disabling/kill SVP and it's buttery smooth.

Why mac, don't get whats so good about that trash anyway. I would recommend a good PC instead.

Re: SVP4 Mac + mvp + 60FPS YouTube video = stuttery mess

> Trying to play a native 60FPS YouTube video with mpv. Whenever I have SVP enabled, I get a stuttery mess. Just disabling/kill SVP and it's buttery smooth.

too few information

4 (edited by trandoanhung1991 28-01-2017 04:30:16)

Re: SVP4 Mac + mvp + 60FPS YouTube video = stuttery mess

Chainik wrote:

> Trying to play a native 60FPS YouTube video with mpv. Whenever I have SVP enabled, I get a stuttery mess. Just disabling/kill SVP and it's buttery smooth.

too few information

I know, but I don't know what to provide though. I'm not familiar with Mac debugging tongue

All right, let's try this again:

Specific video in question: https://www.youtube.com/watch?v=iErlDGSZc7w
Macbook Pro 13-inch Retina Mid-2014, macOS Sierra 10.12.3

MPV 0.23.0 config:

save-position-on-quit
hwdec=auto-copy
#hwdec=no
input-ipc-server=/tmp/mpvsocket
opengl-early-flush=no
vo=opengl
#opengl-pbo=yes
ytdl-format=bestvideo[height<=?1080]+bestaudio/best
#video-sync=display-resample

mpv --version output:

mpv 0.23.0 (C) 2000-2016 mpv/MPlayer/mplayer2 projects
 built on Wed Jan 25 10:34:21 ICT 2017
ffmpeg library versions:
   libavutil       55.34.100
   libavcodec      57.64.101
   libavformat     57.56.100
   libswscale      4.2.100
   libavfilter     6.65.100
   libswresample   2.3.100
ffmpeg version: 3.2.2

SVP 4.1.0.101 console log:

11:24:59.783 [i]: VideoPlayer: mpv connected, waiting for the video info...
11:25:00.314 [i]: VideoPlayer: mpv 0.23.0
11:25:03.506 [i]: Media: video looks like some kind of stream
11:25:03.506 [i]: Media: video 1920x1080 [PAR 1.000] at 60.000 fps [constant] (via video player)
11:25:03.506 [i]: Media: codec type is h264 (H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10), nv12
11:25:03.522 [i]: Playback: starting up...
11:25:03.526 [i]: Playback [4347fa4d]: resulting video frame 1920x1080
11:25:03.527 [i]: Playback [4347fa4d]: 1 acceptible profiles, best is 'Automatic' [0]
11:25:03.527 [i]: Playback [4347fa4d]: enabled while video is playing
11:25:03.528 [i]: Profile: using auto values [13]
11:25:03.541 [i]: Playback [4347fa4d]: playing at 60 [60 *1/1]
11:25:10.725 [i]: Playback [4347fa4d]: full screen mode activated
11:25:19.622 [i]: Playback [4347fa4d]: disabled while video is playing
11:25:19.622 [i]: Playback [4347fa4d]: deleted

mpv log without SVP (smooth):

mpv https://www.youtube.com/watch\?v\=iErlDGSZc7w --no-resume-playback
Playing: https://www.youtube.com/watch?v=iErlDGSZc7w
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=eng (*) 'DASH audio' (opus) (external)
AO: [coreaudio] 48000Hz stereo 2ch floatp
Using hardware decoding (videotoolbox-copy).
VO: [opengl] 1920x1080 nv12
(Buffering) AV: 00:00:16 / 00:13:17 (2%) A-V:  0.000 Dropped: 6 Cache:  0s+7KB

mpv log with SVP (stuttery mess):

mpv https://www.youtube.com/watch\?v\=iErlDGSZc7w --no-resume-playback
Playing: https://www.youtube.com/watch?v=iErlDGSZc7w
 (+) Video --vid=1 (*) (h264)
 (+) Audio --aid=1 --alang=eng (*) 'DASH audio' (opus) (external)
AO: [coreaudio] 48000Hz stereo 2ch floatp
Using hardware decoding (videotoolbox-copy).
VO: [opengl] 1920x1080 nv12
AV: 00:00:00 / 00:13:17 (0%) A-V:  0.000 Cache:  0s+0KB
Opening video filter: [vapoursynth file=/Users/trandoanhung/Library/Application Support/SVP4/scripts/4347fa4d.py buffered-frames=4 concurrent-frames=7]
Using conversion filter.
AV: 00:00:00 / 00:13:17 (0%) A-V:  0.282 Cache:  0s+0KB
VO: [opengl] 1920x1080 yuv420p
AV: 00:00:00 / 00:13:17 (0%) A-V:  0.476 Dropped: 10 Cache:  0s+0KB

Audio/Video desynchronisation detected! Possible reasons include too slow
hardware, temporary CPU spikes, broken drivers, and broken files. Audio
position will not match to the video (see A-V status field).

AV: 00:00:12 / 00:13:17 (1%) A-V: 12.234 Dropped: 546 Cache: 10s+513KB
[ffmpeg] tls: IO Error: -9806
AV: 00:00:19 / 00:13:17 (2%) A-V: 20.006 Dropped: 840 Cache: 10s+10MB

Re: SVP4 Mac + mvp + 60FPS YouTube video = stuttery mess

I guess interpolation of 1920*1080*2 is not gonna happen on a Iris 5100. Tried lower res videos?

Re: SVP4 Mac + mvp + 60FPS YouTube video = stuttery mess

myfakeacc wrote:

I guess interpolation of 1920*1080*2 is not gonna happen on a Iris 5100. Tried lower res videos?

Where did you see that? Because the monitor is 60Hz, so there shouldn't be any interpolation happening at all, just a straight pass-through.

Re: SVP4 Mac + mvp + 60FPS YouTube video = stuttery mess

Didn't notice that.
Well, does SVP still perform an analysis step? I suppose the actual motion interpolation might be a no-op, but it will still analyze frames? Just a guess.

Re: SVP4 Mac + mvp + 60FPS YouTube video = stuttery mess

Media: video 1920x1080 [PAR 1.000] at 60.000 fps [constant] (via video player)

> does SVP still perform an analysis step?
No. Only if you have display refresh rate more than 60 Hz and setting frc.target.max value more than 60.