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 > Capturing and Editing Video > VirtualDub, VDubMod & AviDemux

Reply
 
Thread Tools Display Modes
Old 7th November 2009, 04:14   #1  |  Link
Tagert
Registered User
 
Tagert's Avatar
 
Join Date: Sep 2006
Location: Karlskrona, Sweden
Posts: 73
fraps capturing and avidemux

Hello people. I just did some capturing in fraps3. When I opened the clip in a media player such as zoom player or MPC classic the clip had normal gamma and so on.


But when opening it in avidemux it becomes darker and stays darker when encoding it to either x264 or huffyuv.

It seems though fraps is capturing it in a colourspace megui for example doesn't like and says it's done in the wrong one (fixes it for me) when I try to encode it to x264 there. I haven't noticed it saying that in Avidemux though.

There is a mode to enable lossless RGB capturing in fraps3 though.

Is this a colourspace problem?

I can provide sources if needed

Last edited by Tagert; 7th November 2009 at 04:17.
Tagert is offline   Reply With Quote
Old 7th November 2009, 13:22   #2  |  Link
LoRd_MuldeR
Software Developer
 
LoRd_MuldeR's Avatar
 
Join Date: Jun 2005
Location: Germany
Posts: 7,322
x264 requires the YUV12 colorspace. FRAPS probably captures at RGB24 or RGB32. So the RGB -> YUV conversion is unavoidable.

With MeGUI (Avisynth input) you would do this the following way:
Code:
AVISource("C:\My Fraps Capture.avi")
ConvertToYV12()
Avidemux will do the required conversion for you. But be aware that Avidemux has a problem with colors in its internal preview:
http://avidemux.org/admForum/viewtopic.php?id=5735

The encoded video will be 100% fine though!

You must make sure that your player uses the proper luminance range at playback-time though:
http://forum.doom9.org/showthread.php?t=143689
LoRd_MuldeR is offline   Reply With Quote
Old 7th November 2009, 13:49   #3  |  Link
Tagert
Registered User
 
Tagert's Avatar
 
Join Date: Sep 2006
Location: Karlskrona, Sweden
Posts: 73
Just tried this again.

In avidemux I used the following settings:
encoded to x264 5000bitrate two pass, didn't touch the other settings,
resized from 1280x1024 to 1080x864 w lancos3

The result is a dark video clip just as in the avidemux preview.

In megui I used the same settings,
resized with lancos4 though, don't think that matters though.
and converttoyv12 in the script.

Result was a much brighter video clip.



Opened both clips with MPC classic.

Last edited by Tagert; 7th November 2009 at 13:57.
Tagert is offline   Reply With Quote
Old 7th November 2009, 14:59   #4  |  Link
Dark Shikari
x264 developer
 
Dark Shikari's Avatar
 
Join Date: Sep 2005
Location: Claremont, CA
Posts: 6,895
Sounds like a TV/PC levels issue. FRAPS likely captures at PC levels.
Dark Shikari is online now   Reply With Quote
Old 7th November 2009, 16:06   #5  |  Link
Tagert
Registered User
 
Tagert's Avatar
 
Join Date: Sep 2006
Location: Karlskrona, Sweden
Posts: 73
To further explain the error I've encounted, I hereby attach the screenshots of the problem encoded in both avidemux and megui:

http://www.lern2play.se/test/error/made.in.avidemux.jpg
http://www.lern2play.se/test/error/made.in.megui.jpg

Not exactly the same frame, but the darkness is clearly distinguishable

Both files opened in latest VLC. screenshot taken with fraps.
I'm using a 19inch LCD screen. No gamma problems whatsoever in games or tabbing out and tabbing in.

Last edited by Tagert; 7th November 2009 at 17:00.
Tagert is offline   Reply With Quote
Old 7th November 2009, 18:33   #6  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 818
I just did some quick tests with avidemux r5422 and fraps (FPS1)

avidemux seems to do the RGB=>YV12 conversion full range with full expansion to 0-255 using BT.709

When you use ConvertToYV12() in avisynth, it will use Rec.601 in 16-235 range by default

If you use ConvertToYV12(matrix="pc.709") , this will use 0-255 range but BT.709 coefficients.
ConvertToYV12(matrix="rec709") => 16-235 range, BT.709
ConvertToYV12(matrix="pc.601") => 0-255 range, BT.601

I did these tests with avsp and histogram() to see levels

EDIT: also very important as LordMulder said earlier is how you are viewing these, and how you have your decoder, splitter, software configured. For example, using the default vfw fraps decoder using AVISource(), it will decompress in the 16-235 range, but default ffdshow directshow decoding using DirectShowSource() for fraps uses 0-255 range . Disabling ffdshow for fraps will result in a windows colorspace conversion and decompression to 16-235 the way I have it setup. You can visualize the directshow decoder chain with graphstudio. MPC with no internal or external filters enabled will use directshow.

Last edited by poisondeathray; 7th November 2009 at 19:05.
poisondeathray is offline   Reply With Quote
Old 7th November 2009, 19:08   #7  |  Link
Tagert
Registered User
 
Tagert's Avatar
 
Join Date: Sep 2006
Location: Karlskrona, Sweden
Posts: 73
much appreciated, I think I understand it somewhat now
Tagert is offline   Reply With Quote
Reply

Thread Tools
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 08:24.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.