Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 61
View file
ffx264.changes
Changed
@@ -1,4 +1,18 @@ ------------------------------------------------------------------- +Thu Jul 20 18:49:00 UTC 2017 - neutrino8@opensuse.org + +- Update to version 3.5.1 + * Bugfix: use realpath instead of readlink for the OUTPUT + var when running in batch mode. Fixes the issue where + readlink will follow the full path in case the input + is a symlink which may result of encoding files we + were not asked to + * Don't print cropped resolution during runtime + if batch mode is selected + * Remove check for realpath. It is now required and not + optional + +------------------------------------------------------------------- Tue Jul 11 11:39:00 UTC 2017 - neutrino8@opensuse.org - Update to version 3.5.0
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 3.5.0 +Version: 3.5.1 Release: 0 Summary: A small shell script for encoding to H.264 with ffmpeg License: GPL-2.0+
View file
ffx264-3.5.0.tar.gz/ChangeLog -> ffx264-3.5.1.tar.gz/ChangeLog
Changed
@@ -1,3 +1,14 @@ +2017-07-20 - ffx264 3.5.1 + * Bugfix: use realpath instead of readlink for the OUTPUT + var when running in batch mode. Fixes the issue where + readlink will follow the full path in case the input + is a symlink which may result of encoding files we + were not asked to + * Don't print cropped resolution during runtime + if batch mode is selected + * Remove check for realpath. It is now required and not + optional + 2017-07-11 - ffx264 3.5.0 * Support setting the min/max keyframe/IDR intervals
View file
ffx264-3.5.0.tar.gz/ffx264 -> ffx264-3.5.1.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.5.0 -# Date: 2017-07-11 +# Version: 3.5.1 +# Date: 2017-07-20 # # 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.5.0" +version="3.5.1" CFG="$HOME/.ffx264" cfgversion="33" @@ -425,7 +425,10 @@ exit 1 fi -input="$(readlink -f "$input")" + +if [ -z "$batchmode" ]; then + input="$(readlink -f "$input")" +fi if [ ! -z "$batchmode" ]; then OUTPUT="$OUTDIR/$(basename $0)_$$" @@ -437,14 +440,14 @@ error "-> Could not create the output directory!" exit 1 fi - OUTPUT="$(readlink -f "$OUTPUT/\${i%.*}")" + OUTPUT="$(realpath -s "$OUTPUT/\${i%.*}")" else mkdir -p "$output" 2>/dev/null if [ $? != 0 ]; then error "-> Could not create the output directory!" exit 1 fi - OUTPUT="$(readlink -f "$output/\${i%.*}")" + OUTPUT="$(realpath -s "$output/\${i%.*}")" fi else printf "Specify a Name for the Output: " @@ -485,17 +488,15 @@ OUTPUT="$OUTPUT.$CONFMT" -if [ -x "$(which realpath 2>/dev/null)" ]; then - if [ ! -z "$batchmode" ]; then - if [ "$(realpath -s "$(dirname "$input")")" = "$(realpath -s "$(dirname "$OUTPUT")")" ]; then - error "-> Input directory matches output directory!" - exit 1 - fi - else - if [ "$(realpath -s "$input")" = "$(realpath -s "$OUTPUT")" ]; then - error "-> Input file matches output file!" - exit 1 - fi +if [ ! -z "$batchmode" ]; then + if [ "$(realpath -s "$(dirname "$input")")" = "$(realpath -s "$(dirname "$OUTPUT")")" ]; then + error "-> Input directory matches output directory!" + exit 1 + fi +else + if [ "$(realpath -s "$input")" = "$(realpath -s "$OUTPUT")" ]; then + error "-> Input file matches output file!" + exit 1 fi fi @@ -1226,7 +1227,9 @@ HEIGHT="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=height -of default=noprint_wrappers=1:nokey=1 | tail -1)" if [ ! -z "$crop" ]; then green "-> Original resolution: ${WIDTH}x${HEIGHT}" - green "-> Cropped resolution: $(echo "$crop" | sed 's|crop=||' | awk -F: '{print $1}')x$(echo "$crop" | awk -F: '{print $2}')" + if [ -z "$batchmode" ]; then + green "-> Cropped resolution: $(echo "$crop" | sed 's|crop=||' | awk -F: '{print $1}')x$(echo "$crop" | awk -F: '{print $2}')" + fi else green "-> Detected ${WIDTH}x${HEIGHT}" fi
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
.