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

Susheel Tickoo ticks.sunny84 at gmail.com
Wed Apr 10 15:23:19 CEST 2013


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


More information about the ffmpeg-user mailing list