[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-devel
Subject:    Re: [gst-devel] handling multiple audio streams
From:       Jyoti D <jyoti.d () allaboutif ! com>
Date:       2009-02-25 10:28:36
Message-ID: d10c7b710902250216icfab33ei7391cf5eadd7f92e () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Thanks Tim

On Wed, Feb 25, 2009 at 2:48 PM, Tim-Philipp Müller <t.i.m@zen.co.uk> wrote:

> On Mon, 2009-02-23 at 13:53 +0530, Jyoti D wrote:
>
> > I am writing an application to transcode TS file into h264 and aac
> > format and store the transcoded file.
> > The application works fine with the input files which have one video
> > and audio stream.
> > If I have more than 1 audio files I still want to transcode all the
> > audio streams into aac format and store them in a single file.
> >
> > Could someone help me to handle ore than 1 audio streams?
> >
> > I am currently using the below pipeline :
> >
> > gst-launch-0.10 uridecodebin uri=file://in-file.ts name=d d. ! queue !
> > audioconvert ! faac ! ffmux_mp4 name=mux ! filesink
> > location=~/Desktop/h264-aac/out-file.mp4  d. ! queue !
> > ffmpegcolorspace ! x264enc pass=qual quantizer=16 ref=3 subme=6
> > analyse=p4x4 me=umh ! mux.
>
> With gst-launch, you need to know how many streams there are in the
> input stream in advance, and specify a transcoding path (d. !
> queue ! ..) for each audio and video stream you want to transcode. You
> can't have a generic pipeline which handles all cases, because if there
> is only one audio stream but you specified multiple audio transcoding
> paths, then gst-launch will hang/wait forever for the other audio pads.
>
> In other words: you need to write code to handle this.
>
>
> > I get the following warning messages while running the above pipeline:
> >
> > Setting pipeline to PAUSED ...
> > Pipeline is PREROLLING ...
> > WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No
> > decoder available for type 'application/x-mpegts-private-section'.
> > Additional debug info:
> > gsturidecodebin.c(589): unknown_type_cb
> > (): /GstPipeline:pipeline0/GstURIDecodeBin:d
> > WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No
> > decoder available for type 'application/x-mpegts-private-section'.
> > Additional debug info:
> > gsturidecodebin.c(589): unknown_type_cb
> > (): /GstPipeline:pipeline0/GstURIDecodeBin:d
> > WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No
> > decoder available for type 'application/x-mpegts-private-section'.
> > Additional debug info:
> > gsturidecodebin.c(589): unknown_type_cb
> > (): /GstPipeline:pipeline0/GstURIDecodeBin:d
> > WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No
> > decoder available for type 'application/x-mpegts-private-section'.
> > Additional debug info:
> > gsturidecodebin.c(589): unknown_type_cb
> > (): /GstPipeline:pipeline0/GstURIDecodeBin:d
> > WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No
> > decoder available for type 'application/x-mpegts-private-section'.
> > Additional debug info:
> > gsturidecodebin.c(589): unknown_type_cb
> > (): /GstPipeline:pipeline0/GstURIDecodeBin:d
> > WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No
> > decoder available for type 'private/teletext'.
> > Additional debug info:
> > gsturidecodebin.c(589): unknown_type_cb
> > (): /GstPipeline:pipeline0/GstURIDecodeBin:d
>
> I don't think those are fatal or related to your problem. You can
> probably ignore them.
>
> Cheers
>  -Tim
>
>
>
>
> ------------------------------------------------------------------------------
> Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco,
> CA
> -OSBC tackles the biggest issue in open source: Open Sourcing the
> Enterprise
> -Strategies to boost innovation and cut costs with open source
> participation
> -Receive a $600 discount off the registration fee with the source code:
> SFAD
> http://p.sf.net/sfu/XcvMzF8H
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

[Attachment #5 (text/html)]

Thanks Tim<br><br><div class="gmail_quote">On Wed, Feb 25, 2009 at 2:48 PM, \
Tim-Philipp Müller <span dir="ltr">&lt;<a \
href="mailto:t.i.m@zen.co.uk">t.i.m@zen.co.uk</a>&gt;</span> wrote:<br><blockquote \
class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt \
0pt 0.8ex; padding-left: 1ex;"> <div class="Ih2E3d">On Mon, 2009-02-23 at 13:53 \
+0530, Jyoti D wrote:<br> <br>
&gt; I am writing an application to transcode TS file into h264 and aac<br>
&gt; format and store the transcoded file.<br>
&gt; The application works fine with the input files which have one video<br>
&gt; and audio stream.<br>
&gt; If I have more than 1 audio files I still want to transcode all the<br>
&gt; audio streams into aac format and store them in a single file.<br>
&gt;<br>
&gt; Could someone help me to handle ore than 1 audio streams?<br>
&gt;<br>
&gt; I am currently using the below pipeline :<br>
&gt;<br>
&gt; gst-launch-0.10 uridecodebin uri=file://in-file.ts name=d d. ! queue !<br>
&gt; audioconvert ! faac ! ffmux_mp4 name=mux ! filesink<br>
&gt; location=~/Desktop/h264-aac/out-file.mp4  d. ! queue !<br>
&gt; ffmpegcolorspace ! x264enc pass=qual quantizer=16 ref=3 subme=6<br>
&gt; analyse=p4x4 me=umh ! mux.<br>
<br>
</div>With gst-launch, you need to know how many streams there are in the<br>
input stream in advance, and specify a transcoding path (d. !<br>
queue ! ..) for each audio and video stream you want to transcode. You<br>
can&#39;t have a generic pipeline which handles all cases, because if there<br>
is only one audio stream but you specified multiple audio transcoding<br>
paths, then gst-launch will hang/wait forever for the other audio pads.<br>
<br>
In other words: you need to write code to handle this.<br>
<div><div></div><div class="Wj3C7c"><br>
<br>
&gt; I get the following warning messages while running the above pipeline:<br>
&gt;<br>
&gt; Setting pipeline to PAUSED ...<br>
&gt; Pipeline is PREROLLING ...<br>
&gt; WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No<br>
&gt; decoder available for type &#39;application/x-mpegts-private-section&#39;.<br>
&gt; Additional debug info:<br>
&gt; gsturidecodebin.c(589): unknown_type_cb<br>
&gt; (): /GstPipeline:pipeline0/GstURIDecodeBin:d<br>
&gt; WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No<br>
&gt; decoder available for type &#39;application/x-mpegts-private-section&#39;.<br>
&gt; Additional debug info:<br>
&gt; gsturidecodebin.c(589): unknown_type_cb<br>
&gt; (): /GstPipeline:pipeline0/GstURIDecodeBin:d<br>
&gt; WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No<br>
&gt; decoder available for type &#39;application/x-mpegts-private-section&#39;.<br>
&gt; Additional debug info:<br>
&gt; gsturidecodebin.c(589): unknown_type_cb<br>
&gt; (): /GstPipeline:pipeline0/GstURIDecodeBin:d<br>
&gt; WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No<br>
&gt; decoder available for type &#39;application/x-mpegts-private-section&#39;.<br>
&gt; Additional debug info:<br>
&gt; gsturidecodebin.c(589): unknown_type_cb<br>
&gt; (): /GstPipeline:pipeline0/GstURIDecodeBin:d<br>
&gt; WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No<br>
&gt; decoder available for type &#39;application/x-mpegts-private-section&#39;.<br>
&gt; Additional debug info:<br>
&gt; gsturidecodebin.c(589): unknown_type_cb<br>
&gt; (): /GstPipeline:pipeline0/GstURIDecodeBin:d<br>
&gt; WARNING: from element /GstPipeline:pipeline0/GstURIDecodeBin:d: No<br>
&gt; decoder available for type &#39;private/teletext&#39;.<br>
&gt; Additional debug info:<br>
&gt; gsturidecodebin.c(589): unknown_type_cb<br>
&gt; (): /GstPipeline:pipeline0/GstURIDecodeBin:d<br>
<br>
</div></div>I don&#39;t think those are fatal or related to your problem. You can<br>
probably ignore them.<br>
<br>
Cheers<br>
 -Tim<br>
<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA<br>
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise<br>
-Strategies to boost innovation and cut costs with open source participation<br>
-Receive a $600 discount off the registration fee with the source code: SFAD<br>
<a href="http://p.sf.net/sfu/XcvMzF8H" \
target="_blank">http://p.sf.net/sfu/XcvMzF8H</a><br> \
_______________________________________________<br> gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
 <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" \
target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br> \
</blockquote></div><br>



------------------------------------------------------------------------------
Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA
-OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise
-Strategies to boost innovation and cut costs with open source participation
-Receive a $600 discount off the registration fee with the source code: SFAD
http://p.sf.net/sfu/XcvMzF8H

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic