Projects
Multimedia
ffxvid
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 65
View file
ffxvid.changes
Changed
@@ -1,4 +1,13 @@ ------------------------------------------------------------------- +Mon Oct 21 03:40:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 1.5.0 + * Add support for verbose logging to a log file + * Bugfix: -map_metadata and -map_chapters where not set + to 0 when the respective options in the config file + were set to "y" + +------------------------------------------------------------------- Sun Oct 20 04:39:00 UTC 2019 - neutrino8@opensuse.org - Update to version 1.4.9
View file
ffxvid.spec
Changed
@@ -17,7 +17,7 @@ Name: ffxvid -Version: 1.4.9 +Version: 1.5.0 Release: 0 Summary: A small shell script for encoding to H.264 with ffmpeg License: GPL-2.0+
View file
ffxvid-1.4.9.tar.gz/ChangeLog -> ffxvid-1.5.0.tar.gz/ChangeLog
Changed
@@ -1,3 +1,9 @@ +2019-10-21 - ffxvid 1.5.0 + * Add support for verbose logging to a log file + * Bugfix: -map_metadata and -map_chapters where not set + to 0 when the respective options in the config file + were set to "y" + 2019-10-20 - ffxvid 1.4.9 * Added support for embedding of SRT/SSA/ASS subtitles in the MP4/M4V containers
View file
ffxvid-1.4.9.tar.gz/ffxvid -> ffxvid-1.5.0.tar.gz/ffxvid
Changed
@@ -2,8 +2,8 @@ # # Small script to encode to Xvid video using FFmpeg. # Author: Grozdan "microchip" Nikolov <neutrino8@opensuse.org> -# Version: 1.4.9 -# Date: 2019-10-20 +# Version: 1.5.0 +# Date: 2019-10-21 # # 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,10 +24,10 @@ brown() { echo -e "\e[0;33m$1\e[0;39;49m"; } error() { echo -e "\e[1;31m$1\e[0;39;49m"; } -version="1.4.9" +version="1.5.0" CFG="$HOME/.ffxvid" -cfgversion="13" +cfgversion="14" genconfig_func() { cat<<EOF>>"$CFG" @@ -114,6 +114,9 @@ # Copy chapters from input? CHAPS="y" +# Enable verbose logging to a file? +LOG="n" + # FFmpeg Xvid params. XVIDPARAMS="-flags +mv4+aic+cgop -bf 1 -me_quality 6 -mbd 2 -trellis 1 -variance_aq 1" @@ -493,6 +496,17 @@ OUTPUT="$OUTPUT.$CONFMT" +if [ "$LOG" = "y" ]; then + if [ -z "$batchmode" ]; then + export FFREPORT="level=40:file=$(echo "${OUTPUT%.*}_verbose.log" | sed 's| |_|g')" + else + verbose_func() { + echo "export FFREPORT=\"level=40:file=\$(echo \"$(dirname "$OUTPUT")/\${i%.*}_verbose.log\" | sed 's| |_|g')\"" + } + fi + verbose="-v verbose" +fi + if [ ! -z "$batchmode" ]; then if [ "$(realpath -s "$(dirname "$input")")" = "$(realpath -s "$(dirname "$OUTPUT")")" ]; then error "-> Input directory matches output directory!" @@ -3155,9 +3169,9 @@ input="\$i" fi -test "$METADATA" = "n" && MDATA="-map_metadata -1" +test "$METADATA" = "n" && MDATA="-map_metadata -1" MDATA="-map_metadata 0" -test "$CHAPS" = "n" && CHPS="-map_chapters -1" +test "$CHAPS" = "n" && CHPS="-map_chapters -1" || CHPS="-map_chapters 0" vidfilters="$(echo "$deinterlace$detelecine$tonemap$crop$deblock$denoise$scale$colorspace$unsharp$eq$rotate$pixformat$setpts$fps$framestep$subtitles" | sed 's|,$||')" @@ -3181,11 +3195,11 @@ OPTS2="${audparams[*]} $subparams $strict $movflags $MKVCOVER \"$OUTPUT\"" ;; esac - echo "nice -n $NICE $FFMPEG -i \"$input\" $VIDOPTS -c:v libxvid $passone $XVIDPARAMS $OPTS1" + echo "nice -n $NICE $FFMPEG $verbose -i \"$input\" $VIDOPTS -c:v libxvid $passone $XVIDPARAMS $OPTS1" case "$1" in 2p) echo - echo "nice -n $NICE $FFMPEG -i \"$input\" $VIDOPTS -c:v libxvid $passtwo $XVIDPARAMS $OPTS2" + echo "nice -n $NICE $FFMPEG $verbose -i \"$input\" $VIDOPTS -c:v libxvid $passtwo $XVIDPARAMS $OPTS2" ;; esac } @@ -3201,6 +3215,11 @@ echo "$CHDIR" >> "$OUTFILE" echo "" >> "$OUTFILE" echo "$FORLOOP_START" >> "$OUTFILE" + if [ "$LOG" = "y" ]; then + echo "" >> "$OUTFILE" + verbose_func >> "$OUTFILE" + echo "" >> "$OUTFILE" + fi echo "$CHKFILE_START" >> "$OUTFILE" if [ "$autocrop" = "y" -o "$autocrop" = "Y" ]; then echo "" >> "$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
.