Commit Graph

237 Commits

Author SHA1 Message Date
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
2ca84217bc First changes to use Settings instead of GetEnv 2019-01-30 09:58:54 -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
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
f009b0f46c Fix default sizes on readers without MAX_WIDTH and MAX_HEIGHT settings (#188) 2019-01-22 22:14:30 -06:00
Jonathan Thomas
7b6eb9c21b Integration of resvg SVG library (optional during build) (#185)
* Integration of libresvg SVG library (optional during build)

* Major refactor of max_width and max_height for preview optimization

* Fixed many bugs related to preview resizing, with regards to cached frames

* Updating gitlab CI to find RESVGDIR correctly for windows, and adding svgz support

* Updating cmake findresvg module to search for windows locations first, to prevent an issue on our windows builders and updating some CMake output.

* Removing folder path from resvg header, since it could be installed in different named folders. This is an attempt to fix Windows include issues.

* Making call to AV_FREE_FRAME conditional for non windows systems (because it crashes on Windows for seemingly no reason). Needs more investigation.
2019-01-19 02:18:52 -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
de1bd4f506 Typos in Windows part 2018-12-09 09:02:46 -08:00
eisneinechse
23e287110d Bring Windows and Mac up to date 2018-12-08 18:11:06 -08:00
eisneinechse
70954f800c Typo, plus removed hack for my hardware 2018-12-08 15:54:29 -08:00
eisneinechse
d07e851823 Hardware decode and encode can now be configured completely in
Preferences->Performance. The old enable hardware decode is disabled.
Now the graphics card can be chosen (0 is the first one) that should
be used for encode and/or decode. They needn't be the same!
nVidia decode still not working
nVidia encode is working with driver 396
Vaapi should be working. mesa-va-drivers must be installed for AMD
 i965-va-driver must be installed for intel GPUs.
Using one card to decode and one to encode an option with laptops
with an iGPU and a dedicated GPU (dGPU), as an example.
2018-12-08 10:34:24 -08:00
eisneinechse
7cadeb364b More cleanup 2018-11-26 18:08:08 -08:00
eisneinechse
1713fecc90 More adjustments to enable hardware decode with nvdec/cuvid 2018-11-26 13:31:53 -08:00
eisneinechse
e7f2494040 First changes to make hardware accelerated DECODE work with decoders
other than vaapi. Encode is already working for nvenc; nvidia driver
396 has to be installed for nvenc to work. On nVidia card turn
accelerated decode off in Preferences->Performance for now
2018-11-26 09:36:21 -08:00
eisneinechse
514cb11340 When multiple graphics cards are installed the import with hardware
acceleration has to have the card number set or the opening of the
device will fail.
TODO check multiple formats. Right now only the first is checked
which is vaapi.
2018-11-25 20:28:25 -08:00
eisneinechse
533c59ae97 Merge branch 'develop' into hardware-support 2018-09-26 09:44:59 -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
f2323da447 Preparation to choose the graphics card not by name but by number
1, 2, 3.  First implementation just for Linux and decode
2018-09-19 17:51:21 -07:00
eisneinechse
0b260a9087 Code cleanup and move messages regarding hardware acceleration to
Debug Logger
2018-09-18 15:31:34 -07:00