Projects
Multimedia
ffhevc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 148
View file
ffhevc.changes
Changed
@@ -1,4 +1,10 @@ ------------------------------------------------------------------- +Mon Oct 14 14:34:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 3.8.7 + * 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.6
View file
ffhevc.spec
Changed
@@ -17,7 +17,7 @@ Name: ffhevc -Version: 3.8.6 +Version: 3.8.7 Release: 0 Summary: A small shell script for encoding to H.265/HEVC with ffmpeg License: GPL-2.0+
View file
ffhevc-3.8.6.tar.gz/ChangeLog -> ffhevc-3.8.7.tar.gz/ChangeLog
Changed
@@ -1,3 +1,7 @@ +2019-10-14 - ffhevc 3.8.7 + * Support scanning for multiple video tracks + in the input file + 2019-10-13 - ffhevc 3.8.6 * Fixed a typo in the keyframe code * Use readlink -e and realpath -e where needed
View file
ffhevc-3.8.6.tar.gz/ffhevc -> ffhevc-3.8.7.tar.gz/ffhevc
Changed
@@ -2,8 +2,8 @@ # # Small script to encode to H.265/HEVC video using FFmpeg and libx265. # Author: Grozdan "microchip" Nikolov <neutrino8@opensuse.org> -# Version: 3.8.6 -# Date: 2019-10-13 +# Version: 3.8.7 +# Date: 2019-10-14 # # ffhevc 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.6" +version="3.8.7" CFG="$HOME/.ffhevc" -cfgversion="45" +cfgversion="46" 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]: " @@ -3345,7 +3376,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|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
.