Gstreamer录制音频和视频

时间:2016-03-04 19:02:19

标签: audio video gstreamer rtsp recording

Rtsp来源:
视频:有效负载97,H264
音频:有效载荷96,MPEG4-GENERIC AAC


作品:< / b>
观看视频和收听音频


rtspsrc location = [RTSP_Server_IP] name = rtspsrc rtspsrc。

!排队! application / x-rtp,payload = 96! rtpmp4gdepay! aacparse! avdec_aac! audioconvert! autoaudiosink sync = false rtspsrc。

!排队! application / x-rtp,payload = 97! rtph264depay! h264parse! avdec_h264! autovideosink sync = false
不工作
转换为MP4文件


rtspsrc location = [RTSP_Server_IP] name = rtspsrc rtspsrc。

!排队! application / x-rtp,payload = 96! rtpmp4gdepay! aacparse! avdec_aac! audioconvert! autoaudiosink sync = false rtspsrc。 MUX。

!排队! application / x-rtp,payload = 97! rtph264depay! h264parse mux。

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


有人有什么想法吗?

1 个答案:

答案 0 :(得分:1)

rtspsrc location = [RTSP_Server_IP] name = rtspsrc

! rtph264depay! h264parse! mpegtsmux name = mux! filesink location =“test.mp4”rtspsrc。

! rtpmp4gdepay! aacparse!多路复用器。