Bug 131239 - adjust lenght of audio before video slide
Summary: adjust lenght of audio before video slide
Status: RESOLVED FIXED
Alias: None
Product: digikam
Classification: Applications
Component: Plugin-Generic-VideoSlideshow (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: Digikam Developers
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-07-23 15:44 UTC by Klaus Stockmayer
Modified: 2024-01-10 17:16 UTC (History)
1 user (show)

See Also:
Latest Commit:
Version Fixed In: 8.3.0


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Klaus Stockmayer 2006-07-23 15:44:57 UTC
Version:           0.1.4 (using KDE 3.5.3, Arch Linux)
Compiler:          Target: i686-pc-linux-gnu
OS:                Linux (i686) release 2.6.17-ARCH

when i create a mpeg-file from pictures the selected soundfile will not be shorted to the lenght of the mpeg-file. So the mpeg plays the pictures and then i see an black-screen till the songs ends. Is ist possible to fade out the sound, when the mpeg is at the last picture like dvd-slideshow does it?
Comment 1 Angelo Naselli 2006-07-23 21:20:08 UTC
which kipi-plugins version are you using? 
In all the tests i made the music was cut at the end of the last picture. no black screen is seen.
Comment 2 Klaus Stockmayer 2006-07-23 23:00:29 UTC
The mpeg-dialog show the version 0.1.4 and the kipi-plugins have the version 0.1.2. No version before does fade out the sound on the end of the pictures. The version of mjpegtools is 1.8.0. I tried it with mp3 and wav. Everytime the same problem. And on qour system the sound was fading out showing the last picture? Whioch encoder (default, 444, 420jpeg,420mpeg) i have to use? Or is this not important?
Comment 3 Angelo Naselli 2006-07-24 09:09:21 UTC
Ok you've the last release.
> Whioch encoder (default, 444, 420jpeg,420mpeg) i have to use? Or is this not important?  

That shouldn't be important for audio IIRC, anyway could it be possible to have
the command line? I mean after the the process has finished you should be able to 
see the command output. The first line (about) should be the command line passed
(e.g. images2mpg ....) so that changing the files I can try to reproduce the problem.
Thanks,
	Angelo
Comment 4 Klaus Stockmayer 2006-07-24 17:10:43 UTC
Here the output on commandline:

images2mpg --with-gui  -f DVD -n PAL -S 420mpeg2 -d 10 -t 5 -c 000000 -T /tmp/kde-klaus/kipi-mpegencoderplugin-3349/ -M /usr/bin -I /usr/bin -w "/home/klaus/multimedia/musik/wav/Enya/The Memory Of Trees/Enya - China Roses.wav" -o "/home/klaus/Desktop/test01.mpg" -i  "/home/klaus/multimedia/bilder/Daenemark 2006/Bild005.jpg"  "/home/klaus/multimedia/bilder/Daenemark 2006/DSCF0972.JPG"  "/home/klaus/multimedia/bilder/Daenemark 2006/Bild019.jpg"  "/home/klaus/multimedia/bilder/Daenemark 2006/Bild045.jpg" 
-----------------------------------------------
Initialising...

Encoding image files...

Images encoding (%) : 0      [0      
   INFO: [yuvscaler] yuvscaler 1.8.0 (15-02-2004) is a general scaling utility for yuv frames
   INFO: [yuvscaler] (C) 2001-2004 Xavier Biquard <xbiquard@free.fr>, yuvscaler -h for help, or man yuvscaler
Images encoding (%) : 0      [0      
Images encoding (%) : 0      [0      
....
Images encoding (%) : 99      [4      
Images encoding (%) : 99      [4      
Images encoding (%) : 100      [5      

Encoding audio file...


Merging MPEG flux...

Encoding terminated...
-----------------------------------------------

SCHLUSS-STATUS: Kodiervorgang wurde erfolgreich abgeschlossen.
Comment 5 Angelo Naselli 2006-07-24 17:41:46 UTC
hmm I think I've got it... has to think to a solution though.
What player are you using?
mplayer ends up.
kmplayer (well this is a frontend) stops the music after the last picture.
kaffeine continues the sound.
That probably means that the music is in, but the end of file is
considered differently.

Can you test if you have the same results.

Angelo
Comment 6 Klaus Stockmayer 2006-07-24 20:45:00 UTC
Hi!

my main-player is kaffein which is a frontend too. Here are the results of my 
tests:

kaffein: don't work, music plays while blackscreen
mplayer: work, but music stops hard wirhout fading out
xine: don't work, music plays while blackscreen
noatun: don't work, music plays while blackscreen

Result: mplayer, and all frontends using mplayer will work. xine, and all 
frontends using xine won't work.

Is it possible to implement fading out? In my opion "dvd-slideshow" and the 
used backends works very well. A mix of kipi and dvd-slideshow woud be the 
best... *g* The kipi-plugins are so easy to use and bring me the most recent 
functions in every tool i use. Do you see any way to realise?

Klaus


Am Montag 24 Juli 2006 15:41 schrieb Angelo Naselli:
[bugs.kde.org quoted mail]
Comment 7 Angelo Naselli 2006-07-24 22:12:16 UTC
I've got some ideas to improve the plugin, now i've got a point to start :)
we'll see...
Comment 8 Klaus Stockmayer 2006-07-24 22:54:30 UTC
Thanks a lot for your help. If you need sombody for testing new improvements you can tell me. So i'm looking forward for the new features aou will develope... *g*
Comment 9 Angelo Naselli 2006-07-24 23:03:08 UTC
Klaus since it's a wish not a bug I'll re open it so that I can remember that i have to look at it... stay tuned ;)
Comment 10 caulier.gilles 2017-06-30 07:10:27 UTC
digiKam has a new Video Slideshow tool based on QtAV and ffmpeg which do not
have this problem.

Gilles Caulier
Comment 11 caulier.gilles 2024-01-10 17:16:09 UTC
Git commit b016fbb8a4751b24670940d835b6ec48b1620ed7 by Gilles Caulier.
Committed on 10/01/2024 at 18:13.
Pushed by cgilles into branch 'master'.

Video SlideShow tool: add automatic rules to append soundtrack to the target video.
If audio is largest than video, it will be trimmed
If audio is smaller than video, it will be played in loop.
Screenshoot: https://i.imgur.com/cDxnz13.png
FIXED-IN: 8.3.0

M  +2    -2    NEWS
M  +24   -11   core/dplugins/generic/tools/videoslideshow/wizard/vidslideoutputpage.cpp
M  +5    -2    core/libs/video/manager/ffmpeglauncher.cpp

https://invent.kde.org/graphics/digikam/-/commit/b016fbb8a4751b24670940d835b6ec48b1620ed7