File size after enconding to H264 to original MPEG2 still quite large

Support for HandBrake on Linux, Solaris, and other Unix-like platforms
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
Savi
Posts: 3
Joined: Sun Nov 15, 2020 10:41 am

File size after enconding to H264 to original MPEG2 still quite large

Post by Savi »

Description of problem or question:
Hi guys,

I am quite new to Handbrake and am experiencing a "weird behavior" I don't quite understand. Here is the situation:

I have a bunch of travel Vlogs in DVD format 720x576i 25fps I want to encode in h264 format. Surprisingly, after encoding the file size of the mkv is "only" 30% smaller than the file size of the mpeg2 original file...according the the H264 specs I was expecting it to to be the half of the size. And in fact, if I follow the recommendations of dr-lex bitrate calculator https://www.dr-lex.be/info-stuff/videocalc.html and set the bitrate to e.g. 1700, 2pass encoding (with accelerated 1st pass) I get excellent results. On the other hand, if I increase the RF value over 23 the final video starts to have very visible block artifacts. Is a two pass always better that using the quantizer at the end? An accelerated first pass takes only 5 minutes with my AMD 2600 CPU. Here some information about the original video:

ID : 224 (0xE0)
Format : MPEG Video
Format version : Version 2
Format profile : Main@Main
Format settings : BVOP
Format settings, BVOP : Yes
Format settings, Matrix : Default
Format settings, GOP : M=3, N=12
Format settings, picture structure : Frame
Duration : 20 min 0 s
Bit rate mode : Variable
Bit rate : 6 622 kb/s
Maximum bit rate : 8 000 kb/s
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 4:3
Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Interlaced
Scan order : Bottom Field First
Compression mode : Lossy
Bits/(Pixel*Frame) : 0.639
Time code of first frame : 00:00:00:00
Time code source : Group of pictures header
GOP, Open/Closed : Open
GOP, Open/Closed of first frame : Closed
Stream size : 948 MiB (95%)

I start with selecting the Matroska Preset h264 576 25 fps profile, simply set the RF to 19 and add the parameter bff=1. The final output is was 1.3 GB, whereat the original DVD has 1.5 GB.

Hanbrake 1.3.1 (x86_64) running under Ubuntu 20.04.

Thanks in advance for any comment/input :)

HandBrake Activity Log

Code: Select all

[11:49:59] gtkgui: HandBrake 1.3.1 (2020032300) - Linux x86_64 - https://handbrake.fr
[11:49:59] hb_init: starting libhb thread
[11:49:59] hb_init: starting libhb thread
[11:49:59] hb_init: starting libhb thread
[12:03:46] CPU: 
[12:03:46]  - logical processor count: 12
[12:03:46] hb_scan: path=/media/flajeca/Komandoo/VIDEO_TS, title_index=0
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/media/flajeca/Komandoo/VIDEO_TS/) failed
[12:03:46] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000011d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001ca
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000038e
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
[12:03:47] scan: DVD has 1 title(s)
[12:03:47] scan: scanning title 1
[12:03:47] scan: duration is 00:29:09 (1749920 ms)
[12:03:47] pgc_id: 1, pgn: 1: pgc: 0x7fcdec022260
[12:03:47] scan: checking audio 1
[12:03:47] scan: id=0x80bd, lang=Unknown (AC3), 3cc=und ext=0
[12:03:47] scan: checking subtitle 1
[12:03:47] scan: id=0x20bd, lang=srpski (4:3) [VOBSUB], 3cc=srp ext=0
[12:03:47] scan: checking subtitle 2
[12:03:47] scan: id=0x21bd, lang=Deutsch (4:3) [VOBSUB], 3cc=deu ext=0
[12:03:47] scan: title 1 has 10 chapters
[12:03:47] scan: chap 1, 13360 ms
[12:03:47] scan: chap 2, 300000 ms
[12:03:47] scan: chap 3, 138240 ms
[12:03:47] scan: chap 4, 60480 ms
[12:03:47] scan: chap 5, 150720 ms
[12:03:47] scan: chap 6, 522720 ms
[12:03:47] scan: chap 7, 169920 ms
[12:03:47] scan: chap 8, 124800 ms
[12:03:47] scan: chap 9, 90720 ms
[12:03:47] scan: chap 10, 178960 ms
[12:03:47] scan: aspect = 4:3
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[12:03:48] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[12:03:48] scan: title angle(s) 1
[12:03:48] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=224000 Unknown (AC3) (2.0 ch) (224 kbps)
[12:03:49] scan: 10 previews, 720x576, 25,000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 16:15
[12:03:49] libhb: scan thread found 1 valid title(s)
[12:05:43] gtkgui: Modified Custom Preset: /Matroska/DVD - H.264 MKV 576i25
[12:05:43] Starting work at: Sun Nov 15 12:05:43 2020

