Convert RTSP to H.264 with VBR configuration

buro1983 niloy.debnath at gmail.com
Tue Nov 19 08:38:52 PST 2013


Hello, I am trying to convert RTSP feed from live cam to H.264. Currently I'm
configuring with CBR with resolutions QSIF. Is there any way to configure
audio and video into VBR? I'm using two different pipeline for video and
audio. I'm redirecting video and audio on two different ports and written
sdps to access converted streams via Vlc or Real player.

Video:
=====
gst-launch-1.0 -v rtspsrc location="rtsp://Source" ! rtph264depay !
avdec_h264 ! videoscale ! videorate skip-to-first=true ! videoconvert !
queue max-size-bytes=250000001 ! capsfilter
caps="video/x-raw,format=(string)I420,width=(int)320,height=(int)240,framerate=(fraction)30/1,colorimetry=(string)bt601"
! x264enc option-string="vbv-bufsize=200:vbv-maxrate=200" byte-stream=true
threads=1 me=1 subme=6 bitrate=300 speed-preset=1 ! video/x-h264 !
rtph264pay pt=96 mtu=1300 ! udpsink clients="IP:Port"

Audio:
=====
gst-launch-1.0 -v rtspsrc location="rtsp://Source" ! capsfilter
caps="application/x-rtp,media=(string)audio,payload=(int)96,encoding-name=(string)MPEG4-GENERIC"
! queue ! rtpmp4gdepay ! avdec_aac ! audioresample ! audioconvert ! amrnbenc
! rtpamrpay pt=97 ! udpsink clients="Ip:Port"

I am getting ok type video from my configuration, feel free to share your
thought if there is any scope of improvement. Thanks



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Convert-RTSP-to-H-264-with-VBR-configuration-tp4663426.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list