View Single Post
Old 8th January 2021, 01:45   #2236  |  Link
Trench
Registered User
 
Join Date: Sep 2015
Posts: 16
I've been fighting an error similar to what Mister XY just mentioned, but I seem to have a different root cause. A log in my case will show:

Code:
------------------------- System Environment -------------------------

StaxRip    : 2.1.7.0
Windows    : Windows 10 Pro 2009
Language   : English (United States)
CPU        : Intel(R) Xeon(R) CPU E3-1280 V2 @ 3.60GHz
GPU        : Microsoft Remote Display Adapter, NVIDIA GeForce GTX 1050 Ti
Resolution : 1920 x 1080
DPI        : 96

----------------------- Media Info Source File -----------------------

C:\Files\Staxrip\The.File.mkv

General
Complete name            : C:\Files\Staxrip\The.File.mkv
Format                   : Matroska
Format version           : Version 4
File size                : 598 MiB
Duration                 : 51 min 8 s
Overall bit rate         : 1 636 kb/s
Movie name               : The.File
Encoded date             : UTC 2021-01-06 03:04:57
Writing application      : mkvmerge v51.0.0 ('I Wish') 64-bit
Writing library          : libebml v1.4.0 + libmatroska v1.6.2

Video
ID                       : 1
Format                   : HEVC
Format/Info              : High Efficiency Video Coding
Format profile           : Main 10@L4@Main
Codec ID                 : V_MPEGH/ISO/HEVC
Duration                 : 51 min 8 s
Bit rate                 : 1 424 kb/s
Width                    : 1 920 pixels
Height                   : 960 pixels
Display aspect ratio     : 2.000
Frame rate mode          : Constant
Frame rate               : 23.976 (24000/1001) FPS
Color space              : YUV
Chroma subsampling       : 4:2:0
Bit depth                : 10 bits
Bits/(Pixel*Frame)       : 0.032
Stream size              : 521 MiB (87%)
Default                  : Yes
Forced                   : No
Color range              : Limited
Color primaries          : BT.709
Transfer characteristics : BT.709
Matrix coefficients      : BT.709

Audio
ID                       : 2
Format                   : AAC LC SBR
Format/Info              : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name          : HE-AAC
Format settings          : Explicit
Codec ID                 : A_AAC-2
Duration                 : 51 min 8 s
Bit rate                 : 206 kb/s
Channel(s)               : 6 channels
Channel layout           : C L R Ls Rs LFE
Sampling rate            : 48.0 kHz
Frame rate               : 23.438 FPS (2048 SPF)
Compression mode         : Lossy
Delay relative to video  : 23 ms
Stream size              : 75.5 MiB (13%)
Language                 : English
Default                  : Yes
Forced                   : No

Text #1
ID                       : 3
Format                   : UTF-8
Codec ID                 : S_TEXT/UTF8
Codec ID/Info            : UTF-8 Plain Text
Duration                 : 48 min 51 s
Bit rate                 : 52 b/s
Count of elements        : 744
Stream size              : 18.9 KiB (0%)
Title                    : English
Language                 : English
Default                  : No
Forced                   : No

------------------------------ Demux MKV ------------------------------

mkvextract 52

C:\Users\Trench\StaxRip-x64-2.1.7.0-Stable\Apps\Support\MKVToolNix\mkvextract.exe C:\Files\Staxrip\The.File.mkv tracks 2:"C:\Files\Staxrip\The.File_temp\ID1 English {English}.srt" 1:"C:\Files\Staxrip\The.File_temp\ID1 23ms English.aac" --ui-language en

Error: Failed to create the file 'C:\Files\Staxrip\The.File_temp\ID1 23ms English.aac': 0 (open file error)

Start:    5:33:38 PM
End:      5:33:38 PM
Duration: 00:00:00

-------------------------------- Error --------------------------------

no output found

-------------------------- Error Demux Audio --------------------------

Demux Audio returned error exit code: 1 (0x1)

It's unclear what the exit code means, in case it's a Windows system error then it possibly means:

Incorrect function


----------------------------- Demux Audio -----------------------------

ffmpeg N-100448-gab6a56773f-x64-gcc10.2.0 Patman

