We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Giving the command line options like below defeats the purpose of having a python wrapper for FFmpeg:
>>> ff = FFmpeg( ... inputs={'input.ts': None}, ... outputs={'output.mp4': '-c:a mp2 -c:v mpeg2video'} ... )
and
>>> ff = FFmpeg( ... inputs={'input.ts': None}, ... outputs={ ... 'video.mp4': ['-map', '0:0', '-c:a', 'copy', '-f', 'mp4'], ... 'audio.mp4': ['-map', '0:1', '-c:a', 'copy', '-f', 'mp4'] ... } ... )
Instead consider using an object oriented approach to do the same thing:
input = InputBuilder(fileName) .codec(codec) .filter(filter) ... etc .build() ff = FFmpeg( inputs = [input], outputs = [output] ) ff.run()
With this approach you gain the following:
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Giving the command line options like below defeats the purpose of having a python wrapper for FFmpeg:
and
Instead consider using an object oriented approach to do the same thing:
With this approach you gain the following:
The text was updated successfully, but these errors were encountered: