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

Set custom Bitrate/Quality as default #3381

Closed
nicmichael opened this issue Apr 15, 2020 · 6 comments
Closed

Set custom Bitrate/Quality as default #3381

nicmichael opened this issue Apr 15, 2020 · 6 comments
Labels
💡 enhancement This issue describes an improvement, enhancement, or feature request for OpenShot stale This issue has not had any activity in 60 days :(

Comments

@nicmichael
Copy link

Question:

Is there any way to specify a default bitrate or quality for encoding? The current profiles don't seem to give that option.

I'm frequently exporting videos, always with the same settings:

  • mp4/h.264 with
    • video libx264 codec at 1.5 MB/s target bitrate
    • aac audio 48 khz 96 kb/s bitrate

These settings are somewhere in between the default quality options "medium" (which gives me too large of a file size) and "low" (which gives poor quality). Every time I export, I have to select "medium", then go to the "Advanced" tab and manually edit the bit rates for video and audio. Quite tedious. I wish users could configure a custom profile for not just resolution and frame rates, but also codecs and encoding settings. Or is this already possible somehow?

System Details:

  • OpenShot Version 2.5.1
  • Ubuntu 18.04
@nicmichael nicmichael added the question A general question about OpenShot or how to use it. Or visit www.openshot.org/forum/ label Apr 15, 2020
@injiniero
Copy link

injiniero commented Apr 15, 2020

Hi, @nicmichael
Yes, you can create a custom preset and save it at your /home/user/.openshot_qt/presets directory.
As an example, I've created this one for x264 crf encoding:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE openshot-export-option>
<export-option>
	<type translatable="True">All Formats</type>
	<title translatable="True">MP4 (h.264 crf)</title>
	<videoformat>mp4</videoformat>
	<videocodec>libx264</videocodec>
	<audiocodec>aac</audiocodec>
	<audiochannels>2</audiochannels>
	<audiochannellayout>3</audiochannellayout>
	<videobitrate
	 low="50 crf"
	 med="25 crf"
	 high="0 crf"></videobitrate>
	<audiobitrate
	 low="96 kb/s"
	 med="192 kb/s"
	 high="224 kb/s"></audiobitrate>
	<samplerate>44100</samplerate>
</export-option>

This is just a modified copy of the original /usr/lib/python3/dist-packages/openshot_qt/presets/format_mp4_x265_crf.xml file.

@nicmichael
Copy link
Author

Sweet! Thanks a lot @injiniero. I just got to try it out, and it works great. Saves me a lot of extra clicks. Thanks for the quick help.

@SuslikV
Copy link
Contributor

SuslikV commented Apr 19, 2020

@injiniero please edit your post to fix the formatting issues (code example extends to the end of the post, probably extra empty line is missing for separation).

@SuslikV
Copy link
Contributor

SuslikV commented Apr 20, 2020

@injiniero here what I mean:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE openshot-export-option>
<export-option>
	<type translatable="True">All Formats</type>
	<title translatable="True">MP4 (h.264 crf)</title>
	<videoformat>mp4</videoformat>
	<videocodec>libx264</videocodec>
	<audiocodec>aac</audiocodec>
	<audiochannels>2</audiochannels>
	<audiochannellayout>3</audiochannellayout>
	<videobitrate
	 low="50 crf"
	 med="25 crf"
	 high="0 crf"></videobitrate>
	<audiobitrate
	 low="96 kb/s"
	 med="192 kb/s"
	 high="224 kb/s"></audiobitrate>
	<samplerate>44100</samplerate>
</export-option>

This is just a modified copy of the original /usr/lib/python3/dist-packages/openshot_qt/presets/format_mp4_x265_crf.xml file.

@ctsdownloads ctsdownloads added 💡 enhancement This issue describes an improvement, enhancement, or feature request for OpenShot and removed question A general question about OpenShot or how to use it. Or visit www.openshot.org/forum/ labels May 21, 2020
@ctsdownloads
Copy link

This has been referenced in this Reddit thread as well.
https://www.reddit.com/r/OpenShot/comments/gnxenl/open_letter_to_jonathan_reddit_sticky_easy_fixes/

@stale
Copy link

stale bot commented Nov 17, 2020

Thank you so much for submitting an issue to help improve OpenShot Video Editor. We are sorry about this, but this particular issue has gone unnoticed for quite some time. To help keep the OpenShot GitHub Issue Tracker organized and focused, we must ensure that every issue is correctly labelled and triaged, to get the proper attention.

This issue will be closed, as it meets the following criteria:

  • No activity in the past 180 days
  • No one is assigned to this issue

We'd like to ask you to help us out and determine whether this issue should be reopened.

  • If this issue is reporting a bug, please can you attempt to reproduce on the latest daily build to help us to understand whether the bug still needs our attention.
  • If this issue is proposing a new feature, please can you verify whether the feature proposal is still relevant.

Thanks again for your help!

@stale stale bot added the stale This issue has not had any activity in 60 days :( label Nov 17, 2020
@stale stale bot closed this as completed Nov 27, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
💡 enhancement This issue describes an improvement, enhancement, or feature request for OpenShot stale This issue has not had any activity in 60 days :(
Projects
None yet
Development

No branches or pull requests

4 participants