Summary: | Encoding MPEG file error | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Michael C. Vergallen <mvergall> |
Component: | Plugin-Generic-VideoSlideshow | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | caulier.gilles |
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 5.7.0 | |
Sentry Crash Report: |
Description
Michael C. Vergallen
2007-12-20 08:03:59 UTC
hmm, -w "/home/mvergall/usa-new.mp3" i believe... can you try the same command line but with -a "/home/mvergall/usa-new.mp3" please? Yes but would mean not using digikam ? that is what I was using to generate the mpg file. because there are 912 pictures in the slideshow... Michael > Yes but would mean not using digikam ?
> that is what I was using to generate the mpg file. because there are 912 pictures in the slideshow...
Please it's a test to understand the problem, you can try with a jpg alone after being sure
it fails as well.
ok no problem ... I didn't understand your request that's all. mvergall@ws-2:~$ vi ./bugs.sh mvergall@ws-2:~$ sh ./bugs.sh ------------------------------------------------ Number of image file(s) : 3. Processing sequence : /home/mvergall/Pictures/amerika 5 mei - 28 mei 2007/p5060002.jpg /home/mvergall/Pictures/amerika 5 mei - 28 mei 2007/p5060003.jpg /home/mvergall/Pictures/amerika 5 mei - 28 mei 2007/p5060004.jpg Video format : 'DVD'. Video type : 'PAL'. MPEG audio file : '/home/mvergall/usa-new.mp3'. Frames per second : '25'. Image duration : 8 s. Total video sequence duration : 28 s . Transition frames : 25. Total frames processing : 700. Background image file : '1198144501.black.tmp.png'. Verbosity : 'none'. ------------------------------------------------ Encoding 3 image(s) MPEG sequence with ImageMagick and MjpegTools. 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 Frame Num. 700 / 700 MPEG encoding terminated [700 frames - Encoding time : 182 s]. Merging MPEG flux with MjpegTools. **ERROR: [mplex] File /home/mvergall/usa-new.mp3 unrecogniseable! **ERROR: [mplex] Unrecogniseable file(s)... exiting. The video MPEG output file is '/home/mvergall/usa.mpg'. Removing temporary files... ------ This is the output I get now...the mp3 file works fine with rythembox and other mp3 playing software. It is music I created with audacity. > mvergall ws-2:~$ vi ./bugs.sh > mvergall ws-2:~$ sh ./bugs.sh > Merging MPEG flux with MjpegTools. > **ERROR: [mplex] File /home/mvergall/usa-new.mp3 unrecogniseable! > **ERROR: [mplex] Unrecogniseable file(s)... exiting. Sorry which is the test you made? have you used -a option and failed? or just test with -w? Angelo Naselli wrote: [bugs.kde.org quoted mail] Sorry forgot to add the script : #!/bin/sh /usr/bin/images2mpg -f DVD -n PAL -d 8 -t 4 -c 0945f9 -M /usr/bin -I /usr/bin -a "/home/mvergall/usa-new.mp3" -o "/home/mvergall/usa.mpg" -i "/home/mvergall/Pictures/amerika 5 mei - 28 mei 2007/p5060002.jpg" "/home/mvergall/Pictures/amerika 5 mei - 28 mei 2007/p5060003.jpg" "/home/mvergall/Pictures/amerika 5 mei - 28 mei 2007/p5060004.jpg" > /usr/bin -a "/home/mvergall/usa-new.mp3" -o "/home/mvergall/usa.mpg" -i
Ok it wasn't the case i figured out :/
Hi Michael, would it be possible to modify bugs.sh so that mplex -v 3 .... is used to increase the level of verbosity to verbose/debug? If you want to shorten the time for the testing, you might just try out with a small number of images. Sounds like a problem/bug of mplex. Maybe re-encoding the sound file to a different format (ogg ?) would be a work-around? Most importantly: note, that Angelo asked you something different, see his first comment #c1, so maybe that should be tested first. Best, Arnd Arnd Baecker wrote: [bugs.kde.org quoted mail] Yep will try to do that in a bit. and report the results. > If you want to shorten the time for the testing, you might > just try out with a small number of images. > Yep did that in bug.sh > Sounds like a problem/bug of mplex. > Maybe re-encoding the sound file to a different format (ogg ?) > would be a work-around? > can give that a test after I've run the other test you requested. > Most importantly: note, that Angelo asked you something different, > see his first comment #c1, so maybe that should be tested first. > > Did test that and that was not the problem ...that's when I discovered that mplex is causing some problem ...what the problem is I don't know yet. It turns out that I can't get mplex to -v 3 due to the fact that images2mpg doesn't support verbosity level 3. Now I'll test with a .ogg file and see what happens...to me however it is starting to look like mplex is at fault for some reason. will report back when I've tested the .ogg file. Michael > It turns out that I can't get mplex to -v 3
hmm can you try -v 2, that one should go i believe
If that does not provide enough output, you could just copy images2mpg to your home directory, edit the corresponding place in the script and run it via ./images2mpg (For the edit: just add VERBOSE_=3, and replace the two lines with $MPLEX_BIN -v $VERBOSE by $MPLEX_BIN -v $VERBOSE_) Arnd Baecker wrote: [bugs.kde.org quoted mail] cheers that's what I needed to do ! I was looking for a way to do this but could not find it ... will do straight away. tried to create a .mpg using .ogg as sound source. it worked ok and created the test .mpg fine but when playing back the .mpg file the audio played back ok but then the video output did not. So now I'll do what you asked here... Eh ... mplex 1.8.0 only has the max verbose level 2 will try with -v 2 and see what's up. That is the required part of the trace I got : --DEBUG: [mpeg2enc] Frame P A= 15222 974208.00: I = 54276 P = 3407 B = nan INFO: [mpeg2enc] Frame 695 695 P q=8.00 sum act=38264.24732 --DEBUG: [mpeg2enc] Start 696 P 6 696 --DEBUG: [mpeg2enc] Frame P T=51856 A=897547 Xi=3382723.07 Xp=1022508.35 Xb=0.00 --DEBUG: [mpeg2enc] Frame P A= 14510 928640.00: I = 54276 P = 3424 B = nan INFO: [mpeg2enc] Frame 696 696 P q=8.00 sum act=38293.02071 --DEBUG: [ppmtoy4m] Got PPM header: 768x576 --DEBUG: [ppmtoy4m] Reading rows --DEBUG: [ppmtoy4m] Done. INFO: [yuvscaler] Frame number 699 --DEBUG: [yuvscaler] Start of average_specific 1 --DEBUG: [yuvscaler] Non interlaced and/or interlaced treatment --DEBUG: [yuvscaler] End of average_specific --DEBUG: [yuvscaler] Start of average_specific 1 --DEBUG: [yuvscaler] Non interlaced and/or interlaced treatment --DEBUG: [yuvscaler] End of average_specific --DEBUG: [yuvscaler] Start of average_specific 1 --DEBUG: [yuvscaler] Non interlaced and/or interlaced treatment --DEBUG: [yuvscaler] End of average_specific INFO: [yuvscaler] End of stream! INFO: [yuvscaler] Normal exit: end of stream with frame number 700! --DEBUG: [mpeg2enc] End of input stream detected INFO: [mpeg2enc] Signaling last frame = 699 --DEBUG: [mpeg2enc] Start 697 P 7 697 --DEBUG: [mpeg2enc] Frame P T=49848 A=864486 Xi=3382723.07 Xp=1012078.54 Xb=0.00 --DEBUG: [mpeg2enc] Frame P A= 14872 951808.00: I = 54276 P = 3441 B = nan INFO: [mpeg2enc] Frame 697 697 P q=8.00 sum act=38317.93786 --DEBUG: [mpeg2enc] Start 698 P 8 698 --DEBUG: [mpeg2enc] Frame P T=47880 A=831424 Xi=3382723.07 Xp=1005381.81 Xb=0.00 --DEBUG: [mpeg2enc] Frame P A= 9666 618624.00: I = 54276 P = 3451 B = nan INFO: [mpeg2enc] Frame 698 698 P q=8.00 sum act=38565.93786 --DEBUG: [mpeg2enc] Start 699 P 9 699 --DEBUG: [mpeg2enc] Frame P T=45582 A=798363 Xi=3382723.07 Xp=962408.72 Xb=0.00 --DEBUG: [mpeg2enc] Frame P A= 341 21824.00: I = 54276 P = 3446 B = nan INFO: [mpeg2enc] Frame 699 699 P q=8.00 sum act=38577.93786 INFO: [mpeg2enc] Sequence end inserted INFO: [mpeg2enc] Guesstimated final muxed size = 4801936 INFO: [mplex] mplex version 1.8.0 (2.2.4 $Date: 2005/08/28 17:50:54 $) **ERROR: [mplex] File /home/mvergall/usa-new.mp3 unrecogniseable! INFO: [mplex] File 1198168614.tmp.m2v looks like an MPEG Video stream. **ERROR: [mplex] Unrecogniseable file(s)... exiting. mvergall@ws-2:~$ that is all the program gave me. Should mplex be able to deal with mp3 at all? man mplex gives: """Mplex is a general-purpose audio/video multiplexer for MPEG-1/MPEG-2. It accepts one or more MPEG-1/2 video stream, MPEG layer I/II/III, DTS, AC3 and LPCM audio streams and multiplexes them into a combined program/system stream according to the constraints specified.""" No mention of mp3? Just wondering if this is relevant. > No mention of mp3? Just wondering if this is relevant. mhmm don't know reaaly, sure i've found some mp3 that don't work.. There should be somewhere a tool called mp3check (i can't find it now here) that should check mp3 integrity... maybe a check could say more... > It accepts one or more MPEG-1/2 video stream, MPEG layer I/II/III, DTS, Doesn't MPEG layer III mean mp3 anyway? or am i wrong? Angelo, of course you are right - sorry, need a holiday it seems ;-) To check mp3 inegrity: maybe checkmp3 ? (on debian: 'aptitude install checkmp3') digiKam has a new Video Slideshow tool based on QtAV and ffmpeg which do not have this problem. Gilles Caulier |