Error avio_open2 failed, errno -13

HandBrake for Windows support
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
grhochhalter
Posts: 2
Joined: Thu Feb 14, 2019 5:26 pm

Error avio_open2 failed, errno -13

Post by grhochhalter »

Description of problem or question:
I receive error avio_open2 failed, errno -13 when trying to convert a .MOV to a .MP4. The .MOV was created by the camera on a Phantom 4 drone. I can play the .MOV using Quick Time but I really want to import it into Premiere so I can edit the video (there's no audio on the clip).



Steps to reproduce the problem (If Applicable):

Start Handbrake. Open the .MOV file and take all the default settings, make sure MP4 is selected as the output format. Specify the output location, add to queue and start queue. Conversion starts and ends with the message: Queue finished with 1 errors or cancellation detected.


HandBrake version (e.g., 1.0.0):
1.2.0 (2018121700)



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

Windows 10 Home version 1803


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

Code: Select all

HandBrake 1.2.0 (2018121700)
OS: Microsoft Windows NT 10.0.17134.0
Ram: 8108 MB, 
GPU Information:
  Intel(R) HD Graphics 4400 - 20.19.15.4531
Screen: 1920x1080
Temp Dir: C:\Users\Owner\AppData\Local\Temp\
Install Dir: C:\Program Files\HandBrake
Data Dir: C:\Users\Owner\AppData\Roaming\HandBrake

-------------------------------------------


# Starting Encode ...

[12:29:34] hb_init: starting libhb thread
[12:29:34] 1 job(s) to process
[12:29:34] json job:
{
  "Audio": {
    "AudioList": [],
    "CopyMask": [
      "copy:aac",
      "copy:ac3",
      "copy:dtshd",
      "copy:dts",
      "copy:eac3",
      "copy:flac",
      "copy:mp3",
      "copy:truehd"
    ],
    "FallbackEncoder": "ac3"
  },
  "Destination": {
    "ChapterList": [
      {
        "Name": "Chapter 1"
      }
    ],
    "ChapterMarkers": true,
    "AlignAVStart": true,
    "File": "\\Drone\\Roberts",
    "Mp4Options": {
      "IpodAtom": false,
      "Mp4Optimize": false
    },
    "Mux": "mp4"
  },
  "Filters": {
    "FilterList": [
      {
        "ID": 4,
        "Settings": {
          "mode": "7"
        }
      },
      {
        "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": 11,
        "Settings": {
          "crop-bottom": "0",
          "crop-left": "0",
          "crop-right": "0",
          "crop-top": "0",
          "height": "1080",
          "width": "1920"
        }
      },
      {
        "ID": 6,
        "Settings": {
          "mode": "2",
          "rate": "27000000/900000"
        }
      }
    ]
  },
  "PAR": {
    "Num": 1,
    "Den": 1
  },
  "Metadata": {},
  "SequenceID": 0,
  "Source": {
    "Angle": 1,
    "Range": {
      "Type": "chapter",
      "Start": 1,
      "End": 1
    },
    "Title": 1,
    "Path": "C:\\Drone\\Roberts\\DJI_0011.MOV"
  },
  "Subtitle": {
    "Search": {
      "Burn": true,
      "Default": false,
      "Enable": true,
      "Forced": true
    },
    "SubtitleList": []
  },
  "Video": {
    "Encoder": "x264",
    "Level": "4.0",
    "TwoPass": false,
    "Turbo": false,
    "ColorMatrixCode": 0,
    "Options": "",
    "Preset": "fast",
    "Profile": "main",
    "Quality": 22.0,
    "QSV": {
      "Decode": false,
      "AsyncDepth": 0
    }
  }
}
[12:29:34] CPU: Intel(R) Core(TM) i3-4150 CPU @ 3.50GHz
[12:29:34]  - Intel microarchitecture Haswell
[12:29:34]  - logical processor count: 4
[12:29:34] Intel Quick Sync Video support: yes
[12:29:34]  - Intel Media SDK hardware: API 1.19 (minimum: 1.3)
[12:29:34]  - H.264 encoder: yes
[12:29:34]     - preferred implementation: hardware (any) via D3D11
[12:29:34]     - capabilities (hardware):  breftype icq+la+i+downs vsinfo opt1 opt2+mbbrc+extbrc+trellis+ib_adapt+nmpslice
[12:29:34]  - H.265 encoder: no
[12:29:34] hb_scan: path=C:\Drone\Roberts\DJI_0011.MOV, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
src/libbluray/disc/disc.c:323: failed opening UDF image C:\Drone\Roberts\DJI_0011.MOV
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:29:34] 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:29:34] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\Drone\Roberts\DJI_0011.MOV':
  Metadata:
    major_brand     : qt
    minor_version   : 537986816
    compatible_brands: qt
    creation_time   : 2019-02-09T16:01:03.000000Z
    location        : +39.449556-76.823213+22.900
    location-{    : +39.449556-76.823213+22.900
    comment         : DE=None, Mode=P, DSW=0001
  Duration: 00:00:25.09, start: 0.000000, bitrate: 101101 kb/s
    Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 100993 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
    Metadata:
      creation_time   : 2019-02-09T16:01:03.000000Z
      handler_name    : DJI.AVC
      encoder         : AVC encoder
    Stream #0:1(eng): Data: none (priv / 0x76697270), 102 kb/s
    Metadata:
      creation_time   : 2019-02-09T16:01:03.000000Z
      handler_name    : DJI.Meta
[12:29:34] scan: decoding previews for title 1
[12:29:40] scan: 10 previews, 3840x2160, 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[12:29:40] scan: supported video decoders: avcodec qsv
[12:29:40] Title is likely interlaced or telecined (10 out of 10 previews). You should do something about that.
[12:29:40] libhb: scan thread found 1 valid title(s)
[12:29:40] Skipping subtitle scan.  No suitable subtitle tracks.
[12:29:40] starting job
[12:29:40] decomb filter thread started for segment 0
[12:29:40] decomb filter thread started for segment 1
[12:29:40] decomb filter thread started for segment 2
[12:29:40] decomb filter thread started for segment 3
[12:29:40] decomb check thread started for segment 0
[12:29:40] decomb check thread started for segment 1
[12:29:40] decomb check thread started for segment 2
[12:29:40] decomb check thread started for segment 3
[12:29:40] mask filter thread started for segment 2
[12:29:40] mask filter thread started for segment 3
[12:29:40] mask erode thread started for segment 0
[12:29:40] mask erode thread started for segment 1
[12:29:40] mask erode thread started for segment 2
[12:29:40] mask erode thread started for segment 3
[12:29:40] mask filter thread started for segment 0
[12:29:40] mask filter thread started for segment 1
[12:29:40] mask dilate thread started for segment 1
[12:29:40] mask dilate thread started for segment 2
[12:29:40] mask dilate thread started for segment 3
[12:29:40] mask dilate thread started for segment 0
[12:29:40] yadif thread started for segment 0
[12:29:40] yadif thread started for segment 1
[12:29:40] yadif thread started for segment 2
[12:29:40] yadif thread started for segment 3
[12:29:40] work: only 1 chapter, disabling chapter markers
[12:29:40] job configuration:
[12:29:40]  * source
[12:29:40]    + C:\Drone\Roberts\DJI_0011.MOV
[12:29:40]    + title 1, chapter(s) 1 to 1
[12:29:40]    + container: mov,mp4,m4a,3gp,3g2,mj2
[12:29:40]    + data rate: 101101 kbps
[12:29:40]  * destination
[12:29:40]    + \Drone\Roberts
[12:29:40]    + container: MPEG-4 (libavformat)
[12:29:40]      + align initial A/V stream timestamps
[12:29:40]  * video track
[12:29:40]    + decoder: h264
[12:29:40]      + bitrate 100993 kbps
[12:29:40]    + filters
[12:29:40]      + 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)
[12:29:40]      + Decomb (mode=39)
[12:29:40]      + Framerate Shaper (mode=2:rate=27000000/900000)
[12:29:40]        + frame rate: 29.970 fps -> peak rate limited to 30.000 fps
[12:29:40]      + Crop and Scale (width=1920:height=1080:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[12:29:40]        + source: 3840 * 2160, crop (0/0/0/0): 3840 * 2160, scale: 1920 * 1080
[12:29:40]    + Output geometry
[12:29:40]      + storage dimensions: 1920 x 1080
[12:29:40]      + pixel aspect ratio: 1 : 1
[12:29:40]      + display dimensions: 1920 x 1080
[12:29:40]    + encoder: H.264 (libx264)
[12:29:40]      + preset:  fast
[12:29:40]      + profile: main
[12:29:40]      + level:   4.0
[12:29:40]      + quality: 22.00 (RF)
[12:29:40]      + color profile: 1-1-1
[12:29:40] sync: expecting 751 video frames
[12:29:40] encx264: min-keyint: 30, keyint: 300
[12:29:40] encx264: encoding at constant RF 22.000000
[12:29:40] encx264: unparsed options: level=4.0:ref=2:8x8dct=0:weightp=1:subme=6:vbv-bufsize=25000:vbv-maxrate=20000:rc-lookahead=30
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 4.0, 4:2:0, 8-bit
avio_open2 failed, errno -13
[12:29:40] work: average encoding speed for job is 0.000000 fps
[12:29:40] comb detect: heavy 0 | light 0 | uncombed 0 | total 0
[12:29:40] decomb: deinterlaced 0 | blended 0 | unfiltered 0 | total 0
[12:29:40] vfr: 0 frames output, 0 dropped and 0 duped for CFR/PFR
[12:29:40] vfr: lost time: 0 (0 frames)
[12:29:40] vfr: gained time: 0 (0 frames) (0 not accounted for)
[12:29:40] h264-decoder done: 0 frames, 0 decoder errors
[12:29:40] sync: got 0 frames, 751 expected
[12:29:40] mux: track 0, 0 frames, 0 bytes, 0.00 kbps, fifo 8
[12:29:40] libhb: work result = 3

# Encode Completed ...
Woodstock
Veteran User
Posts: 4620
Joined: Tue Aug 27, 2013 6:39 am

Re: Error avio_open2 failed, errno -13

Post by Woodstock »

Code: Select all

[12:29:40]  * destination
[12:29:40]    + \Drone\Roberts
[12:29:40]    + container: MPEG-4 (libavformat)
Do you have permission to write to the directory "\Drone"? Is there already a file or directory named "Roberts" there? Do you have permission to overwrite the file "Roberts"?
User avatar
s55
HandBrake Team
Posts: 10360
Joined: Sun Dec 24, 2006 1:05 pm

Re: Error avio_open2 failed, errno -13

Post by s55 »

He doesn't, and he's also missing the filename / extension.
grhochhalter
Posts: 2
Joined: Thu Feb 14, 2019 5:26 pm

Re: Error avio_open2 failed, errno -13

Post by grhochhalter »

OK, I'm an idiot! Didn't realize I needed to fully specify the file name, I thought it was just the path.

Thanks!
User avatar
BradleyS
Moderator
Posts: 1860
Joined: Thu Aug 09, 2007 12:16 pm

Re: Error avio_open2 failed, errno -13

Post by BradleyS »

Consider using the Production presets for importing into Premiere. That's the sort of thing they're designed for. Will help avoid many pitfalls.
Post Reply