lisamelton / video_transcoding

Tools to transcode, inspect and convert videos.
MIT License
2.39k stars 160 forks source link

Encode failed (error 3) #222

Closed RDYork closed 6 years ago

RDYork commented 6 years ago

You have helped in the past, and now I am back! My computing environment has completely changed, so I will try to provide all the pertinent info:

Here is the command resulting in the failure:

f:\Users\Randall>transcode-video --quick --no-log --output "G:\plex media\Movies\The Italian Job (2003\The Mighty Minis of the Italilan Job.mkv" --crop 0:0:0:0 "G:\MKVfiles\ITALIAN_JOB\title06.mkv"

Here is the result of running that command:

f:\Users\Randall>transcode-video --quick --no-log --output "G:\plex media\Movies
\The Italian Job (2003\The Mighty Minis of the Italilan Job.mkv" --crop 0:0:0:0 "G:\MKVfiles\ITALIAN_JOB\title06.mkv"
[12:17:31] hb_init: starting libhb thread
[12:17:31] thread 54e4a90 started ("libhb")
HandBrake 1.1.2 (2018090500) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening G:\MKVfiles\ITALIAN_JOB\title06.mkv...
[12:17:31] CPU: Intel(R) Core(TM) i7 CPU       Q 740  @ 1.73GHz
[12:17:31]  - logical processor count: 8
[12:17:31] Intel Quick Sync Video support: no
[12:17:31] hb_scan: path=G:\MKVfiles\ITALIAN_JOB\title06.mkv, title_index=1udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image G:\MKVfiles\ITALIAN_JOB\title06.mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[12:17:31] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[12:17:31] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'G:\MKVfiles\ITALIAN_JOB\title06.mkv':
  Duration: 00:05:39.00, start: 0.000000, bitrate: N/A
    Stream #0:0(eng): Video: mpeg2video (Main)
      yuv420p, tv, smpte170m/smpte170m/smpte170m
      720x480 [PAR 8:9 DAR 4:3], 9800 kb/s, PAR 8:9 DAR 4:3
      29.97 fps, 1k tbn
    Metadata:
      BPS-eng         : 4778106
      DURATION-eng    : 00:05:39.005333333
      NUMBER_OF_FRAMES-eng: 10160
      NUMBER_OF_BYTES-eng: 202475232
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-25 23:20:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3
      48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 00:05:39.008000000
      NUMBER_OF_FRAMES-eng: 10594
      NUMBER_OF_BYTES-eng: 8136192
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-25 23:20:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[12:17:31] scan: decoding previews for title 1
[12:17:31] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0 ch) (Dolby Surround)
[12:17:31] scan: 10 previews, 720x480, 29.970 fps, autocrop = 0/0/0/2, aspect 4:3, PAR 8:9
[12:17:31] libhb: scan thread found 1 valid title(s)
+ Using preset: CLI Default
+ title 1:
  + stream: G:\MKVfiles\ITALIAN_JOB\title06.mkv
  + duration: 00:05:39
  + size: 720x480, pixel aspect: 8/9, display aspect: 1.33, 29.970 fps
  + autocrop: 0/0/0/2
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:05:39
  + audio tracks:
    + 1, English (AC3) (2.0 ch) (Dolby Surround) (iso639-2: eng), 48000Hz, 192000bps
  + subtitle tracks:
[12:17:31] 1 job(s) to process
[12:17:31] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Encoder": 512,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3",
            "copy:eac3",
            "copy:dtshd",
            "copy:dts",
            "copy:mp3",
            "copy:truehd",
            "copy:flac"
        ],
        "FallbackEncoder": "av_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "ChapterList": [
            {
                "Name": ""
            }
        ],
        "ChapterMarkers": false,
        "File": "G:/plex media/Movies/The Italian Job (2003/The Mighty Minis ofthe Italilan Job.mkv",
        "InlineParameterSets": false,
        "Mp4Options": {
            "IpodAtom": false,
            "Mp4Optimize": false
        },
        "Mux": "mkv"
    },
    "Filters": {
        "FilterList": [
            {
                "ID": 6,
                "Settings": {
                    "mode": 1,
                    "rate": "27000000/1126125"
                }
            },
            {
                "ID": 11,
                "Settings": {
                    "crop-bottom": 0,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 0,
                    "height": 480,
                    "width": 720
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 9,
        "Num": 8
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "G:\\MKVfiles\\ITALIAN_JOB\\title06.mkv",
        "Range": {
            "End": 1,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": false,
            "Forced": false
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "3.0",
        "Options": "vbv-maxrate=1500:vbv-bufsize=3000:crf-max=25:qpmax=34:analyse=none:ref=1:rc-lookahead=30",
        "Preset": "medium",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 1.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[12:17:31] starting job
[12:17:31] work: mixdown not specified, track 1 setting mixdown Dolby Surround
[12:17:31] work: compression level not specified, track 1 setting compression level 2.00
[12:17:31] work: bitrate not specified, track 1 setting bitrate 160 Kbps
[12:17:31] job configuration:
[12:17:31]  * source
[12:17:31]    + G:\MKVfiles\ITALIAN_JOB\title06.mkv
[12:17:31]    + title 1, chapter(s) 1 to 1
[12:17:31]    + container: matroska,webm
[12:17:31]  * destination
[12:17:31]    + G:/plex media/Movies/The Italian Job (2003/The Mighty Minis of the Italilan Job.mkv
[12:17:31]    + container: Matroska (libavformat)
[12:17:31]  * video track
[12:17:31]    + decoder: mpeg2video
[12:17:31]      + bitrate 9800 kbps
[12:17:31]    + filters
[12:17:31]      + Framerate Shaper (mode=1:rate=27000000/1126125)
[12:17:31]        + frame rate: 29.970 fps -> constant 23.976 fps
[12:17:31]      + Crop and Scale (width=720:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[12:17:31]        + source: 720 * 480, crop (0/0/0/0): 720 * 480, scale: 720 * 480
[12:17:31]    + Output geometry
[12:17:31]      + storage dimensions: 720 x 480
[12:17:31]      + pixel aspect ratio: 8 : 9
[12:17:31]      + display dimensions: 640 x 480
[12:17:31]    + encoder: H.264 (libx264)
[12:17:31]      + preset:  medium
[12:17:31]      + options: vbv-maxrate=1500:vbv-bufsize=3000:crf-max=25:qpmax=34:analyse=none:ref=1:rc-lookahead=30
[12:17:31]      + profile: high
[12:17:31]      + level:   3.0
[12:17:31]      + quality: 1.00 (RF)
[12:17:31]  * audio track 1
[12:17:31]    + decoder: English (AC3) (2.0 ch) (Dolby Surround) (track 1, id 0x1)
[12:17:31]      + bitrate: 192 kbps, samplerate: 48000 Hz
[12:17:31]    + mixdown: Dolby Surround
[12:17:31]    + encoder: MP3 (libmp3lame)
[12:17:31]      + bitrate: 160 kbps, samplerate: 48000 Hz
[12:17:31]      + compression level: 2.00
[12:17:31] sync: expecting 10159 video frames
[12:17:31] encx264: min-keyint: 24, keyint: 240
[12:17:31] encx264: encoding at constant RF 1.000000
[12:17:31] encx264: unparsed options: vbv-maxrate=1500:vbv-bufsize=3000:crf-max=25:qpmax=34:analyse=none:ref=1:rc-lookahead=30:level=3.0
x264 [info]: using SAR=8/9
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
x264 [info]: profile High, level 3.0
ERROR: avio_open2 failed, errno -2
Encoding: task 1 of 1, 0.00 %[12:17:31] work: average encoding speed for job is 0.000000 fps
Encoding: task 1 of 1, 0.00 %[12:17:32] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[12:17:32] vfr: lost time: 0 (0 frames)
[12:17:32] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:17:32] ac3-decoder done: 0 frames, 0 decoder errors
[12:17:32] mpeg2video-decoder done: 0 frames, 0 decoder errors
[12:17:32] sync: got 0 frames, 10159 expected
[12:17:32] libhb: work result = 3

Encode failed (error 3).

HandBrake has exited.
C:/Ruby24-x64/bin/transcode-video: transcoding failed: G:\MKVfiles\ITALIAN_JOB\title06.mkv

Last time you asked me to append -vv --dry-run to the command, so I did that as well:

f:\Users\Randall>transcode-video --quick --no-log -vv --dry-run --output "G:\ple
x media\Movies\The Italian Job (2003\The Mighty Minis of the Italilan Job.mkv" -
-crop 0:0:0:0 "G:\MKVfiles\ITALIAN_JOB\title06.mkv"
transcode-video 0.20.0
Copyright (c) 2013-2018 Don Melton
Processing: G:\MKVfiles\ITALIAN_JOB\title06.mkv...
Scanning media title 1 with HandBrakeCLI...
HandBrake 1.1.2

HandBrake found...
[12:42:52] hb_init: starting libhb thread
[12:42:52] thread 3ad150 started ("libhb")
HandBrake 1.1.2 (2018090500) - MinGW x86_64 - https://handbrake.fr
8 CPUs detected
Opening G:\MKVfiles\ITALIAN_JOB\title06.mkv...
[12:42:52] CPU: Intel(R) Core(TM) i7 CPU       Q 740  @ 1.73GHz
[12:42:52]  - logical processor count: 8
[12:42:52] Intel Quick Sync Video support: no
[12:42:52] hb_scan: path=G:\MKVfiles\ITALIAN_JOB\title06.mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image G:\MKVfiles\ITALIAN_JOB\
title06.mkv
src/libbluray/disc/disc.c:424: error opening file BDMV\index.bdmv
src/libbluray/disc/disc.c:424: error opening file BDMV\BACKUP\index.bdmv
[12:42:52] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 6.0.0
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[12:42:52] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'G:\MKVfiles\ITALIAN_JOB\title06.mkv':
  Duration: 00:05:39.00, start: 0.000000, bitrate: N/A
    Stream #0:0(eng): Video: mpeg2video (Main)
      yuv420p, tv, smpte170m/smpte170m/smpte170m
      720x480 [PAR 8:9 DAR 4:3], 9800 kb/s, PAR 8:9 DAR 4:3
      29.97 fps, 1k tbn
    Metadata:
      BPS-eng         : 4778106
      DURATION-eng    : 00:05:39.005333333
      NUMBER_OF_FRAMES-eng: 10160
      NUMBER_OF_BYTES-eng: 202475232
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-25 23:20:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE
_ID
    Stream #0:1(eng): Audio: ac3
      48000 Hz, stereo, fltp, 192 kb/s (default)
    Metadata:
      title           : Stereo
      BPS-eng         : 192000
      DURATION-eng    : 00:05:39.008000000
      NUMBER_OF_FRAMES-eng: 10594
      NUMBER_OF_BYTES-eng: 8136192
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.3 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-09-25 23:20:46
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE
_ID
[12:42:52] scan: decoding previews for title 1
[12:42:52] scan: audio 0x1: ac3, rate=48000Hz, bitrate=192000 English (AC3) (2.0
 ch) (Dolby Surround)
[12:42:53] scan: 2 previews, 720x480, 29.970 fps, autocrop = 0/0/0/0, aspect 4:3
, PAR 8:9
[12:42:53] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: G:\MKVfiles\ITALIAN_JOB\title06.mkv
  + duration: 00:05:39
  + size: 720x480, pixel aspect: 8/9, display aspect: 1.33, 29.970 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:05:39
  + audio tracks:
    + 1, English (AC3) (2.0 ch) (Dolby Surround) (iso639-2: eng), 48000Hz, 19200
0bps
  + subtitle tracks:

HandBrake has exited.
{:title=>1, :size=>210856016, :directory=>false, :duration=>339, :width=>720, :h
eight=>480, :fps=>29.97, :autocrop=>nil, :audio=>{1=>{:format=>"AC3", :channels=
>2.0, :language=>"eng", :bps=>192000, :stream=>1, :default=>true, :name=>"Stereo
"}}, :subtitle=>{}, :h264=>false, :hevc=>false, :mpeg2=>true, :stream=>0, :bd=>f
alse, :dvd=>false, :mkv=>true, :mp4=>false}
HandBrakeCLI --input=G:\\MKVfiles\\ITALIAN_JOB\\title06.mkv --output=G:/plex\ me
dia/Movies/The\ Italian\ Job\ \(2003/The\ Mighty\ Minis\ of\ the\ Italilan\ Job.
mkv --markers --encoder=x264 --crop=0:0:0:0 --auto-anamorphic --rate=23.976 --cf
r --encoder-profile=high --encoder-level=3.0 --quality=1 --audio=1 --encopts=vbv
-maxrate=1500:vbv-bufsize=3000:crf-max=25:qpmax=34:analyse=none:ref=1:rc-lookahe
ad=30
Done.

-Randall

RDYork commented 6 years ago

(BTW, still waiting on the Don Melton PodCast!)

lisamelton commented 6 years ago

@RDYork Sorry I took so long to respond. I've been traveling all day.

Thank you for including diagnostic information! But I had to reformat it all to make it legible. In the future, just attach the .log or console output as separate text files. That makes them a lot easier to read and I can search through the information with my text editor. That's also why I recommend that folks never use the --no-log option, especially when submitting issues.

OK, I believe the problem is your use of the --output option, i.e.:

--output "G:\plex media\Movies\The Italian Job (2003\The Mighty Minis of the Italilan Job.mkv"

Either that path is incorrectly specified or you don't have write access to that directory.

So, try the command without using the --output option.

(And we're all still waiting on my next podcast episode. :)

RDYork commented 6 years ago

And once again it comes down to user error. The output directory was missing the closing parenthesis after the 2003, which I only noticed in your reply. Dropping the --output option worked, so I tried the original command again with the closing parenthesis and it worked as well. Thanks again, I apologize for taking your time over my error! Randall

lisamelton commented 6 years ago

@RDYork No worries! That's what I'm here for. I'm just glad that helped.

I'll close this now, but feel free to open other issues as needed.