matroska subtitle

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

matroska subtitle

marisk
Hi,

I have a video stream and some text files. I like to add the text files as subtitles to the video stream and mux using matroskamux and demux at the other end. How do I achieve this?

I tried the following

gst-launch videotestsrc num-buffers=1 ! ffenc_mpeg4 ! matroskamux name=mux ! filesink location=s.mkv filesrc location=my.txt ! mux.

But I am not able to demux and get the subtitle string out to a text file.

Thanks
Reply | Threaded
Open this post in threaded view
|

Re: matroska subtitle

Jan Schmidt-6
On Fri, 2012-10-05 at 13:33 -0700, marisk wrote:

> Hi,
>
> I have a video stream and some text files. I like to add the text files as
> subtitles to the video stream and mux using matroskamux and demux at the
> other end. How do I achieve this?
>
> I tried the following
>
> gst-launch videotestsrc num-buffers=1 ! ffenc_mpeg4 ! matroskamux name=mux !
> filesink location=s.mkv filesrc location=my.txt ! mux.
>
> But I am not able to demux and get the subtitle string out to a text file.

You need a subtitle parser element between the filesrc and the muxer,
and a subtitle format that matroskamux supports - which is only the Kate
subtitle format in 0.10. Matroskamux in 1.0 supports more:

  SINK template: 'subtitle_%d'
    Availability: On request
      Has request_new_pad() function: gst_matroska_mux_request_new_pad
    Capabilities:
      subtitle/x-kate
      text/x-raw
                 format: utf8
      application/x-ssa
      application/x-ass
      application/x-usf
      subpicture/x-dvd
      application/x-subtitle-unknown

J.
>
> Thanks
>
>
>
>

--
Jan Schmidt <[hidden email]>

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: matroska subtitle

marisk
Hi Jan,

Thanks for your reply.

I have two questions:
1. If I want to send just text strings as subtitles along with video stream, how do I achieve it?
2. If I have to mux it with matroska I understand it knows only kate streams. I am using this in Windows environment, so how can I install kate parser plugins for the same?

I greatly appreciate any help.

Thanks