How to add audio to a h264 video stream using gstreamer

suspension manusha1980 at gmail.com
Mon Sep 7 06:56:14 PDT 2015


Thanks Tim,

I changed the test-video sample to accept the pipeline externally as a
command line argument.
When I invoked modified test-video binary as follows, I am not able to
stream it from the client.

./test-video "filesrc
location=/home/manusha/Downloads/movies/The.Dictator.2012.UNRATED.480p.BluRay.x264-mSD.mkv
! decodebin name=dec ! video/x-raw ! x264enc ! rtph264pay name=pay0 pt=96
dec. ! audio/x-raw,rate=8000 ! alawenc ! rtppcmapay name=pay1 pt=97"

However, If I change the replace the decoder output with a test audio
source, the I am able to play from the client. 

./test-video "filesrc
location=/home/manusha/Downloads/movies/The.Dictator.2012.UNRATED.480p.BluRay.x264-mSD.mkv
! decodebin name=dec ! video/x-raw ! x264enc ! rtph264pay name=pay0 pt=96
audiotestsrc ! audio/x-raw,rate=8000 ! alawenc ! rtppcmapay name=pay1 pt=97"

Obviously, the audio I get is wrong.

Do you see any issues with this pipeline?



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/How-to-add-audio-to-a-h264-video-stream-using-gstreamer-tp4672934p4673520.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list