Reputation: 61
I want to be able to write ffmpeg video output to stdout as if it was a normal file. I want the video to be able to be seekable (streamable videos can't), but I don't want to save it to disk immediately.
If I use
cat *.jpg | ffmpeg -f image2pipe -r 30 -i - -f mov - > 1.mp4
It errors because the mov format isn't streamable
muxer does not support non seekable output
Is there some way to force ffmpeg to pipe it as if it was a normal file?
Upvotes: 1
Views: 1366
Reputation: 93068
Not possible with MP4/MOV. ffmpeg generates the indices for streams in memory and writes them to file when all streams are EOF.
Works for me with MKV. Should work with MPEG-TS as well.
Upvotes: 1