summaryrefslogtreecommitdiff
path: root/localvideowebencode
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2021-02-09 02:18:50 +0100
committerJonas Smedegaard <dr@jones.dk>2021-02-09 02:18:50 +0100
commit0004e32da94cfce8823a5b4a342b7ba087120116 (patch)
tree8eedd5c479321b20ef38ff564db5039ca47c7452 /localvideowebencode
parenta3ed6a0fdf3a706055b737beef59f350df78af92 (diff)
use AVC profile Main (not Baseline)
Diffstat (limited to 'localvideowebencode')
-rwxr-xr-xlocalvideowebencode8
1 files changed, 3 insertions, 5 deletions
diff --git a/localvideowebencode b/localvideowebencode
index 58a099a..4d24b89 100755
--- a/localvideowebencode
+++ b/localvideowebencode
@@ -279,7 +279,7 @@ q_avc=23
preset_avc=medium
profile_vp8=0
profile_vp9=0
-profile_avc=baseline
+profile_avc=main
case "$compression" in
normal) :;;
dirty)
@@ -324,12 +324,12 @@ if [ auto = "$gpu" ]; then
case $(vainfo --display drm --device "$gpudevice" 2>/dev/null | grep -Po 'VAProfile\S+\s*:\s*VAEntrypointVLD') in
*VAProfileVP8Version0_3*) no_gpu_decoder_vp8=;;
*VAProfileVP9Profile0*) no_gpu_decoder_vp9=;;
- *VAProfileH264ConstrainedBaseline*) no_gpu_decoder_avc=;;
+ *VAProfileH264Main*) no_gpu_decoder_avc=;;
esac
case $(vainfo --display drm --device "$gpudevice" 2>/dev/null | grep -Po 'VAProfile\S+\s*:\s*VAEntrypointEncSlice') in
*VAProfileVP8Version0_3*) no_gpu_encoder_vp8=;;
*VAProfileVP9Profile0*) no_gpu_encoder_vp9=;;
- *VAProfileH264ConstrainedBaseline*) no_gpu_encoder_avc=;;
+ *VAProfileH264Main*) no_gpu_encoder_avc=;;
esac
if [ -n "$no_gpu_decoder_vp8$no_gpu_decoder_vp9$no_gpu_decoder_avc" ]; then
case "$vainfo" in
@@ -346,13 +346,11 @@ case "$gpu" in
preset_vp8=medium
preset_vp9=medium
preset_avc=
- profile_avc=578
qkey_avc=qp
;;
vaapi)
multipass=
preset_avc=
- profile_avc=578
qkey_avc=qp
case "$compression" in
dirty)