DVD (non-bluray) encode settings

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
simonlefisch
Posts: 16
Joined: Mon May 08, 2017 5:35 pm

DVD (non-bluray) encode settings

Post by simonlefisch »

Hello everyone,

Not sure if the Genereal area or CLI area is the correct place to ask this, so figured here would be the best place to start. I have been using HB CLI for some time and was curious what settings people use for encoding standard DVDs. I have presets that I have setup for blurays (made in GUI and exported to JSON file), however I do have some DVDs that I would like to encode. I have tried a few different things but nothing really seems to do it for me. Maybe I have high standards for the encodes lol. Anyway, I have attached a log file and a copy of the settings (preset) I made and have been using. I know that using AVIsynth is the recommended way to get a better picture quality from standard DVDs and at some point I will get into that (that's a different can of worms to open for another day). Was hoping maybe some of you could take a look and see what I can do better? If there is any other info you need, don't hesitate to ask for it and I will gladly post it for you. Thank for your help :mrgreen:


HandBrake version (e.g., 1.0.0):
Compiled from source (HandBrake 20200422135042-cd25206-master)

Operating system and version:
Debian 10.3 (headless)

HandBrake Activity Log

Code: Select all

Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
Cannot load libnvidia-encode.so.1
[15:10:47] hb_init: starting libhb thread
[15:10:47] thread 7f22e927b700 started ("libhb")
HandBrake 20200422135042-cd25206-master (2020042501) - Linux x86_64 - https://handbrake.fr
24 CPUs detected
Opening Movie Rips/FARSCAPE_S4_1...
[15:10:47] CPU: AMD Ryzen 9 3900X 12-Core Processor            
[15:10:47]  - logical processor count: 24
[15:10:47] hb_scan: path=Movie Rips/FARSCAPE_S4_1, 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(Movie Rips/FARSCAPE_S4_1/) failed
[15:10:47] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
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: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
[15:10:47] scan: DVD has 11 title(s)
[15:10:47] scan: scanning title 1
[15:10:47] scan: duration is 00:46:06 (2766900 ms)
[15:10:47] pgc_id: 1, pgn: 1: pgc: 0x7f22dc0060a0
[15:10:47] scan: checking audio 1
[15:10:47] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[15:10:47] scan: checking audio 2
[15:10:47] scan: id=0x81bd, lang=English (AC3), 3cc=eng ext=0
[15:10:47] scan: title 1 has 8 chapters
[15:10:47] scan: chap 1, 68000 ms
[15:10:47] scan: chap 2, 295233 ms
[15:10:47] scan: chap 3, 751066 ms
[15:10:47] scan: chap 4, 606333 ms
[15:10:47] scan: chap 5, 283333 ms
[15:10:47] scan: chap 6, 481900 ms
[15:10:47] scan: chap 7, 280533 ms
[15:10:47] scan: chap 8, 500 ms
[15:10:47] scan: aspect = 16:9
[15:10:47] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[15:10:47] scan: title angle(s) 1
[15:10:47] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (448 kbps)
[15:10:47] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (192 kbps)
[15:10:47] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/4/2, aspect 16:9, PAR 32:27
[15:10:47] libhb: scan thread found 1 valid title(s)
+ Using preset: v2_h264_sdmovies
+ title 1:
  + index 1
  + duration: 00:46:06
  + size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/4/2
  + chapters:
    + 1: duration 00:01:08
    + 2: duration 00:04:55
    + 3: duration 00:12:31
    + 4: duration 00:10:06
    + 5: duration 00:04:43
    + 6: duration 00:08:02
    + 7: duration 00:04:41
    + 8: duration 00:00:01
  + audio tracks:
    + 1, English (AC3) (5.1 ch) (448 kbps) (iso639-2: eng), 48000Hz, 448000bps
    + 2, English (AC3) (2.0 ch) (192 kbps) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
    + 1, English, Closed Caption [CC608]
[15:10:48] Starting work at: Tue May  5 15:10:48 2020

[15:10:48] 1 job(s) to process
[15:10:48] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 1073743872,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 1,
                    "Seconds": 8,
                    "Ticks": 6120000
                },
                "Name": "Chapter 1"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 55,
                    "Ticks": 26570970
                },
                "Name": "Chapter 2"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 12,
                    "Seconds": 31,
                    "Ticks": 67595940
                },
                "Name": "Chapter 3"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 10,
                    "Seconds": 6,
                    "Ticks": 54569970
                },
                "Name": "Chapter 4"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 43,
                    "Ticks": 25499970
                },
                "Name": "Chapter 5"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 8,
                    "Seconds": 2,
                    "Ticks": 43371000
                },
                "Name": "Chapter 6"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 4,
                    "Seconds": 41,
                    "Ticks": 25247970
                },
                "Name": "Chapter 7"
            },
            {
                "Duration": {
                    "Hours": 0,
                    "Minutes": 0,
                    "Seconds": 1,
                    "Ticks": 45000
                },
                "Name": "Chapter 8"
            }
        ],
        "ChapterMarkers": true,
        "File": "Farscape.s04e01.h264_480i_AC3.mp4",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "m4v"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 3,
                "Settings": {
                    "block-height": "16",
                    "block-thresh": "40",
                    "block-width": "16",
                    "filter-mode": "2",
                    "mode": "3",
                    "motion-thresh": "1",
                    "spatial-metric": "2",
                    "spatial-thresh": "1"
                }
            },
            {
                "ID": 4,
                "Settings": {
                    "mode": "23"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/450450"
                }
            },
            {
                "ID": 12,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 480,
                    "width": 720
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 27,
        "Num": 32
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "Movie Rips/FARSCAPE_S4_1",
        "Range": {
            "End": 2,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": []
    },
    "Video": {
        "Bitrate": 2250,
        "ColorFormat": 0,
        "ColorMatrix": 6,
        "ColorPrimaries": 6,
        "ColorRange": 1,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "auto",
        "Options": "ref=5:bframes=5:tff=1",
        "Preset": "veryslow",
        "Profile": "auto",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[15:10:48] Skipping subtitle scan.  No suitable subtitle tracks.
[15:10:48] Starting Task: Encoding Pass
[15:10:48] Skipping crop/scale filter
[15:10:48] job configuration:
[15:10:48]  * source
[15:10:48]    + Movie Rips/FARSCAPE_S4_1
[15:10:48]    + title 1, chapter(s) 1 to 2
[15:10:48]  * destination
[15:10:48]    + Farscape.s04e01.h264_480i_AC3.mp4
[15:10:48]    + container: MPEG-4 (libavformat)
[15:10:48]      + chapter markers
[15:10:48]  * video track
[15:10:48]    + decoder: mpeg2video
[15:10:48]      + bitrate 200 kbps
[15:10:48]    + filters
[15:10:48]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[15:10:48]      + Decomb (mode=55)
[15:10:48]      + Framerate Shaper (mode=2:rate=27000000/450450)
[15:10:48]        + frame rate: 29.970 fps -> peak rate limited to 59.940 fps
[15:10:48]    + Output geometry
[15:10:48]      + storage dimensions: 720 x 480
[15:10:48]      + pixel aspect ratio: 32 : 27
[15:10:48]      + display dimensions: 853 x 480
[15:10:48]    + encoder: H.264 (libx264)
[15:10:48]      + preset:  veryslow
[15:10:48]      + options: ref=5:bframes=5:tff=1
[15:10:48]      + profile: auto
[15:10:48]      + level:   auto
[15:10:48]      + bitrate: 2250 kbps, pass: 0
[15:10:48]      + color profile: 6-1-6
[15:10:48]  * audio track 1
[15:10:48]    + decoder: English (AC3) (5.1 ch) (448 kbps) (track 1, id 0x80bd)
[15:10:48]      + bitrate: 448 kbps, samplerate: 48000 Hz
[15:10:48]    + AC3 Passthru
libdvdnav: Using dvdnav version 6.0.1
libdvdread: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
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: Encrypted DVD support unavailable.
libdvdread: Couldn't find device name.
libdvdnav: DVD disk reports itself with Region mask 0x00000000. Regions: 1 2 3 4 5 6 7 8
[15:10:48] sync: expecting 10886 video frames
[15:10:48] encx264: min-keyint: 30, keyint: 300
[15:10:48] encx264: encoding at average bitrate 2250
[15:10:48] encx264: unparsed options: ref=5:bframes=5:tff=1:b-adapt=2:direct=auto:analyse=all:me=umh:merange=24:subme=10:trellis=2:rc-lookahead=60
x264 [warning]: interlace + weightp is not implemented
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile High, level 3.0
[15:10:48] sync: first pts audio 0x80bd is 0
[15:10:48] sync: first pts video is 6006
[15:10:48] sync: "Chapter 1" (1) at frame 1 time 6006
[15:11:21] sync: "Chapter 2" (2) at frame 2041 time 6132126
[15:13:40] reader: end of chapter 2 (media 2) reached at media chapter 3
[15:13:40] reader: done. 1 scr changes
[15:13:42] work: average encoding speed for job is 62.772327 fps
[15:13:42] comb detect: heavy 4439 | light 497 | uncombed 5959 | total 10895
[15:13:42] decomb: deinterlaced 8878 | blended 994 | unfiltered 5959 | total 15831
[15:13:42] vfr: 15831 frames output, 0 dropped and 0 duped for CFR/PFR
[15:13:42] vfr: lost time: 0 (0 frames)
[15:13:42] vfr: gained time: 0 (0 frames) (0 not accounted for)
[15:13:43] ac3-decoder done: 11356 frames, 0 decoder errors
[15:13:43] mpeg2video-decoder done: 10897 frames, 0 decoder errors
[15:13:43] sync: got 10895 frames, 10886 expected
[15:13:43] sync: framerate min 29.970 fps, max 29.970 fps, avg 29.970 fps
x264 [info]: frame I:121   Avg QP:16.11  size: 32572
x264 [info]: frame P:3680  Avg QP:19.26  size: 13789
x264 [info]: frame B:12030 Avg QP:21.94  size:  4028
x264 [info]: consecutive B-frames:  1.6%  3.0%  6.9% 33.2% 32.6% 22.7%
x264 [info]: mb I  I16..4:  9.2% 81.9%  8.9%
x264 [info]: mb P  I16..4:  3.4% 18.6%  1.2%  P16..4: 43.7% 17.7% 10.7%  0.2%  0.0%    skip: 4.4%
x264 [info]: mb B  I16..4:  0.2%  1.0%  0.1%  B16..8: 43.8%  7.1%  1.5%  direct: 7.3%  skip:39.1%  L0:43.7% L1:45.5% BI:10.8%
x264 [info]: final ratefactor: 16.66
x264 [info]: field mbs: intra: 2.8% inter:1.7% skip:1.8%
x264 [info]: 8x8 transform intra:80.0% inter:73.1%
x264 [info]: direct mvs  spatial:99.9% temporal:0.1%
x264 [info]: coded y,uvDC,uvAC intra: 76.0% 76.9% 28.5% inter: 22.8% 23.4% 1.2%
x264 [info]: i16 v,h,dc,p: 25% 14% 11% 50%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13%  9% 16%  8% 10% 11% 10% 11% 12%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13%  8%  5%  9% 14% 15% 13% 10% 11%
x264 [info]: i8c dc,h,v,p: 32% 28% 23% 18%
x264 [info]: ref P L0: 63.0% 20.6%  9.7%  6.3%  0.2%  0.1%  0.1%  0.0%  0.0%  0.0%
x264 [info]: ref B L0: 82.6% 12.6%  3.7%  1.0%  0.0%  0.0%  0.0%  0.0%
x264 [info]: ref B L1: 95.8%  4.1%  0.0%  0.0%
x264 [info]: kb/s:2269.69
[15:13:43] mux: track 0, 15831 frames, 103132627 bytes, 2268.96 kbps, fifo 2048
[15:13:43] mux: track 1, 11356 frames, 20349952 bytes, 447.71 kbps, fifo 2048
[15:13:43] Finished work at: Tue May  5 15:13:43 2020

[15:13:43] libhb: work result = 0

Encode done!
HandBrake has exited.
HandBrake Preset

Code: Select all

{
  "PresetList" : [
    {
      "AlignAVStart" : false,
      "AudioCopyMask" : [
        "copy:aac"
      ],
      "AudioEncoderFallback" : "ca_aac",
      "AudioLanguageList" : [

      ],
      "AudioList" : [
        {
          "AudioBitrate" : 160,
          "AudioCompressionLevel" : -1,
          "AudioDitherMethod" : "auto",
          "AudioEncoder" : "ca_aac",
          "AudioMixdown" : "stereo",
          "AudioNormalizeMixLevel" : false,
          "AudioSamplerate" : "auto",
          "AudioTrackDRCSlider" : 0,
          "AudioTrackGainSlider" : 0,
          "AudioTrackQuality" : -1,
          "AudioTrackQualityEnable" : false
        }
      ],
      "AudioSecondaryEncoderMode" : true,
      "AudioTrackSelectionBehavior" : "first",
      "ChapterMarkers" : true,
      "ChildrenArray" : [

      ],
      "Default" : false,
      "FileFormat" : "av_mkv",
      "Folder" : false,
      "FolderOpen" : false,
      "InlineParameterSets" : false,
      "Mp4HttpOptimize" : false,
      "Mp4iPodCompatible" : false,
      "PictureAutoCrop" : false,
      "PictureBottomCrop" : 0,
      "PictureChromaSmoothCustom" : "",
      "PictureChromaSmoothPreset" : "off",
      "PictureChromaSmoothTune" : "none",
      "PictureCombDetectCustom" : "",
      "PictureCombDetectPreset" : "default",
      "PictureDARWidth" : 0,
      "PictureDeblockCustom" : "strength=strong:thresh=20:blocksize=8",
      "PictureDeblockPreset" : "off",
      "PictureDeblockTune" : "medium",
      "PictureDeinterlaceCustom" : "",
      "PictureDeinterlaceFilter" : "decomb",
      "PictureDeinterlacePreset" : "bob",
      "PictureDenoiseCustom" : "",
      "PictureDenoiseFilter" : "off",
      "PictureDenoisePreset" : "light",
      "PictureDenoiseTune" : "none",
      "PictureDetelecine" : "off",
      "PictureDetelecineCustom" : "",
      "PictureForceHeight" : 0,
      "PictureForceWidth" : 0,
      "PictureHeight" : 0,
      "PictureItuPAR" : false,
      "PictureKeepRatio" : true,
      "PictureLeftCrop" : 0,
      "PictureLooseCrop" : false,
      "PictureModulus" : 2,
      "PicturePAR" : "loose",
      "PicturePARHeight" : 1,
      "PicturePARWidth" : 1,
      "PictureRightCrop" : 0,
      "PictureRotate" : "angle=0:hflip=0",
      "PictureSharpenCustom" : "",
      "PictureSharpenFilter" : "off",
      "PictureSharpenPreset" : "medium",
      "PictureSharpenTune" : "none",
      "PictureTopCrop" : 0,
      "PictureWidth" : 0,
      "PresetDescription" : "",
      "PresetName" : "v2_h264_sdmovies",
      "SubtitleAddCC" : false,
      "SubtitleAddForeignAudioSearch" : true,
      "SubtitleAddForeignAudioSubtitle" : false,
      "SubtitleBurnBDSub" : true,
      "SubtitleBurnBehavior" : "foreign",
      "SubtitleBurnDVDSub" : true,
      "SubtitleLanguageList" : [

      ],
      "SubtitleTrackSelectionBehavior" : "none",
      "Type" : 1,
      "UsesPictureFilters" : true,
      "UsesPictureSettings" : 2,
      "VideoAvgBitrate" : 2250,
      "VideoColorMatrixCodeOverride" : 0,
      "VideoEncoder" : "x264",
      "VideoFramerate" : "59.94",
      "VideoFramerateMode" : "pfr",
      "VideoGrayScale" : false,
      "VideoLevel" : "auto",
      "VideoOptionExtra" : "ref=5:bframes=5:tff=1",
      "VideoPreset" : "veryslow",
      "VideoProfile" : "auto",
      "VideoQSVAsyncDepth" : 4,
      "VideoQSVDecode" : false,
      "VideoQualitySlider" : 18,
      "VideoQualityType" : 1,
      "VideoScaler" : "swscale",
      "VideoTune" : "",
      "VideoTurboTwoPass" : false,
      "VideoTwoPass" : false,
      "x264Option" : "",
      "x264UseAdvancedOptions" : false
    }
  ],
  "VersionMajor" : 42,
  "VersionMicro" : 0,
  "VersionMinor" : 0
}
Woodstock
Veteran User
Posts: 4614
Joined: Tue Aug 27, 2013 6:39 am

Re: DVD (non-bluray) encode settings

Post by Woodstock »

It's been a long time since I encoded Farscape, so I cannot tell you what exactly I did there to match MY tastes in encoding. But, some basic (for me) rules on command line options for DVD are:

--detelecine --decomb="bob" -e x264 -q 20

Everything beyond those is about audio and subtitle tracks, which vary with each disk.
simonlefisch
Posts: 16
Joined: Mon May 08, 2017 5:35 pm

Re: DVD (non-bluray) encode settings

Post by simonlefisch »

Thanks @Woodstock, I'll give those settings a try. Eventually I'll go thru AVIsynth but like I said, that's another can of worms I'm not ready to open just yet.
Post Reply