Gstreamer Record Audio and Video

Rtsp Source:
Video: payload 97, H264
Audio: payload 96, MPEG4-GENERIC AAC


Works:
Watch Video and Listen to Audio


rtspsrc location=[RTSP_Server_IP] name=rtspsrc rtspsrc.

! queue ! application/x-rtp,payload=96 ! rtpmp4gdepay ! aacparse ! avdec_aac ! audioconvert ! autoaudiosink sync=false rtspsrc.

! queue ! application/x-rtp,payload=97 ! rtph264depay ! h264parse ! avdec_h264 ! autovideosink sync=false
Doesn't Work
Convert to MP4 file


rtspsrc location=[RTSP_Server_IP] name=rtspsrc rtspsrc.

! queue ! application/x-rtp,payload=96 ! rtpmp4gdepay ! aacparse ! avdec_aac ! audioconvert ! autoaudiosink sync=false rtspsrc. mux.

! queue ! application/x-rtp,payload=97 ! rtph264depay ! h264parse mux.

! mp4mux name=mux ! filesink location=test.mp4


Anybody have any ideas?


rtspsrc location=[RTSP_Server_IP] name=rtspsrc

! rtph264depay ! h264parse ! mpegtsmux name=mux ! filesink location="test.mp4" rtspsrc.

! rtpmp4gdepay ! aacparse ! mux.

链接地址: http://www.djcxy.com/p/43914.html

上一篇: 使用Gstreamer框架将音频和视频同步传输到mp4容器

下一篇: Gstreamer录制音频和视频