ffmpeg命令和源碼

ffmpeg 常用命令彙總

https://blog.csdn.net/weiyuefei/article/details/51678582

將一段視頻轉換爲DVD格式

ffmpeg -i test.ps -target pal-dvd -ps 2000000000 -aspect 16:9 finale_video.mpeg

(target pal-dvd : Output format ps 2000000000 maximum size for the output file, in bits (here, 2 Gb) aspect 16:9 : Widescreen)

 

fmpeg主函數入口及添加自己的日誌函數

http://www.voidcn.com/article/p-kqlitael-pr.html

   入口函數

在ffmpeg.c中的main函數

2   添加日誌函數

ffmpeg命令行main函數簡析

https://blog.csdn.net/qq_24283329/article/details/79846235

以命令行ffmpeg -i input.mp4 -crf 22 -preset veryslow -o output.mp4爲例,main函數首先調用ffmpeg_parse_options(),解析命令參數,打開輸入,輸出文件,並初始化相關濾鏡,然後調用transcode()開始處理。transcode()的大體流程見下圖: 
 

 

 

avformat_open_input

 

 

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章