1 (edited by Nintendo Maniac 64 11-08-2016 20:03:14)

Topic: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

Note the related thread on achieving the same thing but with Reclock here:
http://www.svp-team.com/forum/viewtopic.php?id=3439



I've got a TV that can't properly handle 48Hz nor 72Hz (it accepts them, but does frame-skipping/repeating), but can properly handle 50Hz and 60Hz perfectly fine (as well as 24Hz, but pfft to that tongue).


So simply put, I'd like to use mpv* to turn any and all 23.976/47.952fps and 24.00/48.00fps videos into 25.00/50.00fps videos (possibly with pitch correction, but I'd like to compare with and without it myself and see which one I like better).  However, I want to leave all other framerates as they are (20fps, 25fps, 30fps, etc)

The problem is that I'm a complete newbie when it comes to mpv and don't really know what I'm doing.

I'm also concerned about the fact that a lot of YouTube's VP9/WebM videos have slightly variable frame rates, so specifically specifying 23.976 might not work if the video actually fluctuates from 23.917 to 24.043fps.


How may I properly achieve what I am looking to do?




If anyone cares, I know how to manually do this process "off-line" and as a sort of "pre-production", but that's kind of a pain to have to do every single time I come across a 24fps video - especially since it prevents me from streaming because such method requires the entire file to be downloaded.


*For setting up mpv, I'll need to also know how to set up the following:

  • ____REQUIRED____

  • automatically change my resolution/refresh rate to 1280x720 @ 50Hz for 25fps & 50fps

  • automatically change my resolution/refresh rate to 1280x720 @ 60Hz for 20, 30, and 60fps

  • use the left/right arrow keys to seek 15-20 seconds backwards/forwards

  • use whatever the equivalent of LAVfilter's CUVID decoding is (it's faster for me than DXVA2 copy-back)

  • use some sort of upscaling algorithm that's better quality than bilinear but isn't all that intensive (similar to bicubic in MPC-HC)

  • use the equivalent of D3D Fullscreen with minimal to no extra vsync-ing

  • automatically launch videos in fullscreen when video files are associated with mpv and double-clicked on in the Windows Explorer

  • automatically switch from fullscreen to windowed after video playback finishes

  • use the ESC key to switch from fullscreen to windowed

  • use the space bar to pause/resume the video

    ____OPTIONAL____

  • equivalent to MPC-HC's "Remember file position", but I must know where the data file that stores the playback position is located on the hard drive so that I can put it on a volatile ramdisk so that the saved position is cleared when the PC is shut down or rebooted

  • automatically change my resolution/refresh rate to 1920x1080 @ 50Hz or 60Hz for any video that is of a considerably smaller resolution than 1280px or 720p (such as a video at 1024x576).

  • use the up/down arrow keys to seek ~5 seconds backwards/forwards

  • advance to the previous/next frame via ctrl+left_arrow and ctrl+right_arrow

  • use DXVA2 native decoding for 50fps and 60fps videos

  • don't upscale any videos that aren't at least considerably smaller resolution than 1280x720, rather display them as is (I'd prefer to not do any scaling on a 1264x704 video)

2 (edited by dlr5668 01-08-2016 21:40:35)

Re: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

1 not possible on windows, 24fps * 2 (svp) * 1.04 (mpv) = 50 Hz
2 not possible on windows, 30fps * 1.67  (svp) = 50 Hz . You have to choose what video content fps is more important for you.
3 ez input.conf
4 nope, https://github.com/mpv-player/mpv/issues/735
5 ez
6 ez
7 ez
8 ez
9 ez
10 ez

1 File position stores at appdata as filename hash<->time pair
2 not possible on windows
3 yes
4 yes
5 need testing
6 no

http://i.imgur.com/YzrY3HT.png

use x2 here, regular expression works too
http://i.imgur.com/zWsAMXr.png

3 (edited by Nintendo Maniac 64 01-08-2016 21:49:59)

Re: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

dlr5668 wrote:

1 not possible on windows, 24fps * 2 (svp) * 1.04 (mpv) = 50 Hz
2 not possible on windows, 30fps * 1.67  (svp) = 50 Hz . You have to choose what video content fps is more important for you.

I thought that's what the following did?:
https://github.com/kevinlekiller/mpv_sc … tospeedwin

Nevertheless, I haven't a clue on how to actually go about using it.

Wait; does mpv not even support an equivalent of DXVA2 copy-back?  That's...interesting.  I guess that doesn't really matter for VP9/WebM stuff though.

4 (edited by dlr5668 01-08-2016 22:56:41)

Re: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

del

5 (edited by dlr5668 01-08-2016 22:59:57)

Re: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

use some sort of upscaling algorithm that's better quality than bilinear but isn't all that intensive (similar to bicubic in MPC-HC)
bicubic_fast

use the equivalent of D3D Fullscreen with minimal to no extra vsync-ing
vo = direct3d, check here https://mpv.io/manual/master/

automatically launch videos in fullscreen when video files are associated with mpv and double-clicked on in the Windows Explorer
fullscreen=yes in mpv.conf

automatically switch from fullscreen to windowed after video playback finishes

default behaviour

use the ESC key to switch from fullscreen to windowed
default behaviour

use the space bar to pause/resume the video
check input.conf

You should delete config files in svp mpv folder and create them in %appdata%/mpv. I uploaded sample config here https://my.pcloud.com/publink/show?code … zdg0kv4EkV

Re: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

autospeedwin works fine for me, thanks !

script-opts=autospeed-nircmd=true,autospeed-speed=false,autospeed-nircmdc="C:\Users\vadas\AppData\Roaming\mpv\nircmdc.exe",autospeed-rates="60,71",autospeed-osd=true

7 (edited by Nintendo Maniac 64 01-08-2016 23:02:12)

Re: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

OK then, so uh...how the crap do I go about setting things up in mpv to achieve the stuff I layed out?

8 (edited by dlr5668 01-08-2016 23:02:02)

Re: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

Nintendo Maniac 64 wrote:

OK then, so uh...how the crap do I go about setting things up in mpv to achieve the stuff I layed out?

I uploaded my config (pcloud). Check previous post and edit it.

9 (edited by Nintendo Maniac 64 01-08-2016 23:12:00)

Re: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

dlr5668 wrote:

I uploaded my config (pcloud). Check previous post and edit it.

That alone doesn't help me that much.  Remember, I'm a complete mpv newbie and any sort of command-line and/or coding like stuff is my single massive weakpoint PC-skills-wise, so you're going to have to practically hold my hand here. tongue


Oh, and I must ask - I've heard that DXVA upscaling is similar in quality to lanczos yet is very light on the processor; does mpv support this?

Re: mpv newbie - how to speed up ONLY 24/48fps videos to 25/50fps?

> autospeedwin works fine for me

it's worth adding this to the wiki! smile