ekisu / mpv-webm

Simple WebM maker for mpv, with no external dependencies.
MIT License
555 stars 32 forks source link

two pass MP4 fails: can't open stats file #113

Open ghost opened 3 years ago

ghost commented 3 years ago

mpv version and platform

Win 10 Ent 20H2

mpv 0.33.0-107-gdd86f195a6 Copyright © 2000-2020 mpv/MPlayer/mplayer2 projects
 built on Sun Apr  4 13:12:37 +08 2021
FFmpeg library versions:
   libavutil       56.72.100
   libavcodec      58.135.100
   libavformat     58.77.100
   libswscale      5.10.100
   libavfilter     7.111.100
   libswresample   3.10.100
FFmpeg version: git-2021-04-03-e93875b7

Description

2 pass MP4 fails for some reason when I just open a file with MPV (right mouse > open with) But it does not fail when I open CMD and and open a file with MPV in that way...

Log file


[  35.848][v][osd/libass] Using font provider directwrite

[  35.848][v][osd/libass] Done.

[  35.848][v][osd/libass] fontselect: (sans-serif, 400, 0) -> ArialMT, 0, ArialMT

[  35.850][v][vo/gpu] Reallocating OSD texture to 1024x256.

[  35.868][d][cplayer] Run command: script-binding, flags=73, args=[name="webm/e"]

[  36.118][v][webm] Command stdout:  

[  36.118][v][webm]  (+) Video --vid=1 (*) (f) (hevc 1920x1040 23.976fps)

[  36.118][v][webm]      Video --vid=2 [P] 'cover.jpg' (mjpeg)

[  36.118][v][webm]      Audio --aid=1 --alang=eng (*) (ac3 6ch 48000Hz)

[  36.118][v][webm]  (+) Subs  --sid=1 --slang=eng (*) (subrip)

[  36.118][v][webm]      Subs  --sid=2 --slang=eng 'SDH' (subrip)

[  36.118][v][webm] VO: [lavc] 1920x1040 yuv420p10

[  36.118][v][webm] [vo/lavc] Writing to 2-pass log: U:\Pictures\WebM/office space. 1999. 1080p. BDRip-HEVC. 10bit. AC3 [HEVC CLUB]-[1.22.36.868-1.22.49.506].mp4-video-pass1.log

[  36.118][v][webm] [vo/lavc] Opening encoder: libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 [libx264]

[  36.118][v][webm] [ffmpeg] libx264: MB rate (187200000) > level limit (16711680)

[  36.118][v][webm] [ffmpeg] libx264: ratecontrol_init: can't open stats file

[  36.118][v][webm] [vo/lavc] Could not initialize encoder.

[  36.118][v][webm] Could not initialize video chain.

[  36.118][v][webm] Video: no video

[  36.118][v][webm] 

[  36.118][v][webm] [encode] no data written to target file

[  36.118][v][webm] Exiting... (Interrupted by error)

[  36.118][v][webm]  

[  36.118][v][webm] Command failed! Reason:  nil  Killed by us?  no 

[  36.118][d][cplayer] Run command: define-section, flags=64, args=[name="input_webm", contents="w script-binding webm/display-webm-encoder\n", flags="default"]

[  36.118][d][cplayer] Run command: enable-section, flags=64, args=[name="input_webm", flags="allow-hide-cursor+allow-vo-dragging"]

[  36.118][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_webm", contents="", flags="force"]

[  36.118][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_webm", flags="allow-hide-cursor+allow-vo-dragging"]

[  36.120][v][vo/gpu] Reallocating OSD texture to 2048x256.
ghost commented 3 years ago

This seems to be a permission issue, and only happens with MP4 2-pass when MPV is not opened with admin rights MPV without admin rights works fine for webm (2-pass) and MP4 (1-pass)