Skip to content

Conversation

@emranemran
Copy link
Collaborator

@emranemran emranemran commented Apr 7, 2024

When very large files are ingested, the segmented file list can be a very long list. This list of files are passed to ffmpeg commands which will may fail with a 'command: arg list too long' error (linux error and not ffmpeg error). This happens because the arg length exceeds the MAX_ARG limit which varies from kernel to kernel. To workaround this issue, we break down the list into smaller chunks and then concat those chunks to get the final concatenated file.

TODO: test on staging with a very large file

When very large files are ingested, the segmented file list can be a
very long list. This list of files are passed to ffmpeg commands which
will may fail with a 'command: arg list too long' error (linux error and
not ffmpeg error). This happens because the arg length exceeds the
MAX_ARG limit which varies from kernel to kernel. To workaround this
issue, we break down the list into smaller chunks and then concat those
chunks to get the final concatenated file.
@emranemran emranemran requested a review from thomshutt April 7, 2024 21:35
@thomshutt
Copy link
Contributor

I think this looks good, but I'm having trouble envisioning the final ffmpeg comand - could you throw a before / after example in here please?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants