[gst-devel] Muxing video and audio

Josep Creus creus at ac.upc.edu
Thu Apr 30 17:26:15 CEST 2009


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




More information about the gstreamer-devel mailing list