With upcoming changes to data protection and privacy laws in Europe coming into effect soon, we thought this would be a good time to remind everyone that we do have a privacy policy.
This applies to all users and visitors world-wide.

We have made a few changes to the language to make it clearer in relation to this new regulation but fundamentally, the terms and your rights are unchanged.

If you have any questions about this, please feel free to ask in the General Forum

avio_open2 error

Discussion of the cross-platform HandBrake command line interface (CLI)
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
bayswaterbill
Posts: 2
Joined: Sat Jan 06, 2018 1:31 pm

avio_open2 error

Post by bayswaterbill » Wed Jan 10, 2018 5:27 pm

Description of problem or question
Hi -
I am writing a script to process a folder of mkv videos to mp4. In testing, the first file I tried to transcode resulted in "ERROR: avio_open2 failed, errno -2"
The file transcodes OK in Mac GUI Handbrake.
Command:
cb$ handbrakecli -i MKV/"Amy (2015).mkv" -o Mp4/"Amy (2015).mp4" --preset="Devices/Apple 1080p30 Surround"

HandbrakeCLI is in /usr/local/bin.

Steps to reproduce the problem (If Applicable)


HandBrake version (e.g., 1.0.0)

HandBrake 20180109101036-4cef416-master

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

Mac OS X High Sierra 10.13.2

Error message text or screenshot (If Applicable)

as above
Provide a URL from any image hosting site.

HandBrake Activity Log ***required*** (see How-to get an activity log)

Use any pastebin website and provide the URL it generates
- or -

Code: Select all

