My camera records videos in the range of 16-255.
MPC recognizes this video as limited (16-235).
Can I add a shader to MPC that will convert the image to the range of 0-255 or even 16-235?
I found something that looks adaptable:
https://github.com/svn2github/MPC-BE/blob/master/distrib/Shaders/16-235%20to%200-255%2...D%5BHD%5D.hlsl
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 25 of 25
Thread
-
-
You can turn the proc amp contrast setting down to -8. Keep in mind that everything else you watch will have the white level too low.
-
I don't know about MPC-BE, but for MPC-HC those shaders come with the player and you can create presets for them.
I may have renamed the shaders themselves (I can't remember).
[Attachment 67233 - Click to enlarge]
The right click menu.
[Attachment 67234 - Click to enlarge]
Don't forget you can use MPC-HC as a portable version in a different folder, or as many times as you like.
I have it "installed" with the usual file associations and I've put shortcuts to portable versions with different settings in the Windows SendTo folder.
To make that work you need to make sure MPC-HC is saving it's settings to an ini file and not the the registry (except for one version, if you prefer).
[Attachment 67235 - Click to enlarge]Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview) -
-
Can you please upload a short sample file straight from your camera? I am curious about the videofile specs. Doesn't matter what is in the video of course, just a 15 seconds clip.
-
Code:
Ogólne ID : 0 (0x0) Pełna ścieżka : C:\Users\Właściciel\Desktop\projekty video\2022-2\2022-05-14xx (GEM - mecz CLJ U15 Śląsk-Beniaminek)\2022_05_14 16_27_52.mts Format : BDAV Format/Informacja : Blu-ray Video Rozmiar pliku : 54,8 MiB Czas trwania : 17s 455 ms Rodzaj całkowitej przepływności bitów : Zmienna Całkowita przepływność bitów : 26,3 Mb/s Maksymalna całkowita przepływność bitów : 28,0 Mb/s Data nagrania : 2022-05-14 16:27:52+02:00 Aplikacja zapisująca : Sony DSC-HX90V Wideo ID : 4113 (0x1011) ID menu : 1 (0x1) Format : AVC Format/Informacja : Advanced Video Codec Profil formatu : High@L4.2 Ustawienia formatu : CABAC / 2 Ref Frames Ustawienia formatu, CABAC : Tak Ustawienia formatu, poklatkowy : 2 klatki Format settings, GOP : M=1, N=15 ID kodeka : 27 Czas trwania : 17s 517 ms Rodzaj przepływności : Zmienna Przepływność bitów : 25,0 Mb/s Przepływność maksymalna : 26,0 Mb/s Szerokość : 1.920 pikseli Wysokość : 1.080 pikseli Proporcje obrazu : 16:9 Szybkość wyświetlania klatek : 59,940 (60000/1001) kl/s Color space : YUV Chroma subsampling : 4:2:0 Bit depth : 8 bitów Rodzaj skanu : Progresywny bity/(piksele*ramki) : 0.201 Rozmiar strumienia : 52,3 MiB (95%) IrisFNumber : 6.300000 Audio ID : 4352 (0x1100) ID menu : 1 (0x1) Format : AC-3 Format/Informacja : Audio Coding 3 Commercial name : Dolby Digital ID kodeka : 129 Czas trwania : 17s 536 ms Rodzaj przepływności : Stała Przepływność bitów : 256 kb/s Kanały : 2 kanały Channel layout : L R Częstotliwość próbkowania : 48,0 kHz Szybkość wyświetlania klatek : 31,250 kl/s (1536 SPF) Compression mode : Lossy Rozmiar strumienia : 548 KiB (1%) Service kind : Complete Main Tekst ID : 4608 (0x1200) ID menu : 1 (0x1) Format : PGS ID kodeka : 144 Czas trwania : 16s 952 ms
Last edited by rgr; 17th Oct 2022 at 10:06.
-
-
I missed that.
Does the camera support xvYCC? It uses the 1-15 and 241-254 range.
https://web.archive.org/web/20091209052016/http://www.sony.net/SonyInfo/technology/tec.../xvycc_01.html
Not that I know much about xvYCC and I don't think my video card supports it and I don't know how it's supposed to work when it isn't supported.
I downloaded a sample video from a site reviewing the camera, and aside from what appears to be god-awful dynamic contrast, the levels are as you described.
Original
[Attachment 67267 - Click to enlarge]
Reducing the whites to TV range looks better, but there's still clipping. I don't know if this video is typical though.
Levels(0,1.0,255,0,235, coring=false)
[Attachment 67268 - Click to enlarge]
I wonder if a full PC range to TV range conversion should be applied. For this video I think it looks better.
Levels(0,1.0,255,16,235, coring=false)
[Attachment 67269 - Click to enlarge]Avisynth functions Resize8 Mod - Audio Speed/Meter/Wave - FixBlend.zip - Position.zip
Avisynth/VapourSynth functions CropResize - FrostyBorders - CPreview (Cropping Preview) -
But I found such information on the website.
https://www-sony-jp.translate.goog/cyber-shot/products/DSC-HX90V/spec.html?_x_tr_sl=au..._x_tr_pto=wapp
"A model that supports wide color gamut recording of still images/videos and HDMI wide color gamut transmission. Wide color gamut color space refers to still images: sRGB standard (color gamut sYCC), AdobeRGB standard, video: xvYCC standard." -
-
-
Actually, it does. The problem is the rest of MPCHC and the graphics card driver has to be set up correctly or the levels are clamped even before the shader gets the video. I don't remember exactly what I had to do but I think I had to set (in a few places) the output range to 16-235, or the input range to 0-255. But as I pointed out, if you do that all your other videos will play with the wrong levels.
Last edited by jagabo; 11th Nov 2022 at 11:32.
-
Unfortunately, not all programs/drivers use the same terminology. Limited, Full, 0-255, 16-235, and they may be referring to the source or the output.
I'm using the integrated graphics built into my Intel CPU. For its driver he setting is here:
[Attachment 67572 - Click to enlarge]
Note there are different controls for the Desktop vs. Video -- I'm changing settings on the video tab here. I normally use the "Limited" setting because virtually all sources are limited range (DVD, BD, streaming services, etc.). I had to change it to the "Full" setting to prevent the levels being changed before the Shader in MPCHC. This may also depend on what output device you are using and whether or not you are using GPU decoding.
Here's the shader in action:
[Attachment 67573 - Click to enlarge]
The numbers in the chart refer to the Y values before being converted to RGB for display. You can see that all values at and below 16 are full black (R=G=B=0). But at the bright end of the scale you can differentiate the bars above Y=235. Actually, the picture at the high end is a little too bright. You may need to adjust the values a bit.
Sample video attached.Last edited by jagabo; 11th Nov 2022 at 17:53.
-
Unfortunately, there is no such option in the Radeon application.
But I was hoping something like this could be done at the application/decoder level. -
Last edited by jagabo; 14th Nov 2022 at 08:10.
-
-
It works for me:
[Attachment 67627 - Click to enlarge]
Maybe you need to change some other setting in the program. -
Ah, it works. I was mistakenly changing brightness instead of contrast.
The image is a bit brighter overall (luma 115* vs 117), but it is enough for viewing.
Thanks.
(I changed the contrast to -9 and it's a bit better now - luma 115 vs 114.6).
* - I made a pattern with the ffmpeg filter curves=master='0.0625/0 1/1'
Similar Threads
-
Suddently MPC-HC & MPC-BE no video but got sounds, help!
By tigerb in forum Newbie / General discussionsReplies: 5Last Post: 5th Mar 2022, 04:57 -
Comparing MPC-HC vs MPC-BE
By vhwul62 in forum Software PlayingReplies: 10Last Post: 9th Jan 2021, 07:13 -
sync offset and jitter values in mpc-hc and mpc-be
By Milardo in forum CapturingReplies: 0Last Post: 16th Nov 2020, 18:29 -
mpc hc not responding
By empleat in forum Newbie / General discussionsReplies: 0Last Post: 11th Jun 2020, 15:39 -
Denon/MPC-hc Help
By forsure in forum Newbie / General discussionsReplies: 7Last Post: 16th Apr 2020, 14:42