Log in

View Full Version : Media Player Classic - BE Win32/x64


Pages : 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 [216] 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235

Anima123
12th October 2024, 04:11
The internal subtitle renderer refuses to find the corresponding subtitle in customized folder starting with the new 1.8.0 release now. Can someone confirm there's a bug?

v0lt
12th October 2024, 05:39
@beter
I can't download a file from sendspace.com :(

The internal subtitle renderer refuses to find the corresponding subtitle in customized folder starting with the new 1.8.0 release now.
I do not confirm. Subtitles from the "subtitles" folder open automatically for me.
You can also read the wiki (https://github.com/Aleksoid1978/MPC-BE/wiki/Automatic-loading-of-external-tracks).

Anima123
12th October 2024, 05:45
I do not confirm. Subtitles from the "subtitles" folder open automatically for me.
You can also read the wiki (https://github.com/Aleksoid1978/MPC-BE/wiki/Automatic-loading-of-external-tracks).

In my case, the subtitle files are in an extra folder I created in D:\Subtitles, previous versions definitely worked. I didn't change the settings before upgrading.

v0lt
12th October 2024, 06:39
@Anima123
Show your "Autoload paths" for external subtitles. By default, there are only relative paths.

Anima123
12th October 2024, 06:46
@Anima123
Show your "Autoload paths" for external subtitles. By default, there are only relative paths.

It is ".;.\subtitles;.\subs;.\*sub;d:\subtitles".

v0lt
12th October 2024, 08:35
It is ".;.\subtitles;.\subs;.\*sub;d:\subtitles".
Ok. I confirm the problem.

Fixed in MPC-BE 1.8.0.3.

Zulithe
12th October 2024, 22:23
I am getting crashes when trying to play FLV1 video codec files. Using 1.8 and latest nightly, tried different renderers too. They play in VLC. Any ideas? Thanks.

beter
12th October 2024, 22:43
@beter
I can't download a file from sendspace.com :(


Is Mega accessible?
https://mega.nz/file/jTojlCBI#B-PEJHPsaDk2RCE1y6YCLQPHJwQc8hi9Y2ZZ9TVMO3s

Aleksoid1978
13th October 2024, 01:51
I am getting crashes when trying to play FLV1 video codec files. Using 1.8 and latest nightly, tried different renderers too. They play in VLC. Any ideas? Thanks.

Upload file(s).

v0lt
13th October 2024, 06:34
Is Mega accessible?
Yes, thank you.
You can also translate the installer (https://github.com/Aleksoid1978/MPC-BE/tree/master/distrib/CustomMessages).

Grimsdyke
13th October 2024, 12:29
I did setup a new PC and unfortunately MPC-BE seem to be not "finding" the Realtek analogue sound output. Can anyone confirm ?
Tested MPC-HC with SaneAR renderer and there it works !

Report:
LAV Splitter Source::Audio
LAV Audio Decoder::Output
Audio Switcher::Out

Media Type 0:
--------------------------
Audio: IEEE Float 48000Hz 5.1 chn 9216 kbit/s

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_IEEE_FLOAT{00000003-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 24
cbFormat: 40

WAVEFORMATEX:
wFormatTag: 0xfffe
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 1152000
nBlockAlign: 24
wBitsPerSample: 32
cbSize: 22 (extra bytes)

WAVEFORMATEXTENSIBLE:
wValidBitsPerSample: 32
dwChannelMask: 0x0000060f
SubFormat: {00000003-0000-0010-8000-00AA00389B71}

Media Type 1:
--------------------------
Audio: IEEE Float 48000Hz 5.1 chn 9216 kbit/s

AM_MEDIA_TYPE:
majortype: MEDIATYPE_Audio {73647561-0000-0010-8000-00AA00389B71}
subtype: MEDIASUBTYPE_IEEE_FLOAT{00000003-0000-0010-8000-00AA00389B71}
formattype: FORMAT_WaveFormatEx {05589F81-C356-11CE-BF01-00AA0055595A}
bFixedSizeSamples: 1
bTemporalCompression: 0
lSampleSize: 12
cbFormat: 40

WAVEFORMATEX:
wFormatTag: 0xfffe
nChannels: 6
nSamplesPerSec: 48000
nAvgBytesPerSec: 1152000
nBlockAlign: 24
wBitsPerSample: 32
cbSize: 22 (extra bytes)

WAVEFORMATEXTENSIBLE:
wValidBitsPerSample: 32
dwChannelMask: 0x0000060f
SubFormat: {00000003-0000-0010-8000-00AA00389B71}


@devs. Follow up: This problem seem to affect basic audio-out-setup. Both normal and dual-audio !! MPCAudioRenderer works fine.

huhn
13th October 2024, 12:47
sanear has an option to select the output default DS has not.
the default DS will also not work when the sample rate is over 192khz.

clearly shown here:
https://ibb.co/YhjB24Y

Zulithe
14th October 2024, 17:52
Upload file(s).
I can reproduce it with some of the sample files found on this page (https://filesamples.com/formats/flv).

https://filesamples.com/samples/video/flv/sample_960x400_ocean_with_audio.flv

v0lt
14th October 2024, 18:49
@Zulithe
I don't see the problem.
Windows 10 22H2, Intel i5-11500, Intel UHD Graphics 750.

MPC-BE x64 1.8.0
Filters currently loaded:
- MPC Audio Renderer
- Enhanced Video Renderer (custom presenter)
- Audio Switcher
- MPC Video Decoder
- MPC Audio Decoder
- MPC FLV Source

Grimsdyke
15th October 2024, 08:12
Made more tests regarding my sound problem posted in #10761.

MPC-HC:
Without SaneAR it does not connect to the Realtek analogues out too but it seem to fall back to HDMI-audio so that it least plays with some sound while BE just play silently !!

VLC: No problems.

MPV-NET: No problems

Hope the devs can fix this because dual-audio-out is my prefered configuration.

Aleksoid1978
15th October 2024, 11:39
There's no bug. If you select system audio output and it's not working.

Zulithe
15th October 2024, 18:29
@Zulithe
I don't see the problem.
Windows 10 22H2, Intel i5-11500, Intel UHD Graphics 750.

MPC-BE x64 1.8.0
Filters currently loaded:
- MPC Audio Renderer
- Enhanced Video Renderer (custom presenter)
- Audio Switcher
- MPC Video Decoder
- MPC Audio Decoder
- MPC FLV Source
I uninstalled MPC, removed settings, installed fresh and left everything at default. still happening. I have a lot of these files so not a very small issue for me. Is there anything else I can do?

Windows 11 24H2 w/ all updates installed
GTX 4080 Super w/ 565.90 driver
AMD Ryzen 7 7800X3D, 32GB DDR5 6000

Grimsdyke
15th October 2024, 18:54
Sometimes I really hate Windows !! After setting the analogue-outs as system default and then switching back to HDMI it is working again as it should.
Thanks for the feedback.

Aleksoid1978
15th October 2024, 22:27
I can reproduce it with some of the sample files found on this page (https://filesamples.com/formats/flv).

https://filesamples.com/samples/video/flv/sample_960x400_ocean_with_audio.flv

Confirm.
P.s. Fixed.

SirMaster
16th October 2024, 01:45
Is there any way I can programatically change between the options "Touch Window from Inside" and "Touch Window from Outside"?

I find myself changing these quite often for certain content, especially on an ultra-wide display or projector and I don't see a hotkey or a network command for these options.

Any reason they never got control options for them? Any possibility they could be given a hotkey or network control option?

huhn
16th October 2024, 05:21
they are there already.
player -> keys
use the search function and type in outside and inside.
they use the short term "vidfrm" so you may not notice directly.

it has a web interface which allows most stuff too.

btw. the key page is buggy with a german keyboard it shows english keybaord inputs. this is mostly optical because technically it still works.

SirMaster
16th October 2024, 19:21
Oh, thanks.

I was searching for "touch" and otherwise not finding them, but I see them now.

Zulithe
16th October 2024, 19:51
Confirm.
P.s. Fixed.
Thank you!

Goldbreaker
17th October 2024, 22:30
All builds crash with the new Windows Update 24h2! It takes ~10 videos to load than crash. Only the compatibility mode to Windows 8 helps... Please fix this.
My Problem is now fixed with the new 1.8.0.7 nightly...
Thanks!

wyup
23rd October 2024, 16:52
I can also offer such features (and even more). But who will implement this and thoroughly check it? After all, we don’t need to break the existing functionality.
Hi, which tonemapping algorithm does current MPC-VR use, and from which input luminance does it tonemap?
Someone pointed me to the code in the past, but it was a simple function.
Today libplacebo library (https://github.com/Asd-g/avslibplacebo?tab=readme-ov-file#tone-mapping) can use bt2446a (ITU-R Report BT.2446, method A), a more modern algorithm. This library takes input and output luminance for most efficient tonemapping. Output luminance is already in the MPC-VR user interface, but input luminance? It could read from HDR10 metadata (MaxCLL or MaxDML) or be selected in UI.

I know in the past input luminance for MPC-VR HDR > SRD was 10,000 nits, too much, since most HDR is <= 1,000 nits. Custom output nits is nice to have, but also dynamic peak detection by libplacebo would be nice in case of no metadata.

v0lt
23rd October 2024, 19:03
Hi, which tonemapping algorithm does current MPC-VR use, and from which input luminance does it tonemap?
Someone pointed me to the code in the past, but it was a simple function.
"Simple function" is used.
Custom output nits is nice to have, but also dynamic peak detection by libplacebo would be nice in case of no metadata.
Your idea is very cool!

wyup
24th October 2024, 00:03
"Simple function" is used.

Sorry, i didn't use the right words.
I see it's done by pixel shaders (https://github.com/Aleksoid1978/VideoRenderer/blob/master/Shaders/d3d11/ps_convert_pq_to_sdr.hlsl).
I see it is using 'hable (https://github.com/Aleksoid1978/VideoRenderer/blob/master/Shaders/convert/hdr_tone_mapping.hlsl)' algorithm.
However, is input target luminance hardcoded at 10,000 (https://github.com/clsid2/MPCVideoRenderer/commit/3c065ed75eb71728a5302e3aa50fb1feddbfe4e9#diff-29efc76f42f1606f46a9652c964392e027d4b9aaaa68968ed951e0c59569a067R873)? This is not efficient. It should only compress content brightness range (0.005 nits - MaxCLL or MaxDML).
There should be a UI option box to manually enter, as there is for SDR nits, or take it from MaxCLL or MaxDML from HDR10 metadata.

Aleksoid1978
24th October 2024, 01:44
Sorry, i didn't use the right words.
I see it's done by pixel shaders (https://github.com/Aleksoid1978/VideoRenderer/blob/master/Shaders/d3d11/ps_convert_pq_to_sdr.hlsl).
I see it is using 'hable (https://github.com/Aleksoid1978/VideoRenderer/blob/master/Shaders/convert/hdr_tone_mapping.hlsl)' algorithm.
However, is input target luminance hardcoded at 10,000 (https://github.com/clsid2/MPCVideoRenderer/commit/3c065ed75eb71728a5302e3aa50fb1feddbfe4e9#diff-29efc76f42f1606f46a9652c964392e027d4b9aaaa68968ed951e0c59569a067R873)? This is not efficient. It should only compress content brightness range (0.005 nits - MaxCLL or MaxDML).
There should be a UI option box to manually enter, as there is for SDR nits, or take it from MaxCLL or MaxDML from HDR10 metadata.

Please - the code is open, you can implement the wishes or ask someone who can, make a pull request.

Otherwise, it turns out that we want everything, but no one wants to do it themselves :)

clsid
24th October 2024, 13:18
First step would be to make MaxCLL (or 10000 if unknown) available to the shader as a parameter.
Second step would be to adjust the shader algo to use it.

I can help with second step.

Aleksoid1978
24th October 2024, 13:30
First step would be to make MaxCLL (or 10000 if unknown) available to the shader as a parameter.
Second step would be to adjust the shader algo to use it.

I can help with second step.

You can hardcoded value from MaxCLL from file and compare result.

huhn
25th October 2024, 03:56
the newer version has no "maxcll" anymore in the shader so you can not just change the value as easily as before.

i guess it is now part of "float LuminanceScale;" where ever that is.

i still have code from version ~0.6 around and changed
#define SRC_LUMINANCE_PEAK 10000.0
to
#define SRC_LUMINANCE_PEAK 1000.0
it doesn't have the wanted effect:
https://i.ibb.co/p4dg1R3/image.png

edit: left 1000 right 10000(original code)

Alexkral
25th October 2024, 07:34
the newer version has no "maxcll" anymore in the shader so you can not just change the value as easily as before.

i guess it is now part of "float LuminanceScale;" where ever that is.

i still have code from version ~0.6 around and changed
#define SRC_LUMINANCE_PEAK 10000.0
to
#define SRC_LUMINANCE_PEAK 1000.0
it doesn't have the wanted effect:
https://i.ibb.co/p4dg1R3/image.png

edit: left 1000 right 10000(original code)

This is probably due to the algorithm used (I don't know if it's 'hable' or bt2446a). I would recommend using bt2390 with the original roll-off even though it's older, as it produces the best results in this regard. Using 1000 nits as the default MaxCLL makes more sense than 10000, even though that implies clipping depending on the source.

But then this is all subjective, 'hable' may produce decent results, I'm too lazy to start testing again.

huhn
25th October 2024, 12:37
it throws normilized to 1 pixels and 125/10000 at this code:
static const float ST2084_m1 = 2610.0f / (4096.0f * 4.0f);
static const float ST2084_m2 = (2523.0f / 4096.0f) * 128.0f;
static const float ST2084_c1 = 3424.0f / 4096.0f;
static const float ST2084_c2 = (2413.0f / 4096.0f) * 32.0f;
static const float ST2084_c3 = (2392.0f / 4096.0f) * 32.0f;

#pragma warning(disable: 3571)

inline float4 ST2084ToLinear(float4 rgb, float factor)
{
rgb = pow(rgb, 1.0 / ST2084_m2);
rgb = max(rgb - ST2084_c1, 0.0) / (ST2084_c2 - ST2084_c3 * rgb);
rgb = pow(rgb, 1.0 / ST2084_m1);
rgb *= factor;
return rgb;
}

and the only thing i can say to this is alrighty than.

so the number is only used in the part where it produces "linear light" and does more than this.

clsid
25th October 2024, 12:58
You need to compare it with other hable implementations. MPCVR has some simplifications, like in "ToneMappingHable". I remember seeing a luminance related parameter being used there in another implementation. And VLC uses a different constant (https://github.com/videolan/vlc/blob/master/modules/video_output/win32/d3d_dynamic_shader.c#L169) value (maybe due to other differences) (and this value looks worse when used in MPCVR without any other changes).

huhn
25th October 2024, 13:53
You need to compare it with other hable implementations. MPCVR has some simplifications, like in "ToneMappingHable". I remember seeing a luminance related parameter being used there in another implementation. And VLC uses a different constant (https://github.com/videolan/vlc/blob/master/modules/video_output/win32/d3d_dynamic_shader.c#L169) value (maybe due to other differences) (and this value looks worse when used in MPCVR without any other changes).

that's far outside my abilities. we currently give the hable a different data depending on peak nit and max nit so i don't even understand how this is linear it is already kind of tone mapped here. the vlc code seem to just multiply the normalized to 1 back to 10000 while the mpcVR code using 125 multiplies by 80.

i mean is this code really doing linear? i was under the impression PQ is just rescaled binary to 5000. or with other words each value has double the brightness.

this only made me angry because i had to read stuff like this yet again:
#elif (SRC_TO_LINEAR==SRC_TRANSFER_709)\n\
return pow(rgb, 1.0 / 0.45);\n\
#elif (SRC_TO_LINEAR==SRC_TRANSFER_SRGB)\n\
return pow(rgb, 2.2);\n\

when the BT709 is closer to sRGB than the sRGB one...

Grimsdyke
27th October 2024, 12:43
@devs. I am now in the final stages of finetuning my new htpc and I ran into an issue that I already had years ago and this reminded me why dual-audio-out
is my prefered setup ! I may have already reported this back then, if so - sorry - but it seem to have not been fixed either.

On a few UHDs - maybe caused by a layer break- the MPC-Audio-Renderer seem to struggle and madVR's "clock deviation" increases from usually around 0.000xx
to very high numbers.
- Using "Event" in the settings at least the film keeps playing but it looks like as if a few frames are dropped and the performance increases again after a while.
- Using "Push" causes a complete slide-show with only noise coming from the speakers.

No problems with dual audio-out !
Also MPC-HC using Sanear audio renderer plays these discs just fine. So I think there might be something wrong. Would be happy to try any test build !!

v0lt
27th October 2024, 16:56
@Grimsdyke
1. Do not use two copies of MPC Audio Renderer for dual audio output.
2. Try using DirectSound dual audio output.

Grimsdyke
27th October 2024, 17:58
Yes, should have been more precise - "Directsound dual audio out" is when everything works !!

The problem occurs only when mpc audio renderer is active. And I use only one instance of it, of course. Dual audio not even activated then.

v0lt
27th October 2024, 18:20
The problem occurs only when mpc audio renderer is active. And I use only one instance of it, of course. Dual audio not even activated then.
I don't have this problem. I use default audio renderer settings (Shared, Event, 50 ms). Audio device is integrated Realtek sound card or HDMI display.
Yes, should have been more precise - "Directsound dual audio out" is when everything works !!
Use DirectSound.

Grimsdyke
27th October 2024, 18:53
This happens only on a few UHDs that I own and so it would be difficult to re-produce for you.
I think it happens both on shared and exclusive - if not, I will report back.

Update,
Both shared and exclusive are having this problem. If you have a debugger or something like that I'd be happy to test.

huhn
27th October 2024, 22:37
maybe a bit streaming limitation.
i can not test this at all so i don't even know if bitstream is allowed at all.

but it would explain the some file issue.

Grimsdyke
27th October 2024, 22:56
You don't think it could be a layer break issue ?? I mean, it happens always in the same moment in the movies.

Follow up.: O.K., one last round of testing because it is getting late :D
Huhn's comment made me thinking, so I looked at the other possible settings in MPC audio renderer and after activating
the last one: "Don't fill channels when upmixing" the movie plays fine.

So the problem seem to be somewhere in this function ?

digi340
28th October 2024, 09:16
Hi to all. I use MPC-BE 1.8.0. On this site is internet radio stream http://158.101.168.33:9001/fwp/stations. The problem is all wav streams not play on MPC-BE - http://158.101.168.33:9000/kemonia. With others players and with web browser work. Thanks.

Aleksoid1978
28th October 2024, 10:19
Hi to all. I use MPC-BE 1.8.0. On this site is internet radio stream http://158.101.168.33:9001/fwp/stations. The problem is all wav streams not play on MPC-BE - http://158.101.168.33:9000/kemonia. With others players and with web browser work. Thanks.

Not supported.
It's strange - online broadcasting in WAV format.

digi340
28th October 2024, 10:56
Not supported (and will not be).
It's strange - online broadcasting in WAV format.
Aimp play these streams.
Forward Proxy is an open source project allowing Naim Gen 1 devices enjoy HD internet radio streams. Basically all devices that do not suport the Ogg or HLS formats.

Aleksoid1978
28th October 2024, 11:39
Aimp play these streams.
Forward Proxy is an open source project allowing Naim Gen 1 devices enjoy HD internet radio streams. Basically all devices that do not suport the Ogg or HLS formats.

Use Aimp.

Grimsdyke
29th October 2024, 19:17
O.K., made more tests in the last two days with other affected UHDs and unfortunately activating "don't fill channels when upmixing" does not work on all discs.
Don't know if the devs want to fix this bug ? Would be happy to test & help !! Maybe a bigger buffer might already improve things ?

Will use Sanear audio renderer from now on until this is fixed.

Aleksoid1978
30th October 2024, 01:03
O.K., made more tests in the last two days with other affected UHDs and unfortunately activating "don't fill channels when upmixing" does not work on all discs.
Don't know if the devs want to fix this bug ? Would be happy to test & help !! Maybe a bigger buffer might already improve things ?

Will use Sanear audio renderer from now on until this is fixed.

1 - Give me link for "problem" UHD, if i download - i can check.
2 - Don't use "don't fill channels when upmixing".

Aleksoid1978
30th October 2024, 02:03
Hi to all. I use MPC-BE 1.8.0. On this site is internet radio stream http://158.101.168.33:9001/fwp/stations. The problem is all wav streams not play on MPC-BE - http://158.101.168.33:9000/kemonia. With others players and with web browser work. Thanks.

Added support :)

digi340
30th October 2024, 07:38
Added support :)
Great.Thanks.