它可以将RTSP流转换为flv流,但我不能使用以下命令更改分辨率
gst-launch-1.0 rtspsrc location=$RTSP_SOURCE latency=0 ! rtpbin ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! videoscale ! video-x/raw,width=640,height=640 ! x264enc ! h264parse ! flvmux streamable=true ! rtmpsink location=$RTMP_SERVER该管道显示了一个错误,说明无法将videoscale0链接到x264enc0,两个元素都不能处理caps -x/raw、width=(int)640、height=(int)640。
发布于 2021-07-14 14:09:24
媒体类型应该是video/x-raw,而不是video-x/raw。
https://stackoverflow.com/questions/68377187
复制相似问题