ITADN

Command line usage for offscreen rendering

#309Openr3econ 创建于 2025-03-09
R
r3econcommented
Hydra is an amazing library! I really love the visualizations it can create. I’m currently trying to determine if it’s possible to render a video from audio using Hydra via the CLI. Specifically, I’m hoping to achieve something similar to the FFmpeg filters (as outlined in the [FFmpeg wiki](https://trac.ffmpeg.org/wiki/Encode/YouTube#Usingfilters)). This would involve full offscreen rendering that I could trigger directly from the command line, without any desktop capture. Is this something that could be done with Hydra? If so, what would be a good starting point in the code to add this feature? Thanks in advance! #### FFmpeg example ```bash ffmpeg -i input.mp3 -filter_complex \ "[0:a]avectorscope=s=640x518[left]; \ [0:a]showspectrum=mode=separate:color=intensity:scale=cbrt:s=640x518[right]; \ [0:a]showwaves=s=1280x202:mode=line[bottom]; \ [left][right]hstack[top]; \ [top][bottom]vstack,drawtext=fontfile=/usr/share/fonts/TTF/Vera.ttf:fontcolor=white:x=10:y=10:text='\"Song Title\" by Artist'[out]" \ -map "[out]" -map 0:a -c:v libx264 -preset fast -crf 18 -c:a copy output.mkv ``` ![Image](https://github.com/user-attachments/assets/6589031d-9e55-4b38-bfd0-639c4e510c4c)
1 条评论