UHD wrote:

Who wants to interpolate 4K HDR videos x5 in real time with RIFE?
Perhaps a more appropriate question is who can afford it?

After reading all the posts on this thread I come to the conclusion that it is possible, and the limitation is not the NVIDIA GeForce RTX 4090 graphics card but the RAM bandwidth.

For someone with unlimited financial resources this is the solution:

ASUS Pro WS W790E-SAGE SE motherboard
Intel Xeon W9-3495X processor
G.SKILL DDR5-6400 CL32-39-39-102 octa-channel R-DIMM memory modules

https://www.gskill.com/img/pr/2023.02.23-zeta-r5-rdimm-ddr5-announce/06-zeta-r5-rdimm-spec-table-eng.png
Source: https://www.gskill.com/community/150223 … erformance

The result?

303.76GB/s read, 227.37 GB/s write, and 257.82 GB/s copy speed in the AIDA64 memory bandwidth benchmark, as seen in the screenshot below:

https://www.gskill.com/img/pr/2023.02.23-zeta-r5-rdimm-ddr5-announce/04-zeta-r5-rdimm-ddr5-6400-c32-16gbx8-bandwidth.png
Source: https://www.gskill.com/community/150223 … erformance

Of course, the Intel Xeon W9-3495X is completely out of my reach....

The cheapest unlocked Intel Xeon would be the W5-2455X at a suggested price of $1039: https://www.anandtech.com/show/18741/in … -5-0-lanes Should be enough. If the current dual-channel DDR5-6000 allows x3 interpolation then the quad-channel DDR5-6400 should be enough for x5 real-time interpolation.

I am looking for someone who has an NVIDIA GeForce RTX 4090 graphics card, at least DDR5-6000 memory and some spare time to test how RIFE real-time interpolation scales at different RAM speeds.

Alternatively, someone who would like to build an HTPC based on quad-channel or octa-channel DDR5-6400 R-DIMM memory. Octa-channel is for the 4K 240Hz screens that will soon go on sale big_smile

I have 6400mhz Dual Rank 64gb Sticks at netting just under 100Gb/s with a latency of 54Ns. Using MPV player i can't interpolate a 21:9 4k HDR film at 3x (13700k @ 5.6Ghz all core 4.5Ghz E cores).

I was keen to try this out on my Laptop. Its got a 3050ti with 4Gb of memory. Using the 4.4 engine I get the following:

[01/16/2023-21:47:02] [W] [TRT] Skipping tactic 0x0000000000000000 due to exception autotuning: CUDA error 2 allocating 849350061-byte buffer: out of memory

Any way to run this on 4GB of Vram?

Chainik wrote:

SVP updated, added TensorRT (no need for doing anything manually), fixed (??) possible audio desync after RIFE transcoding (both Vulkan and TRT versions)

Either select the checkbox at install time, or install an additional package called "TensorRT" via SVP menu -> Utilities -> Additional programs and features.

----
It uses "dynamic shapes" by default, i.e. only ONE optimization pass for all resolutions below 2560*1440. And if/when you open a 4K video then it'll do another pass for resolutions from 1440p to 4K.
BUT! this can be a little bit slower than optimization for a specific resolution, like 5% in my case. This is why there's a "performance boost" profile option - it forces its own opt. pass for each resolution.

another finding: model 4.6 needs more than 8G of device memory for 4K res, so if you're on a 8G card and want 4K then choose model 4.4.

----
Also installation scripts fixed so the Vapoursynth Filter must be registered automatically.

Excellent thank you.

I could do with this also please.

BTW I was returning my watercooled 3090 back to stock today before selling on. I thought i'd give this latest version of Rife a go and it does run 4K HDR at 48FPS no issue.

So this isn't limited to 40 series cards. Power draw is low too, around 150w.

Interestingly I tried a 21:9 4h HDR video after the LG one at x3 and when in window mode it ran correctly. As soon as I double clicked to go full screen the film dropped to 9fps. Looks more like a configuration issue than RIFE as it was running fine windowed.

UHD wrote:
Mardon85 wrote:

Ok I got it working with a 4K SDR video. Wow brilliant stuff. I'm not sure if its working with HDR though. Its x2 frame rate but the HDR colours don't seem to be coming through.

Have you tried the following file in real time?

video test:
LG 4K HDR Demo - New York.ts.
3840x2160, HDR10, 25FPS
Direct link: https://drive.google.com/file/d/1dfR5TT … _bGfEXUvJ/
Source: http://hdr4k.blogspot.com/

