<br><br><div class="gmail_quote">On Wed, Mar 25, 2009 at 4:33 AM, yangsb <span dir="ltr"><<a href="mailto:yangsb05@gmail.com">yangsb05@gmail.com</a>></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 " Ctrl + c " 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'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>
><br>
> Thanks for you quick reply.<br>
> I tried to install a totem player , But failed( My OS is RedHat enterprise<br>
> as 4 ).<br>
> I used the mpegdemux instead.<br>
> My pipeline is like this :<br>
> ##########################################################################<br>
> gst-launch -v --gst-debug-level=2 \<br>
> filesrc location=/home/opensource/out_264_for_6446.ts \<br>
> ! mpegtsdemux name=demux demux. ! audio/mpeg ! queue ! filesink<br>
> location=test.aac<br>
><br>
> gst-launch -v --gst-debug-level=2 \<br>
> filesrc location=/home/opensource/out_264_for_6446.ts \<br>
> ! mpegtsdemux name=demux demux. ! video/x-h264 ! queue ! filesink<br>
> location=test.264<br>
> #############################################################################<br>
> The result is that I can split the video and audio correctly.<br>
> So, I believe that the file can be played by gstreamer player.<br>
><br>
><br>
><br>
><br>
> Edward Hervey wrote:<br>
>><br>
>> Does it work with totem or any other gstreamer player ?<br>
>><br>
>><br>
>> On Fri, 2009-03-20 at 03:23 -0700, yangsb wrote:<br>
>>> I tried to mux a mpeg2-ts file with h264video and aac audio.<br>
>>> I used the mpegtsmux in gst-plugin-bad-0.10.9.<br>
>>><br>
>>> My pipeline is this :<br>
>>> gst-launch -v --gst-debug-level=$dbg \<br>
>>> filesrc location=davincieffect_ntsc.264 \<br>
>>> ! h264parse ! mux. \<br>
>>> filesrc location=davincieffect.aac ! aacparse ! mux. \<br>
>>> mpegtsmux name=mux \<br>
>>> ! filesink location=out_264_for_6446.ts<br>
>>><br>
>>> When I played the ts file using mplayer,<br>
>>> Only video can be seen.<br>
>>> Audio is missing.<br>
>>><br>
>>> The following is messages from Mplayer:<br>
>>><br>
>>><br>
>>> ####################################################################<br>
>>> Playing /home/filesys/opt/gst_dm355/out_264_for_6446.ts.<br>
>>> TS file format detected.<br>
>>> VIDEO H264(pid=64) AUDIO AAC(pid=65) NO SUBS (yet)! PROGRAM N. 1<br>
>>> FPS seems to be: 29.970030<br>
>>> [VO_SDL] Using driver: x11.<br>
>>> ==========================================================================<br>
>>> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family<br>
>>> Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)<br>
>>> ==========================================================================<br>
>>> ==========================================================================<br>
>>> Opening audio decoder: [faad] AAC (MPEG2/4 Advanced Audio Coding)<br>
>>><br>
>>> Too many video packets in the buffer: (1042 in 8399231 bytes).<br>
>>> Maybe you are playing a non-interleaved stream/file or the codec failed?<br>
>>> For AVI files, try to force non-interleaved mode with the -ni option.<br>
>>><br>
>>> FAAD: Failed to initialize the decoder!<br>
>>> ADecoder init failed :(<br>
>>> ADecoder init failed :(<br>
>>> Cannot find codec for audio format 0x4134504D.<br>
>>><br>
>>> Read DOCS/HTML/en/codecs.html!<br>
>>> Audio: no sound<br>
>>> Starting playback...<br>
>>> VDec: vo config request - 720 x 480 (preferred colorspace: Planar YV12)<br>
>>> VDec: using Planar YV12 as output csp (no 0)<br>
>>> Movie-Aspect is 1.50:1 - prescaling to correct movie aspect.<br>
>>> VO: [sdl] 720x480 => 720x480 Planar YV12<br>
>>><br>
>>> ################################################################<br>
>>><br>
>>> Hope to get some advice.<br>
>>> Thanks<br>
>>> Best regards.<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<br>
>> 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>
>><br>
>><br>
><br>
><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>