You shouldn't need to recompile for it, just copy paste this in your script:

```
def output.youtube.live(~id="",
  ~video_bitrate=2000,
  ~audio_encoder="fdkaacenc",
  ~audio_bitrate=128000,
  ~url="rtmp://a.rtmp.youtube.com/live2",
  ~key,
  source) =
  video_pipeline = "videoconvert ! \
      x264enc bitrate=#{video_bitrate} byte-stream=false key-int-max=60 
bframes=0 aud=true tune=zerolatency ! \
      video/x-h264,profile=main ! queue ! mux."
  audio_pipeline = "audioconvert ! #{audio_encoder} bitrate=#{audio_bitrate} ! 
queue ! mux."
  pipeline = "flvmux streamable=true name=mux ! rtmpsink 
location=\"#{url}/#{key} app=live2\""

  output.gstreamer.audio_video(id=id,video_pipeline=video_pipeline,
    audio_pipeline=audio_pipeline,pipeline=pipeline,source)
end
```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/savonet/liquidsoap/issues/630#issuecomment-423842380
_______________________________________________
Savonet-users mailing list
Savonet-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to