Some help understanding demuxing - muxing V+A

art vanderhoff gstream at ccc2.com
Fri Dec 13 00:28:46 PST 2013


reformatting for better reading...

Step 1 : create avi for testing

gst-launch-1.0 \ 
videotestsrc num-buffers=250 ! videoconvert ! \
'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1'
! Mux. \
audiotestsrc num-buffers=441 ! Mux. \ 
avimux name=Mux ! filesink location=/home/content/test_file_A.avi

ffprobe reports 
Input #0, avi, from 'test_file_A.avi': 
  Duration: 00:00:10.00, start: 0.000000, bitrate: 23776 kb/s 
     Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240, 25
tbr, 25 tbn, 25 tbc 
     Stream #0:1: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 44100 Hz, 1
channels, s16, 705 kb/s 


So all looks fine.... Step 2 : take test_file_A.avi, demux, mux it into
test_file_B.avi

gst-launch-1.0 -m \ 
filesrc location=/home/disk1/content2/test/a.avi ! \ 
avidemux name=DEM \ 
DEM.audio_0 ! audioconvert ! 'audio/x-raw,format=S16LE,channels=1' ! queue
Mux. \ 
DEM.video_0 ! videoconvert ! \
'video/x-raw,format=(string)I420,width=320,height=240,framerate=(fraction)25/1'
! Mux. \ 
avimux name=Mux ! filesink location=/home/content/test_file_B.avi 


ffprobe reports 
Input #0, avi, from 'test_file_B.avi': 
 Duration: N/A, start: 0.000000, bitrate: N/A 
   Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 320x240, 25
tbr, 25 tbn, 25 tbc 

So my Q. is why doesn't the audio stream come through on the demux / mux
pass. 

NB: I have tried a lot of permutations such as 
DEM.audio_1 
DEM.audio_01 
DEM.audio_00 

any suggestions would be much appreciated, 
thx Art



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Some-help-understanding-demuxing-muxing-V-A-tp4664005p4664007.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list