Skip to content

mpv crash with v4l2 camera output #17215

@ndren

Description

@ndren

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

  1. mpv --no-config /dev/video0 /dev/video0
  2. Press > or run playlist-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

output.txt

bt.txt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions