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 9th April 2019, 22:48   #521  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 9,793
MPC-HC doesn't actually check the FPS, it only checks resolution and bitrate. And for some reason the bitrate reported for the 60fps variants is lower then the 30fps one - although the final file sizes are as one might expect, the 60fps one being bigger. Something weird is either going on with youtube or youtube-dl.

For example from your first link:
137 mp4 1920x1080 1080p 14697k , avc1.640028, 30fps, video only, 464.66MiB
299 mp4 1920x1080 1080p60 5756k , avc1.64002a, 60fps, video only, 534.82MiB

The reported bitrate seems totally bonkers, neither value is even close to being true. The actual bitrates are like 2000kb/s and 2200kb/s or such.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders

Last edited by nevcairiel; 9th April 2019 at 22:52.
nevcairiel is offline   Reply With Quote
Old 14th April 2019, 17:16   #522  |  Link
clsid
Registered User
 
Join Date: Feb 2005
Posts: 5,001
Quote:
Originally Posted by Nintendo Maniac 64 View Post
Did YouTube change something? Some recently uploaded 60fps videos are giving me 30fps versions when opened directly in MPC-HC via the built-in youtube-dl functionality.

Here's a couple example 60fps videos that are exhibiting this aforementioned behavior:
https://www.youtube.com/watch?v=Gkb87gjLyPg
https://www.youtube.com/watch?v=PTF0ZvWraMA

Yet other recent videos do not exhibit this behavior and do in fact play at 60fps in MPC-HC, such as the following:
https://www.youtube.com/watch?v=mVnWPvufIuo

Heck this video only gives me 720p 30fps even though 1080p 60fps is available via stand-alone youtube-dl:
https://www.youtube.com/watch?v=4qxhwFrjK4A
The last one uses segmented dash protocol for the 1080p resolution, which isn't supported by MPC-HC.

I have added an option to specify the preferred video format (H264/VP9/AV1) and framerate (30/60fps). The automatic selection currently just looks at the bitrate for comparing streams with same resolution. If bogus bitrate values are a common issue, then I could maybe use filesize instead.
clsid is offline   Reply With Quote
Old 14th April 2019, 19:10   #523  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 5,833
by using resolution refreshrate and codec you should be able to "always" get the best video.

i guess seeing the different between vp9 and vp9 profile 2 is an issue.
huhn is offline   Reply With Quote
Old 14th April 2019, 21:45   #524  |  Link
Nintendo Maniac 64
Registered User
 
Nintendo Maniac 64's Avatar
 
Join Date: Nov 2009
Location: Northeast Ohio
Posts: 419
Quote:
Originally Posted by clsid View Post
I have added an option to specify the preferred video format (H264/VP9/AV1) and framerate (30/60fps).
How does it handle situations like 4k videos only having H264 up to 1080p?

For example, if I set 1440p H264 and play one of these 4k videos, will I get 1080p H264 or 1440p VP9?

The same thing goes for AV1 whereby it's commonly only available up to 480p - if you set AV1 1440p and play the same 4k video, will you get 480p AV1 or 1440p VP9?
__________________
____HTPC____  | __Desktop PC__
2.93GHz Xeon x3470 (4c/8t Nehalem) | 4.6GHz Pentium G3258 (2c/2t Haswell)
Radeon HD5870  | Intel iGPU      
2x2GB+2x1GB DDR3-1333 | 4x4GB DDR3-1600       

Win7 x64
Nintendo Maniac 64 is offline   Reply With Quote
Old 14th April 2019, 22:07   #525  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 9,793
Thats why codec is usually not a good option, since there rarely is even a real choice given the other constraints. Bitrate would be decent if it worked, but since its all the same content file size should be equally reliable.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 15th April 2019, 00:11   #526  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 5,833
filesize is not a good way to find better quality anyway and the majority of videos is still not 60 fps so fps will not result in a good selection .
huhn is offline   Reply With Quote
Old 15th April 2019, 02:39   #527  |  Link
Nintendo Maniac 64
Registered User
 
Nintendo Maniac 64's Avatar
 
Join Date: Nov 2009
Location: Northeast Ohio
Posts: 419
I may not know what clsid has in mind, but from my view I think the best method would be a sort of priority-based fallback system while the three codecs themselves (AV1 > VP9 > H264; VP8 is excluded because that exists for only a single resolution being 360p and is lower quality than the equivalent H264 encode) additionally operate with their own priority-based fallback system.

In other words, I figure the first thing to try falling-back would be the codec, then it would try the resolution, then it'd try the frame rate.



As an example, let's say you have MPC-HC set to 1080p 60fps AV1.

First it'll check for that exact configuration - AV1 @ 1080p60. If it does not exist, it will fall-back the codec to VP9 and try VP9 @ 1080p60. If that doesn't exist, it'll check H264 @ 1080p60.

If that still doesn't exist, then it will start over with AV1 but at 720p60. And once again if it doesn't exist, it will then try VP9 @ 720p60 and if that doesn't exist then H264 @ 720p60.

If none of that exists, then it will start over with AV1 and 1080p once again but this time at 30fps. From there it will then try AV1 @ 1080p30, VP9 @ 1080p30, H264 @ 1080p30, AV1 720p30, VP9 @ 720p30, H264 @ 720p30, AV1 @ 480p30, VP9 @ 480p30, H264 @ 480p30, etc.



Now much like the resolution setting that currently exists in MPC-HC v1.8.6, my idea is that the codec and frame rate settings are upper-limits, so it would specifically start at those given upper-limits and never try anything above them. This means that, if you set MPC-HC to VP9 720p 60fps, it would follow the same sort of fallback process as the above example but would completely exclude the 1080p+ resolutions as well as AV1.

So in this case it would try in order: VP9 @ 720p60, H264 @ 720p60, VP9 @ 720p30, H264 @ 720p30, VP9 @ 480p30, H264@480p30, etc

This also means that, if you set H264, you would then always get nothing but H264.



Therefore, in the two examples given in my previous post, setting 1440p H264 in MPC-HC would indeed play back H264 @ 1080p while setting AV1 1440p would play back VP9 @ 1440p.
__________________
____HTPC____  | __Desktop PC__
2.93GHz Xeon x3470 (4c/8t Nehalem) | 4.6GHz Pentium G3258 (2c/2t Haswell)
Radeon HD5870  | Intel iGPU      
2x2GB+2x1GB DDR3-1333 | 4x4GB DDR3-1600       

Win7 x64
Nintendo Maniac 64 is offline   Reply With Quote
Old 15th April 2019, 07:47   #528  |  Link
mariush
Registered User
 
Join Date: Dec 2008
Posts: 590
I may not want AV1 because video card can't decode it in hardware
If anything priority should be configurable... or preferred formats
mariush is offline   Reply With Quote
Old 15th April 2019, 08:09   #529  |  Link
Nintendo Maniac 64
Registered User
 
Nintendo Maniac 64's Avatar
 
Join Date: Nov 2009
Location: Northeast Ohio
Posts: 419
Quote:
Originally Posted by mariush View Post
or preferred formats
clsid already confirmed that the format is configurable:
Quote:
Originally Posted by clsid View Post
I have added an option to specify the preferred video format (H264/VP9/AV1)

The thing is, VP9 and AV1 are not always available, so you need to have a sort of fallback system. My previous posts was then detailing what I personally think would be the most ideal method of handling such a fallback system.
__________________
____HTPC____  | __Desktop PC__
2.93GHz Xeon x3470 (4c/8t Nehalem) | 4.6GHz Pentium G3258 (2c/2t Haswell)
Radeon HD5870  | Intel iGPU      
2x2GB+2x1GB DDR3-1333 | 4x4GB DDR3-1600       

Win7 x64
Nintendo Maniac 64 is offline   Reply With Quote
Old 15th April 2019, 15:35   #530  |  Link
clsid
Registered User
 
Join Date: Feb 2005
Posts: 5,001
It choses the 'best' matching stream from all available ones, so there is always a fallback. Current order of properties for comparing candidates is: Format (if specified) / Resolution / Framerate (if specified) / Bitrate.

People with old systems can choose H.264 for performance reasons. People with modern systems can choose VP9 for best quality. AV1 is only used if you force it (for testing).

Quote:
For example, if I set 1440p H264 and play one of these 4k videos, will I get 1080p H264 or 1440p VP9?
You get 1080p H264. If your system is capable of playing 1440p VP9, then setting H264 as preferred format is simply a bad idea. Just leave it at automatic. Right now I am not really interested in making things even more complex. Format is checked before resolution because an old system that can do 1440p H264 might not be able to do 1440p VP9.
clsid is offline   Reply With Quote
Old 15th April 2019, 19:38   #531  |  Link
Nintendo Maniac 64
Registered User
 
Nintendo Maniac 64's Avatar
 
Join Date: Nov 2009
Location: Northeast Ohio
Posts: 419
Quote:
Originally Posted by clsid View Post
Current order of properties for comparing candidates is: Format (if specified) / Resolution / Framerate (if specified) / Bitrate.

People with old systems can choose H.264 for performance reasons. People with modern systems can choose VP9 for best quality..

You get 1080p H264.
Well then it seems that we have independently come up with what seems to be largely (if not exactly) the same methodology. That solves that problem then.



I do have a couple questions about AV1 though:

