我想将这个运行中的ffmpeg命令转换为一个GStreamer管道,但是我无法使它正常工作。尝试使用srtpenc设置缓冲区和udpsink的十六进制表示和目标主机和端口集的键。
我目前的命令是:
ffmpeg -re -i <<rtspurl>> -map 0:0 -vcodec h264_omx -pix_fmt yuv420p \
-r 30 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 300k \
-bufsize 300k -payload_type 99 -ssrc <<ssrc>> \
-f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 \
-srtp_out_params <<base64key>> srtp://<<targetip>>:<<targetport>>?rtcpport=<<targetport>>&localrtcpport=<<targetport>>&pkt_size=1378一些参考资料:
发布于 2020-01-08 18:30:45
作为以后的参考,下面是我最后使用的管道:
gst-launch-1.0 rtspsrc location=<<rtsp url>> latency=0 ! \
videoconvert ! \
videoscale ! \
videorate ! \
video/x-raw, height=<<height>>, width=<<width>>, framerate=<<fps>>/1 !\
v4l2h264enc ! \
rtph264pay pt=99 mtu=1378 ssrc=<<ssrc>> ! \
srtpenc key=<<key in hex>> ! \
udpsink host=<<targetip>> port=<<targetport>>发布于 2020-01-07 21:49:40
类似于:
gst-launch-1.0 uridecodebin uri=<<rtsp url>> ! videoconvert ! videoscale ! \
videorate ! video/x-raw, height=720, width=1270, framerate=30/1 ! \
omxh264enc b-frames=0 target-bitrate=300000 ! \
rtph264pay pt=99 mtu=1378 ssrc=<<ssrc>> ! srtpenc key=<<key in hex>> ! \
udpsink host=<<targetip>> port=<<targetport>>发布于 2021-04-01 05:01:58
请帮助将FFmpeg命令转换为GStreamer命令
ffmpeg -i m3u8 url -c copy -bsf:a aac_adtstoasc -t 00:00:10 001stream.mp4https://stackoverflow.com/questions/59562598
复制相似问题