[12:05:43] 1 job(s) to process
[12:05:43] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 224,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "ITA",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 13,
                    "Ticks": 1202400
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 0,
                    "Ticks": 27000000
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 18,
                    "Ticks": 12441600
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 0,
                    "Ticks": 5443200
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 31,
                    "Ticks": 13564800
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 43,
                    "Ticks": 47044800
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 50,
                    "Ticks": 15292800
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 5,
                    "Ticks": 11232000
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 31,
                    "Ticks": 8164800
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 59,
                    "Ticks": 16106400
                },
                "Name": "Chapter 10"
            }
        ],
        "ChapterMarkers": true,
        "File": "/media/HDD2/ZUM LÖSCHEN/Komandoo.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 1,
                    "rate": "27000000/1080000"
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 576,
                    "width": 720
                }
            }
        ]
    },
    "Metadata": {
        "Name": "Komandoo"
    },
    "PAR": {
        "Den": 15,
        "Num": 16
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/media/flajeca/Komandoo/VIDEO_TS",
        "Range": {
            "End": 10,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Name": "SRP",
                "Offset": 0,
                "Track": 0
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Name": "DEU",
                "Offset": 0,
                "Track": 1
            }
        ]
    },
    "Video": {
        "ColorFormat": 0,
        "ColorMatrix": 6,
        "ColorPrimaries": 5,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "bff=1",
        "Preset": "medium",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 19.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[12:05:43] CPU: 
[12:05:43]  - logical processor count: 12
[12:05:43] hb_scan: path=/media/flajeca/Komandoo/VIDEO_TS, title_index=1
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/media/flajeca/Komandoo/VIDEO_TS/) failed
[12:05:43] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000011d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001ca
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000038e
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
[12:05:43] scan: DVD has 1 title(s)
[12:05:43] scan: scanning title 1
[12:05:43] scan: duration is 00:29:09 (1749920 ms)
[12:05:43] pgc_id: 1, pgn: 1: pgc: 0x7fcdf00214d0
[12:05:43] scan: checking audio 1
[12:05:43] scan: id=0x80bd, lang=Unknown (AC3), 3cc=und ext=0
[12:05:43] scan: checking subtitle 1
[12:05:43] scan: id=0x20bd, lang=srpski (4:3) [VOBSUB], 3cc=srp ext=0
[12:05:43] scan: checking subtitle 2
[12:05:43] scan: id=0x21bd, lang=Deutsch (4:3) [VOBSUB], 3cc=deu ext=0
[12:05:43] scan: title 1 has 10 chapters
[12:05:43] scan: chap 1, 13360 ms
[12:05:43] scan: chap 2, 300000 ms
[12:05:43] scan: chap 3, 138240 ms
[12:05:43] scan: chap 4, 60480 ms
[12:05:43] scan: chap 5, 150720 ms
[12:05:43] scan: chap 6, 522720 ms
[12:05:43] scan: chap 7, 169920 ms
[12:05:43] scan: chap 8, 124800 ms
[12:05:43] scan: chap 9, 90720 ms
[12:05:43] scan: chap 10, 178960 ms
[12:05:43] scan: aspect = 4:3
[12:05:43] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[12:05:43] scan: title angle(s) 1
[12:05:43] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=224000 Unknown (AC3) (2.0 ch) (224 kbps)
[12:05:43] scan: 10 previews, 720x576, 25,000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 16:15
[12:05:43] libhb: scan thread found 1 valid title(s)
[12:05:43] Skipping subtitle scan.  No suitable subtitle tracks.
[12:05:43] Starting Task: Encoding Pass
[12:05:43] Skipping crop/scale filter
[12:05:43] job configuration:
[12:05:43]  * source
[12:05:43]    + /media/flajeca/Komandoo/VIDEO_TS
[12:05:43]    + title 1, chapter(s) 1 to 10
[12:05:43]  * destination
[12:05:43]    + /media/HDD2/ZUM LÖSCHEN/Komandoo.mkv
[12:05:43]    + container: Matroska (libavformat)
[12:05:43]      + chapter markers
[12:05:43]  * video track
[12:05:43]    + decoder: mpeg2video
[12:05:43]      + bitrate 200 kbps
[12:05:43]    + filter
[12:05:43]      + Framerate Shaper (mode=1:rate=27000000/1080000)
[12:05:43]        + frame rate: 25,000 fps -> constant 25,000 fps
[12:05:43]    + Output geometry
[12:05:43]      + storage dimensions: 720 x 576
[12:05:43]      + pixel aspect ratio: 16 : 15
[12:05:43]      + display dimensions: 768 x 576
[12:05:43]    + encoder: H.264 (libx264)
[12:05:43]      + preset:  medium
[12:05:43]      + options: bff=1
[12:05:43]      + profile: high
[12:05:43]      + level:   auto
[12:05:43]      + quality: 19,00 (RF)
[12:05:43]      + color profile: 5-1-6
[12:05:43]  * subtitle track 1, srpski (4:3) [VOBSUB] (track 0, id 0x20bd, Picture) -> Passthrough
[12:05:43]    + name: SRP
[12:05:43]  * subtitle track 2, Deutsch (4:3) [VOBSUB] (track 1, id 0x21bd, Picture) -> Passthrough
[12:05:43]    + name: DEU
[12:05:43]  * audio track 1
[12:05:43]    + name: ITA
[12:05:43]    + decoder: Unknown (AC3) (2.0 ch) (224 kbps) (track 1, id 0x80bd)
[12:05:43]      + bitrate: 224 kbps, samplerate: 48000 Hz
[12:05:43]    + mixdown: Stereo
[12:05:43]    + dither: triangular
[12:05:43]    + encoder: AAC (libavcodec)
[12:05:43]      + bitrate: 224 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000011d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001ca
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000038e
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[12:05:43] sync: expecting 43748 video frames
[12:05:43] encx264: encoding at constant RF 19,000000
[12:05:43] encx264: unparsed options: bff=1
x264 [warning]: interlace + weightp is not implemented
x264 [info]: using SAR=16/15
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 3.0
[12:05:43] sync: first pts video is 0
[12:05:43] sync: "Chapter 1" (1) at frame 1 time 0
[12:05:43] sync: first pts audio 0x80bd is 0
[12:05:45] sync: "Chapter 2" (2) at frame 337 time 1209600

