Changes of Revision 80

ffhevc.changes Changed
x
 
1
@@ -1,4 +1,16 @@
2
 -------------------------------------------------------------------
3
+Thu Jan 04 20:09:00 UTC 2018 - neutrino8@opensuse.org
4
+
5
+- Update to version 3.5.2
6
+  * Support tweaking the tonemap algorithms for HDR to SDR conversion
7
+  * Increased default desat tonemap value from 2.3 to 4.2
8
+  * Support applying color saturation correction when doing an HDR
9
+    to SDR conversion
10
+  * Added bt2020-12 to the list of transfers when doing color
11
+    characteristics copy
12
+  * Updated the HDR_to_SDR_instructions.txt file
13
+
14
+-------------------------------------------------------------------
15
 Wed Jan 03 08:29:00 UTC 2018 - neutrino8@opensuse.org
16
 
17
 - Update to version 3.5.1
18
ffhevc.spec Changed
10
 
1
@@ -17,7 +17,7 @@
2
 
3
 
4
 Name:           ffhevc
5
-Version:        3.5.1
6
+Version:        3.5.2
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.1.tar.gz/ChangeLog -> ffhevc-3.5.2.tar.gz/ChangeLog Changed
14
 
1
@@ -1,3 +1,12 @@
2
+2018-01-04 - ffhevc 3.5.2
3
+   * Support tweaking the tonemap algorithms for HDR to SDR conversion
4
+   * Increased default desat tonemap value from 2.3 to 4.2
5
+   * Support applying color saturation correction when doing an HDR
6
+     to SDR conversion
7
+   * Added bt2020-12 to the list of transfers when doing color
8
+     characteristics copy
9
+   * Updated the HDR_to_SDR_instructions.txt file
10
+   
11
 2018-01-03 - ffhevc 3.5.1
12
    * Don't hardcode the desaturation strength of the tonemap filter
13
      but let is be an option
14
ffhevc-3.5.1.tar.gz/HDR_to_SDR_instructions.txt -> ffhevc-3.5.2.tar.gz/HDR_to_SDR_instructions.txt Changed
13
 
1
@@ -17,6 +17,11 @@
2
   choose the color space option you want. The options presented are pretty
3
   obvious.
4
   
5
+- (Optional): if colors look too bleak (desaturated) here and there, you can
6
+  apply a "color saturation correction" and increase the saturation strength
7
+  until you are satisfied.
8
+  This is a sub-option part of the "HDR to SDR Conversion" option.
9
+  
10
 - (Optional): Scale down the input to appropriate resolution if you are targeting
11
   HD/Full HD/NTSC/PAL output.
12
 
13
ffhevc-3.5.1.tar.gz/ffhevc -> ffhevc-3.5.2.tar.gz/ffhevc Changed
91
 
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.1
6
-# Date: 2018-01-03
7
+# Version: 3.5.2
8
+# Date: 2018-01-04
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.1"
17
+version="3.5.2"
18
 
19
 CFG="$HOME/.ffhevc"
20
 cfgversion="38"
21
@@ -1006,9 +1006,29 @@
22
                exit 1
23
                ;;
24
            esac
25
-           printf "Specify the Desaturation Strength [default is 2.3]: "
26
+           case "$tmaopt" in
27
+               1)
28
+               printf "Specify the Linear Coefficient before Clipping [default is 1.0]: "
29
+               ;;
30
+               2)
31
+               printf "Specify the Scale Factor to use while stretching [default is 1.0]: "
32
+               ;;
33
+               3)
34
+               printf "Specify the Exponent of the Function [default is 1.8]: "
35
+               ;;
36
+               4)
37
+               printf "Specify the local Contrast Coefficient at the Display Peak [default is 0.5]: "
38
+               ;;
39
+               6|"")
40
+               printf "Specify the Transition Point from Linear to Mobius Transform [default is 0.3]: "
41
+               ;;
42
+           esac
43
+           read tmparam
44
+           test ! -z "$tmparam" && tm_param=":param=$tmparam"
45
+           
46
+           printf "Specify the Tonemap Desaturation Strength [default is 4.2]: "
47
            read desat
48
-           test -z "$desat" && tm_desat="2.3" || tm_desat="$desat"
49
+           test -z "$desat" && tm_desat=":desat=4.2" || tm_desat=":desat=$desat"
50
            echo
51
            video_chars_func vchars
52
            echo
53
@@ -1031,21 +1051,32 @@
54
                else
55
                    case "${VCHARS[3]}" in
56
                        smpte2084|bt2020-10)    ztrans="2020_10"; coltrans="bt2020-10" ;;
57
+                       bt2020-12)      ztrans="2020_12"; coltrans="bt2020-12" ;;
58
                        *)          ztrans="${VCHARS[3]}"; coltrans="${VCHARS[3]}" ;;
59
                    esac
60
-                   zscale="zscale=transfer=$ztrans"
61
+                   zscale=",zscale=transfer=$ztrans"
62
                    colorprim=":transfer=$coltrans:colorprim=${VCHARS[4]}:colormatrix=${VCHARS[2]}"
63
+                   colcopy="1"
64
                fi
65
                ;;
66
-               1)  zscale="zscale=transfer=bt709"; colorprim=":transfer=bt709:colorprim=bt709:colormatrix=bt709" ;;
67
-               2)  zscale="zscale=transfer=bt470bg"; colorprim=":transfer=bt470bg:colorprim=bt470bg:colormatrix=bt470bg" ;;
68
-               3)  zscale="zscale=transfer=smpte170m"; colorprim=":transfer=smpte170m:colorprim=smpte170m:colormatrix=smpte170m" ;;
69
+               1)  zscale=",zscale=transfer=bt709"; colorprim=":transfer=bt709:colorprim=bt709:colormatrix=bt709" ;;
70
+               2)  zscale=",zscale=transfer=bt470bg"; colorprim=":transfer=bt470bg:colorprim=bt470bg:colormatrix=bt470bg" ;;
71
+               3)  zscale=",zscale=transfer=smpte170m"; colorprim=":transfer=smpte170m:colorprim=smpte170m:colormatrix=smpte170m" ;;
72
                *)
73
                error "-> Invalid option!"
74
                exit 1
75
                ;;
76
            esac
77
-           test ! -z "$zscale" && tonemap="zscale=transfer=linear,tonemap=$tm_algo:desat=$tm_desat,$zscale,"
78
+           if [ ! -z "$zscale" -a -z "$colcopy" ]; then
79
+               printf "Apply a Color Saturation Correction? [y/N]: "
80
+               read satcor
81
+               if [ "$satcor" = "y" -o "$satcor" = "Y" ]; then
82
+                   printf "Specify the Saturation Strength [0.0-3.0 - default is 1.25]: "
83
+                   read satval
84
+                   test -z "$satval" && eq=",eq=saturation=1.25" || eq=",eq=saturation=$satval"
85
+               fi
86
+           fi
87
+           test ! -z "$zscale" && tonemap="zscale=transfer=linear,tonemap=$tm_algo$tm_param$tm_desat$zscale$eq,"
88
        fi
89
    fi
90
 }
91