<br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 4:33 AM, yangsb <span dir="ltr">&lt;<a href="mailto:yangsb05@gmail.com">yangsb05@gmail.com</a>&gt;</span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
<br>
I found another phenomenon.<br>
If I use &quot; Ctrl + c &quot; to break the mux processing before it finished, the ts<br>
file I get contains no audio .<br>
If I wait until the mux processing finished successfully, the ts file I get<br>
does contain audio.<br>
<br>
So , maybe a little bug of ts muxer.<br></blockquote><div><br></div><div>When you press ctrl + c to stop the processing (I&#39;m assuming you are using gst-launch), it immediately stops the pipeline without pushing EOS and the resulting file you are muxing can end up in an inconsistent state. A patch[1] to add a new option to gst-launch to force EOS when receiving an interrupt is alerady at bugzilla. If no one is against it, should be applied soon.</div>
<div> </div><div>[1] <a href="http://bugzilla.gnome.org/show_bug.cgi?id=575814">http://bugzilla.gnome.org/show_bug.cgi?id=575814</a></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">

<br>
<br>
yangsb wrote:<br>
&gt;<br>
&gt; Thanks for you quick reply.<br>
&gt; I tried to install a totem player , But failed( My OS is RedHat enterprise<br>
&gt; as 4 ).<br>
&gt; I used the mpegdemux instead.<br>
&gt; My pipeline is like this :<br>
&gt; ##########################################################################<br>
&gt;     gst-launch -v --gst-debug-level=2 \<br>
&gt;         filesrc location=/home/opensource/out_264_for_6446.ts \<br>
&gt;        ! mpegtsdemux name=demux demux. ! audio/mpeg ! queue ! filesink<br>
&gt; location=test.aac<br>
&gt;<br>
&gt;     gst-launch -v --gst-debug-level=2 \<br>
&gt;         filesrc location=/home/opensource/out_264_for_6446.ts \<br>
&gt;        ! mpegtsdemux name=demux demux. ! video/x-h264 ! queue ! filesink<br>
&gt; location=test.264<br>
&gt; #############################################################################<br>
&gt; The result is that I can split the video and audio correctly.<br>
&gt; So, I believe that the file can be played by gstreamer player.<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; Edward Hervey wrote:<br>
&gt;&gt;<br>
&gt;&gt; Does it work with totem or any other gstreamer player ?<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; On Fri, 2009-03-20 at 03:23 -0700, yangsb wrote:<br>
&gt;&gt;&gt; I tried to mux a mpeg2-ts file with h264video and aac audio.<br>
&gt;&gt;&gt; I used the mpegtsmux in gst-plugin-bad-0.10.9.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; My pipeline is this :<br>
&gt;&gt;&gt; gst-launch -v --gst-debug-level=$dbg \<br>
&gt;&gt;&gt;         filesrc location=davincieffect_ntsc.264  \<br>
&gt;&gt;&gt;         ! h264parse ! mux. \<br>
&gt;&gt;&gt;         filesrc location=davincieffect.aac ! aacparse ! mux. \<br>
&gt;&gt;&gt;         mpegtsmux name=mux \<br>
&gt;&gt;&gt;         ! filesink location=out_264_for_6446.ts<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; When I played the ts file using mplayer,<br>
&gt;&gt;&gt; Only video can be seen.<br>
&gt;&gt;&gt; Audio is missing.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; The following is  messages from Mplayer:<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ####################################################################<br>
&gt;&gt;&gt; Playing /home/filesys/opt/gst_dm355/out_264_for_6446.ts.<br>
&gt;&gt;&gt; TS file format detected.<br>
&gt;&gt;&gt; VIDEO H264(pid=64) AUDIO AAC(pid=65) NO SUBS (yet)!  PROGRAM N. 1<br>
&gt;&gt;&gt; FPS seems to be: 29.970030<br>
&gt;&gt;&gt; [VO_SDL] Using driver: x11.<br>
&gt;&gt;&gt; ==========================================================================<br>
&gt;&gt;&gt; Opening video decoder: [ffmpeg] FFmpeg&#39;s libavcodec codec family<br>
&gt;&gt;&gt; Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)<br>
&gt;&gt;&gt; ==========================================================================<br>
&gt;&gt;&gt; ==========================================================================<br>
&gt;&gt;&gt; Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Too many video packets in the buffer: (1042 in 8399231 bytes).<br>
&gt;&gt;&gt; Maybe you are playing a non-interleaved stream/file or the codec failed?<br>
&gt;&gt;&gt; For AVI files, try to force non-interleaved mode with the -ni option.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; FAAD: Failed to initialize the decoder!<br>
&gt;&gt;&gt; ADecoder init failed :(<br>
&gt;&gt;&gt; ADecoder init failed :(<br>
&gt;&gt;&gt; Cannot find codec for audio format 0x4134504D.<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Read DOCS/HTML/en/codecs.html!<br>
&gt;&gt;&gt; Audio: no sound<br>
&gt;&gt;&gt; Starting playback...<br>
&gt;&gt;&gt; VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)<br>
&gt;&gt;&gt; VDec: using Planar YV12 as output csp (no 0)<br>
&gt;&gt;&gt; Movie-Aspect is 1.50:1 - prescaling to correct movie aspect.<br>
&gt;&gt;&gt; VO: [sdl] 720x480 =&gt; 720x480 Planar YV12<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; ################################################################<br>
&gt;&gt;&gt;<br>
&gt;&gt;&gt; Hope to get some advice.<br>
&gt;&gt;&gt; Thanks<br>
&gt;&gt;&gt; Best regards.<br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;&gt; ------------------------------------------------------------------------------<br>
&gt;&gt; Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are<br>
&gt;&gt; powering Web 2.0 with engaging, cross-platform capabilities. Quickly and<br>
&gt;&gt; easily build your RIAs with Flex Builder, the Eclipse(TM)based<br>
&gt;&gt; development<br>
&gt;&gt; software that enables intelligent coding and step-through debugging.<br>
&gt;&gt; Download the free 60 day trial. <a href="http://p.sf.net/sfu/www-adobe-com" target="_blank">http://p.sf.net/sfu/www-adobe-com</a><br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; gstreamer-devel mailing list<br>
&gt;&gt; <a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
&gt;&gt; <a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
&gt;<br>
&gt;<br>
<br>
--<br>
View this message in context: <a href="http://www.nabble.com/Mpeg-ts-mux---missing-audio-tp22617660p22696456.html" target="_blank">http://www.nabble.com/Mpeg-ts-mux---missing-audio-tp22617660p22696456.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
<br>
<br>
------------------------------------------------------------------------------<br>
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are<br>
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and<br>
easily build your RIAs with Flex Builder, the Eclipse(TM)based development<br>
software that enables intelligent coding and step-through debugging.<br>
Download the free 60 day trial. <a href="http://p.sf.net/sfu/www-adobe-com" target="_blank">http://p.sf.net/sfu/www-adobe-com</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><br clear="all"><br>-- <br>Thiago Sousa Santos<br><br>Embedded Systems and Pervasive Computing Lab (Embedded)<br>Center of Electrical Engineering and Informatics (CEEI)<br>Federal University of Campina Grande (UFCG)<br>