(ghb:16202): Gtk-WARNING **: 12:05:59.576: Could not load a pixbuf from icon theme.
This may indicate that pixbuf loaders or the mime database could not be found.

(ghb:16202): Gtk-WARNING **: 12:05:59.607: Failed to measure available space: Fehler beim Einlesen der Dateisystem-Information für /media/flajeca/HiSuite: Datei oder Verzeichnis nicht gefunden

(ghb:16202): Gtk-WARNING **: 12:05:59.607: Failed to measure available space: Fehler beim Einlesen der Dateisystem-Information für /media/flajeca/HiSuite: Datei oder Verzeichnis nicht gefunden

(ghb:16202): Gtk-WARNING **: 12:05:59.608: Failed to measure available space: Fehler beim Einlesen der Dateisystem-Information für /media/flajeca/HiSuite: Datei oder Verzeichnis nicht gefunden

(ghb:16202): Gtk-WARNING **: 12:05:59.608: Failed to measure available space: Fehler beim Einlesen der Dateisystem-Information für /media/flajeca/HiSuite: Datei oder Verzeichnis nicht gefunden

(ghb:16202): Gtk-WARNING **: 12:05:59.609: Failed to measure available space: Fehler beim Einlesen der Dateisystem-Information für /media/flajeca/HiSuite: Datei oder Verzeichnis nicht gefunden

(ghb:16202): Gtk-WARNING **: 12:05:59.609: Failed to measure available space: Fehler beim Einlesen der Dateisystem-Information für /media/flajeca/HiSuite: Datei oder Verzeichnis nicht gefunden
[12:06:55] sync: "Chapter 3" (3) at frame 7837 time 28209600
[12:06:55] sync: first pts subtitle 0x20bd is 28353600
[12:06:55] sync: first pts subtitle 0x21bd is 28353600
[12:07:24] sync: "Chapter 4" (4) at frame 11293 time 40651200
[12:07:37] sync: "Chapter 5" (5) at frame 12805 time 46094400
[12:08:00] sync: "Chapter 6" (6) at frame 16573 time 59659200
[12:09:30] sync: "Chapter 7" (7) at frame 29641 time 106704000
[12:10:08] sync: "Chapter 8" (8) at frame 33889 time 121996800
[12:10:28] sync: "Chapter 9" (9) at frame 37009 time 133228800
[12:10:45] sync: "Chapter 10" (10) at frame 39277 time 141393600
[12:11:05] reader: done. 1 scr changes
[12:11:05] work: average encoding speed for job is 135,559891 fps
[12:11:06] vfr: 43737 frames output, 0 dropped and 0 duped for CFR/PFR
[12:11:06] vfr: lost time: 0 (0 frames)
[12:11:06] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:11:06] ac3-decoder done: 54672 frames, 0 decoder errors
[12:11:06] mpeg2video-decoder done: 43737 frames, 0 decoder errors
[12:11:06] sync: got 43737 frames, 43748 expected
[12:11:06] sync: framerate min 25,000 fps, max 25,000 fps, avg 25,000 fps
[aac @ 0x7fcdec2780c0] Qavg: 643,823
x264 [info]: frame I:308   Avg QP:15,48  size: 64738
x264 [info]: frame P:11771 Avg QP:19,23  size: 32854
x264 [info]: frame B:31658 Avg QP:22,11  size: 14359
x264 [info]: consecutive B-frames:  2,9%  1,1%  2,3% 93,7%
x264 [info]: mb I  I16..4: 11,7% 83,1%  5,3%
x264 [info]: mb P  I16..4:  1,2% 25,9%  1,3%  P16..4: 27,5% 17,8% 12,0%  0,0%  0,0%    skip:14,4%
x264 [info]: mb B  I16..4:  0,1%  3,4%  0,7%  B16..8: 34,1%  9,2%  3,2%  direct: 9,9%  skip:39,5%  L0:35,4% L1:35,6% BI:29,0%
x264 [info]: field mbs: intra: 24,9% inter:15,4% skip:6,2%
x264 [info]: 8x8 transform intra:88,1% inter:83,8%
x264 [info]: coded y,uvDC,uvAC intra: 92,0% 72,5% 18,4% inter: 39,5% 27,3% 1,6%
x264 [info]: i16 v,h,dc,p: 41% 30%  9% 20%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6% 38% 25%  4%  3%  2%  8%  3% 11%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  7% 34% 13%  5%  6%  4% 13%  4% 14%
x264 [info]: i8c dc,h,v,p: 51% 30% 16%  4%
x264 [info]: ref P L0: 49,9% 31,3% 15,2%  1,5%  1,1%  1,0%
x264 [info]: ref B L0: 80,4% 14,9%  3,6%  0,6%  0,3%  0,2%
x264 [info]: ref B L1: 89,8%  9,4%  0,5%  0,3%
x264 [info]: kb/s:3938,35
[12:11:06] mux: track 0, 43737 frames, 861244289 bytes, 3938,11 kbps, fifo 4096
[12:11:06] mux: track 1, 82009 frames, 49037192 bytes, 224,23 kbps, fifo 8192
[12:11:06] mux: track 2, 131 frames, 627058 bytes, 2,87 kbps, fifo 32
[12:11:06] mux: track 3, 131 frames, 736328 bytes, 3,37 kbps, fifo 32
[12:11:06] Finished work at: Sun Nov 15 12:11:06 2020

