pngs, h264, ffmpeg , convert, more details

https://duduf.com/easily-transcode-any-media-to-any-format-using-ffmpeg/

 

 

In the animation industry, we often use image sequences
To encode an image sequence to a video file :

ffmpeg -framerate 24 -i "image_%03d.png" -vcodec h264 -b:v 10485760 "transccoded video.mp4"
In the input filename, %03d means that the sequence is numbered there with three digits (001, 002, etc.). Don’t forget to specify the framerate with -framerate(or else 25fps will be used by default).

FFmpeg uses sequences starting with frame #0 by default. If your sequence starts with another frame :

ffmpeg -framerate 24 -start_number 12 -i "image_%03d.png" -vcodec h264 -b:v 10485760 "transcoded video.mp4"
Ici l’encodage commencera à l’image numéro 12 grâce à l’option -start_number.

 

 

$ ffmpeg -framerate 20 -i "%d.png" -vcodec h264 -b:v 10485760 -pix_fmt yuv420p "yuv420p_20fps.h264"

posted on 2020-02-14 22:58  cdekelon  阅读(138)  评论(0)    收藏  举报

导航