Streaming of a text file
Nuno Martins
nuno.m.g.martins at gmail.com
Fri Aug 8 06:00:32 PDT 2014
On 08-08-2014 11:51, Nuno Martins wrote:
>
> ------------------------------------------------------------------------
>
> Hi! I'm a new user and i'm trying to build a pipeline that extracts teletext
> subtitles from a transport stream and sends the text file (with subtitles
> and timing info) to another computer through udpsink.
>
> I'm able to create a text file with the subtitles (and I slightly modified
> the teletext code to print the time as well) with: gst-launch filesrc
> location=/(...)TransportStream.ts ! mpegtsdemux program-number=1 name=demux
> demux.private_0001 ! teletextdec page=100 subtitles-mode= "true"
> subtitles-template="%s\n" ! 'text/plain' ! filesink
> location=(...)/teletext.txt
>
> The output file is created in real-time, as soon as the teletext decoder
> receives data.
> But then I fail to send this file to another computer: I tried with this
> pipeline
>
> gst-launch filesrc location=(...)/Transportstream.ts ! mpegtsdemux
> program-number=1 name=demux demux.private_0001 ! teletextdec page=100
> subtitles-mode="true" ! 'text/plain' ! udpsink port=6000 async="false" \
> udpsrc port=6000 ! filesink location= (...)/teletext.txt
> but, even if I can see the decoding process working correctly in the debug
> window, no file is created. I tried adding queues, 'text/plain' caps
> everywhere but nothing changed.
> Moreover, at the end the process blocks (on the last subtitle) and doesn't
> free the pipeline.
>
> Is there anyone that experienced the same kind of problems? Thank you very
> much.
>
>
> Enrico
>
>
> --
> View this message in context:http://gstreamer-devel.966125.n4.nabble.com/Streaming-of-a-text-file-tp4518647p4518647.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
>
>
> Hi Enrico,
>
> I have found your message from 2012 and I would like to be sure you
> could extract subtitles from the teletext because I'm trying to do
> exactly that but I'm unable to do so.
> The file is created but is empty.
>
> gst-launch-0.10 filesrc location=filename.ts ! mpegtsdemux
> program-number=811 name=demux demux.private_0811 ! teletextdec
> page=887 subtitles-mode= "true" subtitles-template="%s\n" !
> 'text/plain' ! filesink location=teletext.txt
>
> I'm using the pipeline described above. The filename.ts was recorded
> from a dvb and the channel is on the program-number 811 and the
> subtitles are at the 887 teletext page.
>
> Thank you in advance,
> Nuno Martins
Hi all,
I managed to put it to work. I didn't need to use the program-number.
For me it worked using:
gst-launch-0.10 filesrc location=filename.ts ! mpegtsdemux !
teletextdec page=887 subtitles-mode= "true" subtitles-template="%s" !
'text/plain' ! filesink location=teletext.txt
Best regards to all,
Nuno Martins
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140808/5efc01e7/attachment.html>
More information about the gstreamer-devel
mailing list