Bug 515606

Summary: Unable to rename video file after playing.
Product: [Applications] digikam Reporter: Peter <benedekppeter>
Component: Preview-VideoAssignee: Digikam Developers <digikam-bugs-null>
Status: REPORTED ---    
Severity: normal CC: metzpinguin
Priority: NOR    
Version First Reported In: 9.0.0   
Target Milestone: ---   
Platform: Microsoft Windows   
OS: Microsoft Windows   
Latest Commit: Version Fixed/Implemented In:
Sentry Crash Report:

Description Peter 2026-02-06 11:52:31 UTC
***
OS: Windows 10
digiKam ver.: digiKam-9.0.0-20260205T180243-Qt6-Win64.exe
I could not reproduce the error on Linux Mint 22.3 using the appimage version.

-- I selected a video file. Format: mp4
-- Double-clicked the Thumbnail
-- Started playback by clicking the Play button
-- Double-clicked the video and returned to Thumbnail view
-- Tried to rename the file (pressed F2)
-- Typed the new name and pressed Enter
Error message: "An error occurred while renaming 1 image. Do you want to rename this image again or rename this image by overwriting?"

I opened the file in the file manager, but renaming was not possible there either.
Error message: "The action cannot be completed because the file is open in Advanced digital photo management application."

I closed digiKam, then tried to rename the file again in the file manager, which was successful.

It appears that stopping the video playback process in digiKam does not release the file lock, making further file operations impossible.
Comment 1 Maik Qualmann 2026-02-06 12:00:39 UTC
The file is still open internally in FFmpeg. Normally, we insert a dummy video when the video view is exited to release the last file. Presumably, due to the new preview view running in the background, the file is still in use. I'll take a look.

Maik
Comment 2 Maik Qualmann 2026-02-14 20:51:58 UTC
We insert a dummy video when exiting the player view. The video file itself should no longer be in use by digiKam. I will test this on a Windows machine on Monday.

Maik