1. 程式人生 > >ffmpeg ios程式碼加字幕相關

ffmpeg ios程式碼加字幕相關

ios上呼叫ffmpeg命令的配置方式可以參考:

http://blog.csdn.net/leixiaohua1020/article/details/47072673

No such filter: 'subtitles'
Error opening filters!
以及No such filter: 'ass'
Error opening filters!

應該是缺libass靜態庫,編譯ffmpeg時候--enable-libass,但是不知道srt的該咋辦

The problem

The subtitles filter requires libass as a dependency, but your build is missing --enable-libass

.

Solution

You will have to compile ffmpeg with libass support, or download a build from the FFmpeg Download page (under the "Linux Static Builds" section).

這個地方說subtitles這個filter是以libass作為基礎的,那看來編譯上libass應該就可以了

有的地方給的答案:

Solution:
1. Right click "1.srt" and Open With "Notepad".
2. File > Save as... :
-File name: 1.srt
-Save as type: All Files
-Encoding: UTF-8


> Save.