Projects
Multimedia
ffhevc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 254
View file
ffhevc.changes
Changed
@@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Thu Nov 21 15:25:00 UTC 2024 - neutrino8@gmail.com + +- Update to version 4.5.11 + * Added support for disabling automatic metadata + such as video title, audio codec names, etc + through the config file + +------------------------------------------------------------------- Mon Nov 18 13:25:00 UTC 2024 - neutrino8@gmail.com - Update to version 4.5.10
View file
ffhevc.spec
Changed
@@ -17,7 +17,7 @@ Name: ffhevc -Version: 4.5.10 +Version: 4.5.11 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.10.tar.gz/ChangeLog -> ffhevc-4.5.11.tar.gz/ChangeLog
Changed
@@ -1,3 +1,8 @@ +2024-11-21 - ffhevc 4.5.11 + * Added support for disabling automatic metadata + such as video title, audio codec names, etc + through the config file + 2024-11-18 - ffhevc 4.5.10 * Fixed a bug in the audio metadata when copying the Dolby core audio that added "+ Atmos" to the
View file
ffhevc-4.5.10.tar.gz/ffhevc -> ffhevc-4.5.11.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.10 -# Date: 2024-11-18 +# Version: 4.5.11 +# Date: 2024-11-21 # # 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,10 +24,10 @@ brown() { echo -e "\e0;33m$1\e0;39;49m"; } error() { echo -e "\e1;31m$1\e0;39;49m"; } -version="4.5.10" +version="4.5.11" CFG="$HOME/.ffhevc" -cfgversion="83" +cfgversion="84" genconfig_func() { cat<<EOF>>"$CFG" @@ -112,7 +112,11 @@ SUBS="y" # Copy original metadata from input? -METADATA="n" +COPY_METADATA="n" + +# Add automatic metadata such as video +# title, audio codec names, etc? +AUTO_METADATA="y" # Copy chapters from input? CHAPS="y" @@ -600,7 +604,9 @@ FORLOOP_END="done" fi -METATITLE="-metadata title=\"$(basename "${OUTPUT%.*}")\" -metadata:s:v:0 title=\"$(basename "${OUTPUT%.*}")\"" +if "$AUTO_METADATA" = "y" ; then + METATITLE="-metadata title=\"$(basename "${OUTPUT%.*}")\" -metadata:s:v:0 title=\"$(basename "${OUTPUT%.*}")\"" +fi printf "Output to Additional Container Formats? y/N: " read acf @@ -2603,30 +2609,32 @@ # support strict="-strict -2" - if ! -z "$batchmode" ; then - echo - error "-> Due to current codebase limitations, automatic audio metadata" - error " will be that of the first provided input file. If all input files" - error " have the same audio properties (bit depth, sample rate, etc)" - error " this won't be an issue. Usually, complete seasons of film series" - error " have the same audio properties." - error " Otherwise you may want to:" - echo - error "-> Disable auto metadata completely" - echo - error "-> Enable it but you will need to modify the batchfile yourself and" - error " update the data to reflect the correct audio properties. Then" - error " encode from there." - echo - error "-> Encode each file individually (no batch mode). That way, you'll" - error " have correct audio metadata for all files." - echo - printf "Disable Automatic Audio Metadata? y/N: " - read noautometa - if "$noautometa" = "y" -o "$noautometa" = "Y" ; then - noaudmeta="1" + if "$AUTO_METADATA" = "y" ; then + if ! -z "$batchmode" ; then + echo + error "-> Due to current codebase limitations, automatic audio metadata" + error " will be that of the first provided input file. If all input files" + error " have the same audio properties (bit depth, sample rate, etc)" + error " this won't be an issue. Usually, complete seasons of film series" + error " have the same audio properties." + error " Otherwise you may want to:" + echo + error "-> Disable auto metadata completely" + echo + error "-> Enable it but you will need to modify the batchfile yourself and" + error " update the data to reflect the correct audio properties. Then" + error " encode from there." + echo + error "-> Encode each file individually (no batch mode). That way, you'll" + error " have correct audio metadata for all files." + echo + printf "Disable Automatic Audio Metadata? y/N: " + read noautometa + if "$noautometa" = "y" -o "$noautometa" = "Y" ; then + noaudmeta="1" + fi + echo fi - echo fi for i in $(eval echo "{1..$ATRACKS}"); do @@ -3579,7 +3587,10 @@ esac fi - audmetai="-metadata:s:a:${audindexi} title=\"${acdcmetai}${achmetai}${abtrmetai}${ahzmetai}${abdmetai}\"" + if "$AUTO_METADATA" = "y" ; then + audmetai="-metadata:s:a:${audindexi} title=\"${acdcmetai}${achmetai}${abtrmetai}${ahzmetai}${abdmetai}\"" + fi + audchani="-ac:${audindexi} ${achi} -channel_layout:a:${audindexi} \"${achlayouti}\"" afiltersi="$(echo "${aresamplei}${anormalizei}${avolumei}$atempo" | sed 's|,$||')" @@ -3732,7 +3743,7 @@ fi fi - if -z "$noaudmeta" ; then + if -z "$noaudmeta" -a "$AUTO_METADATA" = "y" ; then audmetadatai="${audmetai}" fi @@ -3846,7 +3857,7 @@ input="\$i" fi -test "$METADATA" = "n" && METADATA="-map_metadata -1" || METADATA="-map_metadata 0" +test "$COPY_METADATA" = "n" && METADATA="-map_metadata -1" || METADATA="-map_metadata 0" test "$CHAPS" = "n" && CHAPS="-map_chapters -1" || CHAPS="-map_chapters 0"
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
.