[12:11:06] libhb: work result = 0
[12:21:46] gtkgui: Modified Custom Preset: /Matroska/DVD - H.264 MKV 576i25
[12:21:46] Starting work at: Sun Nov 15 12:21:46 2020

[12:21:46] 1 job(s) to process
[12:21:46] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 224,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "Name": "ITA",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 13,
                    "Ticks": 1202400
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 5,
                    "Seconds": 0,
                    "Ticks": 27000000
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 18,
                    "Ticks": 12441600
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 0,
                    "Ticks": 5443200
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 31,
                    "Ticks": 13564800
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 43,
                    "Ticks": 47044800
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 50,
                    "Ticks": 15292800
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 5,
                    "Ticks": 11232000
                },
                "Name": "Chapter 8"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 31,
                    "Ticks": 8164800
                },
                "Name": "Chapter 9"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 2,
                    "Seconds": 59,
                    "Ticks": 16106400
                },
                "Name": "Chapter 10"
            }
        ],
        "ChapterMarkers": true,
        "File": "/media/HDD2/ZUM LÖSCHEN/Komandoo_1700.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 1,
                    "rate": "27000000/1080000"
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 576,
                    "width": 720
                }
            }
        ]
    },
    "Metadata": {
        "Name": "Komandoo"
    },
    "PAR": {
        "Den": 15,
        "Num": 16
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/media/flajeca/Komandoo/VIDEO_TS",
        "Range": {
            "End": 10,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": [
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Name": "SRP",
                "Offset": 0,
                "Track": 0
            },
            {
                "Burn": false,
                "Default": false,
                "Forced": false,
                "Name": "DEU",
                "Offset": 0,
                "Track": 1
            }
        ]
    },
    "Video": {
        "Bitrate": 1700,
        "ColorFormat": 0,
        "ColorMatrix": 6,
        "ColorPrimaries": 5,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "bff=1",
        "Preset": "slow",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Tune": "",
        "Turbo": true,
        "TwoPass": true
    }
}
[12:21:46] CPU: 
[12:21:46]  - logical processor count: 12
[12:21:46] hb_scan: path=/media/flajeca/Komandoo/VIDEO_TS, title_index=1
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
bluray.c:2585: nav_get_title_list(/media/flajeca/Komandoo/VIDEO_TS/) failed
[12:21:46] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000011d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001ca
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000038e
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
[12:21:46] scan: DVD has 1 title(s)
[12:21:46] scan: scanning title 1
[12:21:46] scan: duration is 00:29:09 (1749920 ms)
[12:21:46] pgc_id: 1, pgn: 1: pgc: 0x7fcd8801e6c0
[12:21:46] scan: checking audio 1
[12:21:46] scan: id=0x80bd, lang=Unknown (AC3), 3cc=und ext=0
[12:21:46] scan: checking subtitle 1
[12:21:46] scan: id=0x20bd, lang=srpski (4:3) [VOBSUB], 3cc=srp ext=0
[12:21:46] scan: checking subtitle 2
[12:21:46] scan: id=0x21bd, lang=Deutsch (4:3) [VOBSUB], 3cc=deu ext=0
[12:21:46] scan: title 1 has 10 chapters
[12:21:46] scan: chap 1, 13360 ms
[12:21:46] scan: chap 2, 300000 ms
[12:21:46] scan: chap 3, 138240 ms
[12:21:46] scan: chap 4, 60480 ms
[12:21:46] scan: chap 5, 150720 ms
[12:21:46] scan: chap 6, 522720 ms
[12:21:46] scan: chap 7, 169920 ms
[12:21:46] scan: chap 8, 124800 ms
[12:21:46] scan: chap 9, 90720 ms
[12:21:46] scan: chap 10, 178960 ms
[12:21:46] scan: aspect = 4:3
[12:21:46] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[12:21:46] scan: title angle(s) 1
[12:21:46] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=224000 Unknown (AC3) (2.0 ch) (224 kbps)
[12:21:46] scan: 10 previews, 720x576, 25,000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 16:15
[12:21:46] libhb: scan thread found 1 valid title(s)
[12:21:46] Skipping subtitle scan.  No suitable subtitle tracks.
[12:21:46] Starting Task: Analysis Pass
[12:21:46] Skipping crop/scale filter
[12:21:46] job configuration:
[12:21:46]  * source
[12:21:46]    + /media/flajeca/Komandoo/VIDEO_TS
[12:21:46]    + title 1, chapter(s) 1 to 10
[12:21:46]  * destination
[12:21:46]    + /media/HDD2/ZUM LÖSCHEN/Komandoo_1700.mkv
[12:21:46]    + container: Matroska (libavformat)
[12:21:46]      + chapter markers
[12:21:46]  * video track
[12:21:46]    + decoder: mpeg2video
[12:21:46]      + bitrate 200 kbps
[12:21:46]    + filter
[12:21:46]      + Framerate Shaper (mode=1:rate=27000000/1080000)
[12:21:46]        + frame rate: 25,000 fps -> constant 25,000 fps
[12:21:46]    + Output geometry
[12:21:46]      + storage dimensions: 720 x 576
[12:21:46]      + pixel aspect ratio: 16 : 15
[12:21:46]      + display dimensions: 768 x 576
[12:21:46]    + encoder: H.264 (libx264)
[12:21:46]      + preset:  slow
[12:21:46]      + options: bff=1
[12:21:46]      + profile: high
[12:21:46]      + level:   auto
[12:21:46]      + bitrate: 1700 kbps, pass: 1
[12:21:46]      + fast first pass
[12:21:46]      + options: ref=1:8x8dct=0:me=dia:trellis=0
[12:21:46]                 analyse=i4x4 (if originally enabled, else analyse=none)
[12:21:46]                 subq=2 (if originally greater than 2, else subq unchanged)
[12:21:46]      + color profile: 5-1-6
[12:21:46]  * subtitle track 1, srpski (4:3) [VOBSUB] (track 0, id 0x20bd, Picture) -> Passthrough
[12:21:46]    + name: SRP
[12:21:46]  * subtitle track 2, Deutsch (4:3) [VOBSUB] (track 1, id 0x21bd, Picture) -> Passthrough
[12:21:46]    + name: DEU
[12:21:46]  * audio track 1
[12:21:46]    + name: ITA
[12:21:46]    + decoder: Unknown (AC3) (2.0 ch) (224 kbps) (track 1, id 0x80bd)
[12:21:46]      + bitrate: 224 kbps, samplerate: 48000 Hz
[12:21:46]    + mixdown: Stereo
[12:21:46]    + dither: triangular
[12:21:46]    + encoder: AAC (libavcodec)
[12:21:46]      + bitrate: 224 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000011d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001ca
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000038e
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[12:21:46] sync: expecting 43748 video frames
[12:21:46] encx264: encoding at average bitrate 1700
[12:21:46] encx264: unparsed options: bff=1:ref=5:direct=auto:subme=8:trellis=2:rc-lookahead=50
x264 [warning]: interlace + weightp is not implemented
x264 [info]: using SAR=16/15
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.0
[12:21:46] sync: first pts video is 0
[12:21:46] sync: "Chapter 1" (1) at frame 1 time 0
[12:21:46] sync: first pts audio 0x80bd is 0
[12:21:47] sync: "Chapter 2" (2) at frame 337 time 1209600
[12:22:07] sync: "Chapter 3" (3) at frame 7837 time 28209600
[12:22:07] sync: first pts subtitle 0x20bd is 28353600
[12:22:08] sync: first pts subtitle 0x21bd is 28353600
[12:22:16] sync: "Chapter 4" (4) at frame 11293 time 40651200
[12:22:19] sync: "Chapter 5" (5) at frame 12805 time 46094400
[12:22:28] sync: "Chapter 6" (6) at frame 16573 time 59659200
[12:23:00] sync: "Chapter 7" (7) at frame 29641 time 106704000
[12:23:12] sync: "Chapter 8" (8) at frame 33889 time 121996800
[12:23:19] sync: "Chapter 9" (9) at frame 37009 time 133228800
[12:23:25] sync: "Chapter 10" (10) at frame 39277 time 141393600
[12:23:35] reader: done. 1 scr changes
[12:23:35] work: average encoding speed for job is 402,607758 fps
[12:23:35] vfr: 43737 frames output, 0 dropped and 0 duped for CFR/PFR
[12:23:35] vfr: lost time: 0 (0 frames)
[12:23:35] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:23:35] ac3-decoder done: 54672 frames, 0 decoder errors
[12:23:35] mpeg2video-decoder done: 43737 frames, 0 decoder errors
[12:23:35] sync: got 43737 frames, 43748 expected
[12:23:35] sync: framerate min 25,000 fps, max 25,000 fps, avg 25,000 fps
[aac @ 0x7fcdec096ec0] Qavg: 643,823
x264 [info]: frame I:308   Avg QP:19,80  size: 44423
x264 [info]: frame P:11804 Avg QP:23,43  size: 15741
x264 [info]: frame B:31625 Avg QP:26,17  size:  4724
x264 [info]: consecutive B-frames:  2,9%  1,2%  2,4% 93,5%
x264 [info]: mb I  I16..4: 37,7%  0,0% 62,3%
x264 [info]: mb P  I16..4: 26,1%  0,0%  0,0%  P16..4: 48,9%  0,0%  0,0%  0,0%  0,0%    skip:25,1%
x264 [info]: mb B  I16..4:  3,1%  0,0%  0,0%  B16..8: 19,2%  0,0%  0,0%  direct:14,7%  skip:63,1%  L0:26,5% L1:33,4% BI:40,1%
x264 [info]: final ratefactor: 23,44
x264 [info]: field mbs: intra: 26,0% inter:16,5% skip:8,9%
x264 [info]: direct mvs  spatial:93,1% temporal:6,9%
x264 [info]: coded y,uvDC,uvAC intra: 70,4% 35,5% 5,0% inter: 19,4% 9,4% 0,3%
x264 [info]: i16 v,h,dc,p: 14% 38% 33% 15%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 12% 31% 15%  6%  7%  5%  9%  5% 10%
x264 [info]: i8c dc,h,v,p: 62% 24% 12%  2%
x264 [info]: kb/s:1595,39
[12:23:35] Starting Task: Encoding Pass
[12:23:35] Skipping crop/scale filter
[12:23:35] job configuration:
[12:23:35]  * source
[12:23:35]    + /media/flajeca/Komandoo/VIDEO_TS
[12:23:35]    + title 1, chapter(s) 1 to 10
[12:23:35]  * destination
[12:23:35]    + /media/HDD2/ZUM LÖSCHEN/Komandoo_1700.mkv
[12:23:35]    + container: Matroska (libavformat)
[12:23:35]      + chapter markers
[12:23:35]  * video track
[12:23:35]    + decoder: mpeg2video
[12:23:35]      + bitrate 200 kbps
[12:23:35]    + filter
[12:23:35]      + Framerate Shaper (mode=1:rate=27000000/1080000)
[12:23:35]        + frame rate: 25,000 fps -> constant 25,000 fps
[12:23:35]    + Output geometry
[12:23:35]      + storage dimensions: 720 x 576
[12:23:35]      + pixel aspect ratio: 16 : 15
[12:23:35]      + display dimensions: 768 x 576
[12:23:35]    + encoder: H.264 (libx264)
[12:23:35]      + preset:  slow
[12:23:35]      + options: bff=1
[12:23:35]      + profile: high
[12:23:35]      + level:   auto
[12:23:35]      + bitrate: 1700 kbps, pass: 2
[12:23:35]      + color profile: 5-1-6
[12:23:35]  * subtitle track 1, srpski (4:3) [VOBSUB] (track 0, id 0x20bd, Picture) -> Passthrough
[12:23:35]    + name: SRP
[12:23:35]  * subtitle track 2, Deutsch (4:3) [VOBSUB] (track 1, id 0x21bd, Picture) -> Passthrough
[12:23:35]    + name: DEU
[12:23:35]  * audio track 1
[12:23:35]    + name: ITA
[12:23:35]    + decoder: Unknown (AC3) (2.0 ch) (224 kbps) (track 1, id 0x80bd)
[12:23:35]      + bitrate: 224 kbps, samplerate: 48000 Hz
[12:23:35]    + mixdown: Stereo
[12:23:35]    + dither: triangular
[12:23:35]    + encoder: AAC (libavcodec)
[12:23:35]      + bitrate: 224 kbps, samplerate: 48000 Hz
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
libdvdnav: Can't read name block. Probably not a DVD-ROM device.
libdvdnav: vm: dvd_read_name failed
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8

