[FFmpeg-user] encoding H264 from pictures, encoding values manipulation

Jorge Mas jorge.masn at gmail.com
Wed Nov 20 17:38:49 EET 2019


Im new using ffmpeg and mostly in the video field.

im trying to generate a video with the same h264 encoding parameters as a
video that was given to me.

im generating a h264 video parting from pictures, the commands that im
using are the following:

  ./ffmpeg.exe -framerate 25 -i $picture%04d.jpg -g 1 -c:v libx264
-profile:v baseline -level 4.0 -crf 20 -pix_fmt yuv420p $picture.mp4
  ./ffmpeg.exe -i $picture.mp4 -vcodec copy -vbsf h264_mp4toannexb -an

after analyzing both of videos with a tool named  SpecialVH264, several
parameters differ between both videos, i.e:
constraint_set0_flag in the original video is 0, but in the one that im
generating the value is 1.

is there a way that i can manipulate that constraint_set0_flag parameter?


More information about the ffmpeg-user mailing list