Can you smoothly interpolate in real time with RIFE x2, without losing frames? How are the colours?

I'll do some further tests today and report back.

For reference my system is a 10900k @ 5.2ghz all core 32gb of CL14 4000mhz ram (not sure if very low latency or bandwidth plays the bigger factor here). Also works at x3 resolution in HDR.

The 4090 is mind blowing like x2 generational leap over my 3090. It so frugal on energy too!

EDIT----

Ok i've tested this further. Through MPlayer HDR works with Standard SVP interpolation (but not Rife). However since brining in all the new RIFE updates it seems to have broken HDR in MPV player. Even when using standard interpolation with Rife off MVP/SVP player is not playing HDR (even when turned off). I've even tested MPV on its own without SVP and it is not displaying HDR colours. I've posted my config file below for info:

Any ideas?

------------------
#
# THIS FILE WILL BE OVERWRITTEN WITH THE PACKAGE UPDATE
# Use %APPDATA%/mpv/mpv.conf
# OR SVP's menu -> Information -> Add. information -> mpv config. file
#     to define your own customized configuration
#
# Sample mpv configuration
#

# this is required for SVP to "catch" the mpv
input-ipc-server=mpvpipe

# hardware video decoder
hwdec=auto-copy
hwdec-codecs=all

# high quality video output, require rather fast video card
#profile=gpu-hq

# D3D11 renderer (default) is required for the HDR playback
#gpu-api=d3d11

# use VULKAN API if you have problems with the default d3d11 renderer
#gpu-api=vulkan

# miscellaneous options

# comment this one if you want mpv to remember the playback position
save-position-on-quit=yes

# fixes audio desync
hr-seek-framedrop=yes

#log-file=mpv.log
# this is required for SVP to "catch" the mpv
input-ipc-server=mpvpipe
hwdec=nvdec-copy
#hwdec=auto-copy

vo=gpu-next

-----------------

FINAL EDIT --- Adding this here incase anyone has the same issue. I needed to add the following to the config file:

--vo=gpu-next --target-colorspace-hint=yes --gpu-api=d3d11

The image clip you provided now plays at 50fps in HDR and looks fantastic.

One very happy camper here. Thanks everyone for your effors.

Ok I got it working with a 4K SDR video. Wow brilliant stuff. I'm not sure if its working with HDR though. Its x2 frame rate but the HDR colours don't seem to be coming through.

Chainik wrote:

That one - https://github.com/AmusementClub/vs-mlrt - is MUUUUCH better
-------------
Post updates:
09/01: updated both libs and scripts, should improve 4K performance on 4080+
-------------
Let's try this:

0. nothing to do with Python big_smile
1. download --> https://www.svp-team.com/files/temp/rife-trt-0901.7z <--, unpack into SVP 4\rife (you should already have this folder), so vstrt.dll must be in the root, i.e. SVP 4\rife\vstrt.dll
2. replace generate.js, base.py in SVP 4\script; restart SVP to be sure
3. menu -> Applications settings -> Additional options -> All settings, go to 'User defined options'
Title: TensortRT; Script name: rife_trt; Other values by default - "FRC profile", "ON or OFF"
Click 'Add option'
Go to the RIFE video profile, see the added TensortRT on/off swtich.
Make a copy of the RIFE video profile, one with TensorRT ON and another with OFF.

Pros:
- no Pytorch!
- works in a real-time
- even faster (?) than vsrife [could be just because of some TensorRT options]
Cons:
- even slower (?) first-time initialization [could be just because of some TensorRT options]
- a nasty command-line window will pop-up for every new video resolution

It's OK for the command-line window to stay for 4-5 mins. Don't close it! Wait!

I've been a long time follower of the thread and now a very proud owner of a 4090. I can't wait to try out some 4K HDR RIFE!

Can you elaborate on point 3 or perhaps show a screen shot of your Application Settings window?

EDIT - Doesn't matter I sorted it. Patiently and excited waiting for the command line to finish big_smile

EDIT 2 - Got it working but need some assistance. My monitor is an ultrawide and the content i'm trying to watch is 21:9 it doesn't seem to zoom to fit like it does with the out of the box SVP player. Any ideas?

Should the window close after "Global timing cache in use. Profiling results in this builder pass will be stored." or keep waiting?

DragonicPrime wrote:

yes I know. What I mean, is that if I use flowframes or don't use real time interpolation, I can do it without any issues. I used to be able to do it with rife 3 versions. My gpu usage is only around 30-40% with 1080p 2x interpolation. I have a 4090

Can you do real time 4k at x2 frame rate?

Yup i'm having no luck ether. I have the Dolby Vision plugin from the M$ store.

I've got the following version of MPV "mpv-x86_64-20220417-git-305332f" which I've copied (and overwritten where applicable) to the following location: C:\Program Files (x86)\SVP 4\mpv64

I've then accessed the MPV config file via Right click Information>Additional Information

My log file is as follows:

#
# THIS FILE WILL BE OVERWRITTEN WITH THE PACKAGE UPDATE
# Use %APPDATA%/mpv/mpv.conf
# OR SVP's menu -> Information -> Add. information -> mpv config. file
#     to define your own customized configuration
#
# Sample mpv configuration
#

# this is required for SVP to "catch" the mpv
input-ipc-server=mpvpipe

# hardware video decoder
hwdec=auto-copy
hwdec-codecs=all

# high quality video output, require rather fast video card
#profile=gpu-hq

# D3D11 renderer (default) is required for the HDR playback
#gpu-api=d3d11

# use VULKAN API if you have problems with the default d3d11 renderer
#gpu-api=vulkan

# miscellaneous options

# comment this one if you want mpv to remember the playback position
save-position-on-quit=yes

# fixes audio desync
hr-seek-framedrop=yes
ii

#log-file=mpv.log
# this is required for SVP to "catch" the mpv
input-ipc-server=mpvpipe
hwdec=nvdec-copy
#hwdec=auto-copy
hwdec-codecs=all
hr-seek-framedrop=no
vo=gpu-next
target-prim=bt.2020
target-trc=pq
gamma=5

Any ideas where i'm going wrong?

Monitor is in 10Bit HDR mode.

damienbt wrote:
straumli wrote:

I have installed the Dolby Vision extensions but I still have the purple tint issue. Tried all players installed on a none-DoVi compatible monitor.

This problem is not related to the monitor : you didn't get the right version of MPV or didn't configure it correctly
On my side MPC-HC, MPC-BE and VLC render a purplish picture in dolby vision videos that don't have a HDR10/HLG fallback stream.
MPV works though, wether I use a dolby vision display or not (but HDR compatible in both cases).

1/ Create a %APPDATA%\mpv\mpv.conf file

# this is required for SVP to "catch" the mpv
input-ipc-server=mpvpipe
hwdec=nvdec-copy
#hwdec=auto-copy
hwdec-codecs=all
hr-seek-framedrop=no
vo=gpu-next
target-prim=bt.2020
target-trc=pq
gamma=5

2/ Enable HDR from windows 10/11 from windows settings System > Screen > HDR. Select the external screen (not the internal display) and enable HDR

3/ While having your external display plugged in : you have to set the graphic cards to output in 10 or 12 bits mode. See the capture below from nvidia control panel

4/ In SVP settings, set "Allow output in 10 bit color depth" set to always
https://www.svp-team.com/forum/misc.php?action=pun_attachment&amp;item=5390&amp;download=0

Thanks for this info. I'll try it tonight!

Imee wrote:

yes

OK thanks I'll try some more with it.

Sorry just to be 100% clear. Is this on a none dolby vision monitor?

Not trying to use plex as a player.

I can't seem to get GPU next to activate on mpv.

Imee wrote:

https://www.microsoft.com/en-us/p/app/9 … rementstab
PotPlayer x64 with SVP 4 work DoVi big_smile

My HDR monitor is not compatible with DV does this method work on a normal HDR10 monitior?

I'm not having much luck so far.

According to the reddit post below this should be possible using the latest MPV and GPU Next (It's not actually using Dolby Vision but strips out the per scene meta data and solves the purple tint issue). Id very much like to use this as my Tablet and TV both support DV but my PC does not. This way my plex server only needs one copy of any HDR media.
Unfortunately I'm pretty new to all of this, has anyone tried it with success at the same time as SVP?



https://www.reddit.com/r/htpc/comments/ … urce=share

43

(0 replies, posted in Using SVP)

Hi everyone. I've just got a new monitor which will finally let me watch HDR on my computer. I've not really used my copy of SVP much other than for youtube videos up to this point.

I'm after a little guidance on adding some sharpening to my 4K HDR films played via MPV. What i've read so far doesn't seem to work as its for the standard MVP not the one linked to SVP. Everything i've tried so far hasn't really worked. Any guidance really would be appreciated.

In addition is there anywhere I can set the peak brightness to 1000nits?

Monitor is an X35 3440x1440
2080ti, i7 8086k @ 5.2Ghz

Thanks in advance.