Commit Graph

197 Commits

Author SHA1 Message Date
eisneinechse
aff1be93b8 Support for multiple input files 2018-09-09 10:54:31 -07:00
eisneinechse
c29bf21c75 Simplifications of FFmpegReader and start of setting parameters
per input file
2018-09-09 09:05:16 -07:00
eisneinechse
2a80ccacaa Let hw_de_on be visible to all versions of ffmpeg 2018-09-08 22:57:46 -07:00
eisneinechse
d6f52ead3b Only use the hw accel variables when ffmpeg >= 3.2 2018-09-08 22:30:16 -07:00
eisneinechse
e7c94e700a hide dx11 2018-09-08 22:19:41 -07:00
eisneinechse
36cbba2a3d More cleanup 2018-09-08 21:55:23 -07:00
eisneinechse
0191ff5dbb Further cleanup 2018-09-08 21:32:04 -07:00
eisneinechse
e7c1ced0da Cleanup import video hardware accelerated and first attempt with
nvidia cards.
Still no error handling when the dimensions of the video are too
large
2018-09-08 21:17:24 -07:00
eisneinechse
063faefa69 Hardware acceleration for Windows and Mac, still disabled but code is there.
This should show where modifications are to be made to support Linux, Mac, and Windows
Only decoding, encoding will follow soon
2018-09-04 10:08:01 -07:00
eisneinechse
314177bceb Let the user choose which installed graphics card to use for
decoding HW_DE_DEVICE_SET and/or encoding HW_EN_DEVICE_SET
Possible options are /dev/dri/renderD128 for the first,
/dev/dri/renderD129 for the second, and so on.
2018-09-02 18:46:04 -07:00
eisneinechse
384b6e0bc3 Set limit of threads for OpenMP and ffmpeg by setting the environment
variables LIMIT_OMP_THREADS and LIMIT_FF_THREADS
If they are not set the normal values are used
2018-08-31 21:50:23 -07:00
eisneinechse
340803e31e Initial rudimentary support for hardware acceleration (encode and decode)
Only Linux vaapi for now
2018-08-31 21:36:23 -07:00
Jonathan Thomas
6b5e2d427b Moving omp taskwait to after the ProcessVideoPacket() method, since that is the only place it is useful. 2018-08-12 00:36:03 -05:00
Jonathan Thomas
8216795c33 Adding environment checking to enable/disable omp taskwait after each video/audio frame is processed. This is experimental for some users with crashes. 2018-08-12 00:15:23 -05:00
Jonathan Thomas
95abdcf66b FFmpeg4 support. Compile warnings fixes. Credit goes to many people, including ferdnyc, peterM, and other awesome folks! 2018-08-11 18:22:18 -05:00
Jonathan Thomas
435932f415 Fixing another issue where larger FPS files are incorrectly changed to a different FPS 2018-08-02 00:40:44 -05:00
Jonathan Thomas
93c1e2eb49 Fixing bitrate calculation (to be in bytes instead of bits), and adding in FPS detection for files which don't have valid FPS. In those cases (streaming files for example), we iterate through all packets, and average the # of frames, duration, bit rate, etc... Not idealy, but a better fallback. 2018-07-25 02:24:01 -05:00
Jonathan Thomas
cc17315fa7 Merge branch 'develop' into release 2018-06-29 23:48:47 -05:00
Jonathan Thomas
9972600931 Default to AAC audio codec (#135)
* Adding strict experimental to FFmpegReader and Writer (hopefully allowing all the encoders to be used)

(cherry picked from commit 1bcd1e5)

* init all formats and codecs before checking if valid

(cherry picked from commit 7250226)
2018-06-29 15:06:34 -05:00
Jonathan Thomas
694ee7c24e New experimental protections for FFmpegReader::GetFrame, and better frame ordering. Thanks @PeterM! (#125) 2018-06-21 02:44:08 -05:00
Jonathan Thomas
bc5607910d Fixing audio pops due to resampling (this fixes a bunch of audio popping-related bugs). Now Frame objects track their own max_audio_sample_count, as we add audio data... so we have an accurate bounds on each frame. 2018-05-30 03:20:31 -05:00
Jonathan Thomas
a4c1b818ba Don't remove nearby working frames (trying to catch less things in our too old logic). This prevents lots of invalid cache situations during preview. 2018-05-27 00:12:50 -05:00
Rich Alloway
f6eb6ff96b Increase valid frame rates to 240 fps since many cameras now support this higher frame rate 2018-05-15 15:49:11 -04:00
Jonathan Thomas
54d6cf5995 Removing old frames from WorkingCache (when no longer needed). This helps prevent freezing looking for old frame data on certain videos. 2018-04-14 18:01:27 -05:00
Jonathan Thomas
2233496066 Changing some Seek values to be more accurate, and fixes a race condition with Timeline_Tests.cpp. Also increasing the default amount of cache in FFmpeg, based on the # of processors, to better support high framerate videos. 2018-04-14 16:25:13 -05:00