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

Convert video in a single ffmpeg call #5

Open
Logerfo opened this issue Dec 6, 2022 · 0 comments
Open

Convert video in a single ffmpeg call #5

Logerfo opened this issue Dec 6, 2022 · 0 comments
Labels
performance Performance related issue

Comments

@Logerfo
Copy link
Member

Logerfo commented Dec 6, 2022

I'm not sure how, but I think it's possible to merge the following calls to a single one, which can possibly be faster:

subprocess.Popen(['ffmpeg', '-y', '-i', MP4_FILE_NAME, '-vn', '-acodec', 'copy', AAC_FILE_NAME]).wait()
subprocess.Popen(['ffmpeg', '-y', '-i', AAC_FILE_NAME, '-map', '0:a:0', '-b:a', '41k', MP3_FILE_NAME]).wait()

@Logerfo Logerfo added the performance Performance related issue label Dec 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance related issue
Projects
None yet
Development

No branches or pull requests

1 participant