Projects
Multimedia
ffxvid
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 54
View file
ffxvid.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Oct 14 14:34:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 1.4.3 + * Support scanning for multiple video tracks in the input file + +------------------------------------------------------------------- Sun Oct 13 05:35:00 UTC 2019 - neutrino8@opensuse.org - Update to version 1.4.2
View file
ffxvid.spec
Changed
@@ -17,7 +17,7 @@ Name: ffxvid -Version: 1.4.2 +Version: 1.4.3 Release: 0 Summary: A small shell script for encoding to H.264 with ffmpeg License: GPL-2.0+
View file
ffxvid-1.4.2.tar.gz/ffxvid -> ffxvid-1.4.3.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.2 -# Date: 2019-10-13 +# Version: 1.4.3 +# 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="1.4.2" +version="1.4.3" CFG="$HOME/.ffxvid" -cfgversion="9" +cfgversion="10" 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" @@ -385,6 +388,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]: " @@ -3063,7 +3094,7 @@ test ! -z "$COMMENT" && METACOMMENT="-metadata comment=\"$COMMENT\"" encoder_func() { - VIDOPTS="${EXTSUBS[*]} -map 0:0 -disposition:v:0 default $aspect $ofps $MDATA $CHPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT $vfilters" + VIDOPTS="${EXTSUBS[*]} $vidmap -disposition:v:0 default $aspect $ofps $MDATA $CHPS $METATITLE $METAGENRE $METAYEAR $METACOMMENT $vfilters" case "$1" in 1p|cq) test "$encmode" = "1p" && passone="-b:v $vbitrate" || passone="-q:v $CQ"
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
.