Projects
Multimedia
ffhevc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 279
View file
ffhevc.changes
Changed
@@ -1,4 +1,11 @@ ------------------------------------------------------------------- +Sat Dec 13 12:40:00 UTC 2025 - microchip8@proton.me + +- Update to version 4.6.14 + * Detect type of content (HDR/SDR) and base default + CRF value on it + +------------------------------------------------------------------- Fri Dec 12 07:55:00 UTC 2025 - microchip8@proton.me - Update to version 4.6.13
View file
ffhevc-4.6.13.tar.gz/ChangeLog -> ffhevc-4.6.14.tar.gz/ChangeLog
Changed
@@ -1,3 +1,7 @@ +2025-12-13 - ffhevc 4.6.14 + * Detect type of content (HDR/SDR) and base default + CRF value on it + 2025-12-12 - ffhevc 4.6.13 * Fix: only ask to lower the CRF value when doing HDR encodings
View file
ffhevc-4.6.13.tar.gz/ffhevc -> ffhevc-4.6.14.tar.gz/ffhevc
Changed
@@ -4,8 +4,8 @@ # encoding to H.265/HEVC video using FFmpeg and libx265. # # Author: Grozdan "microchip" Nikolov <microchip8@proton.me> -# Version: 4.6.13 -# Date: 2025-12-12 +# Version: 4.6.14 +# Date: 2025-12-13 # # ffhevc is free software ; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -26,7 +26,7 @@ brown() { echo -e "\e0;33m$1\e0;39;49m"; } error() { echo -e "\e1;31m$1\e0;39;49m"; } -version="4.6.13" +version="4.6.14" CFG="$HOME/.ffhevc" cfgversion="100" @@ -718,6 +718,24 @@ ;; esac +echo +green "-> Detecting type of content..." +HDR10="$($FFPROBE -i "$input" -v quiet -select_streams v:$vidtrack -show_entries side_data -read_intervals %+1 | grep -i 'mastering' | tail -1)" +DOVI="$($FFPROBE -i "$input" -v quiet -select_streams v:$vidtrack -show_entries side_data -read_intervals %+1 | grep -i 'dolby' | tail -1)" +if ! -z "$HDR10" -a ! -z "$DOVI" ; then + hdrcontent="1" + green "-> Detected HDR10(+) and Dolby Vision HDR content" +elif ! -z "$HDR10" -a -z "$DOVI" ; then + hdrcontent="1" + green "-> Detected HDR10(+) content" +elif -z "$HDR10" -a ! -z "$DOVI" ; then + hdrcontent="1" + green "-> Detected Dolby Vision HDR content" +else + green "-> Detected SDR content" +fi +echo + case "$encmode" in 1-3p) printf "Specify the desired Video Bitrate in kbps default is 5000: " @@ -726,9 +744,14 @@ ;; ""|crf) if -z "$CRF" ; then - printf "Specify a CRF Value for the Encoding 0-51 - default is 22: " + if ! -z "$hdrcontent" ; then + DEFCRF="20" + else + DEFCRF="23" + fi + printf "Specify a CRF Value for the Encoding 0-51 - default is $DEFCRF: " read crf - test -z "$crf" && CRF="22" || CRF="$crf" + test -z "$crf" && CRF="$DEFCRF" || CRF="$crf" fi ;; esac @@ -1777,7 +1800,7 @@ ""|crf) if ! -z "$CRF" ; then echo - green "-> It is advised to lower the CRF value by 2 or 3 for HDR encodings" + green "-> It is recommended to lower the CRF value by 2 or 3 for HDR encodings" echo printf "Do you want to Change the current CRF Value of $CRF? y/N: " read chcrf
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
.