sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 Ok now I see it. It's a known bug in mpv, and we're waiting on a fix. You can see here in this thread. Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 I'll take a look the openal options to see if there's a temporary workaround. Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 Ah! That's not going to work. The docs say it's actually broken. You'll have to use stereo for now. I can't think of a way to force the server to transcode the audio without transcoding the video. Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 24, 2021 Author Share Posted January 24, 2021 52 minutes ago, sooty234 said: Ah! That's not going to work. The docs say it's actually broken. You'll have to use stereo for now. I can't think of a way to force the server to transcode the audio without transcoding the video. well as far as i can tell ET is in fact playing in 5.1 and from what i've read elsewhere online is that my issue is actually a 'feature' of Openal where it plays the centre channel via the FL/FR channels as part of its method of panning audio for more accurate positioning... if that makes any sense at all? in this example they state that the centre channel is louder on the FL/FR than the centre channel speaker (which still suggests that there is a problem as we don't see to have any audio on centre speaker) see a similar issue here Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 Here's what the manual says: https://mpv.io/manual/master/#audio-output-drivers-openal But you could try replacing the ac3enc entry that I gave you, and try openal directly. ao=openal openal-direct-channels=yes Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 Then if your audio device supports it, you should get something like this when playing 5.1 audio. [ 1.112][v][ao] Trying audio driver 'openal' [ 1.112][v][ao/openal] requested format: 48000 Hz, 5.1(side) channels, floatp [ 1.181][v][ao/openal] device buffer: 32768 samples. [ 1.181][v][ao/openal] using soft-buffer of 32768 samples. [ 1.181][i][cplayer] AO: [openal] 48000Hz 5.1 6ch float [ 1.181][v][cplayer] AO: Description: OpenAL audio output [ 1.181][v][autoconvert] inserting resampler [ 1.181][v][swresample] format change, reinitializing resampler [ 1.181][v][swresample] 48000Hz 5.1(side) floatp -> 48000Hz 5.1 float [ 1.181][v][swresample] Remix: 5.1(side) -> 5.1 [ 1.181][v][swresample] Fudge: sl-sr -> bl-br [ 1.181][v][af] [out] 48000Hz 5.1 6ch float Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 24, 2021 Author Share Posted January 24, 2021 5 minutes ago, sooty234 said: Here's what the manual says: https://mpv.io/manual/master/#audio-output-drivers-openal But you could try replacing the ac3enc entry that I gave you, and try openal directly. ao=openal openal-direct-channels=yes so it turns out that in my normal MPV.conf there was a couple audio related things that i've now deleted and the audio now works just fine, so im not sure why the original mpv.conf file that you told me to use with the ac3enc also stoped the centre channel from working? the things i removed from my conf file were something like audio-stream-silence=yes audio-exclusive=yes Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 (edited) Ah! Sorry, I'd forgotten I had given you that. The exclusivity might have been getting in the way. So the AC3 encoding works as expected, now? Can you post the contents of the mpv.conf? Edited January 24, 2021 by sooty234 Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 And make sure that you now only have one mpv.conf Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 24, 2021 Author Share Posted January 24, 2021 1 minute ago, sooty234 said: And make sure that you now only have one mpv.conf i only ever used one at a time don't worry 3 minutes ago, sooty234 said: Ah! Sorry, I'd forgotten I had given you that. The exclusivity might have been getting in the way. So the AC3 encoding works as expected, now? Can you post the contents of the mpv.conf? this is what im thinking. and yes on all films i used as examples now work as expected this is my mpv.conf, i am aware/have been told some of it is redundent/wrong but when i attempted to correct things ET stopped playing things the way i like so i tend not to change it much. Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 (edited) Ok, I'm glad that your audio works as you like it to, now. As for the rest, you have some pretty big video conflicts. I would like to help you with those, if you'll allow me? You have a great GPU, let's get the most out of it A few questions, if you'll indulge me? it looks like you've configured the Nvidia color output to 12bpc, maybe 4:2:2? It appears you have an HDR display. [ 0.683][v][vo/gpu] Reported display depth: 10 [ 0.679][v][vo/gpu/d3d11] Queried output: \\.\DISPLAY1, 3840x2160 @ 12 bits, colorspace: RGB_FULL_G2084_NONE_P2020 (12) [ 0.679][v][vo/gpu/d3d11] Selected swapchain format R10G10B10A2_UNORM (24), attempting to utilize it. [ 0.680][v][vo/gpu/d3d11] Selected swapchain color space RGB_FULL_G2084_NONE_P2020 (12), attempting to utilize it. [ 0.680][v][vo/gpu/d3d11] Swapchain capabilities for color space RGB_FULL_G2084_NONE_P2020 (12): normal: yes, overlay: no [ 0.680][v][vo/gpu/d3d11] Swapchain successfully configured to color space RGB_FULL_G2084_NONE_P2020 (12)! But then you conflict that by setting: d3d11-output-csp=srgb Which you then try to compensate for by increasing the gamma and saturation. You're enabling HDR in Windows, and leaving it on? I can definitely help you get a much better picture. Edited January 24, 2021 by sooty234 Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 24, 2021 Author Share Posted January 24, 2021 3 minutes ago, sooty234 said: Ok, I'm glad that your audio works as you like it to, now. As for the rest, you have some pretty big video conflicts. I would like to help you with those, if you'll allow me? You have a great GPU, let's get the most out of it A few questions, if you'll indulge me? it looks like you've configured the Nvidia color output to 12bpc, maybe 4:2:2? It appears you have an HDR display. [ 0.683][v][vo/gpu] Reported display depth: 10 [ 0.679][v][vo/gpu/d3d11] Queried output: \\.\DISPLAY1, 3840x2160 @ 12 bits, colorspace: RGB_FULL_G2084_NONE_P2020 (12) [ 0.679][v][vo/gpu/d3d11] Selected swapchain format R10G10B10A2_UNORM (24), attempting to utilize it. [ 0.680][v][vo/gpu/d3d11] Selected swapchain color space RGB_FULL_G2084_NONE_P2020 (12), attempting to utilize it. [ 0.680][v][vo/gpu/d3d11] Swapchain capabilities for color space RGB_FULL_G2084_NONE_P2020 (12): normal: yes, overlay: no [ 0.680][v][vo/gpu/d3d11] Swapchain successfully configured to color space RGB_FULL_G2084_NONE_P2020 (12)! But then you conflict that by setting: d3d11-output-csp=srgb Which you then try to compensate for by increasing the gamma and saturation. You're enabling HDR in Windows, and leaving it on? I can definitely help you get a much better picture. okay so yes i have and leave on HDR in windows constantly, yes my nvidia settings are 12bpc 422 as far as i can tell/remember when i set these settings using calibration videos the settings under ##video## apply to non-hdr content settings under [HDR] apply to HDR content Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 24, 2021 Author Share Posted January 24, 2021 21 minutes ago, sooty234 said: Ok, I'm glad that your audio works as you like it to, now. As for the rest, you have some pretty big video conflicts. I would like to help you with those, if you'll allow me? You have a great GPU, let's get the most out of it A few questions, if you'll indulge me? it looks like you've configured the Nvidia color output to 12bpc, maybe 4:2:2? It appears you have an HDR display. [ 0.683][v][vo/gpu] Reported display depth: 10 [ 0.679][v][vo/gpu/d3d11] Queried output: \\.\DISPLAY1, 3840x2160 @ 12 bits, colorspace: RGB_FULL_G2084_NONE_P2020 (12) [ 0.679][v][vo/gpu/d3d11] Selected swapchain format R10G10B10A2_UNORM (24), attempting to utilize it. [ 0.680][v][vo/gpu/d3d11] Selected swapchain color space RGB_FULL_G2084_NONE_P2020 (12), attempting to utilize it. [ 0.680][v][vo/gpu/d3d11] Swapchain capabilities for color space RGB_FULL_G2084_NONE_P2020 (12): normal: yes, overlay: no [ 0.680][v][vo/gpu/d3d11] Swapchain successfully configured to color space RGB_FULL_G2084_NONE_P2020 (12)! But then you conflict that by setting: d3d11-output-csp=srgb Which you then try to compensate for by increasing the gamma and saturation. You're enabling HDR in Windows, and leaving it on? I can definitely help you get a much better picture. also when i remove the "d3d11...=srgb" all non hdr content becomes washed out and very dim Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 Ok, try this: ## VIDEO ## target-trc=pq target-prim=bt.2020 gpu-api=auto hwdec=auto hwdec-codecs=all opengl-pbo=yes dither-depth=12 deband=yes deband-iterations=2 deband-grain=0 saturation=0 brightness=0 contrast=0 gamma=7 gamut-clipping=no hdr-compute-peak=no ## SCALING ## scale=ewa_lanczossharp descale=mitchell cscale=ewa_lanczos linear-downscaling=yes sigmoid-upscaling=yes ## AUTO-PROFILES ## [Deinterlace] profile-desc=Deinterlace profile-cond=p["video-frame-info/interlaced"] hwdec=d3d11va-copy vf=lavfi-bwdif [4k HDR] profile-desc=4k HDR stuff profile-cond=p["video-params/primaries"]=="bt.2020" deband=no dither-depth=12 gamma=7 You also need to set Theater video like this: Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 34 minutes ago, Itzdibbyyx said: okay so yes i have and leave on HDR in windows constantly, yes my nvidia settings are 12bpc 422 as far as i can tell/remember when i set these settings using calibration videos the settings under ##video## apply to non-hdr content settings under [HDR] apply to HDR content The d3d11 csp isn't configurable at runtime, so that gets applied to everything you play, including all HDR content. Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 24, 2021 Author Share Posted January 24, 2021 2 hours ago, sooty234 said: Ok, try this: ## VIDEO ## target-trc=pq target-prim=bt.2020 gpu-api=auto hwdec=auto hwdec-codecs=all opengl-pbo=yes dither-depth=12 deband=yes deband-iterations=2 deband-grain=0 saturation=0 brightness=0 contrast=0 gamma=7 gamut-clipping=no hdr-compute-peak=no ## SCALING ## scale=ewa_lanczossharp descale=mitchell cscale=ewa_lanczos linear-downscaling=yes sigmoid-upscaling=yes ## AUTO-PROFILES ## [Deinterlace] profile-desc=Deinterlace profile-cond=p["video-frame-info/interlaced"] hwdec=d3d11va-copy vf=lavfi-bwdif [4k HDR] profile-desc=4k HDR stuff profile-cond=p["video-params/primaries"]=="bt.2020" deband=no dither-depth=12 gamma=7 You also need to set Theater video like this: okay that seems to have solved the washed out colours however both hdr and non-hdr are quite dim both need to be a bit brighter Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 24, 2021 Share Posted January 24, 2021 13 minutes ago, Itzdibbyyx said: okay that seems to have solved the washed out colours however both hdr and non-hdr are quite dim both need to be a bit brighter You may need to calibrate your display. I'd suggest looking at your display settings before you change the mpv config. And you kept the gamma at 7? Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 25, 2021 Author Share Posted January 25, 2021 52 minutes ago, sooty234 said: You may need to calibrate your display. I'd suggest looking at your display settings before you change the mpv config. And you kept the gamma at 7? this is why i dont normally change my conf file, i shouldnt have to recalibrate my display just for the sake of emby/mpv thats why its a lot easier just to conpensate the darkness with high gamma values in the conf? yes i left the gamma at 7 and it was too dark/dim so i've now set the gamma to 14 and hdr content is pretty much how it looked before changing anything however sdr content is still needing some tweaking Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 25, 2021 Share Posted January 25, 2021 20 minutes ago, Itzdibbyyx said: this is why i dont normally change my conf file, i shouldnt have to recalibrate my display just for the sake of emby/mpv thats why its a lot easier just to conpensate the darkness with high gamma values in the conf? yes i left the gamma at 7 and it was too dark/dim so i've now set the gamma to 14 and hdr content is pretty much how it looked before changing anything however sdr content is still needing some tweaking It actually sounds like your display is improperly calibrated for everything, and you've been compensating. Once correctly calibrated, it will work with everything you do. I have the same situation as you. RTX 2060, Windows always in HDR. All color and light is correct for everything, YouTube, desktop, all apps, all video, with no compensation in the video player apps. If it looks different to you in various apps, games etc, that suggests you've been adjusting each app to gain. This is the opposite of what you should do. Calibrate the display first, then run the apps. But if you want to circumvent that, try raising only the gamma. Any chance you can take a photo of what it looks like, so I can better understand? Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 25, 2021 Author Share Posted January 25, 2021 5 minutes ago, sooty234 said: It actually sounds like your display is improperly calibrated for everything, and you've been compensating. Once correctly calibrated, it will work with everything you do. I have the same situation as you. RTX 2060, Windows always in HDR. All color and light is correct for everything, YouTube, desktop, all apps, all video, with no compensation in the video player apps. If it looks different to you in various apps, games etc, that suggests you've been adjusting each app to gain. This is the opposite of what you should do. Calibrate the display first, then run the apps. But if you want to circumvent that, try raising only the gamma. Any chance you can take a photo of what it looks like, so I can better understand? Im pretty sure ive calibrated the display several times but in any case with the gamma set to 7 and brightness/saturation/contrast all at 0 This is what i get with ET on the left ... my phone camera isnt showing the difference too well but its dimmer and very slightly more washed out than the web browser and its very off putting, it almost hurts to watch to be honest Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 25, 2021 Author Share Posted January 25, 2021 19 minutes ago, sooty234 said: It actually sounds like your display is improperly calibrated for everything, and you've been compensating. Once correctly calibrated, it will work with everything you do. I have the same situation as you. RTX 2060, Windows always in HDR. All color and light is correct for everything, YouTube, desktop, all apps, all video, with no compensation in the video player apps. If it looks different to you in various apps, games etc, that suggests you've been adjusting each app to gain. This is the opposite of what you should do. Calibrate the display first, then run the apps. But if you want to circumvent that, try raising only the gamma. Any chance you can take a photo of what it looks like, so I can better understand? strangley when i try to screenshot ET does come up as overbright and contrast etc etc interesting... Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 25, 2021 Share Posted January 25, 2021 (edited) 14 hours ago, Itzdibbyyx said: strangley when i try to screenshot ET does come up as overbright and contrast etc etc interesting... That's windows tone-mapping. Ignore that. 14 hours ago, Itzdibbyyx said: Im pretty sure ive calibrated the display several times but in any case with the gamma set to 7 and brightness/saturation/contrast all at 0 This is what i get with ET on the left ... my phone camera isnt showing the difference too well but its dimmer and very slightly more washed out than the web browser and its very off putting, it almost hurts to watch to be honest I'm assuming this is SDR content, as you're playing it in a browser. If you just want to give it a little more 'pop', probably just bump the gamma up. Try gamma=10, but leave the HDR profile at 7. I wonder if local dimming is playing a part in this? But start with raising the gamma. What's curious is that I get the opposite. My SDR content is brighter with more contrast. I think it's probably just a difference in the display swapchain. Eventually, setting the d3d11-csp should be able to be applied at runtime, then you can set srgb for SDR stuff and pq for HDR stuff. https://github.com/mpv-player/mpv/issues/8059#issuecomment-687892270 Edited January 25, 2021 by sooty234 Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 25, 2021 Author Share Posted January 25, 2021 16 hours ago, sooty234 said: That's windows tone-mapping. Ignore that. I'm assuming this is SDR content, as you're playing it in a browser. If you just want to give it a little more 'pop', probably just bump the gamma up. Try gamma=10, but leave the HDR profile at 7. I wonder if local dimming is playing a part in this? But start with raising the gamma. What's curious is that I get the opposite. My SDR content is brighter with more contrast. I think it's probably just a difference in the display swapchain. Eventually, setting the d3d11-csp should be able to be applied at runtime, then you can set srgb for SDR stuff and pq for HDR stuff. https://github.com/mpv-player/mpv/issues/8059#issuecomment-687892270 yes its SDR, and this is my current config and i'm pretty happy with it 1 Link to comment Share on other sites More sharing options...
sooty234 266 Posted January 25, 2021 Share Posted January 25, 2021 Groovy! I'm happy that you found a balance. The reason why the gamma/darkness is like it is, is because of the windows swapchain. If you test directly in mpv and use the internal screen capture which will capture directly from mpv's render surface, you'll see that picture is different. The Windows layer adds a little more on top, in the swapchain. Which is why you don't see it when setting it to srgb. Windows smpte appears to lower the gamma. Hopefully, jeeb will allow us to set the csp at runtime, in the not too distant future. Link to comment Share on other sites More sharing options...
Itzdibbyyx 3 Posted January 25, 2021 Author Share Posted January 25, 2021 13 minutes ago, sooty234 said: Groovy! I'm happy that you found a balance. The reason why the gamma/darkness is like it is, is because of the windows swapchain. If you test directly in mpv and use the internal screen capture which will capture directly from mpv's render surface, you'll see that picture is different. The Windows layer adds a little more on top, in the swapchain. Which is why you don't see it when setting it to srgb. Windows smpte appears to lower the gamma. Hopefully, jeeb will allow us to set the csp at runtime, in the not too distant future. I have no idea what a swapchain is :L Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now