Unix & Linux Asked by JavaRunner on October 9, 2020
I use ffmpeg for rtmp streaming for instance with a command like this:
ffmpeg -i file.mp4 ... rtmp://localhost/stream
Sometime I need to replace file.mp4 with new_file.mp4. How do I do that without stutters and stopping the stream? I suppose I can’t do sth like that:
mv new_file.mp4 file.mp4
without killing the ffmpeg process 🙂
Put your ffmpeg inside an infinite loop:
#!/bin/bash
while true; do
ffmpeg -i file.mp4 ... rtmp://localhost/stream
done
Answered by Renato Romano on October 9, 2020
Get help from others!
Recent Answers
Recent Questions
© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP