Bug 357397

Summary: Image Sequence (with period in filename) missing upon re-opening project
Product: [Applications] kdenlive Reporter: Sam Muirhead <sam>
Component: Rendering & ExportAssignee: Jean-Baptiste Mardelle <jb>
Status: RESOLVED FIXED    
Severity: normal CC: wegwerf-1-2-3
Priority: NOR    
Version First Reported In: unspecified   
Target Milestone: ---   
Platform: Kubuntu   
OS: Linux   
Latest Commit: Version Fixed In: 15.12.1
Sentry Crash Report:

Description Sam Muirhead 2016-01-01 16:36:59 UTC
When opening a saved project, if it contains any image sequences with a period in their filename, I get a Warning:Missing Clips dialog box and then I am unable to relink the files using Search Recursively.

The workaround is easy - either import the image sequence using the 'Import Slideshow Clip' option, or batch rename the files to remove the period before importing into Kdenlive as an image sequence. Both of these options work with no problems.

This bug is likely to affect anyone editing Synfig animations in Kdenlive because by default, Synfig exports PNG sequences with the pattern:
SceneName.0001.png
SceneName.0002.png
SceneName.0003.png
Of course you can change this in Synfig to remove the period and avoid the problem that way, but it would be a nasty surprise if you had done a lot of work on your Synfig animation in Kdenlive and weren't able to retrieve it!

Reproducible: Always

Steps to Reproduce:
1.Click on Import Clip, navigate to folder containing image sequence
SceneName.0001.png
SceneName.0002.png
SceneName.0003.png
...
2. Click on SceneName.0001.png, check 'import as image sequence' option. Import.
3. Edit the image sequence in kdenlive. 
4. Save SceneName.kdenlive & quit.
5. Open SceneName.kdenlive 


Actual Results:  
Warning: Missing Clips dialog appears, showing 'SceneName.%4d.png | File not found'
Use Search recursively to navigate to the right folder - no change, File not found.


Kdenlive 15.13.0
Qt 5.4.2
Kubuntu 15.10
Comment 1 Jean-Baptiste Mardelle 2016-01-01 22:19:25 UTC
Git commit bde554125a70f0587eb0d38b423b649777d7c5be by Jean-Baptiste Mardelle.
Committed on 01/01/2016 at 22:19.
Pushed by mardelle into branch 'Applications/15.12'.

Fix severe issues with slideshow clips

M  +1    -0    src/dialogs/clipcreationdialog.cpp
M  +2    -2    src/mltcontroller/clipcontroller.cpp
M  +55   -26   src/project/dialogs/slideshowclip.cpp

http://commits.kde.org/kdenlive/bde554125a70f0587eb0d38b423b649777d7c5be
Comment 2 Jean-Baptiste Mardelle 2016-01-01 22:26:57 UTC
Thanks for the report. Indeed, I found several major bugs in slideshows that I just fixed in git master and 15.12 branch. Please test again and let me know...
Comment 3 Sam Muirhead 2016-01-02 10:42:04 UTC
(In reply to Jean-Baptiste Mardelle from comment #2)
> Thanks for the report. Indeed, I found several major bugs in slideshows that
> I just fixed in git master and 15.12 branch. Please test again and let me
> know...

Tested - it works! great job, thanks a lot.
Comment 4 Sam Muirhead 2016-04-24 07:54:18 UTC
This bug has reappeared, at least in 16.07.70, I don't know if it existed earlier as well.
The problem occurs not only when there is a period in the name, but it occurs also when I rename the images to replace the period with an underscore.

To test the problem, you can download a project file and image sequence here: http://www.cameralibre.cc/owncloud/public.php?service=files&t=978f0b221ff5849decd66bf7d19c9773

To replicate the bug:
1. create new kdenlive project.
2. click on 'add clip'
3. navigate to 'electronics' folder and select breadboard.0001.png
4. choose 'import image sequence' option
5. click OK.
6. save & close Kdenlive
7. re-open the project, and you'll get a 'missing clips' dialog, and relinking the files with 'searh recursively' doesn't work.
Comment 5 Sam Muirhead 2016-04-24 08:13:43 UTC
ah - when you choose 'use placeholder for missing clips' then it seems to work as normal. So it functions ok, it's just that the warning dialog should not be appearing.
Comment 6 Jean-Baptiste Mardelle 2016-04-24 12:45:51 UTC
Git commit edbfce84f31636f8405caed08a108dad1fcf7b43 by Jean-Baptiste Mardelle.
Committed on 24/04/2016 at 12:45.
Pushed by mardelle into branch 'Applications/16.04'.

Fix slideshows incorrectly detected as missing, improved search for missing slideshows

M  +49   -14   src/doc/documentchecker.cpp
M  +2    -1    src/doc/documentchecker.h

http://commits.kde.org/kdenlive/edbfce84f31636f8405caed08a108dad1fcf7b43
Comment 7 Sam Muirhead 2016-04-24 14:28:09 UTC
You're fast! thanks!
Comment 8 Wegwerf 2016-05-13 16:36:20 UTC
Is this bug fixed to your satisfaction? If yes, can you please be so kind as to close this bug as RESOLVED FIXED? Thank you very much!
Comment 9 Sam Muirhead 2016-05-13 16:42:36 UTC
(In reply to wegwerf-1-2-3 from comment #8)
> Is this bug fixed to your satisfaction? If yes, can you please be so kind as
> to close this bug as RESOLVED FIXED? Thank you very much!

done, thanks!