Opened 6 weeks ago

Closed 6 weeks ago

Last modified 6 weeks ago

#10946 closed defect (invalid)

Broken pause/resume in ffmpeg version 7.0.0

Reported by: ddhschmidt Owned by:
Priority: important Component: ffmpeg
Version: git-master Keywords: ffmpeg command pause
Cc: ddhschmidt Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

After updating to the latest release (7.0.0) I noticed I could still "pause" the ffmpeg tool by clicking into the command line window or hitting "break" on the keyboard while focusing the command line window.
The output indeed stops and no encoding takes place.
The cpu usage doesn't go down though. Task Manager shows ffmpeg.exe is still using as much cycles as if the encoding hadn't stopped at all.

I am on Windows (x64) and test with the builds from Gyan (https://www.gyan.dev/ffmpeg/builds/)

The earliest master build available on that page was from 2024-02-15 and it exhibits the same problem.
Going back to the previous release build (6.1.1) enables me to correctly pause the encoding process again and ffmpeg.exe doesn't consume any cpu cycles anymore.

Change History (4)

comment:1 by Gyan, 6 weeks ago

Priority: minorimportant
Reproduced by developer: set
Status: newopen

Reproduced. This first shows up in the 2023-12-14 build, so it started most likely with the switch to multithreading in https://github.com/FFmpeg/FFmpeg/commit/d119ae2fd82a494d9430ff4d4fc262961a68c598.

comment:2 by elenril, 6 weeks ago

Resolution: invalid
Status: openclosed

I am not aware of this ever having been an intended or documented feature.

comment:3 by Michael Koch, 6 weeks ago

I don't remember where I've found this. Most probably it's not from the official documentation:

The first ctrl-c interrupts the transcoding process and starts flushing.
The second ctrl-c interrupts the flushing itself.
Three ctrl-c in a row interrupts everything immediately.

comment:4 by Balling, 6 weeks ago

Pause resume are done by the Ctrl-Z and then typing fg in the console.

Not by BREAK, lol

Also, right clicking in the command pine window is windows genius behaviour.

Last edited 6 weeks ago by Balling (previous) (diff)
Note: See TracTickets for help on using tickets.