mpv-player / mpv-player/mpv

MPV jumps to 10 seconds before the end, if video stream is a single image

Open
#12,269 10 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

priority:invalid:broken
Dominant language
C
Stars
37k
Forks
3.5k
Avg merge
1d 10h
Merged PRs (30d)
22

Description

Maybe related to #2498

Important Information
  • mpv version: mpv 0.35.0-579-gca4192e2
  • Windows Version: Version 10.0.19045 Build 19045
  • Source of the mpv binary: Initially downloaded from here, but since then - updated many times using updater.bat, including just now.
  • Possible screenshot or video of visual glitches:

https://youtu.be/3kCw8jYnQrk

  1. I start mpv without options, the same way it would if I double-click the file in Explorer.
    You can see that trying to seek by clicking or pressing the left or down arrow doesn't work, it always jumps to 10 seconds before the end of the audio stream.
  2. I start mpv with --start=1. Now it doesn't even load the video stream. It only does after I try to seek.

The output from that demonstration video:

G:\0Music\3Sort\Hinkik>"C:\Program Files\MPV\mpv.com" --version
mpv 0.35.0-579-gca4192e2 Copyright © 2000-2023 mpv/MPlayer/mplayer2 projects
 built on Sun Jul 23 01:30:52 2023
libplacebo version: v6.292.0-13-gf53badb-dirty
FFmpeg version: N-111598-gb2ceed406
FFmpeg library versions:
   libavutil       58.14.100
   libavcodec      60.22.100
   libavformat     60.10.100
   libswscale      7.3.100
   libavfilter     9.8.102
   libswresample   4.11.100


G:\0Music\3Sort\Hinkik>ffprobe -i "[20210118] Time Leaper.mkv"
ffprobe version 2023-07-19-git-efa6cec759-full_build-www.gyan.dev Copyright (c) 2007-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libaribb24 --enable-libaribcaption --enable-libdav1d --enable-libdavs2 --enable-libuavs3d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-libxvid --enable-libaom --enable-libjxl --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libharfbuzz --enable-liblensfun --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libcodec2 --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint
  libavutil      58. 14.100 / 58. 14.100
  libavcodec     60. 22.100 / 60. 22.100
  libavformat    60. 10.100 / 60. 10.100
  libavdevice    60.  2.101 / 60.  2.101
  libavfilter     9.  8.102 /  9.  8.102
  libswscale      7.  3.100 /  7.  3.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
[matroska,webm @ 000001a158467200] Could not find codec parameters for stream 1 (Video: h264, none(tv, unknown/bt709/unknown, progressive), 1500x849): unspecified pixel format
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, matroska,webm, from '[20210118] Time Leaper.mkv':
  Metadata:
    COMPATIBLE_BRANDS: isomiso2avc1mp41
    MAJOR_BRAND     : isom
    MINOR_VERSION   : 512
    ENCODER         : Lavf60.10.100
  Duration: 00:04:00.61, start: 0.000000, bitrate: 116 kb/s
  Stream #0:0: Audio: vorbis, 44100 Hz, stereo, fltp (default)
    Metadata:
      HANDLER_NAME    : ISO Media file produced by Google Inc.
      VENDOR_ID       : [0][0][0][0]
      ENCODER         : Lavc60.22.100 libvorbis
      DURATION        : 00:04:00.608000000
  Stream #0:1: Video: h264, none(tv, unknown/bt709/unknown, progressive), 1500x849, SAR 1:1 DAR 500:283, 25 fps, 25 tbr, 1k tbn
    Metadata:
      ENCODER         : Lavc60.22.100 libx264
      DURATION        : 00:00:00.043000000

If I start mpv.com:

G:\0Music\3Sort\Hinkik>"C:\Program Files\MPV\mpv.com" --start=1 "[20210118] Time Leaper.mkv"
 (+) Video --vid=1 (h264 1500x849 25.000fps)
 (+) Audio --aid=1 (*) (vorbis 2ch 44100Hz)
[mkv] Discarding potentially broken or useless index.
AO: [wasapi] 48000Hz stereo 2ch float
AV: 00:00:04 / 00:04:00 (2%) A-V:  0.000

Exiting... (Quit)
Sample files

[20210118] Time Leaper.zip

Reproduction steps

I made that MKV video by taking an audio stream from an MP4 file and a PNG file. I didn't give ffmpeg any options, other than -i and -map.
Can also upload those original MP4 and PNG, if you need them.

Log file

mpv.log

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the behavior with the attached [20210118] Time Leaper.mkv, using normal playback and --start=1, then review mpv.log and the ffprobe output. The fix is complete when the single-image video stream loads normally and seeking no longer jumps to 10 seconds before the end.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
cli, desktop
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
38/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.