External PGS (.sup): after a seek, the subtitle that should be on screen is not shown until the next one
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 52/100
Research direction
The reporter pinpoints the likely cause: the external lavf demuxer seeks to the target without the backward flag (see the log lines around execute seek), so the PGS display set still in effect at the target is never re-decoded. Start in demux/demux_lavf.c and the demuxer seek paths (demux.c), comparing how external subtitle tracks are seeked versus how --demuxer-mkv-subtitle-preroll handles the same case for Matroska. Reproduce with the provided make-sup.py script and the headless print-sub.lua check; done means sub-start/sub-end are populated after a seek into an active PGS line, with the existing subtitle tests still passing.
Written by the indexing model from the issue text.
Description
mpv Information
v0.41.0 (Alpine 3.24 package):
mpv v0.41.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
libplacebo version: v7.360.1
FFmpeg version: 8.1.1 (runtime 8.1.2)
FFmpeg library versions:
libavcodec 62.28.101 (runtime 62.28.102)
libavdevice 62.3.101 (runtime 62.3.102)
libavfilter 11.14.101 (runtime 11.14.102)
libavformat 62.12.101 (runtime 62.12.102)
libavutil 60.26.101 (runtime 60.26.102)
libswresample 6.3.101 (runtime 6.3.102)
libswscale 9.5.101 (runtime 9.5.102)
git master, built from source at 1140d3cc29 (meson setup build -Dlua=lua5.2 -Dcplayer=true -Dlibmpv=false -Dgl=disabled -Dvulkan=disabled -Dx11=disabled -Dwayland=disabled -Dmanpage-build=disabled):
mpv v0.41.0-1293-g1140d3cc2 Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
built on Oct 24 2026 04:30:18
libplacebo version: v7.360.1
FFmpeg version: 8.1.2
FFmpeg library versions:
libavcodec 62.28.102
libavdevice 62.3.102
libavfilter 11.14.102
libavformat 62.12.102
libavutil 60.26.102
libswresample 6.3.102
libswscale 9.5.102
Other Information
- Linux, in an Alpine Linux 3.24 container (x86_64), headless:
--vo=null --ao=null,--no-config. - Also seen on Windows 11 with libmpv from zhongfly/mpv-winbuild (git 488fec0789).
- Source of the binaries: the Alpine package, and master built from source as above.
Reproduction Steps
-
Generate a synthetic PGS file and a 20 s test video. The PGS file is a 200×40 box at the bottom, shown 2–6 s,
8–12 s and 14–18 s, each display set followed by a clearing one. Only Python 3 and FFmpeg are needed.make-sup.py:import struct W, H, BW, BH = 320, 180, 200, 40 X, Y = (W - BW) // 2, H - BH - 16 def seg(kind, ms, payload): return b"PG" + struct.pack(">II", ms * 90, 0) + bytes([kind]) + struct.pack(">H", len(payload)) + payload def run(c, n): return bytes([0, 0xC0 | (n >> 8), n & 0xFF, c]) if n >= 64 else (bytes([0, 0x80 | n, c]) if n >= 3 else bytes([c]) * n) def row(y): body = run(1, BW) if y < 2 or y >= BH - 2 else run(1, 2) + run(2, BW - 4) + run(1, 2) return body + b"\x00\x00" def display_set(ms, number, show): pcs = struct.pack(">HHBHBBBB", W, H, 0x10, number, 0x80, 0, 0, 1 if show else 0) if show: pcs += struct.pack(">HBBHH", 0, 0, 0, X, Y) out = seg(0x16, ms, pcs) + seg(0x17, ms, struct.pack(">BBHHHH", 1, 0, X, Y, BW, BH)) if show: out += seg(0x14, ms, bytes([0, 0, 1, 235, 128, 128, 255, 2, 41, 110, 240, 255])) data = b"".join(row(y) for y in range(BH)) out += seg(0x15, ms, struct.pack(">HBB", 0, 0, 0xC0) + struct.pack(">I", len(data) + 4)[1:] + struct.pack(">HH", BW, BH) + data) return out + seg(0x80, ms, b"") with open("sub.sup", "wb") as f: n = 1 for start, end in [(2000, 6000), (8000, 12000), (14000, 18000)]: f.write(display_set(start, n, True) + display_set(end, n + 1, False)) n += 2python3 make-sup.py ffmpeg -f lavfi -i testsrc2=size=320x180:rate=24:duration=20 -c:v libx264 -pix_fmt yuv420p -g 24 video.mkv -
Interactively:
mpv --no-config --sub-file=sub.sup --start=4 video.mkv. Expected: the box is visible from 4 s to
6 s. Actual: nothing until 8 s. A seek at any point while playing does the same, for example from 1 s to 4 s. -
Headless, the same check via
sub-start.print-sub.luaprints what is shownwaits after playback (re)starts:local opts = { wait = 0.5 } require("mp.options").read_options(opts, "print_sub") mp.register_event("playback-restart", function() mp.add_timeout(opts.wait, function() print(string.format("time-pos %.2f sub-start %s sub-end %s", mp.get_property_number("time-pos"), mp.get_property("sub-start", "(none)"), mp.get_property("sub-end", "(none)"))) mp.command("quit") end) end)P="mpv --no-config --vo=null --ao=null --sub-file=sub.sup --script=print-sub.lua --msg-level=all=no,print_sub=info" $P --start=1.5 --script-opts=print_sub-wait=1.5 video.mkv # plays into the first line $P --start=4 video.mkv # starts inside it
Expected Behavior
After a seek (or --start) into the middle of a subtitle, the display set that is current at the new position is
shown, as it is when playback runs into it, as text subtitles do, and as --demuxer-mkv-subtitle-preroll does for
Matroska.
Actual Behavior
Nothing is shown until the next display set. When that is the clearing one, the line never appears.
sub-reload after the seek shows it.
| Case | At | sub-start / sub-end |
Expected |
|---|---|---|---|
--start=1.5, played into the line |
3.04 s | 2.0 / 6.0 | 2.0 / 6.0 |
--start=4 |
4.54 s | none | 2.0 / 6.0 |
--start=10 |
10.50 s | none | 8.0 / 12.0 |
--start=4, then sub-reload at the restart |
4.54 s | 2.0 / 6.0 | 2.0 / 6.0 |
v0.41.0 and master give the same. Screenshots (screenshot-to-file <file> subtitles) agree: the box is in the frame
exactly where sub-start has a value.
Other cases checked, with the same result:
- a seek during playback (
seek 4 absolute+exact) instead of--start; - a seek while paused;
- the .sup loaded over HTTP;
- the .sup added with
sub-addafter the file loaded.
In the log, the external file's demuxer is seeked straight to the target, without the backward flag, so the display
set at 2.0 s, still current at 4.0 s, is never decoded again; the next packet the decoder gets clears the screen at
6.0 s:
[lavf] refresh seek to -10.000000
[lavf] execute seek (to -10.000000 flags 32)
[lavf] execute seek (to 4.000000 flags 0)
Related:
- #14021 (open): after a seek with an external PGS file, the subtitle from before the seek stays on screen until the
next one. Probably the same root cause, the external PGS state not being rebuilt at the seek target, seen from the
other side. - #10345 (open): .sup files show missing or out-of-order lines after seeking, unless muxed in.
- #12760 (open): external .sup with animations misses display sets; a different symptom, also external-only.
Log File
mpv --no-config --vo=null --ao=null --sub-file=sub.sup --start=4 --script=print-sub.lua --log-file=mpv.log video.mkv
on master:
mpv.log
[ 0.002][v][cplayer] mpv v0.41.0-1293-g1140d3cc2 Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
[ 0.002][v][cplayer] built on Oct 24 2026 04:30:18
[ 0.002][v][cplayer] libplacebo version: v7.360.1
[ 0.002][v][cplayer] FFmpeg version: 8.1.2
[ 0.002][v][cplayer] FFmpeg library versions:
[ 0.002][v][cplayer] libavcodec 62.28.102
[ 0.002][v][cplayer] libavdevice 62.3.102
[ 0.002][v][cplayer] libavfilter 11.14.102
[ 0.002][v][cplayer] libavformat 62.12.102
[ 0.002][v][cplayer] libavutil 60.26.102
[ 0.002][v][cplayer] libswresample 6.3.102
[ 0.002][v][cplayer] libswscale 9.5.102
[ 0.002][v][cplayer] Configuration: -Dlua=lua5.2 -Dcplayer=true -Dlibmpv=false -Dgl=disabled -Dvulkan=disabled -Dx11=disabled -Dwayland=disabled -Dmanpage-build=disabled
[ 0.002][v][cplayer] List of enabled features: build-date clone cplugins debug dvbin ffmpeg glibc-thread-name glob glob-posix gpl iconv jpeg lcms2 libass libavdevice libdl libplacebo linux-fstatfs lua5.2 memrchr posix posix-shm ppoll pthread-condattr-setclock vector vt.h zlib
[ 0.002][v][cplayer] Command line options: '--no-config' '--vo=null' '--ao=null' '--sub-file=sub.sup' '--start=4' '--script=print-sub.lua' '--log-file=mpv.log' 'video.mkv'
[ 0.002][v][cplayer] mpv v0.41.0-1293-g1140d3cc2 Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
[ 0.002][v][cplayer] built on Oct 24 2026 04:30:18
[ 0.002][v][cplayer] libplacebo version: v7.360.1
[ 0.002][v][cplayer] FFmpeg version: 8.1.2
[ 0.002][v][cplayer] FFmpeg library versions:
[ 0.002][v][cplayer] libavcodec 62.28.102
[ 0.002][v][cplayer] libavdevice 62.3.102
[ 0.002][v][cplayer] libavfilter 11.14.102
[ 0.002][v][cplayer] libavformat 62.12.102
[ 0.002][v][cplayer] libavutil 60.26.102
[ 0.002][v][cplayer] libswresample 6.3.102
[ 0.002][v][cplayer] libswscale 9.5.102
[ 0.002][v][cplayer] Configuration: -Dlua=lua5.2 -Dcplayer=true -Dlibmpv=false -Dgl=disabled -Dvulkan=disabled -Dx11=disabled -Dwayland=disabled -Dmanpage-build=disabled
[ 0.002][v][cplayer] List of enabled features: build-date clone cplugins debug dvbin ffmpeg glibc-thread-name glob glob-posix gpl iconv jpeg lcms2 libass libavdevice libdl libplacebo linux-fstatfs lua5.2 memrchr posix posix-shm ppoll pthread-condattr-setclock vector vt.h zlib
[ 0.002][d][global] home path: '' -> '-'
[ 0.002][d][global] user path: '~~home/' -> ''
[ 0.002][d][global] user path: '~~old_home/' -> ''
[ 0.002][v][cplayer] Setting option 'config' = 'no' (flags = 8)
[ 0.002][v][cplayer] Setting option 'vo' = 'null' (flags = 8)
[ 0.002][v][cplayer] Setting option 'ao' = 'null' (flags = 8)
[ 0.002][v][cplayer] Setting option 'sub-files-append' = 'sub.sup' (flags = 8)
[ 0.002][v][cplayer] Setting option 'start' = '4' (flags = 8)
[ 0.002][v][cplayer] Setting option 'scripts-append' = 'print-sub.lua' (flags = 8)
[ 0.002][v][cplayer] Setting option 'log-file' = 'mpv.log' (flags = 8)
[ 0.004][d][osc] Loading lua script @osc.lua...
[ 0.004][d][ytdl_hook] Loading lua script @ytdl_hook.lua...
[ 0.004][d][stats] Loading lua script @stats.lua...
[ 0.004][d][console] Loading lua script @console.lua...
[ 0.004][d][auto_profiles] Loading lua script @auto_profiles.lua...
[ 0.004][d][select] Loading lua script @select.lua...
[ 0.004][d][positioning] Loading lua script @positioning.lua...
[ 0.005][d][commands] Loading lua script @commands.lua...
[ 0.005][d][context_menu] Loading lua script @context_menu.lua...
[ 0.005][v][clipboard] Initialized vo clipboard backend.
[ 0.007][d][osc] loading mp.defaults
[ 0.007][d][ytdl_hook] loading mp.defaults
[ 0.007][d][print_sub] Loading lua script print-sub.lua...
[ 0.007][v][cplayer] Waiting for scripts...
[ 0.007][d][commands] loading mp.defaults
[ 0.007][d][stats] loading mp.defaults
[ 0.008][d][auto_profiles] loading mp.defaults
[ 0.008][d][context_menu] loading mp.defaults
[ 0.008][d][positioning] loading mp.defaults
[ 0.008][d][select] loading mp.defaults
[ 0.008][d][console] loading mp.defaults
[ 0.011][d][print_sub] loading mp.defaults
[ 0.028][d][ytdl_hook] loading @ytdl_hook.lua
[ 0.029][d][osc] loading @osc.lua
[ 0.030][d][auto_profiles] loading @auto_profiles.lua
[ 0.030][d][commands] loading @commands.lua
[ 0.030][d][stats] loading @stats.lua
[ 0.031][d][positioning] loading @positioning.lua
[ 0.031][d][context_menu] loading @context_menu.lua
[ 0.032][d][select] loading @select.lua
[ 0.032][d][console] loading @console.lua
[ 0.035][d][print_sub] loading file print-sub.lua
[ 0.037][d][positioning] reading options for positioning
[ 0.038][d][positioning] script-opts/positioning.conf not found.
[ 0.041][d][print_sub] reading options for print_sub
[ 0.041][d][print_sub] script-opts/print_sub.conf not found.
[ 0.049][d][ytdl_hook] reading options for ytdl_hook
[ 0.049][d][ytdl_hook] script-opts/ytdl_hook.conf not found.
[ 0.050][d][cplayer] Run command: define-section, flags=64, args=[name="input_positioning", contents="", flags="default"]
[ 0.050][d][cplayer] Run command: enable-section, flags=64, args=[name="input_positioning", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.050][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_positioning", contents="", flags="force"]
[ 0.051][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_positioning", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.052][d][commands] reading options for commands
[ 0.052][d][commands] script-opts/commands.conf not found.
[ 0.052][d][cplayer] Run command: define-section, flags=64, args=[name="input_commands", contents="", flags="default"]
[ 0.052][d][context_menu] reading options for context_menu
[ 0.053][d][context_menu] script-opts/context_menu.conf not found.
[ 0.053][d][cplayer] Run command: enable-section, flags=64, args=[name="input_commands", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.053][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_commands", contents="", flags="force"]
[ 0.053][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_commands", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.059][d][select] reading options for select
[ 0.059][d][select] script-opts/select.conf not found.
[ 0.059][d][auto_profiles] Destroying client handle...
[ 0.059][d][stats] reading options for stats
[ 0.059][d][stats] script-opts/stats.conf not found.
[ 0.060][d][cplayer] Run command: define-section, flags=64, args=[name="input_select", contents="", flags="default"]
[ 0.060][d][cplayer] Run command: enable-section, flags=64, args=[name="input_select", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.060][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_select", contents="", flags="force"]
[ 0.060][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_select", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.061][d][cplayer] Run command: define-section, flags=64, args=[name="input_stats", contents="", flags="default"]
[ 0.061][d][cplayer] Run command: enable-section, flags=64, args=[name="input_stats", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.061][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_stats", contents="", flags="force"]
[ 0.061][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_stats", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.062][d][console] reading options for console
[ 0.062][d][console] script-opts/console.conf not found.
[ 0.063][d][cplayer] Run command: define-section, flags=64, args=[name="input_console", contents="", flags="default"]
[ 0.063][d][cplayer] Run command: enable-section, flags=64, args=[name="input_console", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.063][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_console", contents="", flags="force"]
[ 0.063][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_console", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.065][d][cplayer] Run command: define-section, flags=64, args=[name="showhide", contents="mouse_move script-binding osc/__keybinding1\nmouse_leave script-binding osc/__keybinding2\n", flags="force"]
[ 0.065][d][cplayer] Run command: define-section, flags=64, args=[name="showhide_wc", contents="mouse_move script-binding osc/__keybinding3\nmouse_leave script-binding osc/__keybinding4\n", flags="force"]
[ 0.065][d][cplayer] Run command: enable-section, flags=64, args=[name="showhide", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.065][d][cplayer] Run command: enable-section, flags=64, args=[name="showhide_wc", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.065][d][cplayer] Run command: define-section, flags=64, args=[name="input", contents="mbtn_left script-binding osc/__keybinding5\nmbtn_mid script-binding osc/__keybinding6\nmbtn_right script-binding osc/__keybinding7\nshift+mbtn_left script-binding osc/__keybinding8\nwheel_up script-binding osc/__keybinding9\nwheel_down script-binding osc/__keybinding10\nmbtn_left_dbl ignore\nshift+mbtn_left_dbl ignore\nmbtn_right_dbl ignore\n", flags="force"]
[ 0.065][d][cplayer] Run command: enable-section, flags=64, args=[name="input", flags=""]
[ 0.065][d][cplayer] Run command: define-section, flags=64, args=[name="window-controls", contents="mbtn_left script-binding osc/__keybinding11\n", flags="force"]
[ 0.065][d][cplayer] Run command: enable-section, flags=64, args=[name="window-controls", flags=""]
[ 0.065][d][osc] reading options for osc
[ 0.065][d][osc] script-opts/osc.conf not found.
[ 0.066][v][cplayer] Set property: user-data/osc/visibility="auto" -> 1
[ 0.066][d][cplayer] Run command: disable-section, flags=64, args=[name="input"]
[ 0.066][d][cplayer] Run command: disable-section, flags=64, args=[name="window-controls"]
[ 0.066][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.066][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.066][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.066][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.067][v][cplayer] Set property: user-data/osc/margins={"r":0,"b":0,"l":0,"t":0} -> 1
[ 0.067][v][cplayer] Done loading scripts.
[ 0.067][d][global] state path: 'watch_later' -> '-'
[ 0.067][v][cplayer] Running hook: auto_profiles/on_before_start_file
[ 0.067][v][cplayer] Failed sending hook command auto_profiles/on_before_start_file. Removing hook.
[ 0.067][d][global] state path: 'watch_later' -> '-'
[ 0.067][v][cplayer] Running hook: auto_profiles/on_load
[ 0.067][v][cplayer] Failed sending hook command auto_profiles/on_load. Removing hook.
[ 0.067][v][cplayer] Running hook: ytdl_hook/on_load
[ 0.067][v][cplayer] Running hook: ytdl_hook/on_load
[ 0.067][v][ytdl_hook] playlist hook
[ 0.067][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.067][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.067][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.067][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.067][v][cplayer] Set property: user-data/osc/margins={"r":0,"b":0,"l":0,"t":0} -> 1
[ 0.067][v][file] Opening video.mkv
[ 0.067][d][osc] osc_init
[ 0.068][d][file] resize stream to 131072 bytes, drop 0 bytes
[ 0.068][d][file] Stream opened successfully.
[ 0.068][v][demux] Trying demuxers for level=normal.
[ 0.068][d][demux] Trying demuxer: directory (force-level: normal)
[ 0.068][d][demux] Trying demuxer: disc (force-level: normal)
[ 0.068][d][demux] Trying demuxer: edl (force-level: normal)
[ 0.068][d][demux] Trying demuxer: cue (force-level: normal)
[ 0.068][d][demux] Trying demuxer: rawaudio (force-level: normal)
[ 0.068][d][demux] Trying demuxer: rawvideo (force-level: normal)
[ 0.068][d][demux] Trying demuxer: mkv (force-level: normal)
[ 0.068][d][mkv] Found the head...
[ 0.068][d][mkv] + a segment...
[ 0.068][d][mkv] Parsing seek head...
[ 0.069][d][mkv] |+ segment information...
[ 0.069][d][mkv] float 20000.000000
[ 0.069][d][mkv] | + muxing app: Lavf59.27.100
[ 0.069][d][mkv] | + writing app: Lavf59.27.100
[ 0.069][d][mkv] | + timecode scale: 1000000
[ 0.069][d][mkv] | + duration: 20.000s
[ 0.069][d][mkv] | + segment uid b9 b4 36 f7 db 74 1d 4b 57 27 39 84 15 4c d7 2b
[ 0.069][d][mkv] |+ segment tracks...
[ 0.069][d][mkv] | + a track...
[ 0.069][d][mkv] | + Track number: 1
[ 0.069][d][mkv] | + Track type: Video
[ 0.069][d][mkv] | + Video track
[ 0.069][d][mkv] | + Pixel width: 320
[ 0.069][d][mkv] | + Pixel height: 180
[ 0.069][d][mkv] | + Codec ID: V_MPEG4/ISO/AVC
[ 0.069][d][mkv] | + CodecPrivate, length 38
[ 0.069][d][mkv] | + Language: und
[ 0.069][d][mkv] | + Default flag: 0
[ 0.069][d][mkv] | + Default duration: 41.667ms ( = 24.000 fps)
[ 0.069][d][mkv] |+ found cluster
[ 0.069][v][mkv] Deferring reading cues.
[ 0.069][v][mkv] All headers are parsed!
[ 0.069][v][demux] Detected file format: Matroska
[ 0.069][v][cplayer] Opening done: video.mkv
[ 0.069][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.069][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.069][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.069][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.069][v][cplayer] Set property: user-data/osc/margins={"r":0,"b":0,"l":0,"t":0} -> 1
[ 0.069][v][file] Opening sub.sup
[ 0.069][d][cplayer] Run command: disable-section, flags=64, args=[name="window-controls-title"]
[ 0.069][d][file] resize stream to 131072 bytes, drop 0 bytes
[ 0.069][d][file] Stream opened successfully.
[ 0.069][v][demux] Trying demuxers for level=normal.
[ 0.069][d][demux] Trying demuxer: directory (force-level: normal)
[ 0.069][d][osd/libass] ASS library version: 0x1704000 (runtime 0x1704000)
[ 0.070][v][osd/libass] libass API version: 0x1704000
[ 0.070][v][osd/libass] libass source: tarball: 0.17.4
[ 0.070][v][osd/libass] Shaper: FriBidi 1.0.16 (SIMPLE) HarfBuzz-ng 13.2.1 (COMPLEX)
[ 0.070][v][osd/libass] Setting up fonts...
[ 0.070][d][demux] Trying demuxer: disc (force-level: normal)
[ 0.070][d][demux] Trying demuxer: edl (force-level: normal)
[ 0.070][d][demux] Trying demuxer: cue (force-level: normal)
[ 0.070][d][demux] Trying demuxer: rawaudio (force-level: normal)
[ 0.070][d][demux] Trying demuxer: rawvideo (force-level: normal)
[ 0.070][d][demux] Trying demuxer: mkv (force-level: normal)
[ 0.070][d][demux] Trying demuxer: lavf (force-level: normal)
[ 0.079][v][lavf] Found 'sup' at score=100 size=1683.
[ 0.080][v][lavf] avformat_find_stream_info() finished after 1683 bytes.
[ 0.080][v][demux] Detected file format: sup (libavformat)
[ 0.088][w][osd/libass] Failed to load fontconfig fonts!
[ 0.088][v][osd/libass] Using font provider fontconfig
[ 0.088][v][osd/libass] Done.
[ 0.088][v][find_files] Loading external files in ./
[ 0.088][v][cplayer] Running hook: auto_profiles/on_preloaded
[ 0.088][v][cplayer] Failed sending hook command auto_profiles/on_preloaded. Removing hook.
[ 0.088][v][cplayer] Running hook: ytdl_hook/on_preloaded
[ 0.089][v][cplayer] Running hook: auto_profiles/on_loaded
[ 0.089][v][cplayer] Failed sending hook command auto_profiles/on_loaded. Removing hook.
[ 0.089][v][mkv] select track 0
[ 0.089][v][lavf] select track 0
[ 0.089][v][lavf] refresh track 0 (sub)
[ 0.089][v][lavf] refresh seek to -10.000000
[ 0.089][v][lavf] execute seek (to -10.000000 flags 32)
[ 0.089][i][cplayer] ● Video --vid=1 (h264 320x180 24 fps)
[ 0.089][v][lavf] seek done
[ 0.089][i][cplayer] ● Subs --sid=1 'sub.sup' (hdmv_pgs_subtitle) [external]
[ 0.089][v][vd] Container reported FPS: 24.000000
[ 0.089][v][vd] Codec list:
[ 0.089][v][vd] h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[ 0.089][v][vd] h264_v4l2m2m (h264) - V4L2 mem2mem H.264 decoder wrapper
[ 0.089][v][vd] h264_qsv (h264) - H264 video (Intel Quick Sync Video acceleration)
[ 0.089][v][vd] Opening decoder h264
[ 0.089][v][vd] No hardware decoding requested.
[ 0.089][v][vd] Using software decoding.
[ 0.089][v][vd] Detected 12 logical cores.
[ 0.089][v][vd] Requesting 13 threads for decoding.
[ 0.091][d][ffmpeg/video] h264: Reinit context to 320x192, pix_fmt: yuv420p
[ 0.091][d][vd] DR parameter change to 320x194 yuv420p align=64
[ 0.091][d][vd] Allocating new (host-cached) DR image...
[ 0.091][d][vd] ...failed..
[ 0.091][v][vd] DR failed - disabling.
[ 0.092][v][vd] Selected decoder: h264 - H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
[ 0.092][v][vf] User filter list:
[ 0.092][v][vf] (empty)
[ 0.092][v][sub/lavc] Using subtitle decoder pgssub
[ 0.092][v][cplayer] Starting playback...
[ 0.092][v][mkv] queuing seek to 4.000000
[ 0.092][v][lavf] queuing seek to 4.000000
[ 0.092][v][lavf] execute seek (to 4.000000 flags 0)
[ 0.092][v][cplayer] hr-seek, skipping to 4.000000
[ 0.092][v][mkv] execute seek (to 4.000000 flags 32)
[ 0.092][v][lavf] seek done
[ 0.092][v][mkv] Seeking to 1621931 to read header element 0x1c53bb6b.
[ 0.092][v][file] stream level seek from 131072 to 1621931
[ 0.092][v][mkv] Parsing cues...
[ 0.092][v][file] stream level seek from 1622321 to 319096
[ 0.092][v][mkv] seek done
[ 0.092][d][osc] osc_init
[ 0.092][d][ffmpeg/video] h264: Reinit context to 320x192, pix_fmt: yuv420p
[ 0.097][v][vd] Using software decoding.
[ 0.097][v][vd] Decoder format: 320x180 yuv420p auto/auto/auto/auto/auto CL=mpeg2/4/h264 crop=320x180+0+0 A=none
[ 0.097][v][vd] Using container aspect ratio.
[ 0.097][v][vf] [in] 320x180 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=320x180+0+0 A=none
[ 0.097][v][vf] [userdeint] 320x180 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=320x180+0+0 A=none
[ 0.097][v][vf] [userdeint] (disabled)
[ 0.097][v][vf] [autovflip] 320x180 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=320x180+0+0 A=none
[ 0.097][v][vf] [autovflip] (disabled)
[ 0.097][v][vf] [autorotate] 320x180 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=320x180+0+0 A=none
[ 0.097][v][vf] [autorotate] (disabled)
[ 0.097][v][vf] [convert] 320x180 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=320x180+0+0 A=none
[ 0.097][v][vf] [convert] (disabled)
[ 0.097][v][vf] [out] 320x180 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=320x180+0+0 A=none
[ 0.098][i][cplayer] VO: [null] 320x180 yuv420p
[ 0.098][v][cplayer] VO: Description: Null video output
[ 0.098][v][vo/null] reconfig to 320x180 yuv420p bt.601/bt.709/bt.1886/limited/display CL=mpeg2/4/h264 crop=320x180+0+0 A=none
[ 0.098][v][cplayer] first video frame after restart shown
[ 0.098][d][cplayer] starting video playback
[ 0.098][v][cplayer] playback restart complete @ 4.000000, audio=eof, video=playing
[ 0.099][v][lavf] EOF reached.
[ 0.101][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.101][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.101][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.101][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.101][v][cplayer] Set property: user-data/osc/margins={"r":0,"b":0,"l":0,"t":0} -> 1
[ 0.101][d][cplayer] Run command: define-section, flags=64, args=[name="input_osc", contents="", flags="default"]
[ 0.102][d][cplayer] Run command: enable-section, flags=64, args=[name="input_osc", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.102][d][cplayer] Run command: define-section, flags=64, args=[name="input_forced_osc", contents="", flags="force"]
[ 0.102][d][cplayer] Run command: enable-section, flags=64, args=[name="input_forced_osc", flags="allow-hide-cursor+allow-vo-dragging"]
[ 0.102][d][global] user path: '~~/menu.conf' -> 'menu.conf'
[ 0.141][d][osc] osc_init
[ 0.143][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.143][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.143][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.143][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.143][v][cplayer] Set property: user-data/osc/margins={"r":0,"b":0,"l":0,"t":0} -> 1
[ 0.598][i][print_sub] time-pos 4.54 sub-start (none) sub-end (none)
[ 0.598][d][cplayer] Run command: quit, flags=73, args=[code="0"]
[ 0.598][v][cplayer] EOF code: 5
[ 0.598][v][cplayer] Running hook: osc/on_unload
[ 0.599][d][vd] Uninit decoder.
[ 0.605][v][cplayer] finished playback, success (reason 3)
[ 0.605][v][cplayer] Running hook: ytdl_hook/on_after_end_file
[ 0.641][d][cplayer] Run command: del, flags=64, args=[name="user-data/mpv/ytdl/json-subprocess-result"]
[ 0.641][d][osc] osc_init
[ 0.641][i][cplayer] Exiting... (Quit)
[ 0.641][d][dnd] Destroying client handle...
[ 0.641][d][cplayer] Run command: del, flags=64, args=[name="user-data/mpv/console"]
[ 0.642][d][positioning] Destroying client handle...
[ 0.642][d][ytdl_hook] Destroying client handle...
[ 0.642][d][context_menu] Destroying client handle...
[ 0.643][d][stats] Destroying client handle...
[ 0.643][d][print_sub] Destroying client handle...
[ 0.643][d][commands] Destroying client handle...
[ 0.644][d][console] Destroying client handle...
[ 0.645][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.645][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.645][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.645][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.645][v][cplayer] Set property: user-data/osc/margins={"r":0,"b":0,"l":0,"t":0} -> 1
[ 0.645][v][cplayer] Set property: sub-margin-y-offset=0 -> 1
[ 0.645][v][cplayer] Set property: osd-margin-y-offset=0 -> 1
[ 0.645][d][cplayer] Run command: del, flags=64, args=[name="user-data/osc"]
[ 0.645][d][select] Destroying client handle...
[ 0.648][d][osc] Destroying client handle...
Sample Files
None attached: the video and the subtitle file are generated entirely by the script and the FFmpeg command in the
reproduction steps.
- Dominant language
- C
- Stars
- 38.2k
- Forks
- 3.7k
- Avg merge
- 1d 13h
- Merged PRs (30d)
- 76
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- No contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from mpv-player/mpv
-
meta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
mpv-player/mpv#18855 · 2 comments ·
Maintainers usually reply within 1 day
-
meta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
mpv-player/mpv#18683 · 4 comments ·
Maintainers usually reply within 1 day
-
Subtitle delay value displays "-0ms"May be free again A pull request for this issue was closed without being merged. Openos:linux
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
mpv-player/mpv#18649 · 1 comment ·
Maintainers usually reply within 1 day
-
meta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
mpv-player/mpv#18464 ·
Maintainers usually reply within 1 day
-
Keyboard shortcut next and previous secondary subtitle filePossibly taken @ravarnax claimed this 225 days ago. Openmeta:feature-request
Difficulty 2/5 1-3 hours Newbie friendliness 64/100
mpv-player/mpv#17693 · 5 comments · 1 reaction ·
Maintainers usually reply within 1 day
Similar issues
-
`sha256()` returns a wrong hash when libsql-ffi is built with gcc 11 or laterPossibly taken @colinhacks claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
tursodatabase/libsql#2333 ·
Maintainers usually reply within 11 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
OpenPrinting/cups#1826 ·
Maintainers usually reply within 1 day
-
Backport to 3.0 advertises a suffix that does not existPossibly taken A pull request linked to this issue is open or already merged. Open
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
389ds/389-ds-base#8152 ·
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
RetroAchievements/rcheevos#580 · 1 comment ·
Maintainers usually reply within 5 days