天天看點

音視訊開發: ffmpge建立空白視訊(指定顔色與時長)

指令行如下:

C:/FFMPEG/ffmpeg_x86_4.2.2/bin/ffmpeg.exe -ss 0 -t 00:00:05.300  -f lavfi -i color=c=0x000000:s=1280x720:r=25 -vcodec libx264 D:/linux-share-dir/video_file/video/test.mp4
      

-t 是視訊的時長

color=c=0x000000:s=1280x720:r=25  畫面顔色、尺寸、幀率

繼續閱讀