[gst-devel] Muxing video and audio
sledge hammer
sledgehammer_999 at hotmail.com
Thu Apr 30 18:15:41 CEST 2009
After a bit of testing myself I discovered the problem. You just need to put queue right after the demuxer(and before the caps). Here's the pipeline that produced a valid avi in my machine:
gst-launch-0.10 -v filesrc location="video.avi" ! avidemux ! queue ! video/x-xvid ! avimux name=muxer ! filesink location="video-audio.avi" filesrc location="audio.mp3" ! mp3parse ! queue ! muxer.
> Date: Thu, 30 Apr 2009 17:26:15 +0200
> From: creus at ac.upc.edu
> To: gstreamer-devel at lists.sourceforge.net
> Subject: Re: [gst-devel] Muxing video and audio
>
> No, I don't mind, my concern is that the system is in catalan, but I
> think you will get the idea.
>
> The script:
> #!/bin/bash
> gst-launch-0.10 -v filesrc location="video.avi" ! avidemux !
> video/x-xvid ! queue ! avimux name=muxer ! filesink
> location="video-audio.avi" \
> filesrc location="audio.mp3" ! mp3parse ! queue ! muxer.
>
> The resulting output:
> $ ./XviD.sh
> S'està establint el conducte a EN PAUSA ...
> El conducte s'està PREPARANT ...
> /GstPipeline:pipeline0/GstMPEGAudioParse:mpegaudioparse0.GstPad:src:
> caps = audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)2,
> layer=(int)3, rate=(int)16000, channels=(int)2, parsed=(boolean)true
> /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = audio/mpeg,
> mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3,
> rate=(int)16000, channels=(int)2, parsed=(boolean)true
> /GstPipeline:pipeline0/GstQueue:queue1.GstPad:src: caps = audio/mpeg,
> mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3,
> rate=(int)16000, channels=(int)2, parsed=(boolean)true
> /GstPipeline:pipeline0/GstAviMux:muxer.GstPad:audio_00: caps =
> audio/mpeg, mpegversion=(int)1, mpegaudioversion=(int)2, layer=(int)3,
> rate=(int)16000, channels=(int)2, parsed=(boolean)true
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter1: caps = video/x-xvid
> ERROR: des de l'element /GstPipeline:pipeline0/GstAviDemux:avidemux0:
> S'ha produït un error intern de flux de dades.
> Informació de depuració addicional:
> gstavidemux.c(4163): gst_avi_demux_loop ():
> /GstPipeline:pipeline0/GstAviDemux:avidemux0:
> streaming stopped, reason not-linked
> ERROR: el conducte no vol preparar-se.
> S'està establint el conducte a NUL ...
> /GstPipeline:pipeline0/GstAviMux:muxer.GstPad:audio_00: caps = NULL
> /GstPipeline:pipeline0/GstQueue:queue1.GstPad:src: caps = NULL
> /GstPipeline:pipeline0/GstQueue:queue1.GstPad:sink: caps = NULL
> /GstPipeline:pipeline0/GstMPEGAudioParse:mpegaudioparse0.GstPad:src:
> caps = NULL
> /GstPipeline:pipeline0/GstAviDemux:avidemux0.GstPad:video_00: caps = NULL
> S'ESTÀ ALLIBERANT el conducte ...
>
> Do I need a parser for xvid video in the video pipeline? If yes, which
> one? I can't see one related...
>
> Josep
>
> ------------------------------------------------------------------------------
> Register Now & Save for Velocity, the Web Performance & Operations
> Conference from O'Reilly Media. Velocity features a full day of
> expert-led, hands-on workshops and two days of sessions from industry
> leaders in dedicated Performance & Operations tracks. Use code vel09scf
> and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
_________________________________________________________________
Το What’s New σας ειδοποιεί άμεσα για κάθε ενημέρωση. Μάθετε πώς.
http://home.live.com/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090430/3bedc664/attachment.htm>
More information about the gstreamer-devel
mailing list