Bug 114514 - Do not delete the temporary folder after each encoding process.
Summary: Do not delete the temporary folder after each encoding process.
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-VideoSlideshow (show other bugs)
Version: unspecified
Platform: Compiled Sources Linux
: NOR normal
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-10-16 16:34 UTC by Tung NGUYEN
Modified: 2017-07-08 23:02 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In: 5.7.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Tung NGUYEN 2005-10-16 16:34:41 UTC
Version:           kipi-plugins 0.1.0-rc1 (using KDE KDE 3.4.2)
Installed from:    Compiled From Sources
OS:                Linux

Currently, it is impossible to encode twice in the same "Create MPEG slideshow" window because the second encoding process needs "~/tmp/kde-user/kipi-mpegencoderplugin-PID/" which is deleted at the end of the first encoding process... It is annoying because the error appears at the end of the (long) second process and it is not clear ("The images2mpg script has returned an error during the MPEG encoding..."). Here is the second process log:

THE COMMAND LINE IS :

images2mpg --with-gui  -f XVCD -n SECAM -d 3 -c 000 -T /home/anonyme/tmp/kde-anonyme/kipi-mpegencoderplugin-4433/ -M /usr/bin -I /usr/bin -o "/home/anonyme/Dossiers personnels/Video/output_XVCD_SECAM_4_2-essai3.mpg" -i  "/home/anonyme/Dossiers personnels/Photo-NE-PAS-JETER/Album1/Photo 003.jpg"  "/home/anonyme/Dossiers personnels/Photo-NE-PAS-JETER/Album1/Photo 004.jpg"  "/home/anonyme/Dossiers personnels/Photo-NE-PAS-JETER/Album1/Photo 005.jpg" 
-----------------------------------------------
Initialising...

convert: unable to open image `/home/anonyme/tmp/kde-anonyme/kipi-mpegencoderplugin-4433//1129402982.black.tmp.png': Aucun fichier ou répertoire de ce type.
Encoding image files...

Images encoding (%) : 0      [0      
   INFO: [yuvscaler] yuvscaler 1.6.2 (31-12-2003) is a general scaling utility for yuv frames
   INFO: [yuvscaler] (C) 2001-2003 Xavier Biquard <xbiquard@free.fr>, yuvscaler -h for help, or man yuvscaler
montage: unable to open image `/home/anonyme/tmp/kde-anonyme/kipi-mpegencoderplugin-4433//1129402982.tmp.jpg': Aucun fichier ou répertoire de ce type.
Comment 1 Angelo Naselli 2006-02-01 14:26:51 UTC
except for the fact the temporary files are deleted (that's probably right
imo) I believe this bug is again the same problem as #109739
Comment 2 Angelo Naselli 2006-04-04 18:33:38 UTC
*** Bug 119425 has been marked as a duplicate of this bug. ***
Comment 3 Angelo Naselli 2006-04-04 23:23:13 UTC
SVN commit 526540 by anaselli:

- fix bug 114514

BUG: 114514


 M  +6 -6      kimg2mpg.cpp  


--- trunk/extragear/libs/kipi-plugins/mpegencoder/kimg2mpg.cpp #526539:526540
@@ -180,12 +180,7 @@
 KImg2mpgData::KImg2mpgData(KIPI::Interface* interface, QWidget *parent, const char *name)
             : KDialog( parent, name, false, Qt::WDestructiveClose ), m_interface( interface )
 {
-  // Init. Tmp folder
-
-  KStandardDirs dir;
-  m_TmpFolderConfig = dir.saveLocation("tmp", "kipi-mpegencoderplugin-" +
-                      QString::number(getpid()) );
-
+  m_TmpFolderConfig = "";
   m_Proc = 0L;
   m_thumbJob = 0L;
   m_Encoding = false;
@@ -749,6 +744,11 @@
     return;
     }
 
+  // Init. Tmp folder
+  KStandardDirs dir;
+  m_TmpFolderConfig = dir.saveLocation("tmp", "kipi-mpegencoderplugin-" +
+                                       QString::number(getpid()) );
+
   m_DebugOuputMessages = "";
   m_DurationTime.start();
   InputAudioFileName = m_AudioInputEDITFilename->text();
Comment 4 caulier.gilles 2017-06-30 07:10:43 UTC
digiKam has a new Video Slideshow tool based on QtAV and ffmpeg which do not
have this problem.

Gilles Caulier