derrod
578dc46a79
obs-ffmpeg: Remove legacy FFmpeg compatibility
2023-07-12 15:57:43 -04:00
David Rosca
5fdda179ed
obs-ffmpeg: Increase initial buffer fullness for VAAPI
...
Default ffmpeg initial buffer fullness (75%) is too low
and results in significantly lower video quality on AMD cards.
Changing it to 100% fixes the quality and also matches what
AMF encoder is doing.
2023-07-08 16:19:43 -07:00
David Rosca
17cb966c62
obs-ffmpeg: Add FFmpeg Options for VA-API
2023-05-20 16:56:39 -07:00
Lain
106c7aa61f
Update copyrights/names
2023-05-20 01:31:18 -07:00
Florian Zwoch
8b816eba8e
obs-ffmpeg: Fix compilation when ENABLE_HEVC is not set
...
When ENABLE_HEVC is not set the 'bool hevc' function parameter
is not being used in this function causing a warning and aborting
compilation.
2023-05-13 16:12:25 -07:00
Yuriy Chumak
1a05097304
obs-ffmpeg: Add HDR and HEVC to VA-API encoder
2023-03-24 15:16:10 -07:00
Kurt Kartaltepe
0fb89dc9a1
obs-ffmpeg: Fix crash during ratecontrol check
...
When iterating over an array of structs we incorrectly check for a null
pointer, but the actual sentinel value is the empty struct.
2023-03-04 16:07:12 -08:00
PatTheMav
6e0d802874
obs-ffmpeg: Fix non-exhaustive switch statements
2023-02-18 15:22:33 -08:00
jpark37
b7b7f0ae88
obs-ffmpeg: Set chroma location for VA-API
2022-12-11 14:12:36 -08:00
jpark37
e8792ac791
obs-ffmpeg: Improve chroma location decision
...
The chroma location doesn't just depend on pixel format, but we're just
trying to pick something reasonable for now.
2022-12-03 15:24:18 -08:00
tytan652
74b245431c
obs-ffmpeg: Use Libva in FFmpeg VA-API
...
Libva is directly used to check if DRI devices support H264 encoding.
2022-11-20 11:30:40 +11:00
PatTheMav
d87467666b
obs-ffmpeg: Replace invocations of sprintf with snprintf
...
Fixes deprecation warnings in Xcode 14/clang on macOS and reduces
chance of buffer overflows.
2022-11-11 19:51:28 +01:00
tytan652
17ba8359e4
deps,libobs,plugins: Fix discarded-qualifiers warnings with FFmpeg 5
2022-07-22 08:50:36 -04:00
Vainock
eb06594381
Use property suffixes for units everywhere
2022-07-22 08:24:51 -04:00
tytan652
6cc7cf3d55
obs-ffmpeg: Remove codec property from VAAPI encoder
...
Encoders have only one codec so this property is not needed.
Also rename the encoder to "FFMPEG VAAPI H.264".
2022-06-11 16:09:11 -07:00
tytan652
ce62240530
obs-ffmpeg: Fix compiler warnings
...
* obs-ffmpeg: Fix format-overflow warning
* obs-ffmpeg: Fix unused-parameter warnings
2022-05-04 01:37:10 -07:00
wangshaohui
db8145e8a2
obs-ffmpeg, win-dshow, deps/media-playback: Use recommended API for AVCodecContext
2022-04-07 01:59:30 -07:00
Norihiro Kamae
ba68eda590
obs-ffmpeg: Use av_packet_alloc instead of av_init_packet
...
sizeof(AVPacket) being a part of the public ABI is deprecated. once
av_init_packet() is removed, new packets will only be able to be
allocated with av_packet_alloc().
In ffmpeg-mux, ffmpeg-vaapi, and obs-ffmpeg-nvenc, AVPacket is allocated
at the initialization to avoid frequent allocation of AVPacket.
Includes changes to win-dshow.
2022-03-24 17:19:40 -07:00
Carlo Castoldi
4623a6b4bc
obs-ffmpeg: Set DRI devices and their name persistently
...
retrieving the DRI devices from /dev/dri/by-path/ instead of
/dev/dri/renderDXXX. This enable us to use lspci to get the device
name as well.
2021-12-12 11:12:36 +11:00
Matt Gajownik
a5878e1caa
obs-ffmpeg: Translate VAAPI property names
2021-07-31 15:09:29 -07:00
jpark37
b6afaceeae
Update VIDEO_CS_DEFAULT to mean 709 instead of 601
...
Consistent with modified default UI setting.
2020-09-06 20:51:28 -07:00
Douglas Rhine
b216b90a5c
obs-ffmpeg: Rename and add more VAAPI levels
...
The Auto level lets the encoder decide which level to use.
Furthermore, some devices allow levels beyond 4.2. Therefore,
we add all levels allowed by H.264. This is of importance,
since using a resolution not supported by the specified level
can trigger undefined behavior on the hardware/kernel.
2020-04-03 07:12:05 +01:00
Douglas Rhine
04d7ff5854
obs-ffmpeg: Expose VAAPI profile choices
...
Allow choosing Constrained Baseline, Main and High.
2020-04-02 18:10:03 +01:00
Yves Dionne
2841dfc6db
obs-ffmpeg: Enable VAAPI Rate Control
...
Enable choosing CBR, CQP and VBR.
2019-12-11 17:16:29 -05:00
Kurt Kartaltepe
d2f2aeb5d2
obs-ffmpeg: Remove unexposed vaapi parameters
...
In ffmepg 4.2 setting qp overrides bitrate, this option isnt exposed
currently so users cannot disable it.
2019-11-06 18:57:05 -08:00
jp9000
68a5a40df9
libobs, obs-ffmpeg, win-dshow: Fix FFmpeg 4.0 deprecation
...
Fixes FFmpeg 4.0 deprecation warnings.
2019-07-29 20:34:13 -07:00
jp9000
f53df7da64
clang-format: Apply formatting
...
Code submissions have continually suffered from formatting
inconsistencies that constantly have to be addressed. Using
clang-format simplifies this by making code formatting more consistent,
and allows automation of the code formatting so that maintainers can
focus more on the code itself instead of code formatting.
2019-06-23 23:49:10 -07:00
Jérémy Farnaud
525c473c4c
obs-ffmpeg: Fix VAAPI CBR
2019-05-11 17:20:24 -07:00
Clayton Groeneveld
31b73f8025
UI: Add ability to set properties spinbox suffix
2019-05-02 08:54:14 -07:00
Shaolin
54f4e2589a
plugins: Clear all compiler warnings
2019-03-29 06:29:09 -03:00
Thomas Crider
a64ae11bce
obs-ffmpeg: Add linux VAAPI h.264 encoding support
...
Closes obsproject/obs-studio#1482
Closes obsproject/obs-studio#1256
2018-09-24 23:12:24 -07:00