Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 Encoder GUIs

Closed Thread
 
Thread Tools Search this Thread Display Modes
Old 16th November 2020, 13:41   #2221  |  Link
44vince44
Registered User
 
Join Date: May 2020
Posts: 164
hevron,

1) for JPSDR:
-default one in Staxrip releases is Clang W7 AVX to allow compatibility with older generation CPUs
-you can manually replace with Release tClang W7 AVX2 if you have a more recent processor (by recent I mean not older than 4-5 years approximately)

2) for AviSynth+, we use the 3.6xx fork, not the 2.x, get it here https://github.com/AviSynth/AviSynthPlus/releases

Last edited by 44vince44; 16th November 2020 at 13:44.
44vince44 is offline  
Old 16th November 2020, 16:10   #2222  |  Link
hevron
Registered User
 
Join Date: Jun 2020
Posts: 20
44vince44, thanks a lot for the clarification, Release Clang W7 AVX2 is more suitable for me.
This link https://github.com/AviSynth/AviSynthPlus/releases has AviSynth + 3.6.1/ Date = 2020-06-20, but we have Version 3.6.2 test 2 /Date = 2020-08-31
hevron is offline  
Old 21st November 2020, 07:45   #2223  |  Link
44vince44
Registered User
 
Join Date: May 2020
Posts: 164
You're welcome hevron!
I don't know where Stax76 got the beta, but I believe soon there'll be an official release. When Stax76 includes a beta in Staxrip, it's due to a specific fix that he has been expecting.

Last edited by 44vince44; 22nd November 2020 at 08:14.
44vince44 is offline  
Old 23rd November 2020, 12:27   #2224  |  Link
DavidRyan
Registered User
 
Join Date: Nov 2019
Posts: 25
I tried to use DSS2 as a source filter for the first time (StaxRip v2.1.3.0) as I wanted to try it on a variable frame rate MKV (from a DVD using makemkv). But I run into the following error every time:


Does anyone have an idea of what is wrong? I don't use vapoursynth, only avisynth so not sure if the "VS_In" refers to that. Checking in the apps-manage menu it says "DSS2mod - status OK". Here is the mediainfo of the file if that matters:

"Width : 720 pixels
Height : 480 pixels
Display aspect ratio : 4:3
Frame rate mode : Variable
Frame rate : 24.035 FPS
Original frame rate : 29.970 (30000/1001) FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits"

Would appreciate any advice if anyone has an idea on how to get DSS2 working.

EDIT: Resolved, as described below

Last edited by DavidRyan; 24th November 2020 at 11:21.
DavidRyan is offline  
Old 24th November 2020, 08:49   #2225  |  Link
Mister XY
Registered User
 
Join Date: Jun 2014
Posts: 61
A small question, is it possible that i can use my own compiled ffmpeg version to encode videos? If i change the folder for ffmpeg, ffmpeg crashed with error message.
Quote:
Error Video encoding x265 (2.1.4.8)

Video encoding x265 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:

Unzulässige Funktion


------------------------- Video encoding x265 -------------------------

ffmpeg 4.3.1

"C:\Program Files\FFmpeg 4.3\ffmpeg.exe" -i "E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01.avs" -c:v libx265 -crf 20 -pix_fmt yuv420p10le -x265-params profile=main10 -an -y -hide_banner "E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01_out.h265"

[avs2 @ 00000221323e8940] Format avs2 detected only with low score of 1, misdetection possible!
[davs2 info]: davs2: 1.6.205 b06d7585620f4e90.8, 2020-11-20 05:32:11
[davs2 info]: CPU Capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 info]: Manager 221323fbe20: using 1 thread(s): 1(frame/AEC)+0(pool/REC), 2 tasks
[davs2 error]: Manager 221323fbe20: Invalid input Byte-Stream, not start code: 416464
[libdavs2 @ 00000221323f2780] Decoder error: can't read packet
[avs2 @ 00000221323e8940] decoding for stream 0 failed
[avs2 @ 00000221323e8940] Could not find codec parameters for stream 0 (Video: avs2 (libdavs2), none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, avs2, from 'E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01.avs':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: avs2, none, 25 tbr, 1200k tbn, 25 tbc
[davs2 info]: davs2: 1.6.205 b06d7585620f4e90.8, 2020-11-20 05:32:11
[davs2 info]: CPU Capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 warn]: Manager 22132444fc0: Max number of thread reached, forcing to be 8

