Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

transmux: use smaller chunks when concatenating long list of files #1212

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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.
@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.

2 participants