Hi,
Im fooling around with the libavcodec api to encode a series of screenshots using the x264 encoder. Everything works fine until i tried to change the x264 profile. It is set to High 4:4:4 Predictive (at least thats what the console output tells me) by default but how do i change it?
I know there is AVCodecContext:rofile and macros like FF_PROFILE_H264_BASELINE and so on but setting the profile directly via a AVCodecContext instance just has no effect at all. Is this normal behaviour?
Edit: Another question. As i am searching for code examples using x264 and or libavcodec i encounter lines such as
ctx->partitions|=X264_PART_I8X8+X264_PART_I4X4+X264_PA RT_P8X8+X264_PART_B8X8;
or
ctx->flags2|=CODEC_FLAG2_BPYRAMID+CODEC_FLAG2_MIXED_RE FS+CODEC_FLAG2_WPRED+CODEC_FLAG2_8X8DCT+CODEC_FLAG 2_FASTPSKIP;
pretty often. Now why are people using a >Plus< (sometimes even minus) instead of an logical OR? Thats not what i understand when working with flags :P, but no one in their discussions seems to be bothered by it which bothers me.
Any suggestions?
thx
PS: Any links for good example code or even tutorials would be great too.
+ Reply to Thread
Results 1 to 1 of 1
-
Last edited by Spearmint; 3rd May 2011 at 00:00.
Similar Threads
-
Problem with libavcodec.dll
By Mitchum22 in forum Newbie / General discussionsReplies: 8Last Post: 31st Mar 2011, 09:15 -
mencoder x264 vs libavcodec for h.264 encoding
By chconnor in forum Video ConversionReplies: 0Last Post: 2nd Mar 2011, 15:31 -
Bitrate vs Size Calculator for x264 for ripping DVD to x264 + AC3
By Bonie81 in forum DVD RippingReplies: 7Last Post: 5th Jul 2010, 18:24 -
Does Theora Decoder in libavcodec (FFMPEG V0.5) support YUV422 YUV444 modes
By goldenmean in forum Newbie / General discussionsReplies: 0Last Post: 15th Feb 2010, 22:35 -
FreeEnc can't find libavcodec
By zakman in forum Video ConversionReplies: 2Last Post: 31st Jan 2009, 08:38