C:\Users\Trench\StaxRip-x64-2.1.7.0-Stable\Apps\Encoders\ffmpeg\ffmpeg.exe -i C:\Files\Staxrip\The.File.mkv -vn -sn -y -hide_banner -c:a copy "C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a"

Input #0, matroska,webm, from 'C:\Files\Staxrip\The.File.mkv':
  Metadata:
    title           : The.File
    encoder         : libebml v1.4.0 + libmatroska v1.6.2
    creation_time   : 2021-01-06T03:04:57.000000Z
  Duration: 00:51:08.61, start: 0.000000, bitrate: 1635 kb/s
    Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x960, SAR 1:1 DAR 2:1, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS-eng         : 1424359
      DURATION-eng    : 00:51:08.607000000
      NUMBER_OF_FRAMES-eng: 73573
      NUMBER_OF_BYTES-eng: 546350126
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      BPS-eng         : 206485
      DURATION-eng    : 00:51:08.459000000
      NUMBER_OF_FRAMES-eng: 71917
      NUMBER_OF_BYTES-eng: 79199106
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Subtitle: subrip
    Metadata:
      title           : English
      BPS-eng         : 52
      DURATION-eng    : 00:48:51.678000000
      NUMBER_OF_FRAMES-eng: 744
      NUMBER_OF_BYTES-eng: 19353
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a: Permission denied

----------------------------- Demux Audio -----------------------------

ffmpeg N-100448-gab6a56773f-x64-gcc10.2.0 Patman

C:\Users\Trench\StaxRip-x64-2.1.7.0-Stable\Apps\Encoders\ffmpeg\ffmpeg.exe -i C:\Files\Staxrip\The.File.mkv -vn -sn -y -hide_banner -c:a copy "C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a"

Input #0, matroska,webm, from 'C:\Files\Staxrip\The.File.mkv':
  Metadata:
    title           : The.File
    encoder         : libebml v1.4.0 + libmatroska v1.6.2
    creation_time   : 2021-01-06T03:04:57.000000Z
  Duration: 00:51:08.61, start: 0.000000, bitrate: 1635 kb/s
    Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x960, SAR 1:1 DAR 2:1, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS-eng         : 1424359
      DURATION-eng    : 00:51:08.607000000
      NUMBER_OF_FRAMES-eng: 73573
      NUMBER_OF_BYTES-eng: 546350126
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      BPS-eng         : 206485
      DURATION-eng    : 00:51:08.459000000
      NUMBER_OF_FRAMES-eng: 71917
      NUMBER_OF_BYTES-eng: 79199106
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Subtitle: subrip
    Metadata:
      title           : English
      BPS-eng         : 52
      DURATION-eng    : 00:48:51.678000000
      NUMBER_OF_FRAMES-eng: 744
      NUMBER_OF_BYTES-eng: 19353
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a: Permission denied

Start:    5:33:38 PM
End:      5:33:39 PM
Duration: 00:00:00

------------------------------ Exception ------------------------------

StaxRip.ErrorAbortException: Demux Audio returned error exit code: 1 (0x1)

It's unclear what the exit code means, in case it's a Windows system error then it possibly means:

Incorrect function


----------------------------- Demux Audio -----------------------------

ffmpeg N-100448-gab6a56773f-x64-gcc10.2.0 Patman

C:\Users\Trench\StaxRip-x64-2.1.7.0-Stable\Apps\Encoders\ffmpeg\ffmpeg.exe -i C:\Files\Staxrip\The.File.mkv -vn -sn -y -hide_banner -c:a copy "C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a"

