Page 1 of 1

DVD encoding always results in "Encode failed (error 3)"

Posted: Fri May 24, 2019 4:46 pm
by HTPCGuy
Description of problem or question:

Trying to rip my DVD collection for use on my media center via the command line. Usually the encode will progress along for a while before failing, generally right as it starts "Task 2 of 2". "Encode failed (error 3)" Running the command a second or third time results in "Task 1 of 2" finishing within a few seconds instead of several minutes like it did the first time. Has happened with multiple DVDs with no successes.


Steps to reproduce the problem (If Applicable):

Mount DVD and try to encode it with the following command:

Code: Select all

HandBrakeCLI -i /media/dvd/VIDEO_TS/ -o /media/Movies/Movie.mp4 --preset="HQ 1080p30 Surround"

HandBrake version (e.g., 1.0.0):
1.2.1



Operating system and version (e.g., Ubuntu 16.04 LTS, macOS 10.13 High Sierra, Windows 10 Creators Update):
Ubuntu 18.04.2 LTS


HandBrake Activity Log ***required*** (see How-to get an 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
[11:40:10] hb_init: starting libhb thread
[11:40:10] thread 7f4aa3e0c700 started ("libhb")
HandBrake 1.2.1 (2019021900) - Linux x86_64 - https://handbrake.fr
8 CPUs detected
Opening /media/dvd/VIDEO_TS/...
[11:40:10] CPU: Intel(R) Core(TM) i7 CPU         950  @ 3.07GHz
[11:40:10]  - logical processor count: 8
[11:40:10] hb_scan: path=/media/dvd/VIDEO_TS/, title_index=1
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[11:40:10] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Attempting to use device /dev/sr1 mounted on /media/dvd 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 0x00fe0000. Regions: 1

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 0x000003fa
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000530
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000e1b2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00393d49
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00393fa7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00394635
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x003946f0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x00394873
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x0039492e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x003953d5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x00395490
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x00396527
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x003965e2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x00396c8b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x00396d46
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x003b6b0c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x003b6bc7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x003b92a1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x003b92a6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x003ba890
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x003ba894
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x003ba9e1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x003ba9e5
libdvdread: Elapsed time 0
libdvdread: Found 11 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/sr1 mounted on /media/dvd for CSS authentication
[11:40:10] scan: DVD has 54 title(s)
[11:40:10] scan: scanning title 1
[11:40:10] scan: opening IFO for VTS 1
[11:40:10] scan: duration is 02:23:02 (8582867 ms)
[11:40:10] pgc_id: 1, pgn: 1: pgc: 0x7f4a940238f0
[11:40:10] scan: vts=1, ttn=1, cells=0->66, blocks=0->3690201, 3690202 blocks
[11:40:10] scan: checking audio 1
[11:40:10] scan: id=0x80bd, lang=English (AC3), 3cc=eng ext=0
[11:40:10] scan: checking audio 2
[11:40:10] scan: id=0x81bd, lang=Francais (AC3), 3cc=fra ext=0
[11:40:10] scan: checking audio 3
[11:40:10] scan: id=0x8abd, lang=English (DTS), 3cc=eng ext=0
[11:40:10] scan: checking audio 4
[11:40:10] scan: id=0x83bd, lang=English (AC3), 3cc=eng ext=3
[11:40:10] scan: checking audio 5
[11:40:10] scan: id=0x84bd, lang=English (AC3), 3cc=eng ext=4
[11:40:10] scan: checking audio 6
[11:40:10] scan: audio channel is not active
[11:40:10] scan: checking subtitle 1
[11:40:10] scan: id=0x20bd, lang=English Closed Caption (Wide Screen) [VOBSUB], 3cc=eng ext=5
[11:40:10] scan: checking subtitle 2
[11:40:10] scan: id=0x21bd, lang=Francais (Wide Screen) [VOBSUB], 3cc=fra ext=1
[11:40:10] scan: checking subtitle 3
[11:40:10] scan: id=0x22bd, lang=Francais Forced (Wide Screen) [VOBSUB], 3cc=fra ext=9
[11:40:10] scan: title 1 has 17 chapters
[11:40:10] scan: chap 1 c=0->4, b=0->214086 (214087), 531698 ms
[11:40:10] scan: chap 2 c=5->9, b=214087->422709 (208623), 433966 ms
[11:40:10] scan: chap 3 c=10->15, b=422710->717879 (295170), 670032 ms
[11:40:10] scan: chap 4 c=16->17, b=717880->947299 (229420), 523433 ms
[11:40:10] scan: chap 5 c=18->20, b=947300->1065235 (117936), 303366 ms
[11:40:10] scan: chap 6 c=21->22, b=1065236->1271896 (206661), 435533 ms
[11:40:10] scan: chap 7 c=23->28, b=1271897->1428212 (156316), 342001 ms
[11:40:10] scan: chap 8 c=29->35, b=1428213->1691633 (263421), 603301 ms
[11:40:10] scan: chap 9 c=36->39, b=1691634->1969674 (278041), 711500 ms
[11:40:10] scan: chap 10 c=40->43, b=1969675->2086441 (116767), 323200 ms
[11:40:10] scan: chap 11 c=44->49, b=2086442->2452374 (365933), 817467 ms
[11:40:10] scan: chap 12 c=50->50, b=2452375->2590011 (137637), 300834 ms
[11:40:10] scan: chap 13 c=51->53, b=2590012->2792849 (202838), 494166 ms
[11:40:10] scan: chap 14 c=54->59, b=2792850->3147059 (354210), 825233 ms
[11:40:10] scan: chap 15 c=60->63, b=3147060->3432729 (285670), 666800 ms
[11:40:10] scan: chap 16 c=64->65, b=3432730->3690014 (257285), 599833 ms
[11:40:10] scan: chap 17 c=66->66, b=3690015->3690201 (187), 500 ms
[11:40:10] scan: aspect = 16:9
[11:40:10] scan: decoding previews for title 1
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[11:40:10] scan: title angle(s) 1
[11:40:10] scan: audio 0x8abd: dca, rate=48000Hz, bitrate=768000 English (DTS) (5.1 ch)
[ac3 @ 0x7f4a940ac600] frame sync error
[ac3 @ 0x7f4a940ac600] frame sync error
[11:40:10] scan: audio 0x80bd: ac3, rate=48000Hz, bitrate=448000 English (AC3) (5.1 ch) (Dolby Digital EX)
[ac3 @ 0x7f4a940ac600] frame sync error
[ac3 @ 0x7f4a940afd80] frame sync error
[11:40:10] scan: audio 0x81bd: ac3, rate=48000Hz, bitrate=384000 Francais (AC3) (5.1 ch) (Dolby Digital EX)
[ac3 @ 0x7f4a940be200] frame sync error
[11:40:10] scan: audio 0x83bd: ac3, rate=48000Hz, bitrate=96000 English (AC3) (Director's Commentary 1) (1.0 ch)
[ac3 @ 0x7f4a940bee80] frame sync error
[11:40:10] scan: audio 0x84bd: ac3, rate=48000Hz, bitrate=96000 English (AC3) (Director's Commentary 2) (1.0 ch)
[11:40:10] scan: 10 previews, 720x480, 23.976 fps, autocrop = 58/62/2/2, aspect 16:9, PAR 32:27
[11:40:10] libhb: scan thread found 1 valid title(s)
+ Using preset: HQ 1080p30 Surround
+ title 1:
  + vts 1, ttn 1, cells 0->66 (3690202 blocks)
  + duration: 02:23:02
  + size: 720x480, pixel aspect: 32/27, display aspect: 1.78, 23.976 fps
  + autocrop: 58/62/2/2
  + chapters:
    + 1: cells 0->4, 214087 blocks, duration 00:08:52
    + 2: cells 5->9, 208623 blocks, duration 00:07:14
    + 3: cells 10->15, 295170 blocks, duration 00:11:10
    + 4: cells 16->17, 229420 blocks, duration 00:08:43
    + 5: cells 18->20, 117936 blocks, duration 00:05:03
    + 6: cells 21->22, 206661 blocks, duration 00:07:16
    + 7: cells 23->28, 156316 blocks, duration 00:05:42
    + 8: cells 29->35, 263421 blocks, duration 00:10:03
    + 9: cells 36->39, 278041 blocks, duration 00:11:52
    + 10: cells 40->43, 116767 blocks, duration 00:05:23
    + 11: cells 44->49, 365933 blocks, duration 00:13:37
    + 12: cells 50->50, 137637 blocks, duration 00:05:01
    + 13: cells 51->53, 202838 blocks, duration 00:08:14
    + 14: cells 54->59, 354210 blocks, duration 00:13:45
    + 15: cells 60->63, 285670 blocks, duration 00:11:07
    + 16: cells 64->65, 257285 blocks, duration 00:10:00
    + 17: cells 66->66, 187 blocks, duration 00:00:01
  + audio tracks:
    + 1, English (AC3) (5.1 ch) (Dolby Digital EX) (iso639-2: eng), 48000Hz, 448000bps
    + 2, Francais (AC3) (5.1 ch) (Dolby Digital EX) (iso639-2: fra), 48000Hz, 384000bps
    + 3, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 768000bps
    + 4, English (AC3) (Director's Commentary 1) (1.0 ch) (iso639-2: eng), 48000Hz, 96000bps
    + 5, English (AC3) (Director's Commentary 2) (1.0 ch) (iso639-2: eng), 48000Hz, 96000bps
  + subtitle tracks:
    + 1, English Closed Caption (Wide Screen) [VOBSUB]
    + 2, Francais (Wide Screen) [VOBSUB]
    + 3, Francais Forced (Wide Screen) [VOBSUB]
    + 4, English, Closed Caption [CC608]
[11:40:10] 1 job(s) to process
[11:40:10] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "av_aac",
                "Gain": 0.0,
                "Mixdown": "stereo",
                "NormalizeMixLevel": false,
                "PresetEncoder": "av_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 0,
                "DRC": 0.0,
                "Encoder": "copy:ac3",
                "Mixdown": "none",
                "PresetEncoder": "copy:ac3",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": true,
        "ChapterList": [
            {
                "Name": "Chapter 1"
            },
            {
                "Name": "Chapter 2"
            },
            {
                "Name": "Chapter 3"
            },
            {
                "Name": "Chapter 4"
            },
            {
                "Name": "Chapter 5"
            },
            {
                "Name": "Chapter 6"
            },
            {
                "Name": "Chapter 7"
            },
            {
                "Name": "Chapter 8"
            },
            {
                "Name": "Chapter 9"
            },
            {
                "Name": "Chapter 10"
            },
            {
                "Name": "Chapter 11"
            },
            {
                "Name": "Chapter 12"
            },
            {
                "Name": "Chapter 13"
            },
            {
                "Name": "Chapter 14"
            },
            {
                "Name": "Chapter 15"
            },
            {
                "Name": "Chapter 16"
            },
            {
                "Name": "Chapter 17"
            }
        ],
        "ChapterMarkers": true,
        "File": "/media/MSO/Movie.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": "7"
                }
            },
            {
                "ID": 6,
                "Settings": {
                    "mode": 2,
                    "rate": "27000000/900000"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 62,
                    "crop-left": 2,
                    "crop-right": 2,
                    "crop-top": 58,
                    "height": 360,
                    "width": 716
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 27,
        "Num": 32
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "/media/dvd/VIDEO_TS/",
        "Range": {
            "End": 17,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrix": 6,
        "ColorPrimaries": 6,
        "ColorTransfer": 1,
        "Encoder": "x264",
        "Level": "4.0",
        "Options": "",
        "Preset": "slow",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 20.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[11:40:10] starting job
[11:40:10] decomb filter thread started for segment 0
[11:40:10] decomb filter thread started for segment 1
[11:40:10] decomb filter thread started for segment 2
[11:40:10] decomb filter thread started for segment 3
[11:40:10] decomb filter thread started for segment 6
[11:40:10] decomb filter thread started for segment 4
[11:40:10] decomb filter thread started for segment 5
[11:40:10] decomb filter thread started for segment 7
[11:40:10] decomb check thread started for segment 3
[11:40:10] decomb check thread started for segment 1
[11:40:10] decomb check thread started for segment 6
[11:40:10] mask filter thread started for segment 0
[11:40:10] decomb check thread started for segment 0
[11:40:10] mask filter thread started for segment 4
[11:40:10] decomb check thread started for segment 2
[11:40:10] mask filter thread started for segment 1
[11:40:10] decomb check thread started for segment 4
[11:40:10] decomb check thread started for segment 7
[11:40:10] mask filter thread started for segment 2
[11:40:10] mask filter thread started for segment 3
[11:40:10] decomb check thread started for segment 5
[11:40:10] mask filter thread started for segment 6
[11:40:10] mask filter thread started for segment 5
[11:40:10] mask filter thread started for segment 7
[11:40:10] mask erode thread started for segment 0
[11:40:10] mask erode thread started for segment 1
[11:40:10] mask erode thread started for segment 2
[11:40:10] mask erode thread started for segment 4
[11:40:10] mask erode thread started for segment 3
[11:40:10] mask erode thread started for segment 5
[11:40:10] mask erode thread started for segment 6
[11:40:10] mask erode thread started for segment 7
[11:40:10] mask dilate thread started for segment 0
[11:40:10] mask dilate thread started for segment 1
[11:40:10] mask dilate thread started for segment 2
[11:40:10] mask dilate thread started for segment 5
[11:40:10] mask dilate thread started for segment 4
[11:40:10] mask dilate thread started for segment 3
[11:40:10] mask dilate thread started for segment 6
[11:40:10] mask dilate thread started for segment 7
[11:40:10] yadif thread started for segment 0
[11:40:10] yadif thread started for segment 1
[11:40:10] yadif thread started for segment 2
[11:40:10] yadif thread started for segment 3
[11:40:10] yadif thread started for segment 4
[11:40:10] yadif thread started for segment 5
[11:40:10] yadif thread started for segment 6
[11:40:10] yadif thread started for segment 7
[11:40:10] job configuration:
[11:40:10]  * source
[11:40:10]    + /media/dvd/VIDEO_TS/
[11:40:10]    + title 1, chapter(s) 1 to 17
[11:40:10]  * destination
[11:40:10]    + /media/MSO/Movie.mp4
[11:40:10]    + container: MPEG-4 (libavformat)
[11:40:10]      + align initial A/V stream timestamps
[11:40:10]      + chapter markers
[11:40:10]  * video track
[11:40:10]    + decoder: mpeg2video
[11:40:10]      + bitrate 200 kbps
[11:40:10]    + filters
[11:40:10]      + 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)
[11:40:10]      + Decomb (mode=39)
[11:40:10]      + Framerate Shaper (mode=2:rate=27000000/900000)
[11:40:10]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[11:40:10]      + Crop and Scale (width=716:height=360:crop-top=58:crop-bottom=62:crop-left=2:crop-right=2)
[11:40:10]        + source: 720 * 480, crop (58/62/2/2): 716 * 360, scale: 716 * 360
[11:40:10]    + Output geometry
[11:40:10]      + storage dimensions: 716 x 360
[11:40:10]      + pixel aspect ratio: 32 : 27
[11:40:10]      + display dimensions: 848 x 360
[11:40:10]  * Foreign Audio Search: Render/Burn-in, Forced Only
[11:40:10]    + subtitle, English Closed Caption (Wide Screen) [VOBSUB] (track 0, id 0x20bd, Picture)
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Attempting to use device /dev/sr1 mounted on /media/dvd 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 0x00fe0000. Regions: 1

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 0x000003fa
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000530
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000e1b2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00393d49
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00393fa7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00394635
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x003946f0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x00394873
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x0039492e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x003953d5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x00395490
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x00396527
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x003965e2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x00396c8b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x00396d46
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x003b6b0c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x003b6bc7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x003b92a1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x003b92a6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x003ba890
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x003ba894
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x003ba9e1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x003ba9e5
libdvdread: Elapsed time 0
libdvdread: Found 11 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/sr1 mounted on /media/dvd for CSS authentication
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[11:40:10] sync: expecting 205783 video frames

Encoding: task 1 of 2, 0.59 % (0.00 fps, avg 0.00 fps, ETA 00h00m25s)
Encoding: task 1 of 2, 1.72 % (0.00 fps, avg 0.00 fps, ETA 00h00m25s)
Encoding: task 1 of 2, 2.78 % (0.00 fps, avg 0.00 fps, ETA 00h00m26s)
Encoding: task 1 of 2, 3.88 % (0.00 fps, avg 0.00 fps, ETA 00h00m26s)
Encoding: task 1 of 2, 4.90 % (0.00 fps, avg 0.00 fps, ETA 00h00m26s)
Encoding: task 1 of 2, 6.01 % (0.00 fps, avg 0.00 fps, ETA 00h00m25s)
Encoding: task 1 of 2, 6.95 % (0.00 fps, avg 0.00 fps, ETA 00h00m26s)
Encoding: task 1 of 2, 7.88 % (0.00 fps, avg 0.00 fps, ETA 00h00m26s)
Encoding: task 1 of 2, 8.90 % (0.00 fps, avg 0.00 fps, ETA 00h00m26s)
Encoding: task 1 of 2, 9.96 % (0.00 fps, avg 0.00 fps, ETA 00h00m25s)
Encoding: task 1 of 2, 10.95 % (0.00 fps, avg 0.00 fps, ETA 00h00m25s)
Encoding: task 1 of 2, 11.99 % (0.00 fps, avg 0.00 fps, ETA 00h00m25s)
Encoding: task 1 of 2, 13.06 % (0.00 fps, avg 0.00 fps, ETA 00h00m25s)
Encoding: task 1 of 2, 14.07 % (0.00 fps, avg 0.00 fps, ETA 00h00m24s)
Encoding: task 1 of 2, 15.15 % (0.00 fps, avg 0.00 fps, ETA 00h00m24s)
Encoding: task 1 of 2, 16.26 % (0.00 fps, avg 0.00 fps, ETA 00h00m23s)
Encoding: task 1 of 2, 17.33 % (0.00 fps, avg 0.00 fps, ETA 00h00m23s)
Encoding: task 1 of 2, 18.38 % (0.00 fps, avg 0.00 fps, ETA 00h00m23s)
Encoding: task 1 of 2, 19.47 % (0.00 fps, avg 0.00 fps, ETA 00h00m22s)
Encoding: task 1 of 2, 20.57 % (0.00 fps, avg 0.00 fps, ETA 00h00m22s)
Encoding: task 1 of 2, 21.60 % (0.00 fps, avg 0.00 fps, ETA 00h00m22s)
Encoding: task 1 of 2, 22.60 % (0.00 fps, avg 0.00 fps, ETA 00h00m22s)
Encoding: task 1 of 2, 23.64 % (0.00 fps, avg 0.00 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 24.65 % (0.00 fps, avg 0.00 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 25.72 % (0.00 fps, avg 0.00 fps, ETA 00h00m21s)
Encoding: task 1 of 2, 26.75 % (0.00 fps, avg 0.00 fps, ETA 00h00m20s)avg 0.00 fps, ETA 00h00m08s)
Encoding: task 1 of 2, 72.53 % (0.00 fps, avg 0.00 fps, ETA 00h00m07s)
Encoding: task 1 of 2, 73.47 % (0.00 fps, avg 0.00 fps, ETA 00h00m07s)
Encoding: task 1 of 2, 74.47 % (0.00 fps, avg 0.00 fps, ETA 00h00m07s)
Encoding: task 1 of 2, 75.51 % (0.00 fps, avg 0.00 fps, ETA 00h00m07s)
Encoding: task 1 of 2, 76.60 % (0.00 fps, avg 0.00 fps, ETA 00h00m06s)
Encoding: task 1 of 2, 77.66 % (0.00 fps, avg 0.00 fps, ETA 00h00m06s)
Encoding: task 1 of 2, 78.63 % (0.00 fps, avg 0.00 fps, ETA 00h00m06s)
Encoding: task 1 of 2, 79.71 % (0.00 fps, avg 0.00 fps, ETA 00h00m05s)
Encoding: task 1 of 2, 80.71 % (0.00 fps, avg 0.00 fps, ETA 00h00m05s)
Encoding: task 1 of 2, 81.70 % (0.00 fps, avg 0.00 fps, ETA 00h00m05s)
Encoding: task 1 of 2, 82.70 % (0.00 fps, avg 0.00 fps, ETA 00h00m04s)
Encoding: task 1 of 2, 83.64 % (0.00 fps, avg 0.00 fps, ETA 00h00m04s)
Encoding: task 1 of 2, 84.60 % (0.00 fps, avg 0.00 fps, ETA 00h00m04s)
Encoding: task 1 of 2, 85.69 % (0.00 fps, avg 0.00 fps, ETA 00h00m04s)
Encoding: task 1 of 2, 86.73 % (0.00 fps, avg 0.00 fps, ETA 00h00m03s)
Encoding: task 1 of 2, 87.77 % (0.00 fps, avg 0.00 fps, ETA 00h00m03s)
Encoding: task 1 of 2, 88.81 % (0.00 fps, avg 0.00 fps, ETA 00h00m03s)
Encoding: task 1 of 2, 89.75 % (0.00 fps, avg 0.00 fps, ETA 00h00m02s)
Encoding: task 1 of 2, 90.73 % (0.00 fps, avg 0.00 fps, ETA 00h00m02s)
Encoding: task 1 of 2, 91.77 % (0.00 fps, avg 0.00 fps, ETA 00h00m02s)
Encoding: task 1 of 2, 92.77 % (0.00 fps, avg 0.00 fps, ETA 00h00m02s)
Encoding: task 1 of 2, 94.20 % (0.00 fps, avg 0.00 fps, ETA 00h00m01s)
Encoding: task 1 of 2, 95.40 % (0.00 fps, avg 0.00 fps, ETA 00h00m01s)
Encoding: task 1 of 2, 96.37 % (0.00 fps, avg 0.00 fps, ETA 00h00m01s)
Encoding: task 1 of 2, 97.31 % (0.00 fps, avg 0.00 fps, ETA 00h00m00s)
Encoding: task 1 of 2, 98.22 % (0.00 fps, avg 0.00 fps, ETA 00h00m00s)
Encoding: task 1 of 2, 99.08 % (0.00 fps, avg 0.00 fps, ETA 00h00m00s)
Encoding: task 1 of 2, 100.00 % (0.00 fps, avg 0.00 fps, ETA 00h00m00s)[11:40:39] reader: done. 8 scr changes
[11:40:39] work: average encoding speed for job is 0.000000 fps
[11:40:39] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[11:40:39] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[11:40:39] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[11:40:39] vfr: lost time: 0 (0 frames)
[11:40:39] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:40:39] mpeg2video-decoder done: 0 frames, 1 decoder errors
[11:40:39] sync: got 0 frames, 205783 expected
[11:40:39] Subtitle track 0 (id 0x20bd) 'English Closed Caption (Wide Screen) [VOBSUB]': 1668 hits (0 forced)
[11:40:39] No candidate detected during subtitle scan
[11:40:39] starting job
[11:40:39] decomb filter thread started for segment 2
[11:40:39] decomb filter thread started for segment 1
[11:40:39] decomb filter thread started for segment 7
[11:40:39] decomb filter thread started for segment 4
[11:40:39] decomb filter thread started for segment 0
[11:40:39] decomb filter thread started for segment 5
[11:40:39] mask filter thread started for segment 3
[11:40:39] decomb filter thread started for segment 3
[11:40:39] decomb check thread started for segment 1
[11:40:39] decomb check thread started for segment 2
[11:40:39] mask erode thread started for segment 5
[11:40:39] decomb check thread started for segment 4
[11:40:39] decomb check thread started for segment 5
[11:40:39] mask dilate thread started for segment 7
[11:40:39] decomb check thread started for segment 7
[11:40:39] mask filter thread started for segment 0
[11:40:39] mask filter thread started for segment 1
[11:40:39] mask filter thread started for segment 2
[11:40:39] decomb check thread started for segment 0
[11:40:39] mask filter thread started for segment 4
[11:40:39] mask filter thread started for segment 5
[11:40:39] mask filter thread started for segment 6
[11:40:39] mask erode thread started for segment 0
[11:40:39] mask erode thread started for segment 1
[11:40:39] mask filter thread started for segment 7
[11:40:39] mask erode thread started for segment 3
[11:40:39] mask erode thread started for segment 2
[11:40:39] mask erode thread started for segment 4
[11:40:39] mask erode thread started for segment 6
[11:40:39] decomb check thread started for segment 3
[11:40:39] mask erode thread started for segment 7
[11:40:39] mask dilate thread started for segment 0
[11:40:39] mask dilate thread started for segment 1
[11:40:39] mask dilate thread started for segment 2
[11:40:39] mask dilate thread started for segment 3
[11:40:39] mask dilate thread started for segment 4
[11:40:39] mask dilate thread started for segment 6
[11:40:39] decomb check thread started for segment 6
[11:40:39] mask dilate thread started for segment 5
[11:40:39] yadif thread started for segment 0
[11:40:39] yadif thread started for segment 1
[11:40:39] yadif thread started for segment 2
[11:40:39] yadif thread started for segment 3
[11:40:39] yadif thread started for segment 4
[11:40:39] yadif thread started for segment 5
[11:40:39] yadif thread started for segment 6
[11:40:39] yadif thread started for segment 7
[11:40:39] job configuration:
[11:40:39]  * source
[11:40:39]    + /media/dvd/VIDEO_TS/
[11:40:39]    + title 1, chapter(s) 1 to 17
[11:40:39]  * destination
[11:40:39]    + /media/MSO/Movie.mp4
[11:40:39]    + container: MPEG-4 (libavformat)
[11:40:39] decomb filter thread started for segment 6
[11:40:39]      + align initial A/V stream timestamps
[11:40:39]      + chapter markers
[11:40:39]  * video track
[11:40:39]    + decoder: mpeg2video
[11:40:39]      + bitrate 200 kbps
[11:40:39]    + filters
[11:40:39]      + 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)
[11:40:39]      + Decomb (mode=39)
[11:40:39]      + Framerate Shaper (mode=2:rate=27000000/900000)
[11:40:39]        + frame rate: 23.976 fps -> peak rate limited to 30.000 fps
[11:40:39]      + Crop and Scale (width=716:height=360:crop-top=58:crop-bottom=62:crop-left=2:crop-right=2)
[11:40:39]        + source: 720 * 480, crop (58/62/2/2): 716 * 360, scale: 716 * 360
[11:40:39]    + Output geometry
[11:40:39]      + storage dimensions: 716 x 360
[11:40:39]      + pixel aspect ratio: 32 : 27
[11:40:39]      + display dimensions: 848 x 360
[11:40:39]    + encoder: H.264 (libx264)
[11:40:39]      + preset:  slow
[11:40:39]      + profile: high
[11:40:39]      + level:   4.0
[11:40:39]      + quality: 20.00 (RF)
[11:40:39]      + color profile: 6-1-6
[11:40:39]  * audio track 1
[11:40:39]    + decoder: English (AC3) (5.1 ch) (Dolby Digital EX) (track 1, id 0x80bd)
[11:40:39]      + bitrate: 448 kbps, samplerate: 48000 Hz
[11:40:39]    + mixdown: Stereo
[11:40:39]    + dither: triangular
[11:40:39]    + encoder: AAC (libavcodec)
[11:40:39]      + bitrate: 160 kbps, samplerate: 48000 Hz
[11:40:39]  * audio track 2
[11:40:39]    + decoder: English (AC3) (5.1 ch) (Dolby Digital EX) (track 1, id 0x80bd)
[11:40:39]      + bitrate: 448 kbps, samplerate: 48000 Hz
[11:40:39]    + AC3 Passthru
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Attempting to use device /dev/sr1 mounted on /media/dvd for CSS authentication

Encoding: task 2 of 2, 0.00 %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 0x00fe0000. Regions: 1

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 0x000003fa
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_0.VOB at 0x00000530
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_01_1.VOB at 0x0000e1b2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_0.VOB at 0x00393d49
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_02_1.VOB at 0x00393fa7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_0.VOB at 0x00394635
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_03_1.VOB at 0x003946f0
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_0.VOB at 0x00394873
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_04_1.VOB at 0x0039492e
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_0.VOB at 0x003953d5
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_05_1.VOB at 0x00395490
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_0.VOB at 0x00396527
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_06_1.VOB at 0x003965e2
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_0.VOB at 0x00396c8b
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_07_1.VOB at 0x00396d46
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_0.VOB at 0x003b6b0c
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_08_1.VOB at 0x003b6bc7
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_0.VOB at 0x003b92a1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_09_1.VOB at 0x003b92a6
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_0.VOB at 0x003ba890
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_10_1.VOB at 0x003ba894
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_0.VOB at 0x003ba9e1
libdvdread: Elapsed time 0
libdvdread: Get key for /VIDEO_TS/VTS_11_1.VOB at 0x003ba9e5
libdvdread: Elapsed time 0
libdvdread: Found 11 VTS's
libdvdread: Elapsed time 0
libdvdread: Attempting to use device /dev/sr1 mounted on /media/dvd for CSS authentication
libdvdnav: DVD disk reports itself with Region mask 0x00fe0000. Regions: 1
[11:40:40] sync: expecting 205783 video frames
[11:40:40] encx264: min-keyint: 24, keyint: 240
[11:40:40] encx264: encoding at constant RF 20.000000
[11:40:40] encx264: unparsed options: level=4.0:ref=5:direct=auto:subme=8:trellis=2:vbv-bufsize=31250:vbv-maxrate=25000:rc-lookahead=50
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x264 [info]: profile High, level 4.0
ERROR: avio_open2 failed, errno -13
[11:40:40] work: average encoding speed for job is 0.000000 fps

Encoding: task 2 of 2, 0.00 %[11:40:40] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[11:40:40] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[11:40:40] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[11:40:40] vfr: lost time: 0 (0 frames)
[11:40:40] vfr: gained time: 0 (0 frames) (0 not accounted for)
[11:40:40] ac3-decoder done: 0 frames, 0 decoder errors
[11:40:40] ac3-decoder done: 0 frames, 0 decoder errors
[11:40:40] mpeg2video-decoder done: 0 frames, 0 decoder errors
[11:40:40] sync: got 0 frames, 205783 expected
[11:40:40] libhb: work result = 3

Encode failed (error 3).
HandBrake has exited.


Thank you for any help you can provide

Re: DVD encoding always results in "Encode failed (error 3)"

Posted: Fri May 24, 2019 5:04 pm
by rollin_eng
Try ripping with makemkv first.

Re: DVD encoding always results in "Encode failed (error 3)"

Posted: Fri May 24, 2019 5:41 pm
by Rodeo

Code: Select all

[11:40:39]  * destination
[11:40:39]    + /media/MSO/Movie.mp4

[…]

ERROR: avio_open2 failed, errno -13
Does the /media/MSO/ folder exist and is it writable?

Re: DVD encoding always results in "Encode failed (error 3)"

Posted: Fri May 24, 2019 6:47 pm
by HTPCGuy
Rodeo wrote:
Fri May 24, 2019 5:41 pm

Code: Select all

[11:40:39]  * destination
[11:40:39]    + /media/MSO/Movie.mp4

[…]

ERROR: avio_open2 failed, errno -13
Does the /media/MSO/ folder exist and is it writable?
I did exist, but the permissions were set so that only root had access. After fixing the permissions I was able to successfully rip a dvd.

Thank you!