Projects
Multimedia
ffhevc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 259
View file
ffhevc.changes
Changed
@@ -1,4 +1,15 @@ ------------------------------------------------------------------- +Mon Dec 09 15:23:00 UTC 2024 - neutrino8@gmail.com + +- Update to version 4.5.16 + * Moved cropping code into its own function and display + informative crop values message when running in batch + mode + * Add hdr10-opt=1 option when in batch mode and using + HDR10 + * Set default audio volume filter value to 2dB + +------------------------------------------------------------------- Tue Dec 03 15:38:00 UTC 2024 - neutrino8@gmail.com - Update to version 4.5.15
View file
ffhevc.spec
Changed
@@ -17,7 +17,7 @@ Name: ffhevc -Version: 4.5.15 +Version: 4.5.16 Release: %mkrel 1 Summary: A small shell script for encoding to H.265/HEVC with FFmpeg License: GPL-2.0+
View file
ffhevc-4.5.15.tar.gz/ChangeLog -> ffhevc-4.5.16.tar.gz/ChangeLog
Changed
@@ -1,3 +1,11 @@ +2024-12-09 - ffhevc 4.5.16 + * Moved cropping code into its own function and display + informative crop values message when running in batch + mode + * Add hdr10-opt=1 option when in batch mode and using + HDR10 + * Set default audio volume filter value to 2dB + 2024-12-03 - ffhevc 4.5.15 * Only ask once for HDR10 side data in batch mode * Use AQ Mode 1 (Uniform) for the built-in script
View file
ffhevc-4.5.15.tar.gz/ffhevc -> ffhevc-4.5.16.tar.gz/ffhevc
Changed
@@ -2,8 +2,8 @@ # # Small script to encode to H.265/HEVC video using FFmpeg and libx265. # Author: Grozdan "microchip" Nikolov <neutrino8@gmail.com> -# Version: 4.5.15 -# Date: 2024-12-03 +# Version: 4.5.16 +# Date: 2024-12-09 # # ffhevc is free software ; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -24,7 +24,7 @@ brown() { echo -e "\e0;33m$1\e0;39;49m"; } error() { echo -e "\e1;31m$1\e0;39;49m"; } -version="4.5.15" +version="4.5.16" CFG="$HOME/.ffhevc" cfgversion="86" @@ -1727,7 +1727,7 @@ echo " hdrsdsd=\"\$(grep \"^\${sdarraysd}\" \"\$HDRFILE\" | tail -1 | awk -F= '{print \$2}' | awk -F/ '{print \$1}')\"" echo " done" echo " rm -f \"\$HDRFILE\"" - echo " hdr_encopts=\":open-gop=0:repeat-headers=1\"" + echo " hdr_encopts=\":hdr10-opt=1:open-gop=0:repeat-headers=1\"" echo " mast_disp=\"G(\${hdrsd0},\${hdrsd1})B(\${hdrsd2},\${hdrsd3})R(\${hdrsd4},\${hdrsd5})WP(\${hdrsd6},\${hdrsd7})L(\${hdrsd9},\${hdrsd8})\"" echo " max_cll=\":max-cll=\${hdrsd10},\${hdrsd11}\"" } @@ -1749,16 +1749,9 @@ } if "$AUTOCROP" = "y" ; then - if ! -z "$batchmode" ; then - printf "Auto-Crop the Input Files? y/N: " - read autocrop - if "$autocrop" = "y" -o "$autocrop" = "Y" ; then - CROPVAL="\$($FFMPEG -ss \$((\$VLENGTH/2)) -i \"\$i\" $vidmap -vf cropdetect -frames:v 1000 -f null - 2>&1 | awk '/crop/ {print \$NF}' | awk -F= '{print \$2}' | tail -1)" - crop="crop=\$CROPVAL," - fi - else + video_crop_func() { echo - green "-> Detecting crop values..." + green "-> ${INFO}Detecting crop values..." video_length_func file if -z "$VLENGTH" -o "$VLENGTH" = "N/A" ; then vlength="300" @@ -1767,11 +1760,23 @@ fi CROPVAL="$($FFMPEG -ss $(($vlength/2)) -i "$input" $vidmap -vf cropdetect -frames:v 1000 -f null - 2>&1 | awk '/crop/ {print $NF}' | awk -F= '{print $2}' | tail -1)" if ! -z "$CROPVAL" ; then - green "-> Found crop values: $CROPVAL" + green "-> ${INFO}Found crop values: $CROPVAL" else - error "-> Could not find the crop values!" + error "-> ${INFO}Could not find the crop values!" CDEF="???" fi + } + if ! -z "$batchmode" ; then + printf "Auto-Crop the Input Files? y/N: " + read autocrop + if "$autocrop" = "y" -o "$autocrop" = "Y" ; then + INFO="INFO: " + CROPVAL="\$($FFMPEG -ss \$((\$VLENGTH/2)) -i \"\$i\" $vidmap -vf cropdetect -frames:v 1000 -f null - 2>&1 | awk '/crop/ {print \$NF}' | awk -F= '{print \$2}' | tail -1)" + crop="crop=\$CROPVAL," + video_crop_func + fi + else + video_crop_func echo CROPDETERMINED="n" while "$CROPDETERMINED" != "y" ; do @@ -3356,9 +3361,9 @@ printf "Track $i: Set the Audio Volume? y/N: " read setavoli if "${setavoli}" = "y" -o "${setavoli}" = "Y" ; then - printf "Track $i: Specify the Audio Volume value in dB -100-100 - default is 4.0: " + printf "Track $i: Specify the Audio Volume value in dB -100-100 - default is 2.0: " read avoli - test -z "${avoli}" && audvoli="4" || audvoli="${avoli}" + test -z "${avoli}" && audvoli="2" || audvoli="${avoli}" avolumei="volume=${audvoli}dB," fi fi
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.