Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/postgresql/9.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Udp Gstreamer-rtph264pay命令_Udp_Video Streaming_Gstreamer_H.264_Rtp - Fatal编程技术网

Udp Gstreamer-rtph264pay命令

Udp Gstreamer-rtph264pay命令,udp,video-streaming,gstreamer,h.264,rtp,Udp,Video Streaming,Gstreamer,H.264,Rtp,我需要弄清楚rtph264pay命令背后的机制。我已经检索到了它的输出,但我不知道如何读取它。帧的开头在哪里? 如果我用udpsink替换filesink,帧将通过网络发送。udpsink如何确定帧的开始和结束位置 c:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe filesrc location=%string:\=/% ^ ! decodebin ! x264enc ^ ! "video/x-h264, stream-format=

我需要弄清楚rtph264pay命令背后的机制。我已经检索到了它的输出,但我不知道如何读取它。帧的开头在哪里? 如果我用udpsink替换filesink,帧将通过网络发送。udpsink如何确定帧的开始和结束位置

c:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe filesrc location=%string:\=/% ^
    ! decodebin ! x264enc ^
    ! "video/x-h264, stream-format=(string)avc, alignment=(string)au, profile=(string)baseline" ^
    ! h264parse ^
    ! rtph264pay ^
    ! filesink ^
    location=video.txt

rtph264pay
元素接收H264数据作为输入,并将其转换为RTP数据包。RTP是一种标准格式,用于通过网络发送多种类型的数据,包括视频。中对RTP进行了正式概述,有关如何与H264一起使用RTP的具体信息,请参阅

udpsink如何确定帧的开始和结束位置

c:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe filesrc location=%string:\=/% ^
    ! decodebin ! x264enc ^
    ! "video/x-h264, stream-format=(string)avc, alignment=(string)au, profile=(string)baseline" ^
    ! h264parse ^
    ! rtph264pay ^
    ! filesink ^
    location=video.txt
udpsink
不需要知道帧的开始和结束位置,它只需通过UDP发送由
rtph264depay
创建的RTP数据包。它对RTP格式没有任何特殊的理解。数据的接收者需要理解RTP,以便对其进行卸载和解码

由于RTP是一种设计用于通过网络发送的格式,因此使用
filesink
将其保存到文件中有些不寻常