Changes of Revision 138

ffx264.changes Changed
x
 
1
@@ -1,4 +1,13 @@
2
 -------------------------------------------------------------------
3
+Sat Dec 28 15:40:00 UTC 2019 - neutrino8@opensuse.org
4
+
5
+- Update to version 4.0.4
6
+  * Add support for the noise video filter. Can be beneficial
7
+    on (very) clean sources by applying some noise to avoid
8
+    things like color/light banding in the encode
9
+  * Fine-tuning to the default encoding options
10
+
11
+-------------------------------------------------------------------
12
 Mon Nov 11 13:51:00 UTC 2019 - neutrino8@opensuse.org
13
 
14
 - Update to version 4.0.3
15
ffx264.spec Changed
10
 
1
@@ -17,7 +17,7 @@
2
 
3
 
4
 Name:           ffx264
5
-Version:        4.0.3
6
+Version:        4.0.4
7
 Release:        0
8
 Summary:        A small shell script for encoding to H.264/AVC with FFmpeg
9
 License:        GPL-2.0+
10
ffx264-4.0.3.tar.gz/ChangeLog -> ffx264-4.0.4.tar.gz/ChangeLog Changed
11
 
1
@@ -1,3 +1,9 @@
2
+2019-12-28 - ffx264 4.0.4
3
+   * Add support for the noise video filter. Can be beneficial
4
+     on (very) clean sources by applying some noise to avoid
5
+     things like color/light banding in the encode
6
+   * Fine-tuning to the default encoding options
7
+
8
 2019-11-11 - ffx264 4.0.3
9
    * Added support for the (newer) deblock filter
10
 
11
ffx264-4.0.3.tar.gz/ffx264 -> ffx264-4.0.4.tar.gz/ffx264 Changed
77
 
1
@@ -2,8 +2,8 @@
2
 #
3
 # Small script to encode to H.264/AVC video using FFmpeg and libx264.
4
 # Author: Grozdan "microchip" Nikolov <neutrino8@opensuse.org>
5
-# Version: 4.0.3
6
-# Date: 2019-11-01
7
+# Version: 4.0.4
8
+# Date: 2019-12-28
9
 #
10
 # ffx264 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,10 +24,10 @@
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="4.0.3"
17
+version="4.0.4"
18
 
19
 CFG="$HOME/.ffx264"
20
-cfgversion="40"
21
+cfgversion="41"
22
 
23
 genconfig_func() {
24
 cat<<EOF>>"$CFG"
25
@@ -84,6 +84,7 @@
26
 
27
 # Video filters
28
 VID_DENOISE="y"
29
+VID_NOISE="y"
30
 VID_DEBLOCK="y"
31
 VID_SHARPEN="y"
32
 VID_ROTATE="y"
33
@@ -119,7 +120,7 @@
34
 
35
 # libx264 parameters. Modify, if needed,
36
 # to fit your needs
37
-X264PARAMS="force-cfr=1:bframes=6:keyint=240:min-keyint=24:ref=4:trellis=2:merange=24:direct-pred=auto:chroma-me=1:mbtree=1:me=umh:subme=10:b-adapt=2:aq-mode=1:aq-strength=1.05:psy=1:psy-rd=1.05,0.15:rc-lookahead=60:weightb=1:weightp=2:mixed-refs=1:b-pyramid=normal:fast-pskip=0:deblock=-1,-1:8x8dct=1:cabac=1:partitions=p8x8,b8x8,i8x8,i4x4:threads=auto"
38
+X264PARAMS="force-cfr=1:bframes=6:keyint=240:min-keyint=24:ref=4:trellis=2:merange=24:direct-pred=auto:chroma-me=1:mbtree=1:me=umh:subme=10:b-adapt=2:aq-mode=2:aq-strength=1.0:psy=1:psy-rd=1.05,0.15:rc-lookahead=100:weightb=1:weightp=2:mixed-refs=1:b-pyramid=normal:fast-pskip=0:deblock=-1,-1:8x8dct=1:cabac=1:partitions=p8x8,b8x8,i8x8,i4x4:threads=auto"
39
 
40
 # Leave empty to auto-detect ffmpeg/ffprobe/mplayer
41
 # or set your custom ones (eg, /path/to/bin/ffmpeg)
42
@@ -810,6 +811,17 @@
43
    fi
44
 }
45
 
46
+video_noise_func() {
47
+   printf "Add Temporal & Uniform Noise to the Input File? [y/N]: "
48
+   read tun
49
+   if [ "$tun" =  "y" -o "$tun" = "Y" ]; then
50
+       printf "Specify the Noise Strength [0-100 - default is 2]: "
51
+       read nvalue
52
+       test -z "$nvalue" && nval="2" || nval="$nvalue"
53
+       noise="noise=alls=$nvalue:allf=t+u,"
54
+   fi
55
+}
56
+
57
 video_deblock_func() {
58
    printf "Deblock the Input File? [y/N]: "
59
    read db
60
@@ -1483,6 +1495,7 @@
61
 read postproc
62
 if [ "$postproc" = "y" -o "$postproc" = "Y" ]; then
63
    test "$VID_DENOISE" = "y" && video_denoise_func
64
+   test "$VID_NOISE" = "y" && video_noise_func
65
    test "$VID_DEBLOCK" = "y" && video_deblock_func
66
    test "$VID_SHARPEN" = "y" && video_sharpen_func
67
    test "$VID_DEINTERLACE" = "y" && video_deinterlace_func
68
@@ -3555,7 +3568,7 @@
69
 
70
 test "$CHAPS" = "n" && CHAPS="-map_chapters -1" || CHAPS="-map_chapters 0"
71
 
72
-vidfilters="$(echo "$deinterlace$detelecine$tonemap$crop$deblock$denoise$scale$colorspace$unsharp$eq$rotate$pixformat$setpts$fps$framestep$subtitles" | sed 's|,$||')"
73
+vidfilters="$(echo "$deinterlace$detelecine$tonemap$crop$deblock$denoise$scale$noise$colorspace$unsharp$eq$rotate$pixformat$setpts$fps$framestep$subtitles" | sed 's|,$||')"
74
 
75
 test ! -z "$vidfilters" && vfilters="-vf $vidfilters"
76
 
77