ffmpeg Pipe question
Added by Lisa White about 2 years ago
Hey guys. I am trying out an iptv provider for 24 hours and I am getting transport stream aac dts discontinuity errors (buffering).
I decided to pipe the mux through ffmpeg using: "pipe:///usr/bin/ffmpeg -reconnect 1 -reconnect_at_eof 1 -reconnect_streamed 1 -reconnect_delay_max 2000 -probesize 1000k -analyzeduration 0 -fpsprobesize 0 -fflags -nobuffer -err_detect ignore_err -i "MY M3U" -codec copy -f mpegts -tune zerolatency pipe:1" and it works great.
Is there a way that I can set up the stream profile to have the same results as this pipe? Its a lot of work to pipe an m3u playlist and I thought that there maybe an easier way of doing this.
Thoughts?
Lisa~
Replies (1)
RE: ffmpeg Pipe question - Added by clint jones almost 2 years ago
Try the "for" command to make a list
here are my notes on making one that was successful some time ago adding the different parts of the command will become apparent as you experiment
by the looks of you FFmpeg command your plenty smart to make it work
make a list of names for ffmpeg (they where ran as a script and the list was some 40 Mp4's)
for f in *.mp4; do echo file \'$f\' >> filelist.txt; done
worked for file
I needed to add <source src="nambia1.mp4" type="video/mp4">
so I ended up with this
for f in *.mp4; do echo {name: \"$f\" \,src: \"$f\"\}, >> filelist1.txt; done {name: "2Pac Dr.Dre - California Love.mp4" ,src: "2Pac Dr.Dre - California Love.mp4"},
What I was doing was turning a long list of .mp4 files to .Mp3 and needed the list to concate and run through FFmpeg to make the conversion. in the end the "list" was a txt file which could be you IPTV list
this will not make individual muxes but could be an "automatic" file
good luck
Clint