Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 133
View file
ffx264.changes
Changed
@@ -1,4 +1,14 @@ ------------------------------------------------------------------- +Mon Oct 28 05:30:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 4.0.0 + * Added support for director/cast metadata for MP4/MOV/M4V + * Added +use_metadata_tags to the $movflags variable for MP4/MOV/M4V + * Support ADPCM encoding for DTS audio + * Fixed an issue where asking for director/cast occured multiple + times if remuxing to other containers was enabled + +------------------------------------------------------------------- Sun Oct 27 07:28:00 UTC 2019 - neutrino8@opensuse.org - Update to version 3.9.9
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 3.9.9 +Version: 4.0.0 Release: 0 Summary: A small shell script for encoding to H.264/AVC with FFmpeg License: GPL-2.0+
View file
ffx264-3.9.9.tar.gz/ChangeLog -> ffx264-4.0.0.tar.gz/ChangeLog
Changed
@@ -1,3 +1,10 @@ +2019-10-28 - ffx264 4.0.0 + * Added support for director/cast metadata for MP4/M4V/MOV + * Added +use_metadata_tags to the $movflags variable for MP4/M4V/MOV + * Support ADPCM encoding for DTS audio + * Fixed an issue where asking for director/cast occured multiple + times if remuxing to other containers was enabled + 2019-10-27 - ffx264 3.9.9 * Use 16 bits as bit depth metadata when encoding to TrueHD audio * Removed an unneeded if conditional in the audio bit depth code
View file
ffx264-3.9.9.tar.gz/ffx264 -> ffx264-4.0.0.tar.gz/ffx264
Changed
@@ -2,8 +2,8 @@ # # Small script to encode to H.264/AVC video using FFmpeg and libx264. # Author: Grozdan "microchip" Nikolov <neutrino8@opensuse.org> -# Version: 3.9.9 -# Date: 2019-10-27 +# Version: 4.0.0 +# Date: 2019-10-28 # # ffx264 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 "\e[0;33m$1\e[0;39;49m"; } error() { echo -e "\e[1;31m$1\e[0;39;49m"; } -version="3.9.9" +version="4.0.0" CFG="$HOME/.ffx264" cfgversion="40" @@ -434,7 +434,7 @@ CONFMT="$(echo "$CONFMT" | tr '[:upper:]' '[:lower:]')" if [ ! -z "$CONFMT" ]; then case "$CONFMT" in - mp4|m4v|mov) movflags="-movflags +faststart+frag_keyframe" ;; + mp4|m4v|mov) movflags="-movflags +faststart+frag_keyframe+use_metadata_tags" ;; avi|m2ts|mts|ts) annexb="-bsf:v h264_mp4toannexb" ;; mkv|flv|wmv) true ;; *) @@ -677,18 +677,16 @@ test ! -z "$comment" && COMMENT="$comment" fi -for i in $CONFMT $remuxcon; do - case "$i" in - mkv) - printf "Specify the Director of the Content [press 'Enter' to skip]: " - read director - test ! -z "$director" && METADIRECTOR="-metadata director=\"$director\"" - printf "Specify the Cast of the Content [press 'Enter' to skip]: " - read cast - test ! -z "$cast" && METACAST="-metadata cast=\"$cast\"" - ;; - esac -done +case "$CONFMT" in + mkv|mp4|m4v|mov) + printf "Specify the Director of the Content [press 'Enter' to skip]: " + read director + test ! -z "$director" && METADIRECTOR="-metadata director=\"$director\"" + printf "Specify the Cast of the Content [press 'Enter' to skip]: " + read cast + test ! -z "$cast" && METACAST="-metadata cast=\"$cast\"" + ;; +esac case "$CONFMT" in mkv|mp4|m4v|mov) @@ -2697,6 +2695,15 @@ test -z "${abr[i]}" && abitrate[i]="${abrdef[i]}k" || abitrate[i]="${abr[i]}k" audbtr[i]="-b:a:${audindex[i]} ${abitrate[i]}" abtrmeta[i]=" @ $(echo "${abitrate[i]}" | sed 's|k||') kbps" + case "${acodec[i]}" in + dts) + printf "Track $i: Use ADPCM Encoding? [y/N]: " + read dts_adpcm[i] + if [ "$dts_adpcm" = "y" -o "$dts_adpcm" = "Y" ]; then + audbtr[i]="${audbtr[i]} -dca_adpcm:a:${audindex[i]} true" + fi + ;; + esac ;; esac @@ -3597,6 +3604,10 @@ echo "echo" >> "$OUTFILE" echo "green \"-> Remuxing to $i...\"" >> "$OUTFILE" case "$i" in + mp4|m4v|mov) movflags2="-movflags +faststart+frag_keyframe+use_metadata_tags" ;; + *) movflags2="" ;; + esac + case "$i" in wmv) vflags1="-fflags +genpts"; vflags2=""; MKVCOVER2="" ;; avi|m2ts|mts|ts) vflags1=""; vflags2="-bsf:v:0 h264_mp4toannexb"; MKVCOVER2="" ;; mov) vflags1=""; vflags2=""; color="$colr"; MKVCOVER2="" ;; @@ -3621,7 +3632,7 @@ ;; esac fi - echo "$FFMPEG $vflags1 -i \"$OUTPUT\" -map 0 -c:v copy -c:a copy $suboption $vflags2 $coloroptions $strict $MKVCOVER2 $CHAPS $METATITLE $METAGENRE $METAYEAR $METADIRECTOR $METACAST $METACOMMENT ${audmeta[*]} ${audlang[*]} ${sublang[*]} ${sublng[*]} -y \"${OUTPUT%.*}.$i\" >/dev/null 2>&1" >> "$OUTFILE" + echo "$FFMPEG $vflags1 -i \"$OUTPUT\" -map 0 -c:v copy -c:a copy $suboption $vflags2 $movflags2 $coloroptions $strict $MKVCOVER2 $CHAPS $METATITLE $METAGENRE $METAYEAR $METADIRECTOR $METACAST $METACOMMENT ${audmeta[*]} ${audlang[*]} ${sublang[*]} ${sublng[*]} -y \"${OUTPUT%.*}.$i\" >/dev/null 2>&1" >> "$OUTFILE" echo "test \"\$?\" = \"0\" && green \"-> Done\" || red \"-> Failed!\"" >> "$OUTFILE" case "$i" in mp4|m4v|mov) @@ -3629,7 +3640,7 @@ echo "" >> "$OUTFILE" echo "echo" >> "$OUTFILE" echo "green \"-> Adding cover image to $i...\"" >> "$OUTFILE" - echo "$MP4BOX -add \"${OUTPUT%.*}.$i\"$color -itags cover=\"$(readlink -e "$cover")\":name=\"$(basename "${OUTPUT%.*}")\":genre=\"$genre\":created=\"$year\":comment=\"$COMMENT\" -tmp \"$(dirname "$OUTPUT")\" -mpeg4 -new \"${OUTPUT%.*}_COVER_$$.$i\" >/dev/null 2>&1" >> "$OUTFILE" + echo "$MP4BOX -add \"${OUTPUT%.*}.$i\"$color -itags cover=\"$(readlink -e "$cover")\":name=\"$(basename "${OUTPUT%.*}")\":genre=\"$genre\":created=\"$year\":composer=\"$director\":artist=\"$cast\":comment=\"$COMMENT\" -tmp \"$(dirname "$OUTPUT")\" -mpeg4 -new \"${OUTPUT%.*}_COVER_$$.$i\" >/dev/null 2>&1" >> "$OUTFILE" echo "RET=\$?" >> "$OUTFILE" echo "test \"\$RET\" = \"0\" && green \"-> Done\" || red \"-> Failed!\"" >> "$OUTFILE" echo "if [ \"\$RET\" = \"0\" ]; then" >> "$OUTFILE" @@ -3649,7 +3660,7 @@ esac echo "echo" >> "$OUTFILE" echo "green \"-> Adding cover image to $CONFMT...\"" >> "$OUTFILE" - echo "$MP4BOX -add \"$OUTPUT\"$color -itags cover=\"$(readlink -e "$cover")\":name=\"$(basename "${OUTPUT%.*}")\":genre=\"$genre\":created=\"$year\":comment=\"$COMMENT\" -tmp \"$(dirname "$OUTPUT")\" -mpeg4 -new \"${OUTPUT%.*}_COVER_$$.$CONFMT\" >/dev/null 2>&1" >> "$OUTFILE" + echo "$MP4BOX -add \"$OUTPUT\"$color -itags cover=\"$(readlink -e "$cover")\":name=\"$(basename "${OUTPUT%.*}")\":genre=\"$genre\":created=\"$year\":composer=\"$director\":artist=\"$cast\":comment=\"$COMMENT\" -tmp \"$(dirname "$OUTPUT")\" -mpeg4 -new \"${OUTPUT%.*}_COVER_$$.$CONFMT\" >/dev/null 2>&1" >> "$OUTFILE" echo "RET=\$?" >> "$OUTFILE" echo "test \"\$RET\" = \"0\" && green \"-> Done\" || red \"-> Failed!\"" >> "$OUTFILE" echo "if [ \"\$RET\" = \"0\" ]; then" >> "$OUTFILE"
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
.