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. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
|
![]() |
#1 | Link |
Registered User
Join Date: Mar 2006
Posts: 12
|
Converting Fraps footage with x264, output file's colors become brighter?
I have some 720p footage taken with Fraps that I'm trying to compress with x264 using MeGUI. The problem is, the output file's colors do not look anything like the original video nor the preview in MeGUI. The original file and the preview in MeGUI look identical. They are too bright. How can I fix this? I've tried using the 4 different matrices with ConvertToYV12, the colors look a little better, but not how I would like them to be. Here are some comparative screenshots.
Original, uncompressed: http://imgur.com/wdP5a.jpg Compressed with x264: http://imgur.com/gQa7u.jpg Will I have to correct this in a editing program? Encoded with these settings: program --preset slow --pass 2 --bitrate 6000 --stats ".stats" --deblock 0:-2 --bframes 0 --ref 3 --output "output" "input". Last edited by Gfer; 5th February 2011 at 21:25. |
![]() |
![]() |
![]() |
#2 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
![]() |
![]() |
![]() |
#4 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,222
|
What source filter / decoder are you using for the avs script?
AVISource() using the fraps decoder will be RGB (0-255), if you use converttoyv12() it will default to rec601 (Y' 16-235) FFVideoSource() will decode using full range YUV (Y' 0-255) Also , The method in which you take screenshots will affect the appearance (ie. which matrix did you use to convert YUV data to RGB for the screenshot) See http://forum.doom9.org/showthread.php?t=157941 Last edited by poisondeathray; 6th February 2011 at 05:58. |
![]() |
![]() |
![]() |
#6 | Link |
x264 developer
Join Date: Sep 2005
Posts: 8,667
|
x264 by default encodes as TV range.
You must either convert to TV range in your script, or use --fullrange. We have a patch under development to make x264 automatically do --fullrange, but this will not work for Avisynth scripts (it's impossible to judge reliably from an Avisynth script whether the output is fullrange or not). |
![]() |
![]() |
![]() |
#7 | Link | |
Registered User
Join Date: Oct 2009
Posts: 912
|
Quote:
How to verify the range with certainty? (The renderer might be good enough to guess/determine the range of the video) Last edited by mzso; 20th May 2013 at 14:36. |
|
![]() |
![]() |
![]() |
#8 | Link | |
/人 ◕ ‿‿ ◕ 人\
Join Date: May 2011
Location: Russia
Posts: 643
|
Quote:
To verify it - open it in properly configured player, e.g. MPC-HC with LAV filters and madVR. madVR should show that range is full in OSD, and colors&brightness of the image should match source. |
|
![]() |
![]() |
![]() |
#10 | Link | |
Registered User
Join Date: Oct 2009
Posts: 912
|
Quote:
|
|
![]() |
![]() |
![]() |
#11 | Link | |
Registered User
Join Date: Oct 2009
Posts: 912
|
Quote:
|
|
![]() |
![]() |
![]() |
#12 | Link | |
Registered User
Join Date: Feb 2009
Location: USA
Posts: 677
|
Quote:
So, if Handbrake isn't changing the color levels (PC<->TV etc) then that is why it works so well for you. Its why I loathe Youtube and other streaming services that do not support 4:2:2 or 4:4:4 Color sampling. When I do game captures I compare the actual game on-screen (PNG/BMP screenshots, etc) to the video file produced during capturing. YV12 always looks horrible to me. Something somewhere, even with tweaking always ends up looking either washed out or oversaturated - i.e it probably takes more effort than I am willing to learn how to precisely convert colors from RGB - > YV12. So I just gave up on capturing game footage. |
|
![]() |
![]() |
![]() |
#13 | Link |
Registered User
Join Date: Mar 2006
Posts: 12
|
How would I go about converting to TV range in my script? I'll try encoding the video with --fullrange on meanwhile.
Edit: --fullrange on didn't do anything, it still doesn't look right. Last edited by Gfer; 6th February 2011 at 00:39. |
![]() |
![]() |
![]() |
#14 | Link |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ |
![]() |
![]() |
![]() |
#15 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,222
|
I read your first post incorrectly. If the original and megui preview correlate, then it is likely a playback problem . Read Lord Mulder's post again. (or are you saying they correlate, but are both wrong?)
If you're using overlay mixer in mpchc, then you can calibrate your graphics card overlay settings (this is different than desktop graphics card settings . ) Some players disregard whatever you flag in x264 (the flag doesn't change the actual video data anyway, it's just a suggestion to the player to display as full range or limited range) Last edited by poisondeathray; 6th February 2011 at 01:02. |
![]() |
![]() |
![]() |
#16 | Link |
Registered User
Join Date: Mar 2006
Posts: 12
|
Already tried ConvertToYV12(matrix="Rec601") and ConvertToYV12(matrix="Rec709"). Still not working. All I want to do is to compress the fraps footage with x264 into a .mp4 file that can be uploaded to Youtube or viewed in MPC-HC without altering any settings in MPC-HC.
The original and preview correlate. They represent exactly how I want the video. Last edited by Gfer; 6th February 2011 at 01:09. |
![]() |
![]() |
![]() |
#17 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,667
|
Quote:
|
|
![]() |
![]() |
![]() |
#18 | Link | |
Registered User
Join Date: Sep 2007
Posts: 5,222
|
Quote:
x264 doesn't change levels when fed YV12 input . i.e. input=output And youtube always displays as Rec709 (even SD content) - ie. YUV=>RGB conversion for display uses Rec709 matrix, so you will never get it looking 100% identical on youtube. |
|
![]() |
![]() |
![]() |
#20 | Link | |
Software Developer
![]() Join Date: Jun 2005
Location: Last House on Slunk Street
Posts: 13,244
|
Quote:
![]() If, for example, you use choose Haali's Renderer or MadVR as your renderer in MPC-HC, you can simply switch the Luminance Levels in the renderer options... ![]()
__________________
Go to https://standforukraine.com/ to find legitimate Ukrainian Charities 🇺🇦✊ Last edited by LoRd_MuldeR; 6th February 2011 at 01:28. |
|
![]() |
![]() |
![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|