Conversation
liquidsoap/radio.liq
Outdated
| video_source = fallback(id="video_fallback",track_sensitive=false, | ||
| [!live_video, | ||
| mux_audio(drop_audio(!vj_video), audio=source), | ||
| mksafe(mux_audio(single_video, audio=source))]) |
There was a problem hiding this comment.
Error 10: A source cannot belong to two clocks (mux_audio_1.child[],
mux_audio_0.child[]).
The command '/bin/sh -c eval $(opam env) && liquidsoap --check radio.liq' returned a non-zero code: 1
There was a problem hiding this comment.
The problem here is that the muxing operator wants control over the sources being muxed so make sure that it can pull data from both sources at the rate that's needed to synchronize audio and video content.
The buffer operator should be available to decorelate this so you can pass the same source into two different muxers. Something like this:
video_source = fallback(id="video_fallback",track_sensitive=false,
[!live_video,
mux_audio(drop_audio(!vj_video), audio=buffer(source)),
mksafe(mux_audio(single_video, audio=buffer(source)))])
This operator is in need of some love so let us know if you have any issue with it.
There was a problem hiding this comment.
Thank you so much @toots ! This seems to compile.
So buffer will create a new clock for each muxer I assume?
No description provided.