mpv-player / mpv

🎥 Command line video player
https://mpv.io
Other
28.8k stars 2.93k forks source link

Metadata beyond end of file - incomplete file? #11660

Open ramair02 opened 1 year ago

ramair02 commented 1 year ago

Important Information

Provide following Information:

If you're not using git master or the latest release, update. Releases are listed here: https://github.com/mpv-player/mpv/releases

Reproduction steps

Try to reproduce your issue with --no-config first. If it isn't reproducible with --no-config try to first find out which option or script causes your issue.

Describe the reproduction steps as precise as possible. It's very likely that the bug you experience wasn't reproduced by the developer because the workflow differs from your own.

Expected behavior

Video plays and is able to seek

Actual behavior

When seeking, mpv hangs and then crashes / exits Log shows [mkv] mkv metadata beyond end of file - incomplete file?

Log file

C:\Program Files\mpv>mpv --log-file=output.txt "U:\Bill Nye Science Guy (2017)\Bill Nye Science Guy (2017) [Bluray-1080p][AAC 2.0][x264]-HANDJOB.mkv" [mkv] mkv metadata beyond end of file - incomplete file? (+) Video --vid=1 () (h264 1920x1080 23.976fps) (+) Audio --aid=1 --alang=eng () (aac 2ch 48000Hz) Subs --sid=1 --slang=eng (subrip) Using hardware decoding (d3d11va). AO: [wasapi] 44100Hz stereo 2ch float VO: [gpu] 1920x1080 d3d11[nv12] AV: 00:05:00 / 01:36:48 (5%) A-V: 0.000 Cache: 316s/500MB

Make a log file made with -v -v or --log-file=output.txt, paste it to https://0x0.st/ or attach it to the github issue, and replace this text with a link to it.

The issue will be closed for ignoring the issue template.

Sample files

Sample files needed to reproduce this issue can be uploaded to https://0x0.st/ or similar sites. (Only needed if the issue cannot be reproduced without it.) Do not use garbage like "cloud storage", especially not Google Drive.

ramair02 commented 1 year ago

The video is 1:36:48, however, upon further testing it seems to crash & exit at the 00:12:23 mark. For some reason, there is a mismatch in the actual length vs. what mpv believes the length to me. No idea why

C:\Program Files\mpv>mpv --log-file=output.txt "U:\Bill Nye Science Guy (2017)\Bill Nye Science Guy (2017) [Bluray-1080p][AAC 2.0][x264]-HANDJOB.mkv"
[mkv] mkv metadata beyond end of file - incomplete file?
 (+) Video --vid=1 (*) (h264 1920x1080 23.976fps)
 (+) Audio --aid=1 --alang=eng (*) (aac 2ch 48000Hz)
     Subs  --sid=1 --slang=eng (subrip)
Using hardware decoding (d3d11va).
AO: [wasapi] 44100Hz stereo 2ch float
VO: [gpu] 1920x1080 d3d11[nv12]
AV: 00:12:23 / 01:36:48 (13%) A-V:  0.000 Cache: 0.0s

Exiting... (End of file)
ramair02 commented 1 year ago

Further investigation with verbose logging

https://pastebin.com/ttf7dLLQ https://pastebin.com/Xwzif6r3

ramair02 commented 1 year ago

I ran the file through ExifTool too just in case there was something obvious tripping up mpv, but everything looks normal. Still not sure what's going on

ExifTool Version Number         : 12.49
File Name                       : Bill Nye Science Guy (2017) [Bluray-1080p][AAC 2.0][x264]-HANDJOB.mkv
Directory                       : U:/Bill Nye Science Guy (2017)
File Size                       : 1124 MB
File Modification Date/Time     : 0000:00:00 00:00:00
File Access Date/Time           : 2022:09:25 00:03:57-04:00
File Creation Date/Time         : 0000:00:00 00:00:00
File Permissions                : -rw-rw-rw-
File Type                       : MKV
File Type Extension             : mkv
MIME Type                       : video/x-matroska
EBML Version                    : 1
EBML Read Version               : 1
Doc Type                        : matroska
Doc Type Version                : 4
Doc Type Read Version           : 2
Timecode Scale                  : 1 ms
Muxing App                      : libebml v1.3.10 + libmatroska v1.5.2
Writing App                     : mkvmerge v44.0.0 ('Domino') 64-bit
Duration                        : 1:36:49
Date/Time Original              : 2020:03:12 15:27:09Z
Video Codec ID                  : V_MPEG4/ISO/AVC
Video Frame Rate                : 23.976
Image Width                     : 1920
Image Height                    : 1080
Display Width                   : 1920
Display Height                  : 1080
Audio Codec ID                  : A_AAC
Default Duration                : 21.333333 ms
Audio Sample Rate               : 48000
Audio Channels                  : 2
Track Number                    : 3
Track Type                      : Subtitle
Track Default                   : No
Codec ID                        : S_TEXT/UTF8
Chapter Time Start              : 1:29:39
Chapter Time End                : 1:36:49
Chapter String                  : Coda
Chapter Language                : und
Image Size                      : 1920x1080
Megapixels                      : 2.1
Traneptora commented 1 year ago

If you run ffmpeg -i input.mkv what do you get? Where input.mkv is the filename.