[davs2 info]: Manager 22132444fc0: using 8 thread(s): 8(frame/AEC)+0(pool/REC), 9 tasks
Stream mapping:
Stream #0:0 -> #0:0 (avs2 (libdavs2) -> hevc (libx265))
Press [q] to stop, [?] for help
[davs2 error]: Manager 22132444fc0: Invalid input Byte-Stream, not start code: 416464
[libdavs2 @ 00000221323e9d00] Decoder error: can't read packet
Error while decoding stream #0:0: Generic error in an external library
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!

StaxRip.ErrorAbortException: Video encoding x265 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:

Unzulässige Funktion


------------------------- Video encoding x265 -------------------------

ffmpeg 4.3.1

"C:\Program Files\FFmpeg 4.3\ffmpeg.exe" -i "E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01.avs" -c:v libx265 -crf 20 -pix_fmt yuv420p10le -x265-params profile=main10 -an -y -hide_banner "E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01_out.h265"

[avs2 @ 00000221323e8940] Format avs2 detected only with low score of 1, misdetection possible!
[davs2 info]: davs2: 1.6.205 b06d7585620f4e90.8, 2020-11-20 05:32:11
[davs2 info]: CPU Capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 info]: Manager 221323fbe20: using 1 thread(s): 1(frame/AEC)+0(pool/REC), 2 tasks
[davs2 error]: Manager 221323fbe20: Invalid input Byte-Stream, not start code: 416464
[libdavs2 @ 00000221323f2780] Decoder error: can't read packet
[avs2 @ 00000221323e8940] decoding for stream 0 failed
[avs2 @ 00000221323e8940] Could not find codec parameters for stream 0 (Video: avs2 (libdavs2), none): unspecified size
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, avs2, from 'E:\BluRay\Temp\Movie_t01_temp\ffmpegMovie_t01.avs':
Duration: N/A, bitrate: N/A
Stream #0:0: Video: avs2, none, 25 tbr, 1200k tbn, 25 tbc
[davs2 info]: davs2: 1.6.205 b06d7585620f4e90.8, 2020-11-20 05:32:11
[davs2 info]: CPU Capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX AVX2 FMA3 LZCNT BMI2
[davs2 warn]: Manager 22132444fc0: Max number of thread reached, forcing to be 8

[davs2 info]: Manager 22132444fc0: using 8 thread(s): 8(frame/AEC)+0(pool/REC), 9 tasks
Stream mapping:
Stream #0:0 -> #0:0 (avs2 (libdavs2) -> hevc (libx265))
Press [q] to stop, [?] for help
[davs2 error]: Manager 22132444fc0: Invalid input Byte-Stream, not start code: 416464
[libdavs2 @ 00000221323e9d00] Decoder error: can't read packet
Error while decoding stream #0:0: Generic error in an external library
Cannot determine format of input stream 0:0 after EOF
Error marking filters as finished
Conversion failed!


bei StaxRip.Proc.Start() in D:\Projekte\VB\staxrip\General\Proc.vb:Zeile 399.
bei StaxRip.ffmpegEnc.Encode(String args) in D:\Projekte\VB\staxrip\Encoding\ffmpegEnc.vb:Zeile 139.
bei StaxRip.ffmpegEnc.Encode() in D:\Projekte\VB\staxrip\Encoding\ffmpegEnc.vb:Zeile 125.
bei System.Threading.Tasks.Parallel.<>c__DisplayClass4_0.<Invoke>b__0()
--- Ende der Stapelüberwachung vom vorhergehenden Ort, an dem die Ausnahme ausgelöst wurde ---
bei System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
bei StaxRip.GlobalClass.ProcessJob(String jobPath) in D:\Projekte\VB\staxrip\General\GlobalClass.vb:Zeile 312.

