Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 172
View file
ffx264.changes
Changed
@@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Thu Nov 21 15:25:00 UTC 2024 - neutrino8@gmail.com + +- Update to version 4.2.10 + * 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.2.9
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 4.2.9 +Version: 4.2.10 Release: %mkrel 1 Summary: A small shell script for encoding to H.264/AVC with FFmpeg License: GPL-2.0+
View file
ffx264-4.2.9.tar.gz/ChangeLog -> ffx264-4.2.10.tar.gz/ChangeLog
Changed
@@ -1,3 +1,8 @@ +2024-11-21 - ffx264 4.2.10 + * Added support for disabling automatic metadata + such as video title, audio codec names, etc + through the config file + 2024-11-18 - ffx264 4.2.9 * Fixed a bug in the audio metadata when copying the Dolby core audio that added "+ Atmos" to the
View file
ffx264-4.2.9.tar.gz/ffx264 -> ffx264-4.2.10.tar.gz/ffx264
Changed
@@ -2,7 +2,7 @@ # # Small script to encode to H.264/AVC video using FFmpeg and libx264. # Author: Grozdan "microchip" Nikolov <neutrino8@gmail.com> -# Version: 4.2.9 +# Version: 4.2.10 # Date: 2024-11-18 # # ffx264 is free software ; you can redistribute it and/or modify @@ -24,10 +24,10 @@ brown() { echo -e "\e0;33m$1\e0;39;49m"; } error() { echo -e "\e1;31m$1\e0;39;49m"; } -version="4.2.9" +version="4.2.10" CFG="$HOME/.ffx264" -cfgversion="43" +cfgversion="44" genconfig_func() { cat<<EOF>>"$CFG" @@ -110,7 +110,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" @@ -599,7 +603,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 @@ -2509,30 +2515,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 @@ -3502,7 +3510,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|,$||')" @@ -3655,7 +3666,7 @@ fi fi - if -z "$noaudmeta" ; then + if -z "$noaudmeta" -a "$AUTO_METADATA" = "y" ; then audmetadatai="${audmetai}" fi @@ -3770,7 +3781,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
.