demux/remux pipeline hangs when audio is added

Robert Krakora rob.krakora at messagenetsystems.com
Wed Oct 2 11:36:13 PDT 2013


Hi Carah,

I have a .ts file here...I will try the pipeline.

Best Regards,

Rob


On Wed, Oct 2, 2013 at 2:30 PM, Carah Smith <carah29ingress at gmail.com>wrote:

> Sorry, put that on the wrong thread...
>
>
> On Wed, Oct 2, 2013 at 12:29 PM, Carah Smith <carah29ingress at gmail.com>wrote:
>
>> Thanks! I will try adding queues etc. Robert, I tried your command line
>> gst-launch and it still hangs... Here is the output:
>>
>> gst-launch-1.0 filesrc location=stream_1.ts ! tsdemux name=demux ! queue
>> ! mpegvideoparse ! mpeg2dec ! x264enc ! mpegtsmux name=mux ! hlssink demux.
>> ! queue ! a52dec ! audioconvert ! faac ! mux.
>> Setting pipeline to PAUSED ...
>> Pipeline is PREROLLING ...
>> Redistribute latency...
>> Redistribute latency..
>>
>>
>>  Message: 3
>>> Date: Wed, 2 Oct 2013 13:46:50 -0400
>>> From: Robert Krakora <rob.krakora at messagenetsystems.com>
>>> To: Discussion of the development of and with GStreamer
>>>         <gstreamer-devel at lists.freedesktop.org>
>>> Subject: Re: demux/remux pipeline hangs when audio is added
>>> Message-ID:
>>>         <
>>> CA+Dpatg7NtwTBG_eCHGSPsgpgpk_wwVzz1su2f3_BLdGQhGtoA at mail.gmail.com>
>>> Content-Type: text/plain; charset="iso-8859-1"
>>>
>>>
>>> Something like this Tim?
>>>
>>> gst-launch filesrc location=<path> ! tsdemux name=demux ! queue
>>> ! mpegvideoparse ! mpeg2dec ! x264enc ! mpegtsmux name=mux ! hlssink
>>> demux.
>>> ! queue ! a52dec ! audioconvert ! faac ! mux.
>>>
>>>
>>> On Wed, Oct 2, 2013 at 1:38 PM, Tim-Philipp M?ller <t.i.m at zen.co.uk>
>>> wrote:
>>>
>>> > On Wed, 2013-10-02 at 11:19 -0600, Carah Smith wrote:
>>> >
>>> > Hi,
>>> >
>>> > > I am trying to make a pipeline that takes a transport stream in,
>>> > > demuxes it, does some transcoding, remuxes, and sends it to a sink.
>>> > > I can make it work if I only have video in the pipeline or if I only
>>> > > have audio but once I add both, the application hangs. Here is my
>>> > > source code (I removed all the error checking for emailing to reduce
>>> > > line length):
>>> >
>>> > You need a queue in each branch right after the demuxer. This is needed
>>> > for the "preroll" mechanism to work properly, which blocks the pushing
>>> > thread in the sink waiting for the 'Go!', but the pipeline won't start
>>> > unless all sinks have data, which they won't get if you don't use
>>> > queues.
>>> >
>>> > You might also want/need a parser in front of each decoder.
>>> >
>>> > Cheers
>>> >  -Tim
>>> >
>>> >
>>> > _______________________________________________
>>> > gstreamer-devel mailing list
>>> > gstreamer-devel at lists.freedesktop.org
>>> > http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>> >
>>>
>>>
>>>
>>> --
>>>
>>> Rob Krakora,
>>> Senior Software Engineer
>>>
>>> MessageNet Systems
>>> 101 E Carmel Dr, Suite 105
>>> Carmel, IN 46032
>>>
>>> MessageNetSystems.com<
>>> http://www.messagenetcommunicationsystems.com/?utm_source=email+signature&utm_medium=email&utm_campaign=email+signature+to+homepage
>>> >
>>> Rob.Krakora at MessageNetSystems.com <rob.krakora at messagenetsystems.com>
>>>
>>> P: 317.566.1677, 212
>>> F: 317.663.0808
>>>
>>> For the latest news, information, and blogs, please be sure to visit,
>>> follow, and like us...
>>>
>>> <
>>> http://www.messagenetcommunicationsystems.com/get-the-message-out-blog/?utm_source=email+signature&utm_medium=email&utm_campaign=gmail+signature+to+blog
>>> >
>>>    <http://www.youtube.com/user/MessageNetConnection/feed>
>>> <http://www.linkedin.com/company/messagenet-systems>
>>>    <http://twitter.com/MessageNet>  <
>>> http://www.facebook.com/MessageNetsystems>
>>> -------------- next part --------------
>>> An HTML attachment was scrubbed...
>>> URL: <
>>> http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131002/d865d46b/attachment.html
>>> >
>>>
>>> ------------------------------
>>>
>>>
>>> _______________________________________________
>>> gstreamer-devel mailing list
>>> gstreamer-devel at lists.freedesktop.org
>>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>>>
>>>
>>> End of gstreamer-devel Digest, Vol 33, Issue 11
>>> ***********************************************
>>>
>>
>>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>


-- 

Rob Krakora,
Senior Software Engineer

MessageNet Systems
101 E Carmel Dr, Suite 105
Carmel, IN 46032

MessageNetSystems.com<http://www.messagenetcommunicationsystems.com/?utm_source=email+signature&utm_medium=email&utm_campaign=email+signature+to+homepage>
Rob.Krakora at MessageNetSystems.com <rob.krakora at messagenetsystems.com>
P: 317.566.1677, 212
F: 317.663.0808

For the latest news, information, and blogs, please be sure to visit,
follow, and like us...

<http://www.messagenetcommunicationsystems.com/get-the-message-out-blog/?utm_source=email+signature&utm_medium=email&utm_campaign=gmail+signature+to+blog>
   <http://www.youtube.com/user/MessageNetConnection/feed>
<http://www.linkedin.com/company/messagenet-systems>
   <http://twitter.com/MessageNet>  <http://www.facebook.com/MessageNetsystems>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131002/4b6383ea/attachment.html>


More information about the gstreamer-devel mailing list