media-server / scripts /stream1.sh
jbilcke-hf's picture
jbilcke-hf HF staff
test a new version with audio
55dbf53
raw
history blame
522 Bytes
#!/bin/bash
COUNT=0
echo "Starting FFMPEG live stream for channel 1"
while true; do
# ffmpeg -y -nostdin -re -f concat -safe 0 -i channel_1_video.txt -loglevel error -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -f flv rtmp://localhost/live/webtv
ffmpeg -y -nostdin -re -f concat -safe 0 -i channel_1_video.txt -stream_loop -1 -safe 0 -i channel_1_audio.txt -loglevel error -c:v libx264 -preset veryfast -tune zerolatency -c:a aac -ar 44100 -shortest -f flv rtmp://localhost/live/webtv
done