libdvdread: Attempting to retrieve all CSS keys
libdvdread: This can take a _long_ time, please be patient

libdvdread: Get key for /VIDEO_TS/VIDEO_TS.VOB at 0x0000011d
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x000001ca
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000038e
libdvdread: Elapsed time 0
libdvdread: Found 1 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/sr0 mounted on /media/flajeca/Komandoo for CSS authentication
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[12:23:35] sync: expecting 43737 video frames
[12:23:35] encx264: encoding at average bitrate 1700
[12:23:35] encx264: unparsed options: bff=1:ref=5:direct=auto:subme=8:trellis=2:rc-lookahead=50
x264 [warning]: interlace + weightp is not implemented
x264 [info]: using SAR=16/15
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 3.0
[12:23:35] sync: first pts video is 0
[12:23:35] sync: "Chapter 1" (1) at frame 1 time 0
[12:23:35] sync: first pts audio 0x80bd is 0
[12:23:37] sync: "Chapter 2" (2) at frame 337 time 1209600
[12:24:48] sync: "Chapter 3" (3) at frame 7837 time 28209600
[12:24:48] sync: first pts subtitle 0x20bd is 28353600
[12:24:48] sync: first pts subtitle 0x21bd is 28353600
[12:25:15] sync: "Chapter 4" (4) at frame 11293 time 40651200
[12:25:29] sync: "Chapter 5" (5) at frame 12805 time 46094400
[12:25:54] sync: "Chapter 6" (6) at frame 16573 time 59659200
[12:27:55] sync: "Chapter 7" (7) at frame 29641 time 106704000
[12:28:50] sync: "Chapter 8" (8) at frame 33889 time 121996800
[12:29:09] sync: "Chapter 9" (9) at frame 37009 time 133228800
[12:29:32] sync: "Chapter 10" (10) at frame 39277 time 141393600
[12:29:58] reader: done. 1 scr changes
[12:29:59] work: average encoding speed for job is 112,019630 fps
[12:29:59] vfr: 43737 frames output, 0 dropped and 0 duped for CFR/PFR
[12:29:59] vfr: lost time: 0 (0 frames)
[12:29:59] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:29:59] ac3-decoder done: 54672 frames, 0 decoder errors
[12:29:59] mpeg2video-decoder done: 43737 frames, 0 decoder errors
[12:29:59] sync: got 43737 frames, 43737 expected
[12:29:59] sync: framerate min 25,000 fps, max 25,000 fps, avg 25,000 fps
[aac @ 0x7fcdec24db40] Qavg: 643,823
x264 [info]: frame I:308   Avg QP:21,39  size: 40085
x264 [info]: frame P:11804 Avg QP:24,48  size: 15056
x264 [info]: frame B:31625 Avg QP:27,80  size:  5743
x264 [info]: consecutive B-frames:  2,9%  1,2%  2,4% 93,5%
x264 [info]: mb I  I16..4: 17,9% 78,3%  3,7%
x264 [info]: mb P  I16..4:  2,2% 11,9%  0,3%  P16..4: 35,8% 13,7%  8,0%  0,0%  0,0%    skip:28,1%
x264 [info]: mb B  I16..4:  0,1%  1,6%  0,0%  B16..8: 31,5%  5,3%  1,5%  direct: 5,7%  skip:54,3%  L0:39,6% L1:45,1% BI:15,3%
x264 [info]: field mbs: intra: 25,4% inter:16,2% skip:9,2%
x264 [info]: 8x8 transform intra:84,3% inter:81,3%
x264 [info]: direct mvs  spatial:87,7% temporal:12,3%
x264 [info]: coded y,uvDC,uvAC intra: 80,2% 52,3% 7,0% inter: 21,7% 11,3% 0,3%
x264 [info]: i16 v,h,dc,p: 28% 38%  9% 25%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu:  4% 25% 17%  6%  7%  5% 13%  5% 18%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu:  6% 26%  7%  6%  9%  7% 15%  6% 18%
x264 [info]: i8c dc,h,v,p: 52% 31% 12%  5%
x264 [info]: ref P L0: 50,5% 24,4% 11,9%  9,6%  1,0%  0,8%  0,9%  0,6%  0,1%  0,1%
x264 [info]: ref B L0: 74,7% 16,6%  5,1%  2,4%  0,4%  0,4%  0,2%  0,1%
x264 [info]: ref B L1: 88,5% 10,7%  0,5%  0,3%
x264 [info]: kb/s:1699,60
[12:29:59] mux: track 0, 43737 frames, 371663647 bytes, 1699,46 kbps, fifo 8192
[12:29:59] mux: track 1, 82009 frames, 49037192 bytes, 224,23 kbps, fifo 16384
[12:29:59] mux: track 2, 131 frames, 627058 bytes, 2,87 kbps, fifo 32
[12:29:59] mux: track 3, 131 frames, 736328 bytes, 3,37 kbps, fifo 32
[12:29:59] Finished work at: Sun Nov 15 12:29:59 2020

