Hello!
I was trying to mix four streams, two video and two audio streams into
one which was sent to facebook.
The video streams I got working, but the mixed audio stream doesn't seem
to work. Only the pulseaudio input shows up on my facebook preview of
the stream.
I have tried with a playlist instead of input.http but I did not get
that sound to work either.
The script looks like this:
#!/usr/local/bin/liquidsoap
# XTRadio Video
# Standard settings
set("log.file.path","/tmp/vlc-radio.log")
set("log.level",4)
set("server.telnet",false)
# Stream Settings
video=playlist("/tmp/filmlista.txt")
audio=input.http("http://mustafejen.se:8000/verket")
maudio=input.pulseaudio(clock_safe=false)
baudio = audio_to_stereo(maudio)
audio = smooth_add(normal=audio, special=baudio)
hideo=input.gstreamer.video(pipeline="v4l2src device=/dev/video0 !
video/x-raw,width=640,height=480,framerate=30/1")
hideo=buffer(buffer=0.1,mksafe(hideo))
source=video
source2 = video.scale(scale=0.4,x=10,y=10,hideo)
source = add([source,source2])
source = mux_video(video=source,audio)
output.gstreamer.audio_video(fallible=true,
video_pipeline=
"videoconvert ! x264enc bitrate=2000 ! video/x-h264,profile=main
! queue ! mux.",
audio_pipeline=
"audioconvert ! voaacenc bitrate=128000 ! queue ! mux.",
pipeline=
"flvmux streamable=1 name=mux ! rtmpsink
location=\"rtmps://live-api-s.facebook.com:443/rtmp/my_secret_stream_key\"",
source)
Regards,
Per Gunnarsson
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users