Skip to content

Take bitrate into account#9

Open
MagicLike wants to merge 3 commits intoFarisHijazi:masterfrom
MagicLike:keep-bitrate
Open

Take bitrate into account#9
MagicLike wants to merge 3 commits intoFarisHijazi:masterfrom
MagicLike:keep-bitrate

Conversation

@MagicLike
Copy link
Copy Markdown

After I used the tool for the first time I noticed the bitrate got absolutely obliterated, so I tried my best to hack a solution together which detects the original bitrate and applies it onto the output file. For this I chose h264 with a crf value of 18 and aac audio encoding for the best quality-size-compatability compromise.
Please check this thoroughly before merging (or just don't merge), as I don't have a big knowledge of python nor ffmpeg and I only did some minor testing with a few files, but I think this is a good-ish approach.
Obviously triggers/options for the encoder to be used and if audio should also be cut would be even better, but for now I think this would be a great addition.

The original bitrate gets detected and applied onto the output file
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.

1 participant