簡體   English   中英

使用 ffmpeg-python 設置轉換輸出文件的幀率

[英]Set the framerate of converted output file using ffmpeg-python

我有以下行使用ffmpeg-python.mp4文件轉換為.gif文件:

ffmpeg.input('test.mp4').trim(start=0, duration=3).output('output.gif').run()

它運行良好,但我想降低幀速率。 在這個鏈接上,我找不到辦法做到這一點。 有人知道怎么做嗎?

ffmpeg
    .input('test.mp4')
    .trim(start=0, duration=3)
    .filter('fps', fps=25, round='up')
    .output('output.mp4')
    .run()

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM