Changes of Revision 175

ffx264.changes Changed
x
 
1
@@ -1,4 +1,11 @@
2
 -------------------------------------------------------------------
3
+Thu Jan 02 10:04:00 UTC 2025 - neutrino8@gmail.com
4
+
5
+- Update to version 4.2.13
6
+  * Fixed a bug in the cropping code for batch encoding
7
+  * Updated the built-in script preset
8
+
9
+-------------------------------------------------------------------
10
 Mon Dec 09 15:23:00 UTC 2024 - neutrino8@gmail.com
11
 
12
 - Update to version 4.2.12
13
ffx264.spec Changed
19
 
1
@@ -1,7 +1,7 @@
2
 #
3
 # spec file for package ffx264
4
 #
5
-# Copyright (c) 2024 SUSE LINUX GmbH, Nuernberg, Germany.
6
+# Copyright (c) 2025 SUSE LINUX GmbH, Nuernberg, Germany.
7
 #
8
 # All modifications and additions to the file contributed by third parties
9
 # remain the property of their copyright owners, unless otherwise agreed
10
@@ -17,7 +17,7 @@
11
 
12
 
13
 Name:           ffx264
14
-Version:        4.2.12
15
+Version:        4.2.13
16
 Release:        %mkrel 1
17
 Summary:        A small shell script for encoding to H.264/AVC with FFmpeg
18
 License:        GPL-2.0+
19
ffx264-4.2.12.tar.gz/ChangeLog -> ffx264-4.2.13.tar.gz/ChangeLog Changed
9
 
1
@@ -1,3 +1,7 @@
2
+2025-01-02 - ffx264 4.2.13
3
+   * Fixed a bug in the cropping code for batch encoding
4
+   * Updated the built-in script preset
5
+
6
 2024-12-09 - ffx264 4.2.12
7
    * Moved cropping code into its own function and display
8
      informative crop values message when running in batch
9
ffx264-4.2.12.tar.gz/ffx264 -> ffx264-4.2.13.tar.gz/ffx264 Changed
72
 
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@gmail.com>
5
-# Version: 4.2.12
6
-# Date: 2024-12-09
7
+# Version: 4.2.13
8
+# Date: 2025-01-02
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 "\e0;33m$1\e0;39;49m"; }
14
 error() { echo -e "\e1;31m$1\e0;39;49m"; }
15
 
16
-version="4.2.12"
17
+version="4.2.13"
18
 
19
 CFG="$HOME/.ffx264"
20
-cfgversion="45"
21
+cfgversion="46"
22
 
23
 genconfig_func() {
24
 cat<<EOF>>"$CFG"
25
@@ -123,7 +123,7 @@
26
 LOG="n"
27
 
28
 # libx264 parameters for the 'script' preset
29
-X264PARAMS="force-cfr=1:bframes=8:ref=4:trellis=2:merange=32: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.0,0.10:rc-lookahead=60:no-dct-decimate=1: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"
30
+X264PARAMS="force-cfr=1:bframes=8:ref=4:trellis=2:merange=32:direct-pred=auto:chroma-me=1:mbtree=1:me=umh:subme=11:b-adapt=2:aq-mode=2:aq-strength=1.0:psy=1:psy-rd=1.0,0.10:rc-lookahead=60:no-dct-decimate=1: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"
31
 
32
 # Leave empty to auto-detect ffmpeg/ffprobe/mplayer
33
 # or set your custom ones (eg, /path/to/bin/ffmpeg)
34
@@ -1628,13 +1628,13 @@
35
        green "-> ${INFO}Detecting crop values..."
36
        video_length_func file
37
        if  -z "$VLENGTH" -o "$VLENGTH" = "N/A" ; then
38
-           vlength="300"
39
+           vlength="500"
40
        else
41
            vlength="$VLENGTH"
42
        fi
43
-       CROPVAL="$($FFMPEG -ss $(($vlength/2)) -i "$input" $vidmap -vf cropdetect -frames:v 1000 -f null - 2>&1 | awk '/crop/ {print $NF}' | awk -F= '{print $2}' | tail -1)"
44
-       if  ! -z "$CROPVAL" ; then
45
-           green "-> ${INFO}Found crop values: $CROPVAL"
46
+       CROPVALUES="$($FFMPEG -ss $(($vlength/2)) -i "$input" $vidmap -vf cropdetect -frames:v 1000 -f null - 2>&1 | awk '/crop/ {print $NF}' | awk -F= '{print $2}' | tail -1)"
47
+       if  ! -z "$CROPVALUES" ; then
48
+           green "-> ${INFO}Found crop values: $CROPVALUES"
49
        else
50
            error "-> ${INFO}Could not find the crop values!"
51
            CDEF="???"
52
@@ -1655,7 +1655,7 @@
53
        CROPDETERMINED="n"
54
        while  "$CROPDETERMINED" != "y" ; do
55
            if  -z "$cropval" ; then
56
-               printf "Specify the Crop Values default is $CROPVAL: "
57
+               printf "Specify the Crop Values default is $CROPVALUES: "
58
            else
59
                printf "Specify the Crop Values last try: "$cropval": "
60
            fi
61
@@ -1668,8 +1668,8 @@
62
                echo
63
            else
64
                if  -z "$cropval" ; then
65
-                   crop="crop=$CROPVAL,"
66
-                   crop_preview="$CROPVAL"
67
+                   crop="crop=$CROPVALUES,"
68
+                   crop_preview="$CROPVALUES"
69
                else
70
                    crop="crop=$cropval,"
71
                    crop_preview="$cropval"
72