Hi, I am using transcoding example provided with FFmpeg to apply a filter to a h264 codec file.
I have set the preset before opening the codec as given below if (dec_ctx->codec_id == AV_CODEC_ID_H264) { av_opt_set(dec_ctx->priv_data, "preset", "slow", 0); } But still avcodec_open2 returns "broken ffmpeg default settings" error. What I need to set to avoid preset error? Following is the terminal output when I execute the file. ./transcoding timecode.mp4 output.mp4 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'timecode.mp4': Metadata: major_brand : mp42 minor_version : 0 compatible_brands: isommp42 creation_time : 2013-12-30 14:03:22 Duration: 00:10:01.00, start: 0.000000, bitrate: 265 kb/s Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 71 kb/s, 25 fps, 25 tbr, 50 tbn, 50 tbc (default) Metadata: handler_name : VideoHandler Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 191 kb/s (default) Metadata: creation_time : 2013-12-30 14:03:23 handler_name : IsoMedia File Produced by Google, 5-11-2011 [libx264 @ 0x88c4f0] broken ffmpeg default settings detected [libx264 @ 0x88c4f0] use an encoding preset (e.g. -vpre medium) [libx264 @ 0x88c4f0] preset usage: -vpre <speed> -vpre <profile> [libx264 @ 0x88c4f0] speed presets are listed in x264 --help [libx264 @ 0x88c4f0] profile is optional; x264 defaults to high Cannot open video encoder for stream #0 Error occurred: Operation not permitted Thanks & Regards, Sethu V
_______________________________________________ Libav-user mailing list Libav-user@ffmpeg.org http://ffmpeg.org/mailman/listinfo/libav-user