Projects
Multimedia
ffhevc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 34
View file
ffhevc.changes
Changed
@@ -1,4 +1,16 @@ ------------------------------------------------------------------- +Mon Jan 09 12:45:00 UTC 2017 - neutrino8@opensuse.org + +- Update to version 3.1.1 + * Fix a possible issue when detecting the FPS value that occurs + with some files + * Expand directory path internally instead of exporting the + dirname command to the file that gets sourced for encoding + * Use 'bc' for calculating the detected FPS value + * Only use fractions internally for FPS values. The user should + be presented with the floating point value + +------------------------------------------------------------------- Sun Jan 08 11:24:00 UTC 2017 - neutrino8@opensuse.org - Update to version 3.1.0
View file
ffhevc.spec
Changed
@@ -17,7 +17,7 @@ Name: ffhevc -Version: 3.1.0 +Version: 3.1.1 Release: 0 Summary: A small shell script for encoding to H.265/HEVC with ffmpeg License: GPL-2.0+ @@ -25,6 +25,7 @@ Url: https://ffhevc.teambelgium.net Source0: %{name}-%{version}.tar.gz Requires: ffmpeg +Requires: bc BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch
View file
ffhevc-3.1.0.tar.gz/ChangeLog -> ffhevc-3.1.1.tar.gz/ChangeLog
Changed
@@ -1,3 +1,12 @@ +2017-01-09 - ffhevc 3.1.1 + * Fix a possible issue when detecting the FPS value that occurs + with some files + * Expand directory path internally instead of exporting the + dirname command to the file that gets sourced for encoding + * Use 'bc' for calculating the detected FPS value + * Only use fractions internally for FPS values. The user should + be presented with the floating point value + 2017-01-08 - ffhevc 3.1.0 * Support SMPTE-ST-2084 transfer characteristics * Placed the video post-processing filters in their own sub-menu
View file
ffhevc-3.1.0.tar.gz/ffhevc -> ffhevc-3.1.1.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.1.0 -# Date: 2017-01-08 +# Version: 3.1.1 +# Date: 2017-01-09 # # 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.1.0" +version="3.1.1" CFG="$HOME/.ffhevc" cfgversion="33" @@ -359,6 +359,12 @@ fi fi +BC="$(which bc 2>/dev/null)" +if [ ! -x "$BC" ]; then + error "-> Utility 'bc' is missing from your system!" + exit 1 +fi + if [ -z "$OUTDIR" ]; then error "-> OUTDIR is not set in the config file!" error "-> Check your config in '$CFG'" @@ -700,7 +706,7 @@ # Used by mc/bobbing deinterlace and FPS conversion video_fps_func() { - GETFPS="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=r_frame_rate -of default=noprint_wrappers=1:nokey=1)" + GETFPS="$($FFPROBE -i "$input" -v error -select_streams v:0 -show_entries stream=r_frame_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)" } # Used by mc/bobbing deinterlace, IVTC and interlace-aware encoding @@ -766,8 +772,8 @@ FPS1="$(echo "$GETFPS" | awk -F/ '{print $1}')" FPS2="$(echo "$GETFPS" | awk -F/ '{print $2}')" OFPS="$(($FPS1*2))/$FPS2" - green "-> Detected: $FPS1/$FPS2 FPS" - green "-> Setting output FPS to: $OFPS" + green "-> Detected $(echo "scale=3; $GETFPS" | $BC -l) FPS" + green "-> Setting output FPS to: $(echo "scale=3; $OFPS" | $BC -l)" ofps="-r $OFPS" else error "-> Could not detect the FPS value!" @@ -1002,7 +1008,7 @@ sleep 1 video_fps_func if [ ! -z "$GETFPS" ]; then - green "-> Detected $GETFPS FPS" + green "-> Detected $(echo "scale=3; $GETFPS" | $BC -l) FPS" else error "-> Could not detect the FPS value!" fi @@ -1015,12 +1021,12 @@ ""|*) echo error "-> Detected FPS is not supported yet!" - error "-> Supported FPS are: 24/1, 25/1, 24000/1001 and 30000/1001" + error "-> Supported FPS are: 23.976, 24, 25 and 29.970" echo printf "Specify the FPS value of the Input File [no default!]: " read infps case "$infps" in - 24/1|25/1|24000/1001|30000/1001) true ;; + 23.976|24|25|29.970) true ;; ""|*) error "-> Unsupported or no value given!" exit 1 @@ -2038,7 +2044,7 @@ echo "green() { echo -e \"\e[1;32m\$1\e[0;39;49m\"; }" >> "$OUTFILE" echo "red() { echo -e \"\e[1;31m\$1\e[0;39;49m\"; }" >> "$OUTFILE" echo "" >> "$OUTFILE" -echo "test ! -d \"\$(dirname \"$OUTFILE\")\" && mkdir -p \"\$(dirname \"$OUTFILE\")\"" >> "$OUTFILE" +echo "test ! -d \"$(dirname "$OUTFILE")\" && mkdir -p \"$(dirname "$OUTFILE")\"" >> "$OUTFILE" echo "" >> "$OUTFILE" if [ ! -z "$batchmode" ]; then echo "$CHDIR" >> "$OUTFILE"
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
.