Distributed encode of one file
Is your feature request related to a problem? Please describe. I would like to be able to have ffmpeg split a file into multiple chunks to then be sent to different nodes to all work on one file at once. This could help with in a setup with multiple nodes spread across different networks using something like rclone to connect to the main server with limited internet and still help out.
Describe the solution you'd like
- When a file is sent for transcoding, ffmpeg splits it into smaller chunks (10-15 seconds or user decided) and sent to multiple nodes.
- After the encode job is finished, the files get merged back together into one episode.
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Additional context I saw a comment on Reddit about how audio can possibly by choppy if done in chunks if it's not quiet. Encoding the audio as one stream and then adding it back in when stitching the chunks together could be a solution.
I spent a few months on a project to do this but every now and then the audio/video desyncs with certain files/formats so it's not 100% reliable atm. I seem to remember it still being an issue even when doing all the audio as a single chunk.