2017-09-05 31 views
1

對於將一些視頻轉換爲MP4,我正在使用zencoder服務,一切正常。但現在我想添加字幕處理的視頻,就像ffmpeg的不無法看到使用zencoder轉換的視頻中的字幕

ffmpeg -i src-video.mp4 -vf subtitles=subs.srt processed-video.mp4 

我也跟着https://app.zencoder.com/docs/api/encoding/captions但我仍然無法使用zencoder字幕,我發送POST請求添加到

https://app.zencoder.com/api/v2/jobs 

與有效載荷

{ 
    "input": "s3+us-west-2://bucket/src-video.mp4", 
    "outputs": [ 
    { 
     "url": "s3+us-west-2://bucket/processed-video.mp4", 
     "credentials": "zencoder_s3", 
     "caption_url": "s3+us-west-2://bucket/subs.scc" 
    } 
    ] 
} 

S3桶是訪問zencoder和後視頻處理的輸出不包含字幕。

+0

我使用https://gotranscript.com/subtitle-converter將我的srt文件轉換爲scc –

回答

0

我發現許多爬行網頁後,我的回答,

實際上只有快速的時間播放器可以播放SCC型隱藏式字幕,但只有當轉換視頻爲M4V格式。