Save all audio ES in separate wav files

Chuck Crisler ccrisler at mutualink.net
Wed Apr 30 10:25:03 PDT 2014


I don't see a problem in your server/client streams but I am not very
knowledgeable about MPEG. What I suggest is that you divide and conquer.
Solve one problem first, then the other. It is probably best to solve the
server transmitting too fast first. Enable logging in the modules that you
are using. It looks like you are using some Linux distro so export
GST_DEBUG=*:3;filesrc:5 That should get you started. If you don't see
anything interesting in that log, choose other modules and increase the log
level for them and repeat the test. That is the way it works. Then apply
that strategy to other systems and pipelines. In your pipelines that run
for 5 minutes but fail to break out audio, it doesn't look like you are
doing anything with the audio streams. Again, turn up the logging and
follow the results.


On Tue, Apr 29, 2014 at 12:13 PM, Gstlili <ti_mourad at yahoo.fr> wrote:

> Thank you Chuck for help !
>
> I tried removing the caps and the rtpmp2tdepay, as you suggest, but the
> pipeline doesnt work (same behavior).
>
> I broadcasted my mpeg-2 ts stream using Gstreamer instead of VLC :
>
> Sender:
> gst-launch-0.10 -v filesrc location=dolit.ts ! mpegtsparse ! rtpmp2tpay !
> udpsink port=1234 host=127.0.0.1 sync=false
>
> Receiver :
> gst-launch-0.10 -v udpsrc port=1234
> caps="application/x-rtp,media=(string)video,clock-rate=(int)90000,encoding-name=(string)H264"
> ! rtpmp2tdepay ! mpegtsdemux name=d .audio_0045 ! queue max-size-buffers=0
> max-size-time=0 ! filesink location=./AudENG.wav d.audio_0046 ! queue
> max-size-buffers=0 max-size-time=0 ! filesink location=./AudFRA.wav
>
>
> The wav files are well saved but i remarqued that the sender doesn't
> streamed (played) the ts file because it quikely finished ( in 3 seconds
> while my stream duration is 5 mn !!! ):
>
> gst-launch-0.10 -v filesrc location=dolit.ts ! mpegtsparse ! rtpmp2tpay !
> udpsink port=1234 host=127.0.0.1 sync=false
> Setting pipeline to PAUSED ...
> Pipeline is PREROLLING ...
> ...
> Pipeline is PREROLLED ...
> Setting pipeline to PLAYING ...
> New clock: GstSystemClock
> Got EOS from element "pipeline0".
> Execution ended after 3301466342 ns.
> Setting pipeline to PAUSED ...
> Setting pipeline to READY ...
> /GstPipeline:pipeline0/GstUDPSink:udpsink0.GstPad:sink: caps = NULL
> /GstPipeline:pipeline0/GstRTPMP2TPay:rtpmp2tpay0.GstPad:sink: caps = NULL
> /GstPipeline:pipeline0/GstRTPMP2TPay:rtpmp2tpay0.GstPad:src: caps = NULL
> /GstPipeline:pipeline0/MpegTSParse:mpegtsparse0.GstPad:src0: caps = NULL
> Setting pipeline to NULL ...
> Freeing pipeline ...
>
> I used the two following streamers which well broadcast the dolit.ts in 5
> mn but my wav files are empty !!!!!!!!
>
> Streamer 1:
> gst-launch-0.10 -v filesrc location=./dolit.ts ! decodebin ! x264enc !
> video/x-h264 ! rtph264pay pt=96 ! udpsink port=1234 host=127.0.0.1
> sync=false
>
> Streamer 2:
> gst-launch-0.10 filesrc location=dolit.ts ! mpegtsdemux ! mpegtsmux !
> udpsink clients=127.0.0.1:1234
>
>
> How can i stream my ts file over network udp/rtp and well read it ?
>
> Please can someone provide any help about this ?
>
> Thanks
>
>
>
>
>   Le Lundi 28 avril 2014 15h09, Chuck Crisler-2 [via GStreamer-devel] <[hidden
> email] <http://user/SendEmail.jtp?type=node&node=4666658&i=0>> a écrit :
>  It looks like your 2 audio files are stored in MP2T format, not RTP. You
> could save them in MP2T encapsulated in RTP but why? There really isn't
> much (if any) benefit.
> Remove the caps and the rtpmp2tdepay, the rest may work.
>
>
> On Mon, Apr 28, 2014 at 4:48 AM, Gstlili <[hidden email]> wrote:
>
> I am still blocked...
>
> I think that there is a problem of synchronisation between the RTP stream
> and the pipeline execution...
>
> am I doing something wrong here?
>
> I will be happy for help.
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Save-all-audio-ES-in-separate-wav-files-tp4666614p4666639.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
>
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> ------------------------------
>  If you reply to this email, your message will be added to the discussion
> below:
>
> http://gstreamer-devel.966125.n4.nabble.com/Save-all-audio-ES-in-separate-wav-files-tp4666614p4666640.html
>  To unsubscribe from Save all audio ES in separate wav files, click here.
> NAML<http://gstreamer-devel.966125.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
>
>
> ------------------------------
> View this message in context: Re: Save all audio ES in separate wav files<http://gstreamer-devel.966125.n4.nabble.com/Save-all-audio-ES-in-separate-wav-files-tp4666614p4666658.html>
> Sent from the GStreamer-devel mailing list archive<http://gstreamer-devel.966125.n4.nabble.com/>at Nabble.com.
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20140430/8ab0ce79/attachment-0001.html>


More information about the gstreamer-devel mailing list