cb$ handbrakecli -i MKV/"Amy (2015).mkv" -o Mp4/"Amy (2015).mp4" --preset="Devices/Apple 1080p30 Surround"
[16:56:34] hb_init: starting libhb thread
[16:56:34] thread 700005b79000 started ("libhb")
HandBrake 20180109101036-4cef416-master (2018011001) - Darwin x86_64 - https://handbrake.fr
8 CPUs detected
Opening MKV/Amy (2015).mkv...
[16:56:34] CPU: Intel(R) Core(TM) i7-6700K CPU @ 4.00GHz
[16:56:34]  - Intel microarchitecture Skylake
[16:56:34]  - logical processor count: 8
[16:56:34] hb_scan: path=MKV/Amy (2015).mkv, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image MKV/Amy (2015).mkv
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[16:56:34] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
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
[16:56:34] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'MKV/Amy (2015).mkv':
  Duration: 02:02:35.12, start: 0.000000, bitrate: N/A
    Chapter #0:0: start 0.000000, end 257.320000
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 257.320000, end 768.160000
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 768.160000, end 1166.120000
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 1166.120000, end 1454.000000
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1454.000000, end 1666.720000
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1666.720000, end 2358.920000
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 2358.920000, end 2831.680000
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 2831.680000, end 3229.720000
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 3229.720000, end 3544.120000
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 3544.120000, end 4093.120000
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 4093.120000, end 4590.880000
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 4590.880000, end 4911.080000
    Metadata:
      title           : Chapter 12
    Chapter #0:12: start 4911.080000, end 5337.080000
    Metadata:
      title           : Chapter 13
    Chapter #0:13: start 5337.080000, end 5759.120000
    Metadata:
      title           : Chapter 14
    Chapter #0:14: start 5759.120000, end 6049.040000
    Metadata:
      title           : Chapter 15
    Chapter #0:15: start 6049.040000, end 6473.000000
    Metadata:
      title           : Chapter 16
    Chapter #0:16: start 6473.000000, end 6831.080000
    Metadata:
      title           : Chapter 17
    Chapter #0:17: start 6831.080000, end 7355.120000
    Metadata:
      title           : Chapter 18
    Stream #0:0(eng): Video: mpeg2video (Main)
      yuv420p, tv, bt470bg/bt470bg/bt470bg
      720x576 [PAR 64:45 DAR 16:9], 7700 kb/s, PAR 64:45 DAR 16:9
      25 fps, 1k tbn
    Metadata:
      BPS-eng         : 5992441
      DURATION-eng    : 02:02:35.120000000
      NUMBER_OF_FRAMES-eng: 183878
      NUMBER_OF_BYTES-eng: 5509390381
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-09 07:55:44
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: dts (DTS)
      48000 Hz, 5.1, fltp, 768 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 754500
      DURATION-eng    : 02:02:35.082666666
      NUMBER_OF_FRAMES-eng: 689539
      NUMBER_OF_BYTES-eng: 693676234
      SOURCE_ID-eng   : 0189BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-09 07:55:44
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: dvd_subtitle (default)
    Metadata:
      BPS-eng         : 5981
      DURATION-eng    : 02:02:12.672888888
      NUMBER_OF_FRAMES-eng: 1501
      NUMBER_OF_BYTES-eng: 5482648
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.10.8 darwin(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-01-09 07:55:44
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[16:56:34] scan: decoding previews for title 1
[16:56:34] scan: audio 0x1: dca, rate=48000Hz, bitrate=768000 English (DTS) (5.1 ch)
[16:56:34] scan: 10 previews, 720x576, 25.000 fps, autocrop = 12/12/0/0, aspect 16:9, PAR 64:45
[16:56:34] libhb: scan thread found 1 valid title(s)
+ Using preset: Apple 1080p30 Surround
+ title 1:
  + stream: MKV/Amy (2015).mkv
  + duration: 02:02:35
  + size: 720x576, pixel aspect: 64/45, display aspect: 1.78, 25.000 fps
  + autocrop: 12/12/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:04:17
    + 2: cells 0->0, 0 blocks, duration 00:08:31
    + 3: cells 0->0, 0 blocks, duration 00:06:38
    + 4: cells 0->0, 0 blocks, duration 00:04:48
    + 5: cells 0->0, 0 blocks, duration 00:03:33
    + 6: cells 0->0, 0 blocks, duration 00:11:32
    + 7: cells 0->0, 0 blocks, duration 00:07:53
    + 8: cells 0->0, 0 blocks, duration 00:06:38
    + 9: cells 0->0, 0 blocks, duration 00:05:14
    + 10: cells 0->0, 0 blocks, duration 00:09:09
    + 11: cells 0->0, 0 blocks, duration 00:08:18
    + 12: cells 0->0, 0 blocks, duration 00:05:20
    + 13: cells 0->0, 0 blocks, duration 00:07:06
    + 14: cells 0->0, 0 blocks, duration 00:07:02
    + 15: cells 0->0, 0 blocks, duration 00:04:50
    + 16: cells 0->0, 0 blocks, duration 00:07:04
    + 17: cells 0->0, 0 blocks, duration 00:05:58
    + 18: cells 0->0, 0 blocks, duration 00:08:44
  + audio tracks:
    + 1, English (DTS) (5.1 ch) (iso639-2: eng), 48000Hz, 768000bps
  + subtitle tracks:
    + 1, English [VOBSUB]
[16:56:34] 1 job(s) to process
[16:56:34] json job:
{
    "Audio": {
        "AudioList": [
            {
                "Bitrate": 160,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "ca_aac",
                "Gain": 0.0,
                "Mixdown": "dpl2",
                "NormalizeMixLevel": false,
                "PresetEncoder": "ca_aac",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            },
            {
                "Bitrate": 640,
                "CompressionLevel": -1.0,
                "DRC": 0.0,
                "DitherMethod": "auto",
                "Encoder": "ac3",
                "Gain": 0.0,
                "Mixdown": "5point1",
                "NormalizeMixLevel": false,
                "PresetEncoder": "copy:ac3",
                "Quality": -3.0,
                "Samplerate": 0,
                "Track": 0
            }
        ],
        "CopyMask": [
            "copy:aac",
            "copy:ac3"
        ],
        "FallbackEncoder": "ca_aac"
    },
    "Destination": {
        "AlignAVStart": false,
        "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"
            },
            {
                "Name": "Chapter 18"
            }
        ],
        "ChapterMarkers": true,
        "File": "Mp4/Amy (2015).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": 12,
                    "crop-left": 0,
                    "crop-right": 0,
                    "crop-top": 12,
                    "height": 552,
                    "width": 720
                }
            }
        ]
    },
    "Metadata": {},
    "PAR": {
        "Den": 45,
        "Num": 64
    },
    "SequenceID": 0,
    "Source": {
        "Angle": 0,
        "Path": "MKV/Amy (2015).mkv",
        "Range": {
            "End": 18,
            "Start": 1,
            "Type": "chapter"
        },
        "Title": 1
    },
    "Subtitle": {
        "Search": {
            "Burn": true,
            "Default": false,
            "Enable": true,
            "Forced": true
        },
        "SubtitleList": []
    },
    "Video": {
        "ColorMatrixCode": 0,
        "Encoder": "x264",
        "Level": "4.0",
        "Options": "",
        "Preset": "medium",
        "Profile": "high",
        "QSV": {
            "AsyncDepth": 4,
            "Decode": false
        },
        "Quality": 22.0,
        "Tune": "",
        "Turbo": false,
        "TwoPass": false
    }
}
[16:56:34] starting job
[16:56:34] decomb filter thread started for segment 0
[16:56:34] decomb filter thread started for segment 1
[16:56:34] decomb filter thread started for segment 2
[16:56:34] decomb filter thread started for segment 3
[16:56:34] decomb filter thread started for segment 4
[16:56:34] decomb filter thread started for segment 5
[16:56:34] decomb filter thread started for segment 6
[16:56:34] decomb filter thread started for segment 7
[16:56:34] decomb check thread started for segment 0
[16:56:34] decomb check thread started for segment 1
[16:56:34] decomb check thread started for segment 2
[16:56:34] decomb check thread started for segment 3
[16:56:34] decomb check thread started for segment 4
[16:56:34] decomb check thread started for segment 5
[16:56:34] decomb check thread started for segment 6
[16:56:34] decomb check thread started for segment 7
[16:56:34] mask filter thread started for segment 0
[16:56:34] mask filter thread started for segment 1
[16:56:34] mask filter thread started for segment 2
[16:56:34] mask filter thread started for segment 3
[16:56:34] mask filter thread started for segment 4
[16:56:34] mask filter thread started for segment 5
[16:56:34] mask filter thread started for segment 6
[16:56:34] mask filter thread started for segment 7
[16:56:34] mask erode thread started for segment 0
[16:56:34] mask erode thread started for segment 1
[16:56:34] mask erode thread started for segment 2
[16:56:34] mask erode thread started for segment 3
[16:56:34] mask erode thread started for segment 4
[16:56:34] mask erode thread started for segment 5
[16:56:34] mask erode thread started for segment 6
[16:56:34] mask erode thread started for segment 7
[16:56:34] mask dilate thread started for segment 0
[16:56:34] mask dilate thread started for segment 2
[16:56:34] mask dilate thread started for segment 1
[16:56:34] mask dilate thread started for segment 3
[16:56:34] mask dilate thread started for segment 4
[16:56:34] mask dilate thread started for segment 5
[16:56:34] mask dilate thread started for segment 6
[16:56:34] mask dilate thread started for segment 7
[16:56:34] yadif thread started for segment 0
[16:56:34] yadif thread started for segment 2
[16:56:34] yadif thread started for segment 1
[16:56:34] yadif thread started for segment 3
[16:56:34] yadif thread started for segment 5
[16:56:34] yadif thread started for segment 4
[16:56:34] yadif thread started for segment 6
[16:56:34] job configuration:
[16:56:34]  * source
[16:56:34]    + MKV/Amy (2015).mkv
[16:56:34]    + title 1, chapter(s) 1 to 18
[16:56:34]    + container: matroska,webm
[16:56:34]  * destination
[16:56:34]    + Mp4/Amy (2015).mp4
[16:56:34]    + container: MPEG-4 (libavformat)
[16:56:34]      + chapter markers
[16:56:34]  * video track
[16:56:34] yadif thread started for segment 7
[16:56:34]    + decoder: mpeg2video
[16:56:34]      + bitrate 7700 kbps
[16:56:34]    + filters
[16:56:34]      + 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)
[16:56:34]      + Decomb (mode=39)
[16:56:34]      + Framerate Shaper (mode=2:rate=27000000/900000)
[16:56:34]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[16:56:34]      + Crop and Scale (width=720:height=552:crop-top=12:crop-bottom=12:crop-left=0:crop-right=0)
[16:56:34]        + source: 720 * 576, crop (12/12/0/0): 720 * 552, scale: 720 * 552
[16:56:34]    + Output geometry
[16:56:34]      + storage dimensions: 720 x 552
[16:56:34]      + pixel aspect ratio: 64 : 45
[16:56:34]      + display dimensions: 1024 x 552
[16:56:34]  * Foreign Audio Search: Render/Burn-in, Forced Only
[16:56:34]    + subtitle, English [VOBSUB] (track 0, id 0x2, Picture)
[16:56:34] sync: expecting 183878 video frames
Encoding: task 1 of 2, 99.71 % (0.00 fps, avg 0.00 fps, ETA 00h00m00s)[16:57:08] reader: done. 1 scr changes
[16:57:08] work: average encoding speed for job is 0.000000 fps
[16:57:08] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[16:57:08] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[16:57:08] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[16:57:08] vfr: lost time: 0 (0 frames)
[16:57:08] vfr: gained time: 0 (0 frames) (0 not accounted for)
[16:57:08] mpeg2video-decoder done: 0 frames, 0 decoder errors
[16:57:08] sync: got 0 frames, 183878 expected
[16:57:08] Subtitle track 0 (id 0x2) 'English [VOBSUB]': 1501 hits (0 forced)
[16:57:08] No candidate detected during subtitle scan
[16:57:08] starting job
[16:57:08] decomb filter thread started for segment 0
[16:57:08] decomb filter thread started for segment 1
[16:57:08] decomb filter thread started for segment 2
[16:57:08] decomb filter thread started for segment 3
[16:57:08] decomb filter thread started for segment 4
[16:57:08] decomb filter thread started for segment 5
[16:57:08] decomb filter thread started for segment 6
[16:57:08] decomb filter thread started for segment 7
[16:57:08] decomb check thread started for segment 0
[16:57:08] decomb check thread started for segment 1
[16:57:08] decomb check thread started for segment 2
[16:57:08] decomb check thread started for segment 3
[16:57:08] decomb check thread started for segment 4
[16:57:08] decomb check thread started for segment 5
[16:57:08] decomb check thread started for segment 6
[16:57:08] decomb check thread started for segment 7
[16:57:08] mask filter thread started for segment 0
[16:57:08] mask filter thread started for segment 1
[16:57:08] mask filter thread started for segment 2
[16:57:08] mask filter thread started for segment 3
[16:57:08] mask filter thread started for segment 4
[16:57:08] mask filter thread started for segment 5
[16:57:08] mask filter thread started for segment 6
[16:57:08] mask filter thread started for segment 7
[16:57:08] mask erode thread started for segment 0
[16:57:08] mask erode thread started for segment 1
[16:57:08] mask erode thread started for segment 3
[16:57:08] mask erode thread started for segment 2
[16:57:08] mask erode thread started for segment 4
[16:57:08] mask erode thread started for segment 5
[16:57:08] mask erode thread started for segment 6
[16:57:08] mask erode thread started for segment 7
[16:57:08] mask dilate thread started for segment 0
[16:57:08] mask dilate thread started for segment 1
[16:57:08] mask dilate thread started for segment 2
[16:57:08] mask dilate thread started for segment 3
[16:57:08] mask dilate thread started for segment 4
[16:57:08] mask dilate thread started for segment 5
[16:57:08] mask dilate thread started for segment 6
[16:57:08] mask dilate thread started for segment 7
[16:57:08] yadif thread started for segment 0
[16:57:08] yadif thread started for segment 1
[16:57:08] yadif thread started for segment 2
[16:57:08] yadif thread started for segment 3
[16:57:08] yadif thread started for segment 4
[16:57:08] yadif thread started for segment 5
[16:57:08] yadif thread started for segment 6
[16:57:08] yadif thread started for segment 7
[16:57:08] job configuration:
[16:57:08]  * source
[16:57:08]    + MKV/Amy (2015).mkv
[16:57:08]    + title 1, chapter(s) 1 to 18
[16:57:08]    + container: matroska,webm
[16:57:08]  * destination
[16:57:08]    + Mp4/Amy (2015).mp4
[16:57:08]    + container: MPEG-4 (libavformat)
[16:57:08]      + chapter markers
[16:57:08]  * video track
[16:57:08]    + decoder: mpeg2video
[16:57:08]      + bitrate 7700 kbps
[16:57:08]    + filters
[16:57:08]      + 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)
[16:57:08]      + Decomb (mode=39)
[16:57:08]      + Framerate Shaper (mode=2:rate=27000000/900000)
[16:57:08]        + frame rate: 25.000 fps -> peak rate limited to 30.000 fps
[16:57:08]      + Crop and Scale (width=720:height=552:crop-top=12:crop-bottom=12:crop-left=0:crop-right=0)
[16:57:08]        + source: 720 * 576, crop (12/12/0/0): 720 * 552, scale: 720 * 552
[16:57:08]    + Output geometry
[16:57:08]      + storage dimensions: 720 x 552
[16:57:08]      + pixel aspect ratio: 64 : 45
[16:57:08]      + display dimensions: 1024 x 552
[16:57:08]    + encoder: H.264 (libx264)
[16:57:08]      + preset:  medium
[16:57:08]      + profile: high
[16:57:08]      + level:   4.0
[16:57:08]      + quality: 22.00 (RF)
[16:57:08]  * audio track 1
[16:57:08]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[16:57:08]      + bitrate: 768 kbps, samplerate: 48000 Hz
[16:57:08]    + mixdown: Dolby Pro Logic II
[16:57:08]    + encoder: AAC (Apple AudioToolbox)
[16:57:08]      + bitrate: 160 kbps, samplerate: 48000 Hz
[16:57:08]  * audio track 2
[16:57:08]    + decoder: English (DTS) (5.1 ch) (track 1, id 0x1)
[16:57:08]      + bitrate: 768 kbps, samplerate: 48000 Hz
[16:57:08]    + mixdown: 5.1 Channels
[16:57:08]    + encoder: AC3 (libavcodec)
[16:57:08]      + bitrate: 640 kbps, samplerate: 48000 Hz
Encoding: task 2 of 2, 0.00 %[16:57:08] sync: expecting 183878 video frames
[16:57:08] encx264: encoding at constant RF 22.000000
[16:57:08] encx264: unparsed options: level=4.0:vbv-bufsize=31250:vbv-maxrate=25000
x264 [info]: using SAR=64/45
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile High, level 4.0
ERROR: avio_open2 failed, errno -2
[16:57:08] work: average encoding speed for job is 0.000000 fps
Encoding: task 2 of 2, 0.00 %[16:57:08] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[16:57:08] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[16:57:08] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[16:57:08] vfr: lost time: 0 (0 frames)
[16:57:08] vfr: gained time: 0 (0 frames) (0 not accounted for)
[16:57:08] dca-decoder done: 0 frames, 0 decoder errors
[16:57:08] dca-decoder done: 0 frames, 0 decoder errors
[16:57:08] mpeg2video-decoder done: 0 frames, 0 decoder errors
[16:57:08] sync: got 0 frames, 183878 expected
[16:57:08] libhb: work result = 3

