[Libav-user] Change libx264 profile
Valeriy Shtoma
shtomavaleriy at gmail.com
Tue Feb 20 14:48:27 EET 2018
Hi to all,
Tell me, please, how to change libx264 profile and level? I tried:
av_dict_set(&libx264opt, "profile:v", "high", 0);
av_dict_set(&libx264opt, "level", "41", 0);
or
av_dict_set(&libx264opt, "profile", "high", 0);
av_dict_set(&libx264opt, "level", "41", 0);
or
av_dict_set(&libx264opt, “vprofile", "high", 0);
av_dict_set(&libx264opt, "level", "41", 0);
or
enc_ctx->profile = FF_PROFILE_H264_HIGH_422;
enc_ctx->level = 41;
I took as a base a file transcoding.c, and try to change profile and
level of encoder, but at the end it’s all the same:
[libx264 @ 0x7fd68b094000] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x7fd68b094000] profile Constrained Baseline, level 4.1
[libx264 @ 0x7fd68b094000] 264 - core 148 r2795 aaa9aa8 - H.264/MPEG-4 AVC codec - Copyleft 2003-2017 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=4 lookahead_threads=4 sliced_threads=1 slices=4 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=50 keyint_min=5 scenecut=0 intra_refresh=0 rc=crf mbtree=0 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=0
What have I done wrong? Thanks ;)
Kind Regards,
Valeriy V Shtoma
More information about the Libav-user
mailing list