Quote:
Originally Posted by clsid View Post
AV1 is only used if you force it (for testing)
What happen if AV1 encodes are not available? Does it fall back to VP9?

Also what happens if you have it set to AV1 1080p, and play back a 4k video that has AV1 encodes only up to 480p - will you get 1080p VP9, 1080p H264, or 480p AV1?
__________________
____HTPC____  | __Desktop PC__
2.93GHz Xeon x3470 (4c/8t Nehalem) | 4.6GHz Pentium G3258 (2c/2t Haswell)
Radeon HD5870  | Intel iGPU      
2x2GB+2x1GB DDR3-1333 | 4x4GB DDR3-1600       

Win7 x64
Nintendo Maniac 64 is offline   Reply With Quote
Old 15th April 2019, 23:01   #532  |  Link
clsid
Registered User
 
Join Date: Feb 2005
Posts: 5,001
If you request AV1, then you will get AV1 when it is available, even if it is only 480p. When a format is not available, you will get the best match based on the other properties (resolution/bitrate).
clsid is offline   Reply With Quote
Old 20th April 2019, 02:50   #533  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 5,833
i can't use youtube-DL with mpc-hc on a fresh system i get an empty error message and then fails to renderer.

mpc-hc 1.8.6 default settings
youtube-dl 2019.04.07 and youtube-dl 2019.04.17
win 10 18343

any ideas?
huhn is offline   Reply With Quote
Old 20th April 2019, 12:03   #534  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 124
Let me guess,
https://github.com/ytdl-org/youtube-...ng-msvcr100dll
lvqcl is offline   Reply With Quote
Old 20th April 2019, 14:16   #535  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 5,833
not at the system right now but that should be it. still kinda questionable why this is a blank error message especially if it is know.
huhn is offline   Reply With Quote
Old 21st April 2019, 03:05   #536  |  Link
ibmhal5678
Registered User
 
Join Date: Mar 2019
Posts: 1
Hi all,

I did a "quick" check of MPC-HC 1.8.6 (the .exe from within the zip, not the installer) on hybrid-analysis.com and the result was, well, not very positive. I know that video players have to do strange things e.g. with system memory, but hey, links to malware/mining sites shouldn't exist in MPC at all. This stuff should completely be removed from MPC-HC.

https://www.hybrid-analysis.com/samp...88384d247f7167
https://www.hybrid-analysis.com/samp...883827037f716b

Click on the stuff below "Malicious Indicators"->"Network Related" to see what I mean.

It's understood that the heuristics on hybrid-analysis .com are overly paranoid, but with e.g. SMPlayer I'm getting only 1/10 of warnings and indicators compared to MPC. So my appeal to the devs would be to clean up MPC and completely remove anything questionable.

kind regards, Hans
ibmhal5678 is offline   Reply With Quote
Old 21st April 2019, 04:39   #537  |  Link
huhn
Registered User
 
Join Date: Oct 2012
Posts: 5,833
192.30.253.112 is github...
huhn is offline   Reply With Quote
Old 21st April 2019, 07:22   #538  |  Link
nevcairiel
Registered Developer
 
Join Date: Mar 2010
Location: Hamburg/Germany
Posts: 9,793
MPC-HC doesn't connect to anything but its own update check on GitHub - which can be disabled as well. The second scan for some reason even includes some hits from a firefox instance that was apparently running at the same time, instead of MPC-HC itself.
__________________
LAV Filters - open source ffmpeg based media splitter and decoders
nevcairiel is offline   Reply With Quote
Old 21st April 2019, 11:13   #539  |  Link
lvqcl
Registered User
 
Join Date: Aug 2015
Posts: 124
Quote:
Originally Posted by ibmhal5678 View Post
It's understood that the heuristics on hybrid-analysis .com are overly paranoid
Quote:
Originally Posted by ibmhal5678 View Post
to clean up MPC and completely remove anything questionable.
I hope that MPC-HC development will not be driven by paranoia.
lvqcl is offline   Reply With Quote
Old 22nd April 2019, 18:14   #540  |  Link
Nintendo Maniac 64
Registered User
 
Nintendo Maniac 64's Avatar
 
Join Date: Nov 2009
Location: Northeast Ohio
Posts: 419
As a counter-point, VirusTotal shows a completely clean result for mpc-hc64.exe:

https://www.virustotal.com/#/file/1f...1177/detection
__________________
____HTPC____  | __Desktop PC__
2.93GHz Xeon x3470 (4c/8t Nehalem) | 4.6GHz Pentium G3258 (2c/2t Haswell)
Radeon HD5870  | Intel iGPU      
2x2GB+2x1GB DDR3-1333 | 4x4GB DDR3-1600       

Win7 x64
Nintendo Maniac 64 is offline   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 21:09.


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