Wildcard mjpeg in a directory doesn't print Playing:
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
mpv Information
mpv v0.41.0-566-g0a0c63d3e Copyright © 2000-2026 mpv/MPlayer/mplayer2 projects
built on Apr 29 2026 07:28:06
libplacebo version: v7.362.0
FFmpeg version: N-124254-g397c7c7524
FFmpeg library versions:
libavcodec 62.30.100
libavdevice 62.4.100
libavfilter 11.17.100
libavformat 62.13.102
libavutil 60.30.100
libswresample 6.4.100
libswscale 9.7.100
Other Information
- Linux version: Chimera
- Kernel Version: 7.0.1
- GPU Model: Intel HD 4000
- Mesa/GPU Driver Version: git master with some personal stuff
- Window Manager and Version: wlroots based
- Source of mpv: git
- Latest known working version: unsure
- Issue started after the following happened: unsure
Reproduction Steps
Hi, I happened to notice that this if statement doesn't always account for e.g. ~/directory/*.jpg:
if (mpctx->playlist->num_entries > 1 ||
mpctx->playing->playlist_path)
MP_INFO(mpctx, "Playing: %s\n", mpctx->filename);
ffmpeg -i etc/mpv-icon-8bit-128x128.png test.jpg
xxx@Chimera:~/src/mpv$ ./build/mpv --no-config ~/src/mpv/*.jpg
● Image --vid=1 (mjpeg [Baseline] 128x128)
VO: [gpu-next] 128x128 yuv444p
V: 00:00:00 / 00:00:00 (0%)
Works alright with png:
xxx@Chimera:~/src/mpv$ ./build/mpv --no-config ~/src/mpv/etc/*.png
Playing: /home/xxx/src/mpv/etc/mpv-icon-8bit-128x128.png
### Expected Behavior
Ideally it would show Playing: with the filename.
### Actual Behavior
Doesn't show the filename seemingly with just mjpeg.
ffprobe version N-124254-g397c7c7524 Copyright (c) 2007-2026 the FFmpeg developers
built with clang version 22.1.3
configuration: --prefix=/usr/local --enable-gpl --enable-version3 --enable-nonfree --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libda
v1d --enable-libvpx --enable-libmp3lame --enable-libtwolame --enable-libvorbis --enable-unstable --enable-libshaderc --enable-vulkan --enable-libplacebo --enable-open
gl --enable-vaapi --enable-gnutls --disable-libv4l2 --disable-v4l2-m2m --disable-indev=v4l2 --disable-outdev=v4l2 --disable-doc --disable-htmlpages --disable-podpages
--disable-indev=oss --disable-outdev=oss --disable-sdl2 --cc='ccache cc' --enable-runtime-cpudetect --extra-ldflags='-Wl,-z,stack-size=524288' --extra-cflags='-march
=native' --enable-sdl2 --enable-ffplay
libavutil 60. 30.100 / 60. 30.100
libavcodec 62. 30.100 / 62. 30.100
libavformat 62. 13.102 / 62. 13.102
libavdevice 62. 4.100 / 62. 4.100
libavfilter 11. 17.100 / 11. 17.100
libswscale 9. 7.100 / 9. 7.100
libswresample 6. 4.100 / 6. 4.100
Input #0, image2, from 'test.jpg':
Duration: 00:00:00.04, start: 0.000000, bitrate: 1078 kb/s
Stream #0:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 128x128, 25 fps, 25 tbr, 25 tbn
### Log File
[test.log](https://github.com/user-attachments/files/27247073/test.log)
### Sample Files
<img width="128" height="128" alt="Image" src="https://github.com/user-attachments/assets/6f7283f7-57af-439e-8cdc-fe044aa91435" />
### I carefully read all instruction and confirm that I did the following:
- [x] I tested and confirmed that the issue exists with the [latest release version](https://github.com/mpv-player/mpv/releases/latest) or newer.
- [x] I provided all required information including system and mpv version.
- [x] I produced the log file with the exact same set of files, parameters, and conditions used in "Reproduction Steps", with the addition of `--log-file=output.txt`.
- [x] I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- [x] I attached the full, untruncated log file.
- [x] I attached the backtrace in the case of a crash.
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Search the source for the shown playlist condition and reproduce the behavior with ./build/mpv --no-config ~/src/mpv/*.jpg, comparing it with the PNG wildcard case. Update the relevant behavior so the MJPEG wildcard invocation prints the filename, then verify both reproductions and any nearby tests.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 55/100