Gstreamer-1.0 Mp4 video RTSP streaming - appsrc

Shabeer shaf.nttf at gmail.com
Mon Feb 25 03:59:05 UTC 2019


Hi Stephen,

Ok, I understood what you mean to say :
1. I should send h264 format to appsrc, right ?  
2. If so, what pipeline should I use ? Can I add caps fro the playbin [same
caps used for h264parse ] ?


Using "gst-inspect-1.0 playbin" gives me no information about the src/sink
caps of playbin. How did you say it is raw video ?? 


Note :

I managed to stream the video  using the below pipeline :
gst_rtsp_media_factory_set_launch(factory,	"( appsrc name=mysrc !
videoconvert ! jpegenc ! rtpjpegpay name=pay0 pt=96 )");	

and using the caps as [videoconvert uses video/x-raw format as src]:
const gchar *videocaps_mp4 = "video/x-raw, format=(string)I420,
width=(int)480, height=(int)270,interlace-mode=(string)progressive";


But my intention is to convert the .mp4 to h264 format and then play it.
What is the issue with the below pipeline ? Why cant I use h264parse with
appsrc ?

const gchar *pipe_line_string = "appsrc name=mysrc is-live=true max-bytes=0
do-timestamp=true min-latency=0 ! queue ! h264parse name=parse ! queue !
rtph264pay name=pay0 pt=96 timestamp-offset=0";






--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list