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 |
20th May 2013, 17:55 | #42 | Link | |
Registered User
Join Date: Oct 2009
Posts: 932
|
Quote:
|
|
20th May 2013, 19:07 | #43 | Link | |
Registered User
Join Date: Oct 2009
Posts: 932
|
Quote:
I get: "Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height" |
|
20th May 2013, 19:28 | #44 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,433
|
If you want to encode i444 with ffmpeg , use -pix_fmt yuv444p . I don't think libx264 in ffmpeg can use RGB24 or BGR24 (RGB fraps is detected by current ffmpeg builds as bgr24)
BUT the problems you're going to have is the RGB=>YUV conversion will use Rec601 (it will not be subsampled chroma, but colors will be off because of wrong matrix - should be 709) ffmpeg does have a colormatrix filter, but the quality is noticably lower than doing it in avisynth -vf colormatrix=bt601:bt709 (In avisynth you can use ConvertToYV24(matrix="Rec709") Another option might be to do the colorspace conversions in vapoursynth pipe to ffmpeg |
20th May 2013, 19:48 | #45 | Link | |
Registered User
Join Date: Feb 2009
Location: USA
Posts: 676
|
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. |
|
20th May 2013, 19:51 | #46 | Link | |
Registered User
Join Date: Oct 2009
Posts: 932
|
Quote:
Here's the exact command line: Code:
ffmpeg -i "infile1.avi|infile2.avi" -pixel_format rgb24 -acodec copy -scodec copy -vcodec libx264 -g 30 -pix_fmt yuv444p -vf colormatrix=bt601:bt709 -preset slower -crf 20 -x264opts fullrange=on "teszt.mkv" |
|
20th May 2013, 20:00 | #48 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,433
|
Can you post a few frames of the fraps source file (vdub, video => direct stream copy ) or I suppose you can cut it with ffmpeg -vcodec copy -an with -ss (start time) and -t (duration)
There are major, major quality issues with ffmpeg's colormatrix filter - it looks like doesn't work in full chroma resolution. Even when working with YV12 (4:2:0) material , quality is noticably lower than avisynth's colormatrix (I don't know why, it was ported from avisynth) Last edited by poisondeathray; 20th May 2013 at 20:09. |
20th May 2013, 20:10 | #49 | Link |
Registered User
Join Date: Feb 2009
Location: USA
Posts: 676
|
To further that. Why not try running it through x264 instead of ffmpeg. I didn't want to say anything earlier, as I assumed it was just preference. But if there are quality issues with ffmpeg in this situation, then yeah try another encoder.
|
20th May 2013, 20:20 | #50 | Link | |
Registered User
Join Date: Oct 2009
Posts: 932
|
Quote:
It's still 33MB... |
|
20th May 2013, 20:25 | #51 | Link | |
Registered User
Join Date: Oct 2009
Posts: 932
|
Quote:
EDIT: Well, it seems be working for the 1 sec sample with this CL: Code:
x264 --preset slow --crf 20 --output-csp rgb --keyint 30 -o out.mkv in.mkv Last edited by mzso; 20th May 2013 at 20:42. |
|
21st May 2013, 15:31 | #57 | Link | |
4:2:0 hater
Join Date: Apr 2008
Posts: 1,302
|
Quote:
I even made a patch to correct it but he didn't accept it. LAV Filters included it until a big ffmpeg update some time ago, but nev hasn't included it since. I use it with my own builds thou. I can give you both the patch and a LAV Filters build, so you can compile an updated ffmpeg or LAV with a working (and multithreaded) fraps decoder. |
|
22nd May 2013, 12:10 | #58 | Link | |
Registered User
Join Date: Oct 2009
Posts: 932
|
Quote:
Did you experience anything like the blueishness (the second one)? |
|
22nd May 2013, 13:35 | #59 | Link |
Registered User
Join Date: Aug 2007
Posts: 1,431
|
http://trac.ffmpeg.org/ticket/75
Though I submitted that bug to ffmpeg over 2 years ago, it seems as if it was only just fixed recently. Last edited by Snowknight26; 22nd May 2013 at 13:39. |
22nd May 2013, 13:57 | #60 | Link | |
Registered User
Join Date: Oct 2009
Posts: 932
|
Quote:
Edit: Ouch, that's very recent. (17 hours ago) I was thinking of trying to find a build where both's fixed. Last edited by mzso; 22nd May 2013 at 14:14. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|