<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <br>
    <div class="moz-cite-prefix">On 08-08-2014 11:51, Nuno Martins
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAAgcAh2JCtSdbvhOvPywBxSJE6T+gJ1yakcso2fTAxjwwp0qAQ@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div bgcolor="#FFFFFF" text="#000000">
          <blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px
            solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">
            <hr>
            <pre>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: <a moz-do-not-send="true" href="http://gstreamer-devel.966125.n4.nabble.com/Streaming-of-a-text-file-tp4518647p4518647.html">http://gstreamer-devel.966125.n4.nabble.com/Streaming-of-a-text-file-tp4518647p4518647.html</a>
Sent from the GStreamer-devel mailing list archive at Nabble.com.
</pre>
          </blockquote>
          <br>
          Hi Enrico,<br>
          <br>
          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.<br>
        </div>
        <div bgcolor="#FFFFFF" text="#000000">
          The file is created but is empty.<br>
          <br>
        </div>
        <div bgcolor="#FFFFFF" text="#000000">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<br>
          <br>
        </div>
        <div bgcolor="#FFFFFF" text="#000000">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.<br>
          <br>
        </div>
        <div bgcolor="#FFFFFF" text="#000000">Thank you in advance,<br>
          Nuno Martins<br>
        </div>
      </div>
    </blockquote>
    Hi all,<br>
    <br>
    I managed to put it to work. I didn't need to use the
    program-number.<br>
    <br>
    For me it worked using:<br>
    <br>
    gst-launch-0.10 filesrc location=filename.ts  ! mpegtsdemux !
    teletextdec page=887 subtitles-mode= "true" subtitles-template="%s"
    ! 'text/plain' ! filesink location=teletext.txt<br>
    <br>
    Best regards to all,<br>
    Nuno Martins<br>
  </body>
</html>