mpv-player / mpv-player/mpv

`format` filter will crop the output

Open
#16,382 0 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

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

Description

mpv Information
mpv v0.40.0-119-g1d1535ff9 Copyright © 2000-2025 mpv/MPlayer/mplayer2 projects
 built on May 23 2025 00:13:48
libplacebo version: v7.351.0 (v7.351.0-dirty)
FFmpeg version: N-119686-gae0f71a38
FFmpeg library versions:
   libavcodec      62.3.101
   libavdevice     62.0.100
   libavfilter     11.0.100
   libavformat     62.0.102
   libavutil       60.3.100
   libswresample   6.0.100
   libswscale      9.0.100
Other Information
- Windows version: win11 23h2
- GPU model, driver and version:RTX4080
- Source of mpv: see above
- Latest known working version:--
- Issue started after the following happened:--

I doubt it was caused by the buggy `--video-crop` implement...
Reproduction Steps

open a src video (1920x1080)
vf set format=w=2560:h=1440:convert=yes

Expected Behavior

No cropping.

Actual Behavior

Output would be cropped.

Log File

crop.log

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

  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

Reproduce the issue with the vf set format=w=2560:h=1440:convert=yes entry point using a 1920x1080 source, then inspect crop.log alongside the expected and actual screenshots. Done means the format filter produces the requested 2560x1440 output without cropping.

Written by the indexing model from the issue text.

Assessment

Tech stack
c
Domain
computer-graphics
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 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.