Liquidsoap と gstream を使用して、自分のチャンネルを別のチャンネルに再ストリーミングしようとしています。フォールバックのためにそれを行い、最初のソースが使用されていない場合は別のソースを使用します。私は得た:
set("frame.video.width", 1920)
set("frame.video.height", 1080)
#set("frame.video.samplerate", 30)
set("gstreamer.add_borders", false)
set("clock.allow_streaming_errors",false)
s = single("rtmp://link_to_rtmp_stream/test")
s = fallback([s, blank()])
output.gstreamer.audio_video(
video_pipeline=
"videoconvert ! x264enc bitrate=4000 ! video/x-h264,profile=baseline ! queue ! mux.",
audio_pipeline=
"audioconvert ! voaacenc bitrate=128000 ! queue ! mux.",
pipeline=
"flvmux name=mux ! rtmpsink location=\"rtmp://wherewewhantstream.com live=1\"",
s)
問題が 1 つあります.. 最初のストリームを認識してください.. スクリプトはそれを認識したくありません。ファイルだと思っているからです。rtmpストリームを認識してデコードする方法は?