[FFmpeg-user] baseline profile not getting activated in ffmpeg
Susheel Tickoo
ticks.sunny84 at gmail.com
Thu Apr 11 16:03:28 CEST 2013
Hi,
I have been trying to create a baseline video using ffmpeg and h264 as
below:
But it seems that i can not map ffmpeg settigns properly to H264 settings.
I am using ffmpeg ver 1.2
If anyone has done any work on this please share your valued openion as i
am really stuck into this.
On Thu, Apr 11, 2013 at 10:30 AM, Susheel Tickoo <ticks.sunny84 at gmail.com>wrote:
> Hi Carl,
>
> Did you got any time to look into this?
>
> On Wed, Apr 10, 2013 at 8:16 PM, Susheel Tickoo <ticks.sunny84 at gmail.com>wrote:
>
>> Hi Carl,
>> now i have removed the duplicate fields and here are my new settings:
>>
>> c->width = width;
>> c->height = height;
>>
>> c->time_base= (AVRational){1,0};
>> c->gop_size = 12; // emit one intra frame every ten frames
>> c->pix_fmt = PIX_FMT_YUV420P;
>> c->codec_type = AVMEDIA_TYPE_VIDEO;
>> c->codec_id = codec->id;
>> c->max_b_frames = 0;
>> c->profile = FF_PROFILE_H264_CONSTRAINED_BASELINE;
>> c->me_range = 16;
>> c->max_qdiff = 4;
>> c->qmin = 10;
>> c->qcompress = 0.6;
>> c->trellis=0;
>> c->level = 13;
>> c->refs = 5;
>> c->coder_type = 0;
>> c->flags|=CODEC_FLAG_LOOP_FILTER;//new
>>
>> c->scenechange_threshold = 40; //new
>> c-> rc_buffer_size = 0;
>> c->me_method=7;
>> c->me_cmp|= 1;
>> c->me_subpel_quality = 6;
>> c->qmax=51;
>> c->keyint_min=25;
>> av_opt_set(c->priv_data,"subq","6",0);
>> av_opt_set(c->priv_data,"crf","20.0",0);
>> av_opt_set(c->priv_data,"weighted_p_pred","0",0);
>> av_opt_set(c->priv_data,"vprofile","baseline",0);
>> av_opt_set(c->priv_data,"preset","medium",0);
>> av_opt_set(c->priv_data,"tune","zerolatency",0);
>>
>> I am setting max_b_frames=0 and i am also setting "*
>> av_opt_set(c->priv_data,"vprofile","baseline",0);*"
>>
>> Do i need to set the *profile* or *vprofile* tag ?
>> I am confused by the ticket http://ffmpeg.org/trac/ffmpeg/ticket/387
>> I have created the video using max_b_frames=0 and not setting it at all
>> but in both cases the video is not baseline.
>>
>> Should i use only teh following line?
>> c->profile = FF_PROFILE_H264_CONSTRAINED_BASELINE;
>>
>> Please help me out.
>> thanks & regards,
>> Susheel Tickoo
>>
>>
>>
>> On Wed, Apr 10, 2013 at 7:53 PM, Susheel Tickoo <ticks.sunny84 at gmail.com>wrote:
>>
>>> Thanks Carl,
>>>
>>> I will suerly update my code to be more redable and presentable :). So
>>> do we need to remove the setting of max_b_frames at all or do we have to
>>> set it to c->max_b_frames = 0; ?
>>>
>>> On Wed, Apr 10, 2013 at 7:34 PM, Carl Lindqvist <lulebo at gmail.com>wrote:
>>>
>>>> > c->max_b_frames=1;
>>>> Then down a bit comes
>>>> > c->max_b_frames = 0;
>>>> Then comes
>>>> > c->max_b_frames=1;//new
>>>>
>>>> This is just one example of things that look weird in those settings.
>>>> Looks like you have copy/pasted a lot of different option around.
>>>>
>>>> I haven't gone through all the options you set, but for example,
>>>> baseline can't have b-frames.
>>>>
>>>> /Carl
>>>> _______________________________________________
>>>> ffmpeg-user mailing list
>>>> ffmpeg-user at ffmpeg.org
>>>> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>>>>
>>>
>>>
>>
>
More information about the ffmpeg-user
mailing list