[gst-devel] Mpeg ts mux --missing audio

thiagoss thiagossantos at gmail.com
Wed Mar 25 18:04:31 CET 2009


On Wed, Mar 25, 2009 at 4:33 AM, yangsb <yangsb05 at gmail.com> wrote:

>
> I found another phenomenon.
> If I use " Ctrl + c " to break the mux processing before it finished, the
> ts
> file I get contains no audio .
> If I wait until the mux processing finished successfully, the ts file I get
> does contain audio.
>
> So , maybe a little bug of ts muxer.
>

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.

[1] http://bugzilla.gnome.org/show_bug.cgi?id=575814


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



-- 
Thiago Sousa Santos

Embedded Systems and Pervasive Computing Lab (Embedded)
Center of Electrical Engineering and Informatics (CEEI)
Federal University of Campina Grande (UFCG)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090325/323cec10/attachment.htm>


More information about the gstreamer-devel mailing list