Encode failed (error 3).

HandBrake has exited.

[code][/i]

rollin_eng
Veteran User
Posts: 2713
Joined: Wed May 04, 2011 11:06 pm

Re: avio_open2 error

Post by rollin_eng » Wed Jan 10, 2018 6:10 pm

Do you have permission to write the destination file?

Woodstock
Veteran User
Posts: 2498
Joined: Tue Aug 27, 2013 6:39 am

Re: avio_open2 error

Post by Woodstock » Wed Jan 10, 2018 10:24 pm

The problem is the mis-placed quotes.... The command line should be:

Code: Select all

handbrakecli -i "MKV/Amy (2015).mkv" -o "Mp4/Amy (2015).mp4" --preset="Devices/Apple 1080p30 Surround"

bayswaterbill
Posts: 2
Joined: Sat Jan 06, 2018 1:31 pm

Re: avio_open2 error

Post by bayswaterbill » Wed Jan 10, 2018 11:28 pm

Thanks both for the quick responses. Very helpful.

> The problem is the mis-placed quotes….
It's not that (or opening the source would have failed?)

> Do you have permission to write the destination file?
Yes, but the destination folder was 'Mp4 ' and should have been 'Mp4'. Mea culpa!

C
________________________

User avatar
Rodeo
HandBrake Team
Posts: 11849
Joined: Tue Mar 03, 2009 8:55 pm

Re: avio_open2 error

Post by Rodeo » Thu Jan 11, 2018 9:30 pm

Woodstock wrote:
Wed Jan 10, 2018 10:24 pm
The problem is the mis-placed quotes.... The command line should be:

Code: Select all

handbrakecli -i "MKV/Amy (2015).mkv" -o "Mp4/Amy (2015).mp4" --preset="Devices/Apple 1080p30 Surround"
Nah, both this form and the original poster's form are valid and refer to the same location on disk. I regularly use a mix of quoted, unquoted and escaped paths and it works just fine.

Woodstock
Veteran User
Posts: 2498
Joined: Tue Aug 27, 2013 6:39 am

Re: avio_open2 error

Post by Woodstock » Thu Jan 11, 2018 10:15 pm

Both might work in a simple case, but...

When creating something to use in a script, putting the quotes outside of the whole string seems to work better than jumping in and out of quotes. Less tracking down things like the OP's "Mp4 " vs. "Mp4" issue.

For real fun, create directory names with trailing spaces... and watch people try to remove them with Finder or Explorer.

Post Reply