Replies: 2 comments 3 replies
-
This works with the latest s = playlist("/path/to/playlist")
def show_waves(s) =
def mkfilter(graph)
a = ffmpeg.filter.audio.input(graph, s)
let ([a, a'], _) = ffmpeg.filter.asplit(graph, a)
v = ffmpeg.filter.showwaves(
s="1280x720",
mode=1,
graph, a)
v = ffmpeg.filter.format(pix_fmts="yuv420p", graph, v)
v = ffmpeg.filter.video.output(graph, v)
# Remove this when https://github.com/savonet/liquidsoap/issues/2384 is closed:
a' = ffmpeg.filter.anull(graph, a')
a' = ffmpeg.filter.audio.output(graph, a')
(a', v)
end
let (a, v) = ffmpeg.filter.create(mkfilter)
mux_video(video=v, a)
end
s = show_waves(s) |
Beta Was this translation helpful? Give feedback.
2 replies
-
Wooh thanks to your help !
thank you in advance for your help |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I discover liquisoap.
I have an azuracast server, I use the script that one of the admins proposed to the community (https://gist.githubusercontent.com/SlvrEagle23/5dbfb4dbc1846055c9ab07a7c685899c/raw/584ba182b52e0598f1added00c0b5280b0db53b8/video_stream.liq)
I would like to add an audio wave effect on top of my output rendering.
In the liquisoap api documentation I found ffmpeg.filter.showwaves but I can't transcribe it.
I started from an example I found online here, which is not in liquidsoap format:
ffmpeg ......
[0:a]showwaves=mode=cline:s=1920x480:[email protected]|[email protected]:scale=cbrt:r=25[waves];
[image][waves]overlay=0:600[bg];
......
I would like to know how this translates into liquidsoap?
have try something but, have feeling that it's not good...
regards
Beta Was this translation helpful? Give feedback.
All reactions