Commit Graph

201 Commits

Author SHA1 Message Date
Jonathan Thomas
62d7fb5459 Changing some libopenshot code based on Codacy feedback. Small refactoring, scope limiing. 2020-06-04 18:52:19 -05:00
Jonathan Thomas
2834e7731b Merge pull request #445 from eisneinechse/develop
Newer codecs (svt_av1, rav1e, svt_hevc)
2020-06-02 14:50:01 -05:00
eisneinechse
d9e6af5cda Refert last commit 2020-06-02 11:35:07 -07:00
Jonathan Thomas
7ed26cf022 Replace _Pragma with #pragma
Co-authored-by: Frank Dana <ferdnyc@gmail.com>
2020-06-02 13:30:05 -05:00
eisneinechse
93d12e7f14 Include data for fps in clip created by ffmpeg 4+ 2020-06-02 08:53:39 -07:00
Jonathan Thomas
e4dd72669f Fix FPS setting on FFmpeg 4, which currently is not setting a valid FPS. 2020-06-01 13:24:07 -05:00
Frank Dana
6336f30ee3 Various: Remove unused variables (#467)
Several data members and local variables were flagged by static
analysis tools as never being used anywhere in the code.
2020-04-22 02:02:55 -04:00
SuslikV
c28a8bf4ed Fix float to int16_t conversion
Float values after mix or gain applied can exceed the (1.0; -1.0)
range. This caused distortion in audio instead of limiting values
at max.
2020-03-16 14:41:49 +02:00
eisneinechse
6476f930bb Simplify fix for RAWVIDEO handling for ffmpeg 4+ 2020-03-01 17:10:39 -08:00
eisneinechse
ddd52460e1 Fix handling of RAWIMAGE under ffmpeg 4 2020-03-01 16:59:06 -08:00
Jonathan Thomas
4ddf775cdf Merge pull request #421 from ferdnyc/ffmpegwriter-opts
FFmpegWriter: Overload Set___Options() methods
2020-02-27 15:27:31 -06:00
eisneinechse
e03cd87373 Initial svt-hevc (h.265) encoder support added 2020-02-17 10:56:00 -08:00
eisneinechse
6711c9c788 Minor improvements 2020-02-16 19:16:45 -08:00
eisneinechse
f63c1e0a65 Newer codecs 2020-02-16 10:00:18 -08:00
FeRD (Frank Dana)
7867cf01b8 Reorder arguments in setVideoOptions overload
- The new ordering (with the frame rate AFTER width and height) doesn't
  match the other signature, but it *is* consistent with the Timeline
  constructor, and it just feels more natural
- Added overloaded-function notes to doxygen strings in FFmpegWriter.h
- Also added a warning about the argument order mismatch above
2020-02-14 11:53:28 -05:00
FeRD (Frank Dana)
e74d71f545 FFmpegReader/Writer: limit hwaccel to FFmpeg 3.4+
Add a new #define HAVE_HW_ACCEL, which is only set on FFmpeg 3.4+,
and use that to restrict the use of hw-accel features, leaving
IS_FFMPEG_3_2 to determine only whether code is compatible with
FFmpeg 3.2+.
2020-02-10 01:50:31 -05:00
FeRD (Frank Dana)
0a063b84b7 FFmpegWriter: Overload Set___Options() methods
Add overloaded forms of SetVideoOptions() and SetAudioOptions()
that apply some sensible defaults to rarely-changed parameters.
2020-01-31 03:53:53 -05:00
Jonathan Thomas
4e91a2acf3 Merge pull request #387 from ferdnyc/switch-enums
Ensure switch statements on enums cover all values
2020-01-02 14:38:08 -06:00
Jonathan Thomas
8c91db610e Merge pull request #389 from ferdnyc/sign-compare
Don't compare differently-signed types
2020-01-02 14:37:09 -06:00
Jonathan Thomas
64d93404de Merge pull request #398 from ckirmse/fix_buffer_read
correctly calculate remaining_frame_samples
2020-01-02 14:29:51 -06:00
Jonathan Thomas
b8d3514ef6 Merge pull request #391 from ckirmse/fix_audio_crash
fix incorrect buffer size being passed to avcodec_fill_audio_frame
2020-01-02 14:28:35 -06:00
Chris Kirmse
d60678af0d correctly calculate remaining_frame_samples
- sometimes the output from the SWR_CONVERT is not the exact amount we asked for
- without this fix, the old code would sometimes read past the end of a buffer
- valgrind complained about the old code
- read https://stackoverflow.com/questions/39587839/libswresample-swr-convert-not-producing-enough-samples
2019-12-27 09:54:57 -08:00
FeRD (Frank Dana)
cbf1f17059 Merge branch 'develop' into sign-compare 2019-12-25 16:35:04 -05:00
Chris Kirmse
4806f2ff75 fix incorrect buffer size being passed to avcodec_fill_audio_frame
- most of the time the fixed number being sent in was large enough,
  but not always
- also added logging if avcodec_fill_audio_frame fails
2019-12-18 18:27:04 -08:00
FeRD (Frank Dana)
e502f97d8a Don't compare differently-signed types 2019-12-15 14:22:59 -05:00