首页 > 其他 > 详细

generate h264 based on 100 image

时间:2020-05-17 15:27:13      阅读:47      评论:0      收藏:0      [点我收藏+]

1.  Generate test sources:   image and its h264 file.

                - copy 1 images for 100 times.

                   import shutil

                   source = "./1.png"
                   for i in range(2,100):
                          target = "./" + str(i) + ".png"
                          #print(target)
                          shutil.copy(source,target)

                - generate 20fps yuv420p h264 file ( ffmpeg -framerate 20 -i "%d.png" -vcodec h264 -b:v 10485760 -pix_fmt yuv420p "yuv420p_20fps.h264" )

 

 

generate h264 based on 100 image

原文:https://www.cnblogs.com/morganh/p/12905297.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!