Projects
Multimedia
ffx264
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 107
View file
ffx264.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Oct 14 14:34:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 3.8.6 + * Support scanning for multiple video tracks in the input file + +------------------------------------------------------------------- Sun Oct 13 05:35:00 UTC 2019 - neutrino8@opensuse.org - Update to version 3.8.5
View file
ffx264.spec
Changed
@@ -17,7 +17,7 @@ Name: ffx264 -Version: 3.8.5 +Version: 3.8.6 Release: 0 Summary: A small shell script for encoding to H.264 with ffmpeg License: GPL-2.0+
View file
ffx264-3.8.5.tar.gz/ChangeLog -> ffx264-3.8.6.tar.gz/ChangeLog
Changed
@@ -1,3 +1,7 @@ +2019-10-14 - ffx264 3.8.6 + * Support scanning for multiple video tracks + in the input file + 2019-10-13 - ffx264 3.8.5 * Fixed a typo in the keyframes code * Use readlink -e and realpath -e where needed
View file
ffx264-3.8.5.tar.gz/ffx264 -> ffx264-3.8.6.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.8.5 -# Date: 2019-10-13 +# Version: 3.8.6 +# Date: 2019-10-14 # # 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.8.5" +version="3.8.6" CFG="$HOME/.ffx264" -cfgversion="35" +cfgversion="36" genconfig_func() { cat<<EOF>>"$CFG" @@ -47,6 +47,9 @@ # Leave empty to ask each time CONFMT="" +# Scan for multiple video tracks? +SCAN_MULTIPLE_VID_TRACKS="y" + # Nice value (0-19) NICE="19" @@ -448,6 +451,34 @@ input="$(readlink -e "$input")" fi +if [ "$SCAN_MULTIPLE_VID_TRACKS" = "y" ]; then + printf "Scan for Multiple Video Tracks? [y/N]: " + read mvt + if [ "$mvt" = "y" -o "$mvt" = "Y" ]; then + echo + green "-> Scanning for video tracks..." + sleep 1 + VIDTRACKS="$($FFPROBE -i "$input" 2>&1 | grep 'Stream #' | grep 'Video' | sed 's| ||g')" + if [ ! -z "$VIDTRACKS" ]; then + VIDTRKS="$(echo "$VIDTRACKS" | wc -l)" + echo + green "$VIDTRACKS" + echo + green "-> Found $VIDTRKS video tracks" + else + error "-> Could not find any video tracks!" + fi + echo + printf "Specify the Video Track to Encode [default is 0:0]: " + read vte + test -z "$vte" && vidmap="-map 0:0" || vidmap="-map $vte" + else + vidmap="-map 0:0" + fi +else + vidmap="-map 0:0" +fi + if [ ! -z "$batchmode" ]; then OUTPUT="$OUTDIR/$(basename $0)_$$" printf "Specify the Output Directory [default is $OUTPUT]: " @@ -3256,7 +3287,7 @@ test ! -z "$COMMENT" && METACOMMENT="-metadata comment=\"$COMMENT\"" encoder_func() { - VIDOPTS="${EXTSUBS[*]} -map 0:0 -disposition:v:0 default $aspect $ofps $annexb $MDATA $CHPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT $vfilters" + VIDOPTS="${EXTSUBS[*]} $vidmap -disposition:v:0 default $aspect $ofps $annexb $MDATA $CHPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT $vfilters" case "$1" in 1p|crf) test "$encmode" = "1p" && passone="bitrate=$vbitrate" || passone="crf=$CRF"
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
.