mpv crash with v4l2 camera output
Open
Nobody has claimed this yet.
down-upstream:ffmpeg
os:linux
- Dominant language
- C
- Stars
- 37k
- Forks
- 3.5k
- Avg merge
- 1d 10h
- Merged PRs (30d)
- 22
Description
mpv Information
mpv v0.41.0 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
built on Dec 22 2025 14:58:51
libplacebo version: v7.351.0
FFmpeg version: n8.0.1
FFmpeg library versions:
libavcodec 62.11.100
libavdevice 62.1.100
libavfilter 11.4.100
libavformat 62.3.100
libavutil 60.8.100
libswresample 6.1.100
libswscale 9.1.100
Other Information
- Linux version:Arch Linux
- Kernel Version: Linux arch 6.12.63-1-lts #1 SMP PREEMPT_DYNAMIC Thu, 18 Dec 2025 14:48:15 +0000 x86_64 GNU/Linux
- GPU Model: 06:00.0 VGA compatible controller [0300]: Advanced Micro Devices, Inc. [AMD/ATI] Renoir [Radeon Vega Series / Radeon Vega Mobile Series] [1002:1636] (rev d1)
- Mesa/GPU Driver Version: 1:25.3.2-1
- Window Manager and Version: sway 1.11
- Source of mpv: Arch package
- Latest known working version: N/A
- Issue started after the following happened: Can also repro in previous versions (0.39 I think)
Reproduction Steps
mpv --no-config /dev/video0 /dev/video0- Press
>or runplaylist-next
Get segmentation fault.
Expected Behavior
No such crash.
Actual Behavior
Crash somewhere inside ffmpeg code (not familiar with the internals, wanted to track it here in case buffer misuse is inside mpv, can't repro via ffmpeg directly)
Log File
Sample Files
No response
I carefully read all instruction and confirm that I did the following:
- I tested with the latest mpv version to validate that the issue is not already fixed.
- I provided all required information including system and mpv version.
- 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. - I produced the log file while the behaviors described in "Actual Behavior" were actively observed.
- I attached the full, untruncated log file.
- 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
Start by reproducing mpv --no-config /dev/video0 /dev/video0 and triggering playlist-next. Read the attached output.txt and bt.txt to locate the crash path and determine whether mpv is involved before the FFmpeg failure. Done means playlist navigation with the v4l2 camera output no longer causes a segmentation fault.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c, linux
- Domain
- cli
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100