Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 53
View file
ffx264.changes
Changed
@@ -1,4 +1,14 @@ ------------------------------------------------------------------- +Sun Jun 04 21:45:00 UTC 2017 - neutrino8@opensuse.org + +- Update to version 3.4.3 + * Match software scaler options in config file with the + ones inside the script. $SCALER in config file now + takes a value between 0 and 9 + * Do some basic checking of scaler option when it's set + in the config file + +------------------------------------------------------------------- Thu Jun 01 12:06:00 UTC 2017 - neutrino8@opensuse.org - Update to version 3.4.2
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 3.4.2 +Version: 3.4.3 Release: 0 Summary: A small shell script for encoding to H.264 with ffmpeg License: GPL-2.0+
View file
ffx264-3.4.2.tar.gz/ChangeLog -> ffx264-3.4.3.tar.gz/ChangeLog
Changed
@@ -1,3 +1,10 @@ +2017-06-04 - ffx264 3.4.3 + * Match software scaler options in config file with the + ones inside the script. $SCALER in config file now + takes a value between 0 and 9 + * Do some basic checking of scaler option when it's set + in the config file + 2017-06-01 - ffx264 3.4.2 * Simplify the scale variable a bit * Support SMPTE170M colorspace conversion
View file
ffx264-3.4.2.tar.gz/ffx264 -> ffx264-3.4.3.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.4.2 -# Date: 2017-06-01 +# Version: 3.4.3 +# Date: 2017-06-04 # # 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="3.4.2" +version="3.4.3" CFG="$HOME/.ffx264" -cfgversion="30" +cfgversion="31" genconfig_func() { cat<<EOF>>"$CFG" @@ -63,16 +63,16 @@ # Leave empty to ask each time or # set a default software scaler # -# fast_bilinear -# bilinear -# bicubic -# neighbor -# area -# bicublin -# gauss -# sinc -# lanczos -# spline +# 0 = fast_bilinear +# 1 = bilinear +# 2 = bicubic +# 3 = neighbor +# 4 = area +# 5 = bicublin +# 6 = gauss +# 7 = sinc +# 8 = lanczos +# 9 = spline # SCALER="" @@ -1135,6 +1135,36 @@ printf "Specify the Desired Resolution [WxH - press 'Enter' to skip]: " read res if [ ! -z "$res" ]; then + sws_func() { + case "$1" in + config) swsopt="$SCALER" ;; + script) test -z "$swsopt" && swsopt="9" || swsopt="$swsopt" ;; + esac + case "$swsopt" in + 0) scaler="fast_bilinear" ;; + 1) scaler="bilinear" ;; + 2) scaler="bicubic" ;; + 3) scaler="neighbor" ;; + 4) scaler="area" ;; + 5) scaler="bicublin" ;; + 6) scaler="gauss" ;; + 7) scaler="sinc" ;; + 8) scaler="lanczos" ;; + 9) scaler="spline" ;; + *) + case "$1" in + config) + error "-> Invalid software scaler in config file '$CFG'" + exit 1 + ;; + script) + error "-> Invalid option!" + exit 1 + ;; + esac + ;; + esac + } if [ -z "$SCALER" ]; then echo brown " Software Scalers" @@ -1152,24 +1182,20 @@ echo printf "Sepcify the Software Scaler [default is 9]: " read swsopt - case "$swsopt" in - 0) scaler="fast_bilinear" ;; - 1) scaler="bilinear" ;; - 2) scaler="bicubic" ;; - 3) scaler="neighbor" ;; - 4) scaler="area" ;; - 5) scaler="bicublin" ;; - 6) scaler="gauss" ;; - 7) scaler="sinc" ;; - 8) scaler="lanczos" ;; - 9|"") scaler="spline" ;; + sws_func script + else + case "$SCALER" in + [0-9]) + sws_func config + echo + green "-> Using software scaler set in config file '$CFG'" + echo + ;; *) - error "-> Invalid option!" + error "-> Invalid software scaler in config file '$CFG'" exit 1 ;; esac - else - scaler="$SCALER" fi printf "Enable Accurate Rounding? [y/N]: " read around
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
.