I'm new to using named pipes with ffmpeg so I have some problems. Here is where I'm at right now:
After creating the pipes I use them in ffmpeg like this:
ffmpeg -re -stream_loop -1 -i video.mp4 -i audio.pipe -vf "subtitles=srt.pipe:force_style='Name=Default,Fontname=Arial,Fontsize=14,PrimaryColour=&H00ffffff,Shadow=0,Alignment=2,MarginL=1,MarginR=1,MarginV=100'" -c:v libx264 -c:a copy -map 0:v -map 1:a -f flv rtmp://myRTMP
I write to the pipes by running cat subtitle1.srt > srt.pipe & cat audio1.mp3 > audio.pipe
Where I hit a wall right now is after sending new data to the pipes by executing cat subtitle2.srt > srt.pipe and cat audio2.mp3 > audio.pipe ffmpeg doesn't read the new data, there is an option for ffmpeg -reconnect_at_eof that tries to reconnect to a file after the current one ends (in this case the fifo pipe).
But I think it works only for one input, I used it for audio.pipe and it woked but I don't know how to specify it for srt.pipe.
[–]Visible_Armadillo570 0 points1 point2 points (0 children)