Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Hardware & Software > Software players

Reply
 
Thread Tools Search this Thread Display Modes
Old 22nd February 2020, 00:59   #7201  |  Link
aufkrawall
Registered User
 
Join Date: Dec 2011
Posts: 1,812
Is this about semantics? Why would adjusting audio speed be called resampling, but video speed not?

And where is the corresponding option in mpc be/hc to get perfect playback of e.g. 23,976fps at 48Hz?
aufkrawall is offline   Reply With Quote
Old 22nd February 2020, 02:32   #7202  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 10,344
Quote:
Originally Posted by aufkrawall View Post
Is this about semantics? Why would adjusting audio speed be called resampling, but video speed not?
I never said it isn't called that, its just not a common term to use, but you can call it that if you want, its not wrong. But that is ultimately what Smooth Motion is doing.
However, if you just change the timestamps so the video runs a different speed, thats not really "resampling", for resampling to take place, the video frames need to actually change.

What its really about is that you are seemingly alternating between resampling audio and resampling video - or you assumed the mpv "display-resample" mode did something else then it actually does (because that resamples audio), leading to confusion.

And since we're talking about a mobile solution with power efficiency in mind, resampling audio like this is also far cheaper then resampling video (properly).

Quote:
Originally Posted by aufkrawall View Post
And where is the corresponding option in mpc be/hc to get perfect playback of e.g. 23,976fps at 48Hz?
Install ReClock, use it as audio renderer. Maybe also with SaneAR, but I heard it may still have issues.
MPC-HC doesn't have this function built-in, but its achievable with little effort.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 22nd February 2020 at 02:45.
nevcairiel is offline   Reply With Quote
Old 22nd February 2020, 02:44   #7203  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,903
resampling video (i still think the term is miss leading) only has 23-60 samples a while audio has 44100 or more that means the error added by resampling in audio is very low and the error in video can be devastating like smooth motion at 23p with a 23p source the result is close to useless but 23p at 60p is fine. the next problem is it cost massively more processing power.
huhn is offline   Reply With Quote
Old 22nd February 2020, 06:16   #7204  |  Link
v0lt
Registered User
 
Join Date: Dec 2008
Posts: 1,959
mpv wiki - display-sync
mpv wiki - Motion-based interpolation and Smoothmotion

We do not plan to implement anything like this in the near future. Perhaps we will try to use D3D11 VP functions for Nvidia, see Rate Conversion Caps in DXVA Checker. But even this will take a long time, so it's better not to wait for it and not to worry.
So, if you are in a hurry, you can implement the features yourself or find people who can do it (I believe these people exist).
v0lt is offline   Reply With Quote
Old 22nd February 2020, 09:56   #7205  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
Resampling video to match audio just sounds like a huge waste of cpu/gpu power, when the algorithms to perfectly resample audio can run on a P3 in realtime. On the other hand, people mine bitcoin, so I guess that ship has sailed.

Resampling video exists to match monitor refresh rates, not audio timing. With the increasing adoption of G-sync and Freesync, the need for that is disappearing as players start to use that. Beyond that, the benefits of things like black-frame-insertion and frame blending have been contentious at best.
foxyshadis is offline   Reply With Quote
Old 22nd February 2020, 12:03   #7206  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,903
freesync and gsync for video playback is so inaccurate good luck with that video player...
huhn is offline   Reply With Quote
Old 22nd February 2020, 12:35   #7207  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 293
Quote:
Originally Posted by aufkrawall View Post
Why would adjusting audio speed be called resampling
It seems that you confuse resampling and changing(adjusting) sample rate.
lvqcl is offline   Reply With Quote
Old 22nd February 2020, 15:02   #7208  |  Link
aufkrawall
Registered User
 
Join Date: Dec 2011
Posts: 1,812
You are probably right if you want to be precise.

Well, thanks @ mpc be devs for evaluating.

In the meantime, I'll be continuing using display-resample mode, which plays judder test videos even without any audio smoothly, doesn't "devastate" the result and neither is "smooth motion". People in their ivory tower of limited scope may continue thinking otherwise, totally ok with me.
aufkrawall is offline   Reply With Quote
Old 22nd February 2020, 18:11   #7209  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,903
Quote:
ivory tower of limited scope
just read the parts you like and ignore the rest and talk about a limited scope.
huhn is offline   Reply With Quote
Old 22nd February 2020, 22:58   #7210  |  Link
aufkrawall
Registered User
 
Join Date: Dec 2011
Posts: 1,812
So I've remuxed a 23,976fps judder test video together with an audio track, playback with ReClock (32 bit only binary, srsly?) at 48Hz shows stutter, while mpv display-resample does not.
Why? (Don't anybody come up with smooth motion...)
aufkrawall is offline   Reply With Quote
Old 24th February 2020, 19:46   #7211  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Turns out not only Kodi but also mpv (using hwdec=nvdec) can play UHD/4K using GT 1030 2GB, mpc fails even with LAV Decoder and NVIDIA CUVID.
stax76 is offline   Reply With Quote
Old 24th February 2020, 23:21   #7212  |  Link
Aleksoid1978
Registered User
 
Aleksoid1978's Avatar
 
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,783
I have 1030 2Gb and perfect playback 4K 10Bit 60fps in MPC-BE.
__________________
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /Patriot 32Gb@3200 /Kingston 500Gb M.2 /RTX 4060 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Aleksoid1978 is online now   Reply With Quote
Old 24th February 2020, 23:58   #7213  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by Aleksoid1978 View Post
I have 1030 2Gb and perfect playback 4K 10Bit 60fps in MPC-BE.
Do you have a sample like this:

V: HEVC, Main 10@L5.1@High, 3840x2076, 59.940 FPS, 20.4 Mb/s
A: AC-3, 640 kb/s, 6ch, 48.0 kHz
stax76 is offline   Reply With Quote
Old 25th February 2020, 01:14   #7214  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 7,903
if you want efficiency and the highest change of getting this to work use DXVA2 native or D3D11 native but not cuvid.
huhn is offline   Reply With Quote
Old 25th February 2020, 01:19   #7215  |  Link
Aleksoid1978
Registered User
 
Aleksoid1978's Avatar
 
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,783
Quote:
Originally Posted by stax76 View Post
Do you have a sample like this:

V: HEVC, Main 10@L5.1@High, 3840x2076, 59.940 FPS, 20.4 Mb/s
A: AC-3, 640 kb/s, 6ch, 48.0 kHz
20.4 Mb/s - it's so easy

Test on https://4kmedia.org/sony-bravia-uhd-hdr-4k-demo/ - perfect playback.
__________________
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /Patriot 32Gb@3200 /Kingston 500Gb M.2 /RTX 4060 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Aleksoid1978 is online now   Reply With Quote
Old 25th February 2020, 01:23   #7216  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Originally Posted by huhn View Post
if you want efficiency and the highest change of getting this to work use DXVA2 native or D3D11 native but not cuvid.
Neither works.
stax76 is offline   Reply With Quote
Old 25th February 2020, 01:43   #7217  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Please try this:

http://www.mediafire.com/file/kbn371...niMan.mkv/file

Here in mpv it's crazy jerky and in mpc it's slow mo with audio dropouts.
stax76 is offline   Reply With Quote
Old 25th February 2020, 01:47   #7218  |  Link
Aleksoid1978
Registered User
 
Aleksoid1978's Avatar
 
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,783
Perfect playback. Test in MPC-BE using EVR-CP/MPC-VR(DX9) + internal filter(DXVA2 Native), MPC-VR DX11 + LAV DX11 Native.

Show screenshot in MPC-BE with statictics(Ctrl+J).
__________________
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /Patriot 32Gb@3200 /Kingston 500Gb M.2 /RTX 4060 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Aleksoid1978 is online now   Reply With Quote
Old 25th February 2020, 02:18   #7219  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
Quote:
Perfect playback. Test in MPC-BE using EVR-CP/MPC-VR(DX9) + internal filter(DXVA2 Native), MPC-VR DX11 + LAV DX11 Native.
Tried all that, nothing works.

https://postimg.cc/G9hzy0fN

edit:

Please also show screenshot.

Last edited by stax76; 25th February 2020 at 02:22.
stax76 is offline   Reply With Quote
Old 25th February 2020, 02:24   #7220  |  Link
Aleksoid1978
Registered User
 
Aleksoid1978's Avatar
 
Join Date: Apr 2008
Location: Russia, Vladivostok
Posts: 2,783
Quote:
Originally Posted by stax76 View Post
Tried all that, nothing works.

https://postimg.cc/G9hzy0fN

edit:

Please also show screenshot.
Something wrong at you system. Monitor GPU load/memory using GPU-Z or TaskManager in Windows 10.
__________________
AMD Ryzen 5 3600 /GIGABYTE B450 Gaming X /Patriot 32Gb@3200 /Kingston 500Gb M.2 /RTX 4060 /Samsung U28R550UQI /OLED Philips 55OLED707 /Yamaha RX-V471 + NS-555 + NS-C444 + NS-333 + YST-SW215
Aleksoid1978 is online now   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:06.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.