Input #0, matroska,webm, from 'C:\Files\Staxrip\The.File.mkv':
  Metadata:
    title           : The.File
    encoder         : libebml v1.4.0 + libmatroska v1.6.2
    creation_time   : 2021-01-06T03:04:57.000000Z
  Duration: 00:51:08.61, start: 0.000000, bitrate: 1635 kb/s
    Stream #0:0: Video: hevc (Main 10), yuv420p10le(tv, bt709), 1920x960, SAR 1:1 DAR 2:1, 23.98 fps, 23.98 tbr, 1k tbn, 23.98 tbc (default)
    Metadata:
      BPS-eng         : 1424359
      DURATION-eng    : 00:51:08.607000000
      NUMBER_OF_FRAMES-eng: 73573
      NUMBER_OF_BYTES-eng: 546350126
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:1(eng): Audio: aac (HE-AAC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      BPS-eng         : 206485
      DURATION-eng    : 00:51:08.459000000
      NUMBER_OF_FRAMES-eng: 71917
      NUMBER_OF_BYTES-eng: 79199106
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
    Stream #0:2(eng): Subtitle: subrip
    Metadata:
      title           : English
      BPS-eng         : 52
      DURATION-eng    : 00:48:51.678000000
      NUMBER_OF_FRAMES-eng: 744
      NUMBER_OF_BYTES-eng: 19353
      _STATISTICS_WRITING_APP-eng: mkvmerge v51.0.0 ('I Wish') 64-bit
      _STATISTICS_WRITING_DATE_UTC-eng: 2021-01-06 03:04:57
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES
C:\Files\Staxrip\The.File_temp\ID1 23ms English.m4a: Permission denied


   at StaxRip.Proc.Start() in D:\Projekte\VB\staxrip\General\Proc.vb:line 384
   at StaxRip.ffmpegDemuxer.DemuxAudio(String sourcefile, AudioStream stream, AudioProfile ap, Project proj, Boolean overrideExisting) in D:\Projekte\VB\staxrip\General\Demux.vb:line 366
   at StaxRip.mkvDemuxer.Demux(String sourcefile, IEnumerable`1 audioStreams, IEnumerable`1 subtitles, AudioProfile ap, Project proj, Boolean onlyEnabled, Boolean videoDemuxing, Boolean overrideExisting, String title, Boolean useStreamName) in D:\Projekte\VB\staxrip\General\Demux.vb:line 963
   at StaxRip.mkvDemuxer.Run(Project proj) in D:\Projekte\VB\staxrip\General\Demux.vb:line 731
   at StaxRip.MainForm.Demux() in D:\Projekte\VB\staxrip\Forms\MainForm.vb:line 3212
   at StaxRip.MainForm.OpenVideoSourceFiles(IEnumerable`1 files, Boolean isEncoding) in D:\Projekte\VB\staxrip\Forms\MainForm.vb:line 2134
It's not a permissions issue of being able to create or write files in the temporary directory, because the Staxrip log shown is being created and written there successfully by Staxrip.exe.

But two different tools as shown in the log -- mkvextract.exe trying to create "ID1 23ms English.aac", and then ffmpeg.exe trying to create "ID1 23ms English.m4a" -- complain as though files cannot be created in the "C:\Files\Staxrip\The.File_temp" temp area.

Microsoft's Process Monitor shows me the tools are receiving ACCESS_DENIED in their attempt to create those files, as though it actually is a permissions issue.

But Staxrip creates the log file in the temp area successfully, and I can create files in the temp area using File Explorer. Both Staxrip.exe and File Explorer are running as normal non-elevated processes. Running Staxrip.exe as administrator still results in the same failure for mkvextract.exe and ffmpeg.exe.

I've concluded that the issue this: In the path shown, C:\Files\ is a mount point. Meaning C:\ itself is an SSD drive, but C:\Files\ is the mount point of a multi-terabyte magnetic drive for work space. The successful temp folder creation & successful log file creation by Staxrip.exe itself receives REPARSE in response to the C:\Files\-involved path, but the tools simply fail with ACCESS_DENIED.

It seems like "suddenly" Staxrip processing cannot traverse a mount point. Staxrip.exe itself can still traverse that path; but not the tools being launched.

This happens with 2.1.5.5.Beta and 2.1.7.0.Stable. Note the log says "Windows 10 2009", and my WinVER confirms "20H2 19042.685".

If I run 2.1.3.0.Stable or 2.1.4.8.Beta against the same source file in the same folder setup, the tools are able to create and write to files in the temporary area just fine.

Some unintended consequence of how the tools were updated for long path handling? Or can someone refute these results, and you are able to use a mount point in the path under Windows 20H2 successfully; meaning I should continue digging for a more specific root cause?
Trench is offline