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和後視頻處理的輸出不包含字幕。
我使用https://gotranscript.com/subtitle-converter將我的srt文件轉換爲scc –