Projects
Multimedia
ffhevc
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 116
View file
ffhevc.changes
Changed
@@ -1,4 +1,12 @@ ------------------------------------------------------------------- +Tue Jul 23 11:15:00 UTC 2019 - neutrino8@opensuse.org + +- Update to version 3.7.2 + * Added support for crop preview using MPlayer when + autocrop is enabled in the config file. This was + ported over from my h264enc script + +------------------------------------------------------------------- Fri Jul 12 13:55:00 UTC 2019 - neutrino8@opensuse.org - Update to version 3.7.1
View file
ffhevc.spec
Changed
@@ -17,7 +17,7 @@ Name: ffhevc -Version: 3.7.1 +Version: 3.7.2 Release: 0 Summary: A small shell script for encoding to H.265/HEVC with ffmpeg License: GPL-2.0+ @@ -26,6 +26,7 @@ Source0: %{name}-%{version}.tar.gz Requires: ffmpeg Requires: bc +Requires: MPlayer BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildArch: noarch
View file
ffhevc-3.7.1.tar.gz/ChangeLog -> ffhevc-3.7.2.tar.gz/ChangeLog
Changed
@@ -1,3 +1,8 @@ +2019-07-23 - ffhevc 3.7.2 + * Added support for crop preview using MPlayer when + autocrop is enabled in the config file. This was + ported over from my h264enc script + 2019-07-12 - ffhevc 3.7.1 * Updated the default encoding params. Added the new hme (hierarchical motion search) and hme-search
View file
ffhevc-3.7.1.tar.gz/ffhevc -> ffhevc-3.7.2.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.7.1 -# Date: 2019-07-12 +# Version: 3.7.2 +# Date: 2019-07-23 # # 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.7.1" +version="3.7.2" CFG="$HOME/.ffhevc" -cfgversion="40" +cfgversion="41" genconfig_func() { cat<<EOF>>"$CFG" @@ -118,10 +118,11 @@ # merange is calculated as: ctu size - 4(luma) - 2(chroma) (- 1 if me=hex is used) X265PARAMS="ref=4:me=star:hme=1:hme-search=umh,umh,star:bframes=6:rd=4:subme=4:merange=58:strong-intra-smoothing=0:ctu=64:sao=0:cu-lossless=0:cutree=1:tu-inter-depth=3:tu-intra-depth=3:rskip=1:max-merge=3:rc-lookahead=60:aq-mode=1:aq-strength=1.1:rdoq-level=1:psy-rdoq=1.5:psy-rd=2.0:limit-modes=1:limit-refs=3:limit-tu=4:rd-refine=1:deblock=-3,-3:weightb=1:weightp=1:rect=1:amp=0:wpp=1:pmode=0:pme=0:b-intra=1:b-adapt=2:b-pyramid=1:tskip-fast=0:fast-intra=0:early-skip=0:min-keyint=24:keyint=240" -# Leave empty to auto-detect ffmpeg/ffprobe or -# set your custom ones (eg, /path/to/bin/ffmpeg) +# Leave empty to auto-detect ffmpeg/ffprobe/mplayer +# or set your custom ones (eg, /path/to/bin/ffmpeg) FFMPEG="" FFPROBE="" +MPLAYER="" # Add a custom comment to your encodes # Leave empty to disable/ask each time @@ -366,6 +367,22 @@ fi fi +if [ ! -z "$MPLAYER" ]; then + if [ ! -x "$MPLAYER" ]; then + error "-> MPlayer is missing from your system!" + error "-> Check the config in '$CFG'" + echo + exit 1 + fi +else + MPLAYER="$(which mplayer 2>/dev/null)" + if [ ! -x "$MPLAYER" ]; then + error "-> MPlayer is missing from your system!" + echo + exit 1 + fi +fi + BC="$(which bc 2>/dev/null)" if [ ! -x "$BC" ]; then error "-> Utility 'bc' is missing from your system!" @@ -1469,16 +1486,44 @@ CDEF="???" fi echo - printf "Specify the Crop Values [default is $CROPVAL$CDEF]: " - read cropval - if [ ! -z "$CDEF" -a -z "$cropval" ]; then - echo - error "-> No crop values provided!" - error "-> Skipping!" - echo - else - test -z "$cropval" && crop="crop=$CROPVAL," || crop="crop=$cropval," - fi + CROPDETERMINED="n" + while [ "$CROPDETERMINED" != "y" -o "$CROPDETERMINED" = "Y" ]; do + if [ -z "$cropval" ]; then + printf "Specify the Crop Values [default is $CROPVAL]: " + else + printf "Specify the Crop Values [last try: "$cropval"]: " + fi + read cropval + if [ -z "$cropval" -a "$CDEF" = "???" ]; then + crop= + echo + error "-> Crop values not specified!" + error "-> Skipping!" + echo + else + if [ -z "$cropval" ]; then + crop="crop=$CROPVAL," + crop_preview="$CROPVAL" + else + crop="crop=$cropval," + crop_preview="$cropval" + fi + printf "Preview the Crop Values for 10 seconds? [y/N]: " + read precrop + if [ "$precrop" = "y" -o "$precrop" = "Y" ]; then + printf "Specify the Start Position in hour:min:sec [default is 0:02:00]: " + read timepos + if [ -z "$timepos" ]; then + startpos="0:02:00" + else + startpos="$timepos" + fi + $MPLAYER "$input" -vf rectangle=$crop_preview -noconfig all -nocache -ao null -ss $startpos -endpos 10 >/dev/null 2>&1 + fi + fi + printf "Are you Satisfied with the Crop Area? [y/N]: " + read CROPDETERMINED + done fi else printf "Specify the Crop Values [press 'Enter' to skip]: "
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
.