GStreamer:与本地video源的networkingpipe道
我想转换这个脚本,创build一个gstreamerpipe道与示例video源: #!/bin/sh gst-launch-1.0 \ audiotestsrc ! \ audioresample ! audio/x-raw,channels=1,rate=16000 ! \ opusenc bitrate=20000 ! \ rtpopuspay ! udpsink host=127.0.0.1 port=5002 \ videotestsrc ! \ video/x-raw,width=320,height=240,framerate=15/1 ! \ videoscale ! videorate ! videoconvert ! timeoverlay ! \ vp8enc error-resilient=1 ! \ rtpvp8pay ! udpsink host=127.0.0.1 port=5004 在类似的gstreamerpipe道中,不同的是我不想要audio/videotestsrc,但是从脚本启动的同一目录中的本地mp4video开始。