Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 131
View file
ffx264.changes
Changed
@@ -1,4 +1,14 @@ ------------------------------------------------------------------- +Sun Oct 27 07:28:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 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 + * Add director and cast metadata for the MKV container + * Reorder some code for the output shell file + * Cosmetics + +------------------------------------------------------------------- Sat Oct 26 07:05:00 UTC 2019 - neutrino8@opensuse.org - Update to version 3.9.8
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 3.9.8 +Version: 3.9.9 Release: 0 Summary: A small shell script for encoding to H.264/AVC with FFmpeg License: GPL-2.0+
View file
ffx264-3.9.8.tar.gz/ChangeLog -> ffx264-3.9.9.tar.gz/ChangeLog
Changed
@@ -1,3 +1,10 @@ +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 + * Add director and cast metadata for the MKV container + * Reorder some code for the output shell file + * Cosmetics + 2019-10-26 - ffx264 3.9.8 * Renamed audio variable aidi to aidxi and moved it outside of the if conditional that decides the audio codec. This
View file
ffx264-3.9.8.tar.gz/ffx264 -> ffx264-3.9.9.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.8 -# Date: 2019-10-26 +# Version: 3.9.9 +# Date: 2019-10-27 # # 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 "\e0;33m$1\e0;39;49m"; } error() { echo -e "\e1;31m$1\e0;39;49m"; } -version="3.9.8" +version="3.9.9" CFG="$HOME/.ffx264" cfgversion="40" @@ -677,6 +677,25 @@ 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\"" + ;; + *) + # Have to find a way how to add these tags + # to mp4/mov as well + METADIRECTOR="" + METACAST="" + ;; + esac +done + case "$CONFMT" in mkv|mp4|m4v|mov) printf "Specify a Cover Image in JPG/PNG format press 'Enter' to skip: " @@ -2364,7 +2383,7 @@ if ! -z "$batchmode" ; then echo error "-> Due to current codebase limitations, automatic audio metadata" - error " will be that of the first input file provided. If all input files" + 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." @@ -2614,12 +2633,15 @@ test "${aidxi}" = "-1" && aidxi="0" if "${acodeci}" != "copy" ; then - GETAUDBDi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aidxi} -show_entries stream=bits_per_raw_sample -of default=noprint_wrappers=1:nokey=1 | tail -1)" - if ! -z "${GETAUDBDi}" ; then + case "${acodeci}" in + truehd) abdmetai=", 16 bits" ;; + *) + GETAUDBDi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aidxi} -show_entries stream=bits_per_raw_sample -of default=noprint_wrappers=1:nokey=1 | tail -1)" case "${GETAUDBDi}" in 1-9*) abdmetai=", ${GETAUDBDi} bits input" ;; esac - fi + ;; + esac case "${acodeci}" in fdk*) printf "Track $i: Which AAC Profile to Use? LC/HE/HEv2/LD - default is LC: " @@ -3301,6 +3323,7 @@ test ! -z "${afiltersi}" && audfiltersi="-filter:a:${audindexi} ${afiltersi}" else GETAUDCDCi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aidxi} -show_entries stream=codec_name -of default=noprint_wrappers=1:nokey=1 | tail -1)" + if ! -z "${GETAUDCDCi}" ; then GETAUDBTRi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aidxi} -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" GETAUDBDi="$($FFPROBE -i "$input" -v quiet -select_streams a:${aidxi} -show_entries stream=bits_per_raw_sample -of default=noprint_wrappers=1:nokey=1 | tail -1)" @@ -3510,7 +3533,7 @@ test ! -z "$COMMENT" && METACOMMENT="-metadata comment=\"$COMMENT\"" encoder_func() { - VIDOPTS="${EXTSUBS*} $vidmap -disposition:v:0 default $aspect $ofps $annexb $METADATA $CHAPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT $ffvbv_maxrate $ffvbv_bufsize $vfilters $coloroptions" + VIDOPTS="${EXTSUBS*} $vidmap -disposition:v:0 default $aspect $ofps $annexb $METADATA $CHAPS $METATITLE $METAGENRE $METAYEAR $METADIRECTOR $METACAST $METACOMMENT $ffvbv_maxrate $ffvbv_bufsize $vfilters $coloroptions" case "$1" in 1p|crf) test "$encmode" = "1p" && passone="bitrate=$vbitrate" || passone="crf=$CRF" @@ -3574,25 +3597,6 @@ fi encoder_func $encmode >> "$OUTFILE" echo "" >> "$OUTFILE" -case "$CONFMT" in - mp4|m4v|mov) - if ! -z "$MP4COVER" ; then - case "$CONFMT" in - mov) color="$colr" ;; - esac - echo "echo" >> "$OUTFILE" - echo "green \"-> Adding cover image...\"" >> "$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 "RET=\$?" >> "$OUTFILE" - echo "test \"\$RET\" = \"0\" && green \"-> Done\" || red \"-> Failed!\"" >> "$OUTFILE" - echo "if \"\$RET\" = \"0\" ; then" >> "$OUTFILE" - echo "mv -f \"${OUTPUT%.*}_COVER_$$.$CONFMT\" \"${OUTPUT%.*}.$CONFMT\"" >> "$OUTFILE" - echo "fi" >> "$OUTFILE" - echo "echo" >> "$OUTFILE" - echo "" >> "$OUTFILE" - fi - ;; -esac if ! -z "$remuxcon" ; then for i in $remuxcon; do echo "" >> "$OUTFILE" @@ -3623,14 +3627,14 @@ ;; esac fi - echo "$FFMPEG $vflags1 -i \"$OUTPUT\" -map 0 -c:v copy -c:a copy $suboption $vflags2 $coloroptions $strict $MKVCOVER2 $CHAPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT ${audmeta*} ${audlang*} ${sublang*} ${sublng*} \"${OUTPUT%.*}.$i\" >/dev/null 2>&1" >> "$OUTFILE" + 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 "test \"\$?\" = \"0\" && green \"-> Done\" || red \"-> Failed!\"" >> "$OUTFILE" case "$i" in mp4|m4v|mov) if ! -z "$MKVCOVER" -o ! -z "$MP4COVER" ; then echo "" >> "$OUTFILE" echo "echo" >> "$OUTFILE" - echo "green \"-> Adding cover image...\"" >> "$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 "RET=\$?" >> "$OUTFILE" echo "test \"\$RET\" = \"0\" && green \"-> Done\" || red \"-> Failed!\"" >> "$OUTFILE" @@ -3643,6 +3647,25 @@ done echo "echo" >> "$OUTFILE" fi +case "$CONFMT" in + mp4|m4v|mov) + if ! -z "$MP4COVER" ; then + case "$CONFMT" in + mov) color="$colr" ;; + 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 "RET=\$?" >> "$OUTFILE" + echo "test \"\$RET\" = \"0\" && green \"-> Done\" || red \"-> Failed!\"" >> "$OUTFILE" + echo "if \"\$RET\" = \"0\" ; then" >> "$OUTFILE" + echo "mv -f \"${OUTPUT%.*}_COVER_$$.$CONFMT\" \"${OUTPUT%.*}.$CONFMT\"" >> "$OUTFILE" + echo "fi" >> "$OUTFILE" + echo "echo" >> "$OUTFILE" + echo "" >> "$OUTFILE" + fi + ;; +esac if ! -z "$batchmode" ; then echo "$CHKFILE_END" >> "$OUTFILE" echo "$FORLOOP_END" >> "$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
.