Commit Graph

144 Commits

Author SHA1 Message Date
eisneinechse
334a46cc5d Fix check if GPU can be used for encoding and decoding 2019-02-01 03:38:44 -08:00
eisneinechse
2e635e3d87 Formating and Cleanup
Fix forgotten break in switch
2019-01-31 09:42:26 -08:00
eisneinechse
596ae0efac More changes to move to Settings, still needs work 2019-01-30 20:44:36 -08:00
eisneinechse
7e3669b620 Formating 2019-01-29 12:38:52 -08:00
eisneinechse
05fb797776 Move the check if hw accell ecoding is used with crf to the right place 2019-01-29 10:26:10 -08:00
eisneinechse
3ea28d692d Merge branch 'develop' into hardware-support 2019-01-28 20:22:24 -08:00
Jonathan Thomas
1bf3e37567 Refactor FFmpegWriter Open() and PrepareStreams() methods, so that SetOption() is can be called between them, and allowed to adjust the codecs bit_rate and options before we call open_video(). This was primarily to allow CRF options to work. (#193) 2019-01-28 12:28:35 -06:00
eisneinechse
39bf06b3d3 Now VP8, VP9, h.264, h.265 have working crf 2019-01-27 10:50:23 -08:00
eisneinechse
1a44bd789c Make sure that crf is not set in SetOptions 2019-01-27 10:26:20 -08:00
eisneinechse
46051fbba1 Form follows function
Moved crf back to SetVideoOptions and adjusted parameters
Now h.264 and VP9 have working crf
Some small changes in preparation for Settings
2019-01-27 10:07:40 -08:00
Jonathan Thomas
f66ccb11c4 Set video bit rate to 0 if an invalid bit rate detected (which happens when using crf) (#191) 2019-01-26 17:56:15 -06:00
eisneinechse
9aeec7d90f Set the bitrate to 0 if no valid value was given. It is needed for
the crf lossless setting
2019-01-26 12:22:09 -08:00
eisneinechse
29b5fcac60 Merge branch 'develop' into hardware-support 2019-01-25 13:07:26 -08:00
Jonathan Thomas
0587ada6dc Integrate Constant Rate Factor (CRF) for FFmpegWriter (#186)
* First implementation of CRF (Constant Rate Factor)

* Include AV1 in the codecs that can use crf

* First version that uses SetOption to set crf quality

* Clarify comments

* Delete setting the bitrate for crf in SetVideoOption because it
is not needed, it is set later with SetOptions.
2019-01-25 00:15:07 -06:00
eisneinechse
662ed77263 Merge branch 'develop' into hardware-support 2019-01-18 16:42:46 -08:00
Jonathan Thomas
13bd272ead Adding new settings class to be used for changing realtime settings used by libopenshot, such as scaling mode for preview vs final render, or hardware decode, etc... 2019-01-09 16:50:40 -06:00
Jonathan Thomas
e0ec603965 Fixing Scale Mode (None) in previews (#182)
* Handle SCALE_NONE mode when optimized for previews (previews are often smaller than the project size)

* Fixing 2 memory leaks (thanks PeterM)
2019-01-09 00:56:49 -06:00
eisneinechse
e10695f9d4 Fixed two memory leaks 2018-12-20 09:18:26 -08:00
eisneinechse
4dcc72a769 Fixed bug compiling for older ffmpeg versions < 3.2 2018-12-19 09:12:15 -08:00
eisneinechse
325f58f773 Changes to use AV1 if ffmpeg >= 4.0 is used with libaom support 2018-11-15 22:04:20 -08:00
eisneinechse
53eec32d9e In case CRF is not supported like in hardware accelerated codecs
or in mpeg2 a bitrate is calculated that should be close to the
one expected with the given CRF value.
2018-09-25 08:04:48 -07:00
eisneinechse
0227397339 Set the graphics card used to decode or encode by setting the
environment variable HW_EN_DEVICE_SET for enncoding and
HW_DE_DEVICE_SET for decoding. The first card is 0, the second 1
and so on. For now only running on Linux.
2018-09-19 21:37:12 -07:00
eisneinechse
0b260a9087 Code cleanup and move messages regarding hardware acceleration to
Debug Logger
2018-09-18 15:31:34 -07:00
Jonathan Thomas
41f5c07ceb Merge branch 'hardware-support' of github.com:OpenShot/libopenshot into hardware-support 2018-09-18 14:46:18 -05:00
Jonathan Thomas
1f36d12298 Moving delcaration outside of conditional compile logic (so Windows and Mac builds work) 2018-09-18 14:45:56 -05:00