Commit 6feef464 authored by hark's avatar hark
Browse files

audiovideo

parent e6f4dbf5
#!/usr/bin/env bash
set -eux
image='leftover_notext480.jpg'
stream='http://deathstar.puscii.nl:8000/papillon.ogg'
text_file='audiobroadcast.txt'
font='BPmonoBold.ttf'
rtmp_user=''
rtmp_pass=''
rtmp_url="rtmp://dock.lag/stream/leftover"
ffmpeg -loop 1 -framerate 30 \
-i $image -i $stream \
-c:v libx264 -pix_fmt yuv420p \
-vf "drawtext=textfile=$text_file:reload=1:fontfile=$font:y=h-line_h-10:x=w-mod(max(t-4.5\,0)*(w+tw)/10.5\,(w+tw)):fontcolor=00dc90:fontsize=40:shadowx=2:shadowy=2"\
-c:a aac -ar 44100 -f flv $rtmp_url
Audio only broadcast atm.
(if you wondering why you see this instead of the video you try to send, login to dock.lag and stop the audio_to_video.sh )
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment