Changes of Revision 85

ffhevc.changes Changed
x
 
1
@@ -1,4 +1,12 @@
2
 -------------------------------------------------------------------
3
+Fri Feb 16 10:31:00 UTC 2018 - neutrino8@opensuse.org
4
+
5
+- Update to version 3.5.6
6
+  * Replace an ffprobe log level occurance of -v error to -v quiet
7
+  * Added a small script called "hdr" to get HDR values from a file
8
+    which then can be used in ffhevc's HDR options menu
9
+
10
+-------------------------------------------------------------------
11
 Wed Feb 07 04:15:00 UTC 2018 - neutrino8@opensuse.org
12
 
13
 - Update to version 3.5.5
14
ffhevc.spec Changed
10
 
1
@@ -17,7 +17,7 @@
2
 
3
 
4
 Name:           ffhevc
5
-Version:        3.5.5
6
+Version:        3.5.6
7
 Release:        0
8
 Summary:        A small shell script for encoding to H.265/HEVC with ffmpeg
9
 License:        GPL-2.0+
10
ffhevc-3.5.5.tar.gz/ChangeLog -> ffhevc-3.5.6.tar.gz/ChangeLog Changed
10
 
1
@@ -1,3 +1,8 @@
2
+2018-02-16 - ffhevc 3.5.6
3
+   * Replace an ffprobe log level occurance of -v error to -v quiet
4
+   * Added a small script called "hdr" to get HDR values from a file
5
+     which then can be used in ffhevc's HDR options menu
6
+
7
 2018-02-07 - ffhevc 3.5.5
8
    * Update transfer chars to support latest changes to zimg from git
9
    
10
ffhevc-3.5.5.tar.gz/Makefile -> ffhevc-3.5.6.tar.gz/Makefile Changed
18
 
1
@@ -8,7 +8,9 @@
2
    mkdir -p -m 755 $(PREFIX)/bin $(DOCDIR)/ffhevc $(MANDIR)
3
    
4
    cp -f ffhevc $(PREFIX)/bin
5
+   cp -f hdr $(PREFIX)/bin
6
    chmod 755 $(PREFIX)/bin/ffhevc
7
+   chmod 755 $(PREFIX)/bin/hdr
8
    cp -f AUTHORS LICENSE README ChangeLog Dynamic_HDR10_Example.json *.txt $(DOCDIR)/ffhevc
9
    chmod 644 $(DOCDIR)/ffhevc/*
10
    cp -f ffhevc.1 $(MANDIR)
11
@@ -16,5 +18,6 @@
12
 
13
 uninstall:
14
    rm -f $(PREFIX)/bin/ffhevc
15
+   rm -f $(PREFIX)/bin/hdr
16
    rm -f $(MANDIR)/ffhevc.1.gz
17
    rm -rf $(DOCDIR)/ffhevc
18
ffhevc-3.5.5.tar.gz/ffhevc -> ffhevc-3.5.6.tar.gz/ffhevc Changed
30
 
1
@@ -2,8 +2,8 @@
2
 #
3
 # Small script to encode to H.265/HEVC video using FFmpeg and libx265.
4
 # Author: Grozdan "microchip" Nikolov <neutrino8@opensuse.org>
5
-# Version: 3.5.5
6
-# Date: 2018-02-07
7
+# Version: 3.5.6
8
+# Date: 2018-02-16
9
 #
10
 # ffhevc is free software ; you can redistribute it and/or modify
11
 # it under the terms of the GNU General Public License as published by
12
@@ -24,7 +24,7 @@
13
 brown() { echo -e "\e[0;33m$1\e[0;39;49m"; }
14
 error() { echo -e "\e[1;31m$1\e[0;39;49m"; }
15
 
16
-version="3.5.5"
17
+version="3.5.6"
18
 
19
 CFG="$HOME/.ffhevc"
20
 cfgversion="38"
21
@@ -761,7 +761,7 @@
22
 
23
 # Used by mc/bobbing deinterlace and FPS conversion
24
 video_fps_func() {
25
-   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)"
26
+   GETFPS="$($FFPROBE -i "$input" -v quiet -select_streams v:0 -show_entries stream=r_frame_rate -of default=noprint_wrappers=1:nokey=1 | tail -1)"
27
 }
28
 
29
 # Used by mc/bobbing deinterlace, IVTC and interlace-aware encoding
30
ffhevc-3.5.6.tar.gz/hdr Added
36
 
1
@@ -0,0 +1,34 @@
2
+#!/bin/bash
3
+# Small and dirty script to get HDR values which
4
+# can be fed to ffhevc's HDR options menu
5
+
6
+test -z "$1" && echo "Usage: hdr <file>" && exit 1
7
+
8
+FILE="$(realpath -s "$1")"
9
+
10
+hdrfile="/tmp/hdr$$"
11
+
12
+ffprobe -i "$FILE" -v quiet -select_streams v:0 -show_entries side_data -read_intervals %+1 > "$hdrfile"
13
+
14
+G_X="$(grep '^green_x' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
15
+G_Y="$(grep '^green_y' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
16
+
17
+B_X="$(grep '^blue_x' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
18
+B_Y="$(grep '^blue_y' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
19
+
20
+R_X="$(grep '^red_x' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
21
+R_Y="$(grep '^red_y' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
22
+
23
+WP_X="$(grep '^white_point_x' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
24
+WP_Y="$(grep '^white_point_y' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
25
+
26
+L_MIN="$(grep '^min_luminance' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
27
+L_MAX="$(grep '^max_luminance' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
28
+
29
+MAX_C="$(grep '^max_content' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
30
+MAX_AVG="$(grep '^max_average' "$hdrfile" | awk -F= '{print $2}' | awk -F/ '{print $1}' | tail -1)"
31
+
32
+echo "master-display: G($G_X,$G_Y)B($B_X,$B_Y)R($R_X,$R_Y)WP($WP_X,$WP_Y)L($L_MAX,$L_MIN)"
33
+echo "max-cll: $MAX_C,$MAX_AVG"
34
+
35
+rm -f "$hdrfile"
36