Streaming youtube-dl to FFMPEG

youtube-dl -o - "https://www.youtube.com/watch?v=xxx" | ffmpeg -i - -c:a aac -strict -2 -vf "transpose=1","scale=iw:ih","drawtext=fontcolor=white:fontsize=40:fontfile='/path/font.ttf':textfile='/path/msg.txt':reload=1:y=h-line_h-52:x=w-(mod(4*n\,w+tw)-tw/40)" -c:v h264 -f flv rtmp://xxx/live/xxxx

Leave a Reply

Your email address will not be published. Required fields are marked *