#11482 closed defect (worksforme)

Using the shortcut key "f" does not toggle fullscreen when using ffplay

Reported by: nocpu Owned by:
Priority: normal Component: ffplay
Version: unspecified Keywords: ffplay
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: yes

Description

Summary of the bug: I use ffplay to watch videos, when I press "f" to toggle a window full screen, the window will indeed maximize/shrink videos to fit fullscreen, but not the video which remains the same size.

How to reproduce:
1 in a terminal I enter the command: ffplay file.mkv
2 when video starts playing press f

Linux 6.13.4-arch1-1

ffmpeg 2:7.1-6

ffmpeg version n7.1 Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 14.2.1 (GCC) 20240910

Attachments (3)

current problem.png (66.2 KB ) - added by nocpu 17 months ago.
this is what happens when I press f
how it should look.png (298.5 KB ) - added by nocpu 17 months ago.
how it should look when I press f
2025-05-14 21-19-29.mp4 (1.5 MB ) - added by Appaji Chintimi 14 months ago.
Screen-recording of ffmpeg's latest trial of F.

Download all attachments as: .zip

Change History (9)

by nocpu, 17 months ago

Attachment: current problem.png added

this is what happens when I press f

by nocpu, 17 months ago

Attachment: how it should look.png added

how it should look when I press f

comment:1 by nocpu, 17 months ago

Status: newopen

comment:2 by Appaji Chintimi, 14 months ago

This is no longer reproducible i.e., Pressing f is correctly toggling fullscreen mode when using ffplay.

ffplay version 6.1.1-3ubuntu5 Copyright (c) 2003-2023 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.2.0-23ubuntu3)

comment:3 by Appaji Chintimi, 14 months ago

Analyzed by developer: set

comment:4 by Timo R., 14 months ago

That is an even older version than the one the issue is reported on. So "no longer reproducible" sounds odd.
Please test with latest master.

by Appaji Chintimi, 14 months ago

Attachment: 2025-05-14 21-19-29.mp4 added

Screen-recording of ffmpeg's latest trial of F.

comment:5 by Appaji Chintimi, 14 months ago

Just tested with the master branch (latest commit: 3f9420132441345b7ccd57001f230bb98f655696), and f is toggling fullscreen correctly.

Screen-recording attached.

ffplay version N-119468-g1753d41d4e Copyright (c) 2003-2025 the FFmpeg developers
  built with gcc 13 (Ubuntu 13.3.0-6ubuntu2~24.04)

comment:6 by Marton Balint, 14 months ago

Resolution: worksforme
Status: openclosed

FFplay is using SDL library calls to enter and exit fullscreen mode. Based on the screenshot you provided it seems the window resize event does not reach ffplay for some reason. This is likely an SDL or a window manager issue, and probably affects other SDL based applications as well. So I'd say this is probably not our bug.

Note: See TracTickets for help on using tickets.