Projects
Multimedia
ffhevc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 61
View file
ffhevc.changes
Changed
@@ -1,4 +1,14 @@ ------------------------------------------------------------------- +Sat Jun 10 07:55:00 UTC 2017 - neutrino8@opensuse.org + +- Update to version 3.3.5 + * Replace numbers in array variable char of the video_chars_func() + function with the ones from the for loop + * Pipe the ffprobe string to tail -1 to work around issues + with some problematic files + * Some small improvements to the video_colorspace_func() function + +------------------------------------------------------------------- Fri Jun 09 08:50:00 UTC 2017 - neutrino8@opensuse.org - Update to version 3.3.4
View file
ffhevc.spec
Changed
@@ -17,7 +17,7 @@ Name: ffhevc -Version: 3.3.4 +Version: 3.3.5 Release: 0 Summary: A small shell script for encoding to H.265/HEVC with ffmpeg License: GPL-2.0+
View file
ffhevc-3.3.4.tar.gz/ChangeLog -> ffhevc-3.3.5.tar.gz/ChangeLog
Changed
@@ -1,3 +1,10 @@ +2017-06-10 - ffhevc 3.3.5 + * Replace numbers in array variable char of the video_chars_func() + function with the ones from the for loop + * Pipe the ffprobe string to tail -1 to work around issues + with some problematic files + * Some small improvements to the video_colorspace_func() function + 2017-06-09 - ffhevc 3.3.4 * New function, video_chars_func(), to detect and display video characteristics like color range/space/transfer/primaries
View file
ffhevc-3.3.4.tar.gz/ffhevc -> ffhevc-3.3.5.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.3.4 -# Date: 2017-06-09 +# Version: 3.3.5 +# Date: 2017-06-10 # # 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,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.3.4" +version="3.3.5" CFG="$HOME/.ffhevc" cfgversion="36" @@ -717,7 +717,7 @@ echo green "-> Detecting Field Parity..." sleep 1 - FPAR="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=field_order -of default=noprint_wrappers=1:nokey=1)" + FPAR="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=field_order -of default=noprint_wrappers=1:nokey=1 | tail -1)" case "$FPAR" in t*|T*) fp="tff"; fparity="Top Field First (TFF)" ;; b*|B*) fp="bff"; fparity="Bottom Field First (BFF)" ;; @@ -889,10 +889,10 @@ video_chars_func() { for i in {1..4}; do case "$i" in - 1) char[1]="color_range" ;; - 2) char[2]="color_space" ;; - 3) char[3]="color_transfer" ;; - 4) char[4]="color_primaries" ;; + 1) char[i]="color_range" ;; + 2) char[i]="color_space" ;; + 3) char[i]="color_transfer" ;; + 4) char[i]="color_primaries" ;; esac CHARS[i]="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=${char[i]} -of default=noprint_wrappers=1:nokey=1 | tail -1)" done @@ -920,8 +920,13 @@ irange="mpeg" orange="tv" else - irange="$(echo "$crange" | awk -F/ '{print $1}')" - orange="$(echo "$crange" | awk -F/ '{print $2}')" + if [ ! -z "$(echo "$crange" | grep '/')" ]; then + irange="$(echo "$crange" | awk -F/ '{print $1}')" + orange="$(echo "$crange" | awk -F/ '{print $2}')" + else + error "-> Invalid format! Valid is: <input_range>/<output_range> (eg: mpeg/tv)" + exit 1 + fi fi video_csmisc_func() { printf "Use 10- or 12-bits BT2020 Transfer? [default is 10]: " @@ -1133,8 +1138,8 @@ # calc for target file size video_length_func() { case "$1" in - file) VLENGTH="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 | awk -F. '{print $1}')" ;; - batch) echo "VLENGTH=\"\$($FFPROBE -i \"\$i\" -v error -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 | awk -F. '{print \$1}')\"" ;; + file) VLENGTH="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 | tail -1 | awk -F. '{print $1}')" ;; + batch) echo "VLENGTH=\"\$($FFPROBE -i \"\$i\" -v error -select_streams v:0 -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 | tail -1 | awk -F. '{print \$1}')\"" ;; esac } @@ -2481,7 +2486,7 @@ green "-> Track $i: detecting audio sample rate..." sleep 1 aid[i]="$(($(echo "${atrack[i]}" | awk -F: '{print $2}')-1))" - ASR[i]="$($FFPROBE -i "$input" -v error -select_streams a:${aid[i]} -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1)" + ASR[i]="$($FFPROBE -i "$input" -v error -select_streams a:${aid[i]} -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" if [ ! -z "${ASR[i]}" ]; then green "-> Track $i: detected ${ASR[i]} Hz" else @@ -2731,7 +2736,7 @@ for i in $(eval echo "{1..$ATRACKS}"); do if [ "${acodec[i]}" = "copy" ]; then aid[i]="$(($(echo "${atrack[i]}" | awk -F: '{print $2}')-1))" - abtr[i]="$($FFPROBE -i "$input" -v error -select_streams a:${aid[i]} -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1)" + abtr[i]="$($FFPROBE -i "$input" -v error -select_streams a:${aid[i]} -show_entries stream=bit_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" case "${abtr[i]}" in [1-9]*) abitrate[i]="$((${abtr[i]}/1000))" ;; ""|*) abitrate[i]="0" ;;
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
.