Gstreamer 阻挡发球台
Gstreamer blocked tee
我正在使用下面的管道测试 Gstreamer。基本上是一个带有两个文件输出的 Tee'd 视频输入。
gst-launch-1.0 videotestsrc is-live=true !
tee name=t ! queue ! videoconvert ! x264enc ! h264parse ! mp4mux ! filesink location=/assets/out1.mp4
t. ! queue ! valve drop=true ! videoconvert ! x264enc ! h264parse ! mp4mux ! filesink location=/assets/out2.mp4 -e
我希望管道写入 out1.mp4
而阀门阻止输出到 out2.mp4
。但是,由于某种原因,这两个文件都为空。这是什么原因造成的?
为 valve-ed 路径文件接收器尝试 async=false
。请注意,Valve 还会丢弃 EOS 等事件。也许您最好通过 PadProbe 滴样。不过这需要一个真正的应用程序。
我正在使用下面的管道测试 Gstreamer。基本上是一个带有两个文件输出的 Tee'd 视频输入。
gst-launch-1.0 videotestsrc is-live=true !
tee name=t ! queue ! videoconvert ! x264enc ! h264parse ! mp4mux ! filesink location=/assets/out1.mp4
t. ! queue ! valve drop=true ! videoconvert ! x264enc ! h264parse ! mp4mux ! filesink location=/assets/out2.mp4 -e
我希望管道写入 out1.mp4
而阀门阻止输出到 out2.mp4
。但是,由于某种原因,这两个文件都为空。这是什么原因造成的?
为 valve-ed 路径文件接收器尝试 async=false
。请注意,Valve 还会丢弃 EOS 等事件。也许您最好通过 PadProbe 滴样。不过这需要一个真正的应用程序。