Last edited by Mister XY; 24th November 2020 at 08:52.
Mister XY is offline  
Old 24th November 2020, 11:20   #2226  |  Link
DavidRyan
Registered User
 
Join Date: Nov 2019
Posts: 25
Quote:
Originally Posted by DavidRyan View Post
I tried to use DSS2 as a source filter for the first time (StaxRip v2.1.3.0) as I wanted to try it on a variable frame rate MKV (from a DVD using makemkv). ...

Does anyone have an idea of what is wrong? I don't use vapoursynth, only avisynth so not sure if the "VS_In" refers to that. Checking in the apps-manage menu it says "DSS2mod - status OK". Here is the mediainfo of the file if that matters:

...

Would appreciate any advice if anyone has an idea on how to get DSS2 working.
If anyone else has this issue, I resolved it by installing lavfilters. DSS2 requires lavfilters to either be:
- installed on the system
- LAVFilters.ax files in the \LAVFilters subfolder in the same folder where avss.dll is placed (not the case with staxrip)
- a path to the LAVFilters.ax files specified using "lavf_path"
DavidRyan is offline  
Old 24th November 2020, 11:40   #2227  |  Link
ChaosKing
Registered User
 
Join Date: Dec 2005
Location: Germany
Posts: 1,467
Makes sense, as DirectShow uses codecs installed on your system. DSS2 does *not* require lavfilter but it happens to be that it installed the needed codec on your system.
Why not just use ffms2 or lsmash?
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth
VapourSynth Portable FATPACK || VapourSynth Database || https://github.com/avisynth-repository
ChaosKing is offline  
Old 26th November 2020, 10:37   #2228  |  Link
Mister XY
Registered User
 
Join Date: Jun 2014
Posts: 61
A little problem. If I want to create a 2 pass video with ffmpeg, it saves the file ffmpeg2pass-0 in the Staxrip folder. The problem with this is if Staxrip does not have rights access to it will be prohibited. Can't you do it so that the ffmpeg2pass-0 file is saved in the Temp Files folder?
Thx
Mister XY is offline  
Old 28th November 2020, 05:13   #2229  |  Link
44vince44
Registered User
 
Join Date: May 2020
Posts: 164
Mister XY I confirm this. It's a bug. The command line of ffmpeg should include the -passlogfile option with the temp location specified. This is a real bug, I will create a ticket in github, mentioning your find.

The problem is solved by adding the custom switch -passlogfile "%temp_dir%\ffmpeg2passlog"

I've noted that as well in the bug report.

Last edited by 44vince44; 28th November 2020 at 05:40.
44vince44 is offline  
Old 28th November 2020, 13:53   #2230  |  Link
Mister XY
Registered User
 
Join Date: Jun 2014
Posts: 61
I must do anything wrong. I add this line -passlogfile "%temp_dir%\ffmpeg2passlog" to the custom line in ffmpeg window, but when start to encode i get this message.
Cannot write log file '%temp_dir%\ffmpeg2passlog-0.log' for pass-1 encoding: No such file or directory
Mister XY is offline  
Old 29th November 2020, 07:28   #2231  |  Link
44vince44
Registered User
 
Join Date: May 2020
Posts: 164
Quote:
Originally Posted by Mister XY View Post
I must do anything wrong. I add this line -passlogfile "%temp_dir%\ffmpeg2passlog" to the custom line in ffmpeg window, but when start to encode i get this message.
Cannot write log file '%temp_dir%\ffmpeg2passlog-0.log' for pass-1 encoding: No such file or directory
You're doing nothing wrong. The macro value is not being passed :-(
Another bug?

Not only %temp_dir%, but ALL MACROS are not passed from the custom line :-((((( It seems the custom line does not support macros.

So in that case, only as workaround, use a system env variable -passlogfile "%temp%\ffmpeg2passlog"
This will use the global user temporary folder (as defined in your system)

Last edited by 44vince44; 29th November 2020 at 08:22.
44vince44 is offline  
Old 29th November 2020, 08:43   #2232  |  Link
Mister XY
Registered User
 
Join Date: Jun 2014
Posts: 61
OK, i have also seen, that the macros did not passing. If i have set decoder to another decoder looks like software, dxva2 etc. i must set the crop values. If i set the values via macros, it did not pass.
Mister XY is offline  
Old 29th November 2020, 11:57   #2233  |  Link
VincAlastor
Registered User
 
Join Date: Sep 2009
Location: Berlin
Posts: 165
[AOMediaCodec/SVT-AV1] Pre-release v0.8.6 - SVT-AV1 v0.8.6

default setting changed: --irefresh-type 2

[0.8.6] - 2020-11-28
Encoder

Further quality-speed tradeoffs tuning for VOD use cases
Improved TPL support within 1-pass and 2-pass CRF moode
Continued non-optimized support for 2pass VBR and CRF
Align kernel nomenclature to prefix svt_aom for kernels brough from libaom to avoid symbol conflicts

Build and Testing

Bug fixes
Improve CI
Added CI support for gitlab
Improve Unit Test Coverage
Address C vs asm mismatches
Fix static analysis warnings / errors
Add address sanitizer
Fix symbol conflicts with libaom and libvpx when staticly linked to ffmpeg


https://github.com/AOMediaCodec/SVT-...ses/tag/v0.8.6

Last edited by VincAlastor; 1st December 2020 at 19:30.
VincAlastor is offline  
Old 6th January 2021, 23:23   #2234  |  Link
Z'Hadum
Registered User
 
Join Date: Dec 2018
Posts: 21
Just noticed 2.1.6.0 stable is out:

https://github.com/staxrip/staxrip/releases

Z'Hadum is offline  
Old 7th January 2021, 16:12   #2235  |  Link
44vince44
Registered User
 
Join Date: May 2020
Posts: 164
It has some unfortunate bugs, get directly the fixed beta 2.1.6.1

here: https://www.dropbox.com/sh/4ctl2y928...dd3yqcAHa?dl=0

Stax76 has released a new Stable 2.1.7.0

Last edited by 44vince44; 7th January 2021 at 22:44.
44vince44 is offline  
Old 8th January 2021, 01:45   #2236  |  Link
Trench
Registered User
 
Join Date: Sep 2015
Posts: 14
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  
Old 8th January 2021, 10:43   #2237  |  Link
44vince44
Registered User
 
Join Date: May 2020
Posts: 164
@Trench, is it possible to edit the properties of your C:\Files\Staxrip\ folder and set permissions (full control) to you as user? do mount points allow that ?
We must know if the problem persists after that.

Last edited by 44vince44; 8th January 2021 at 15:42.
44vince44 is offline  
Old 8th January 2021, 16:36   #2238  |  Link
stax76
Registered User
 
stax76's Avatar
 
Join Date: Jun 2002
Location: On thin ice
Posts: 6,706
@Trench

The only relevant change I remember is changing the current directory of the staxrip process to the video temp folder, this was not long ago. Before the current folder of the staxrip process was usually the startup folder where staxrip is located. That's something a child process inherits.
stax76 is offline  
Old 8th January 2021, 17:57   #2239  |  Link
44vince44
Registered User
 
Join Date: May 2020
Posts: 164
When creating folders directly in C:\ the system does not give them proper permissions for free read/write operations. Unlike a folder created in the user's official temp tree, or in the user's tree more generally.
As we are discussing something happening with a temp folder, it is wise to check the permissions on the folder C:\Files\Staxrip\ in Trench's case.
This should not be considered as a problem in Staxrip, even if it used to work otherwise.

So, @Trench, please check and do the permissions change, or set your paths to locations that you have R/W control on.
44vince44 is offline  
Old 18th January 2021, 16:00   #2240  |  Link
LazyNcoder
Registered User
 
Join Date: Feb 2015
Posts: 24
@stax76 Can you please compile Staxrip more often?
I see there are more than 75 changes since the last release 2.1.7.0
I'm impatiently waiting...

Thank you
LazyNcoder is offline  
Closed Thread

Tags
aac, hdr, hevc, nvenc, staxrip, x264, x265

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:50.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.