[12:29:59] libhb: work result = 0
mduell
Veteran User
Posts: 7264
Joined: Sat Apr 21, 2007 8:54 pm

Re: File size after enconding to H264 to original MPEG2 still quite large

Post by mduell »

If you're unhappy with the size of RF 19 and unhappy with the quality above RF 23... use a RF in the low 20s. For a given output size, there's no difference in the quality/artifacts based on your rate control method.

Nowhere in the H.264 specs does it say the output size will be half the size of anything.
Woodstock
Veteran User
Posts: 3853
Joined: Tue Aug 27, 2013 6:39 am

Re: File size after enconding to H264 to original MPEG2 still quite large

Post by Woodstock »

Most travel logs I've seen have high detail and motion, which could contribute to large files. If the target is "small file size", using noise filters could help with that aspect, but would probably make the result less enjoyable. I also do not see any settings to remove the interlacing "properly", which could increase the size.
Savi
Posts: 3
Joined: Sun Nov 15, 2020 10:41 am

Re: File size after enconding to H264 to original MPEG2 still quite large

Post by Savi »

I may have been for so many years on the wrong path, but one reads everywhere, that h264 is less hungry than mpeg 2, e.g from this source, e.g.
https://en.m.wikipedia.org/wiki/Advanced_Video_Coding

"The intent of the H.264/AVC project was to create a standard capable of providing good video quality at substantially lower bit rates than previous standards (i.e., half or less the bit rate of MPEG-2, H.263, or MPEG-4 Part 2), without increasing the complexity of design so much that it would be impractical or excessively expensive to implement. This was achieved with features such as...


Yes, you are right, most of travel vlogs are probably with lots of fast moving scenes and jerky, mine are not, they are quite "cinematic". As I said, I set the bitrate to 1700 and get excellent quality.

And I don't deinterlace at all for not deteriorating the video, I switch all deinterlace parameters off and force Handbrake to keep the original field order with "bff=1.

Setting the RF slider to higher figures than 23 the footage gets worse and worse each step significantly. I think I will stick to my method with the Dr. Lex' video bitrate calculator and a 2 pass encoding. this produces the best size/quality ratio for me so far. Thanks for your comments guys :)
musicvid
Veteran User
Posts: 3768
Joined: Sat Jun 27, 2009 1:19 am

Re: File size after enconding to H264 to original MPEG2 still quite large

Post by musicvid »

And I don't deinterlace at all for not deteriorating the video, I switch all deinterlace parameters off and force Handbrake to keep the original field order with "bff=1.
Handbrake doesn't do that. Interlaced .h264 is scarce as hens' teeth, and not considered deliverable by common practices. All you've done is deny yourself the advantages of temporal field interpolation.

Also, at higher RF numbers (23), designating vbv-maxrate and vbv-bufsize at nearly the same values can reduce blocking in shadows, fades, and transitions by keeping the minimum bitrate elevated. Something you may wish to play with. "Expecting" >= 50% size reduction from MPEG-2 to AVC is a mistake -- 30% - 70% is a very normal and expected range in real life, except with still images.
rollin_eng
Veteran User
Posts: 3611
Joined: Wed May 04, 2011 11:06 pm

Re: File size after enconding to H264 to original MPEG2 still quite large

Post by rollin_eng »

CQ and 2 pass ABR will give you the same results if they have the same bitrate.
Savi
Posts: 3
Joined: Sun Nov 15, 2020 10:41 am

Re: File size after enconding to H264 to original MPEG2 still quite large

Post by Savi »

Yes Handbrake does keep interlacing, at least as Mediainfo says:

Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : MBAFF
Scan type, store method : Interleaved fields
Scan order : Bottom Field First
Bits/(Pixel*Frame) : 0.164
Writing library : x264 core 155 r2917 0a84d98

hmmmm, what would be the temporal field interpolation parameter settings? EEDI2 Bob? Anything else to set?
musicvid
Veteran User
Posts: 3768
Joined: Sat Jun 27, 2009 1:19 am

Re: File size after enconding to H264 to original MPEG2 still quite large

Post by musicvid »

JohnAStebbins wrote: Fri Nov 02, 2018 3:50 pm HandBrake doesn't generate interlaced output.
So, you put in a flag, and MediaInfo copied the FLAG. Did you actually check your encode? Obviously not. But if you'd care to upload your short source and sample encode to Drive or Dropbox (not Youtube!), I'll be happy to show you where you are mistaken.
mduell
Veteran User
Posts: 7264
Joined: Sat Apr 21, 2007 8:54 pm

Re: File size after enconding to H264 to original MPEG2 still quite large

Post by mduell »

Which raises the question why HB allows a flag it doesn't support.
User avatar
Rodeo
HandBrake Team
Posts: 12626
Joined: Tue Mar 03, 2009 8:55 pm

Re: File size after enconding to H264 to original MPEG2 still quite large

Post by Rodeo »

We don't specifically prevent libx264 from encoding using H.264 interlaced coding techniques. libx264 also doesn't require interlaced input to be presented any differently from progressive input. Provided your input is interlaced to begin with, that you configure x264 to use interlaced coding, that you configure it correctly (field order matching that of your source), that your top/bottom crop values are even, and that you do not scale (up or down), HandBrake is perfectly capable of generating valid interlaced output with x264 (before HandBrake could do decent double-framerate deinterlacing, I encoded all my interlaced sources that way).

But if you have uneven crop values, use any kind of scaling, or another video encoder, all bets are off. You could run into field order issues, scaling artifacts, or any other number of issues I may have forgotten about…
Post Reply