0

我在使用 GStreamer 将视频发送到 youtube 时遇到问题。我的管道是:

"appsrc name=videoAppSrc ! rawvideoparse name=videoparser use-sink-caps=false format=8 ! videoconvert ! video/x-raw, fromat=YUV, width="+videoWidth+", height="+videoHeight+", framerate=25/1 ! videoconvert ! x264enc key-int-max=60 ! video/x-h264,profile=baseline ! tee name=t t. ! queue ! flvmux streamable=true name=mux ! rtmpsink name=dest location="+this.url+"/"+this.key+" t. ! queue ! matroskamux name=filemux ! filesink name=fileout location="+archFile.getAbsolutePath()+" appsrc name=audioAppSrc ! rawaudioparse use-sink-caps=true ! audioconvert ! volume name=audiovolume volume=1 ! voaacenc ! aacparse ! tee name=ta ta. ! queue ! mux. ta. ! queue ! filemux."

我正在使用带有 gst1-java-core 的 Java 将帧推送到管道中。

一段时间后,我收到了这种错误:无法从 GstRTMPSink 元素写入资源。有时会在 1 小时后发生,有时会在 3 小时后发生。我认为问题是 youtube 不会收到我的流。我对吗?我的管道有问题吗?也许我必须调整一些属性才能使其与 youtube 一起使用?

4

0 回答 0