Commit Graph

241 Commits

Author SHA1 Message Date
eisneinechse
ddacd241e3 Merge branch 'develop' into hardware-support 2019-02-28 09:58:28 -08:00
Jonathan Thomas
728e0022a2 MP3 Special Handling & Missing Frame Refactor (#196)
* Handle MP3 files with special logic, since they typically only have 1 frame of video

* Better support for missing frames (handling of missing audio and missing video data separated), and fixed a missing audio regression.
2019-02-27 23:25:54 -06:00
eisneinechse
a2b8eaff37 Allow to use nvenc and nvdec in Windows for nVidia cards.
nVidia card don't use the DX API like intel or AMD cards.
If ffmpeg and the libraries are compiled with nvenc and
nvdec support on WIndows this should(!) now work.
2019-02-15 10:11:45 -08:00
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
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