实际上是否可以使用GStreamer将字幕混合成.mkv文件?

时间:2018-07-26 05:17:23

标签: gstreamer

在matroskamux的文档中希望有一个示例演示如何混合字幕。经过几天的尝试,我怀疑它是否可行。除非文本流为字幕/ x-kate格式,否则matroskamux不能混合字幕是一个错误。以下是失败的管道描述。有人可以告诉我哪里出了问题,或验证它确实是一个错误。谢谢。

gst-launch-1.0                \
videotestsrc num-buffers=300  \
! videoconvert                \
! theoraenc                   \
! MUXER.video_%u              \
filesrc location=src.srt      \
! subparse                    \
! text/x-raw,format=utf8      \
! MUXER.subtitle_0            \
matroskamux name=MUXER        \
! filesink location=dst.mkv

下面是一个.srt文件,可用于尝试上述gst-launch-1.0命令。

1
00:00:01,000 --> 00:00:02,000
one

2
00:00:02,000 --> 00:00:03,000
two

3
00:00:03,000 --> 00:00:04,000
three

4
00:00:04,000 --> 00:00:05,000
four

5
00:00:05,000 --> 00:00:06,000
five

6
00:00:06,000 --> 00:00:07,000
six

7
00:00:07,000 --> 00:00:08,000
seven

8
00:00:08,000 --> 00:00:09,000
eight

9
00:00:09,000 --> 00:00:10,000
nine

10
00:00:10,000 --> 00:00:11,000
ten

0 个答案:

没有答案