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. |
|
9th August 2010, 07:42 | #1 | Link |
Registered User
Join Date: Jul 2010
Posts: 9
|
X264 color space problem
Hey guys
I am encoding my videos using x264 and some of these videos have an odd resolution, something like 1223*1042 or smthn. Whenever I try x264 it gives me a colorspace incompatibility message(this resolution is not compliant with colorspace i420). I am not even able to resize my videos As I am under a deadline, any help would be much appreciated. |
9th August 2010, 08:52 | #3 | Link |
Registered User
Join Date: Jul 2010
Posts: 9
|
Dude, I do need to convert these files. Can I somehow reduce or increase the resolution by say, 1 pixel, using ffmpeg or smthn and then convert using x264.
I have no idea what that means, am not an expert. Could you please give a little detail on that. |
9th August 2010, 10:16 | #4 | Link |
Registered User
Join Date: May 2006
Posts: 957
|
Use the crop or resize (or pad if you have a patched version) filters that x264 now has. With "mod2" he means that the frame dimensions must be a multiple of 2.
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
9th August 2010, 11:22 | #6 | Link | |
x264 developer
Join Date: Sep 2005
Posts: 8,666
|
Quote:
Sounds like a bug in the crop filter. |
|
9th August 2010, 13:00 | #7 | Link | |
Registered User
Join Date: Jul 2010
Posts: 9
|
Quote:
|
|
9th August 2010, 11:24 | #8 | Link | |
Registered User
Join Date: May 2006
Posts: 957
|
Quote:
[EDIT] I just tested with 1223x1024 rgba input and there was no problem cropping 1 from the left.
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. Last edited by J_Darnley; 9th August 2010 at 11:34. |
|
9th August 2010, 12:47 | #9 | Link |
Registered User
Join Date: Jul 2010
Posts: 9
|
I wonder if thats possible. Here is the error I get. Not all the flags I use, but just to give you an idea.
C:\x264>x264 input.avi --profile high10 --vf crop:1,0,0,0 -o cropped.mp4 ffms [info]: 523x361p 0:1 @ 24/1 fps (vfr) resize [error]: resolution 523x361 is not compliant with colorspace i420 Secondly, here is a link which says its not possible to crop 1 pixel. http://mewiki.project357.com/wiki/X264_Settings#crop Can you share your code please? |
9th August 2010, 13:01 | #10 | Link |
Compiling Encoder
Join Date: Jan 2007
Posts: 1,348
|
that error is not even related to crop.
[Edit] the problem is related to your input colorspace, you obviously some colorspace that is unrecognized by the rest of the filtering system and so it is choosing to convert it to the default i420 one. but input source has non mod2 widths and this is incompatible with i420, so the error occurs. [/Edit] but anyways crop works as intended: Code:
$ ./x264 -o NUL ../foreman_cif_352x288.yuv --vf crop:1,0,1,0 yuv [info]: 352x288p 0:0 @ 25/1 fps (cfr) crop [error]: left crop value `1' is not a multiple of 2 $ ./x264 -o NUL ../foreman_cif_352x288.yuv --vf resize:csp=bgr/crop:1,0,1,0/resize:csp=i420 yuv [info]: 352x288p 0:0 @ 25/1 fps (cfr) resize [warning]: converting from yuv420p to bgr24 crop [info]: cropping to 350x288 resize [warning]: converting from bgr24 to yuv420p .... encoded 300 frames, 150.00 fps, 426.35 kb/s Last edited by kemuri-_9; 9th August 2010 at 13:07. |
9th August 2010, 12:59 | #11 | Link |
Registered User
Join Date: May 2006
Posts: 957
|
That link is correct for the most common colourspace but wrong in general.
All the x264 source code is available. I just made a test video using avisynth
__________________
x264 log explained || x264 deblocking how-to preset -> tune -> user set options -> fast first pass -> profile -> level Doom10 - Of course it's better, it's one more. |
Tags |
colorspace, resizing, resolution, x264 |
|
|