Commit Graph

248 Commits

Author SHA1 Message Date
Jonathan Thomas
fad8f40cf5 Simplifying hardware decoder logic (when looking for pixmap) 2019-04-30 17:43:15 -05:00
Jonathan Thomas
cdb4ae5483 Fixing crash on Mac due to juce::String again 2019-04-29 17:05:13 -05:00
Jonathan Thomas
2bafe60448 Removing 0 cases, and adding new QSV decoder support (experimental) 2019-04-28 17:18:43 -05:00
Jonathan Thomas
3bd2ae5f23 Integrating VDPAU decoding into libopenshot 2019-04-28 14:03:45 -05:00
eisneinechse
19f5fa37f2 Replace qsv with videotoolbox for MacOS codec library.
Windows and MacOS is not tested! We need users who test it.
2019-04-18 16:41:11 -07:00
Jonathan Thomas
893b91b528 Adding doc/HW-ACCEL.md document, code reformatting, some variable renaming 2019-04-18 01:07:57 -05:00
eisneinechse
48a2656080 AVoid crashes with mp3 that are tagged by
removing AV_ALLOCATE_IMAGE(pFrame, AV_GET_CODEC_PIXEL_FORMAT( ...
2019-03-01 16:32:52 -08:00
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