3 ms·
if it is just encoding/decoding ffmpeg can go entirely from stdin to stdout IIRC, provided formats support it. So for example it won't work for mp4 output as i
by ilyt 4y ago
if it is just encoding/decoding ffmpeg can go entirely from stdin to stdout IIRC, provided formats support it. So for example it won't work for mp4 output as it needs to seek to write some headers (again, IIRC) when saving it.
- password4321 4y agoThanks for the tip! I was hoping to combine lengthy h264 .mts video files chopped at 4GB by the video camera into one YouTube upload without duplicating on disk first. Edit: also maybe some simple filters/ML to detect anything interesting to clip and merge into a time lapse.
- ilyt 4y agoYeah forcing YT to accept it directly from ffmpeg would be the hardest part. I hit that behaviour when I tried to upload encode directly to S3 bucket, turned out only some formats worked
- password4321 4y agoMoviePy is pretty committed to working with files, and I couldn't quickly figure out PyAV pts/dts for the concat even though the files were all exactly the same format.
- cellularmitosis 4y agoHave you tried using a fifo file?
- j1elo 4y agoWouldn't it work if you stream the resulting video as a Youtube Live stream? You would have to set a stream up in the Youtube creator web page, in order to get a streaming key and with it, a full RTMP URL. Then in FFmpeg, use "-f rtmp://...your target url" as output. Youtube will stream a live video (which you can hide as "unlisted") and afterwards, the video will remain in the channel as a VOD.
- Sesse__ 4y agoIf you give the empty_moov parameter, the MP4 mux can write to a pipe (or a network stream).