[FFmpeg-user] baseline profile not getting activated in ffmpeg

Carl Lindqvist lulebo at gmail.com
Mon Apr 15 16:04:37 CEST 2013


I have not been able to check how I did it, and I don't know it from
the top of my head. But I think you will get more help in the
libavusers list which is more oriented towards using the libs in code.

/Carl

2013/4/15 Susheel Tickoo <ticks.sunny84 at gmail.com>:
> Hi all,
>
> Is there any one woh is able to do this in c code. If yes please share the
> settings that can activate baseline video creation in ffmpeg.
> As right now i am not able to activate the baseline profile through c code.
> I am getting close enough to conclude that this can be a bug in ffmeg code.
> On Wed, Apr 10, 2013 at 6:53 PM, Susheel Tickoo <ticks.sunny84 at gmail.com>wrote:
>
>> Hi All
>> I have been trying to create a video using ffmpeg from images on android
>> device.
>>
>> The settings of my H264 codec are as below:
>> c->bit_rate = 500000;
>>  c->width = 480;
>>  c->height = 320;
>>  c->time_base= (AVRational){1,0};
>>  c->gop_size = 12; // emit one intra frame every ten frames
>>  c->max_b_frames=1;
>>  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->qmax = 26;
>>  c->qcompress = 0.6;
>>  c->trellis=0;
>>  c->level = 13;
>>  c->refs = 5;
>>  c->coder_type = 0;
>>  c->scenechange_threshold = 0;
>>  //new
>>  c->flags|=CODEC_FLAG_LOOP_FILTER;//new
>>  //c->profile=FF_PROFILE_H264_BASELINE; //Baseline //new
>>  c->scenechange_threshold = 40; //new
>>  c-> rc_buffer_size = 0;
>>  c->gop_size=250; //new
>>  c->max_b_frames=1;//new
>>  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);
>>  //av_opt_set(c->priv_data,"x264opts","rc-lookahead=0",0);
>>
>>
>> I am not able to understand that if this is a bug in ffmpeg or my code
>> that even after providing "*
>> av_opt_set(c->priv_data,"vprofile","baseline",0);*" and "*
>> av_opt_set(c->priv_data,"profile","baseline",0);*"
>> as was told in the following ticket:
>> http://ffmpeg.org/trac/ffmpeg/ticket/387
>>
>> but nothing seems to activate the baseline profile. as when i do a ffmpef
>> -i on my video it shows profile as hight.
>>
>> please help.
>> regards,
>> Susheel Tickoo
>>
>>
>>
>>
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user


More information about the ffmpeg-user mailing list