Projects
Multimedia
ffhevc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 174
View file
ffhevc.changes
Changed
@@ -1,4 +1,14 @@ ------------------------------------------------------------------- +Mon Oct 28 05:30:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 4.0.1 + * Added support for director/cast metadata for MP4/MOV + * Added +use_metadata_tags to the $movflags variable for MP4/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 + +------------------------------------------------------------------- Sun Oct 27 07:28:00 UTC 2019 - neutrino8@opensuse.org - Update to version 4.0.0
View file
ffhevc.spec
Changed
@@ -17,7 +17,7 @@ Name: ffhevc -Version: 4.0.0 +Version: 4.0.1 Release: 0 Summary: A small shell script for encoding to H.265/HEVC with FFmpeg License: GPL-2.0+
View file
ffhevc-4.0.0.tar.gz/ChangeLog -> ffhevc-4.0.1.tar.gz/ChangeLog
Changed
@@ -1,3 +1,10 @@ +2019-10-28 - ffhevc 4.0.1 + * Added support for director/cast metadata for MP4/MOV + * Added +use_metadata_tags to the $movflags variable for MP4/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 - ffhevc 4.0.0 * 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
ffhevc-4.0.0.tar.gz/ffhevc -> ffhevc-4.0.1.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@opensuse.org> -# Version: 4.0.0 -# Date: 2019-10-27 +# Version: 4.0.1 +# Date: 2019-10-28 # # 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,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="4.0.0" +version="4.0.1" CFG="$HOME/.ffhevc" cfgversion="50" @@ -436,7 +436,7 @@ CONFMT="$(echo "$CONFMT" | tr '[:upper:]' '[:lower:]')" if [ ! -z "$CONFMT" ]; then case "$CONFMT" in - mp4|mov) movflags="-movflags +faststart+frag_keyframe" ;; + mp4|mov) movflags="-movflags +faststart+frag_keyframe+use_metadata_tags" ;; mkv|m2ts|mts|ts) true ;; *) error "-> HEVC video not supported by the chosen container!" @@ -664,18 +664,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|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|mov) @@ -2753,6 +2751,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 @@ -3657,6 +3664,10 @@ echo "echo" >> "$OUTFILE" echo "green \"-> Remuxing to $i...\"" >> "$OUTFILE" case "$i" in + mp4|mov) movflags2="-movflags +faststart+frag_keyframe+use_metadata_tags" ;; + *) movflags2="" ;; + esac + case "$i" in mkv) if [ ! -z "$MP4COVER" ]; then MKVCOVER2="-attach \"$(readlink -e "$cover")\" -metadata:s:t mimetype=\"image/$img\"" @@ -3676,7 +3687,7 @@ ;; esac fi - echo "$FFMPEG -i \"$OUTPUT\" -map 0 -c:v copy -c:a copy $suboption $strict $coloroptions $MKVCOVER2 $CHAPS $METATITLE $METAGENRE $METAYEAR $METADIRECTOR $METACAST $METACOMMENT ${audmeta[*]} ${audlang[*]} ${sublang[*]} ${sublng[*]} \"${OUTPUT%.*}.$i\" >/dev/null 2>&1" >> "$OUTFILE" + echo "$FFMPEG -i \"$OUTPUT\" -map 0 -c:v copy -c:a copy $suboption $strict $coloroptions $movflags2 $MKVCOVER2 $CHAPS $METATITLE $METAGENRE $METAYEAR $METADIRECTOR $METACAST $METACOMMENT ${audmeta[*]} ${audlang[*]} ${sublang[*]} ${sublng[*]} \"${OUTPUT%.*}.$i\" >/dev/null 2>&1" >> "$OUTFILE" echo "test \"\$?\" = \"0\" && green \"-> Done\" || red \"-> Failed!\"" >> "$OUTFILE" case "$i" in mp4|mov) @@ -3684,7 +3695,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" @@ -3704,7 +3715,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
.