[Dvd-slideshow-users] [dvd-slideshow] convert: unable to open image `0': No such file or directory
Brought to you by:
sdylewski
From: Elcio K. <elc...@gm...> - 2007-08-09 16:24:38
Attachments:
elciokuhn.vcf
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> </head> <body bgcolor="#ffffff" text="#000099"> Hi all, <br> <br> (sorry my english!)<br> <br> Testing dvd-slideshow I run into several errors, like<br> <br> 1) sharpen option in include file or input file<br> <font color="#cc0000"> "convert: unable to open image `0': No such file or directory"</font><br> <br> 2) Fadein + scroll<br> <font color="#cc0000">./dvd-slideshow081: line 3019: 1000 * (0-0) / : syntax error: operand expected (error token is " ")</font><br> <br> 3) Kenburns (or scroll) + wipe + Kenburns (or scroll) <br> <font color="#cc0000">composite: invalid argument for option `+-285+0': -geometry"</font><br> <br> 4) The crop result isn' t as desirable<br> <br> 5) Decimal point errors <br> <br> 6) flickering or jitter on kenburns<br> <br> I like to share some alterations I did in the code to workaround the problems, as follows<br> <br> By the way, thanks to Scott. Great work! You are in the right way. Thank you, so much.<br> <br> Elcio Kuhn (from Curitiba - Brasil)<br> <br> ----------------------------------------------------------------------------------------<br> <br> 1) sharpen option in include file or input file<br> <br> if I use the include parameter (include:filename.txt) with a file containing the sharpen variable (=0 or =1), or insert the sharpen variable directly into the input file, it gives me several warnings "convert: unable to open image `0': No such file or directory"<br> <br> possible solution:<br> <br> versão 8.0 - insert after line 4321<br> versão 8.1 - insert after line 4762<br> <br> if [ -n "$sharpen" -a "$sharpen" == "1" ] ; then<br> sharpen='-unsharp 4.8x2.2+0.5+0.05'<br> else<br> sharpen=''<br> fi<br> <br> ==================================================================<br> 2) Fadein + scroll<br> <br> The fadein transition before picture with scroll effect return the following error:<br> <br> <font color="#cc0000">convert: unable to open file `0': No such file or directory.<br> ./dvd-slideshow081: line 3019: 1000 * (0-0) / : syntax error: operand expected (error token is " ")<br> </font><br> --- possible solution<br> <br> To fix it in 0.8.1 version, I inserted the same procedure for kenburns effect (line 4558) after line 4568 :<br> <br> elif [ "${effect1[$i]}" == 'scroll' ] ; then # SCROLL check<br> if [ -z "${frames_extended[$i]}" ] ; then<br> frames_extended[$i]=$frames<br> fi<br> previous_increment="`previouseffectincrement`"<br> previous_slide="${image[$i-$previous_increment]}"<br> if [ "$previous_increment" -ne 0 ] ; then<br> previous_duration="${duration[$i-$previous_increment]}" # already in thousandths.<br> previous_frames=`div1000 $(( $frames_per_ms * $previous_duration / 1000 ))` <br> fi<br> next_increment="`nexteffectincrement`"<br> next_slide="${image[$i+$next_increment]}"<br> <br> --- input file (partial)<br> <br> include:roteiro/slideshow.cfg<br> autocrop=1<br> ac3=1<br> /home/elcio/MUSICAS/Internacional/Pop/Aha - Crying In The Rain.mp3:1:fadein:2:fadeout:2<br> background:0::/home/elcio/FOTOS/SLIDESHOW/roteiro/teste/fundoFlores_brinco de princesa.jpg<br> chapter<br> background:1::<br> fadein:1<br> title:4:teste do dvd-slideshow<br> crossfade:1<br> title:4:por elcio em 03/08/07<br> fadeout:1<br> background:1::<br> fadein:1<br> titlebar:4:música\: Crying In The Rain (Aha ):Elcio Ago/2007 dvd-slideshow 0.8.0 (linux)<br> fadeout:1<br> background:1::<br> <font color="#cc0000"><b>fadein:1:<br> /home/elcio/FOTOS/teste/#20070205_180031#dsc00177.jpg:5: 2007.02.05 18.00.31 (1):scroll:down</b></font><br> ...<br> <br> --- log (partial)<br> <br> [dvd-slideshow] dvd-slideshow 0.8.1-svn<br> [dvd-slideshow] Licensed under the GNU GPL<br> [dvd-slideshow] Copyright 2003-2007 by Scott Dylewski<br> [dvd-slideshow]<br> ...<br> [dvd-slideshow]#######################################################<br> [dvd-slideshow] background 0:0:1.000<br> [dvd-slideshow] Displaying background ...teste/fundoFlores_brinco de princesa.jpg<br> [dvd-slideshow]############################################################<br> [dvd-slideshow] Applying Fadein to next image 0:0:1.000<br> <font color="#cc0000">[dvd-slideshow] Pre-rendering scroll effect for fadein...<br> convert: unable to open file `0': No such file or directory.<br> ./dvd-slideshow081: line 3019: 1000 * (0-0) / : syntax error: operand expected (error token is " ")</font><br> [dvd-slideshow] waiting for encoder to finish...<br> [dvd-slideshow]#####################################<br> [dvd-slideshow] Working on track 1 audio file 0<br> ...<br> <br> ==================================================================<br> <br> 3) Kenburns (or scroll) + wipe + Kenburns (or scroll) <br> <br> No solution until now, but if you insert a autocrop of the pictures before and after de wipe transition, it works.<br> <br> #20070722_124941#.jpg:5: 2007.07.22 12.49.41 (1):kenburns:100%;middle;40%;middle<br> #20070722_124941#endzoom.jpg:0.5::<br> wipe:1::down<br> #20070722_125008#startscroll.jpg:0.5::<br> #20070722_125008#.jpg:5: 2007.07.22 12.50.08 (2):scroll:down<br> <br> Inserting crop with parameters like below, result in another error: <br> <font color="#cc0000">"convert: geometry does not contain image ..."</font><br> <br> #20070722_124941#.jpg:5: 2007.07.22 12.49.41 (1):kenburns:100%;middle;40%;middle<br> #20070722_124941#.jpg:0.5::crop:31%;middle<br> wipe:1::down<br> #20070722_125008#.jpg:0.5::<br> #20070722_125008#.jpg:5: 2007.07.22 12.50.08 (2):scroll:down<br> <br> It seems to me that the final zoom size of the kenburns don't coincide with start size of wipe transition.<br> <br> ==================================================================<br> <br> 4) The crop result isn' t as desirable<br> <br> No solution until now<br> <br> ==================================================================<br> <br> 5) Decimal point errors <br> <br> I changed LANG="POSIX" by <br> LC_ALL=""<br> LC_NUMERIC="en_US" <br> <br> ==================================================================<br> <br> 6) flickering or jitter on kenburns<br> <br> A jitter introduced in 0.8.1 with kenburns is fixed by the corrections applyed to solve the first 2 problems. <br> <br> ==================================================================<br> ADDENDUM<br> <br> Differences between original dvd-slideshow 0.8.1 rev 65 and the version after above corrections.<br> <br> *** diff -u /usr/bin/dvd-slideshow dvd-slideshow081 > diff_dvd-slideshow081.log<br> <br> --- /root/dvd-slideshow/dvd-slideshow 2007-07-23 20:47:27.000000000 -0300<br> +++ dvd-slideshow081 2007-08-09 13:11:45.000000000 -0300<br> @@ -18,7 +18,7 @@<br> #<br> <br> name='dvd-slideshow'<br> -version='0.8.1-svn'<br> +version='0.8.1-svnEAK'<br> <br> echo "[dvd-slideshow] dvd-slideshow $version"<br> echo "[dvd-slideshow] Licensed under the GNU GPL"<br> @@ -40,7 +40,11 @@<br> # in ImageMagick > 6.0.6, but not in 6.0.6 for some reason. (black output). <br> <br> ## set up bash variables <a class="moz-txt-link-freetext" href="http://wiki.sourcemage.org/HOWTO-Locale_problems">http://wiki.sourcemage.org/HOWTO-Locale_problems</a><br> -LANG="POSIX"<br> +# [eak] ---------------- change start<br> +#LANG="POSIX"<br> +LC_ALL=""<br> +LC_NUMERIC="en_US"<br> +# [eak] ---------------- change end<br> <br> changes ()<br> {<br> @@ -2397,8 +2401,8 @@<br> # make sure the acceleration time is shorter than half of the full kenburns time:<br> if [ "$F1" -gt "$(( $l_frames / 2 ))" ] ; then<br> myecho "[dvd-slideshow] Warning: kenburns acceleration time is longer than kenburns time"<br> - myecho "[dvd-slideshow] Setting acceleration time to $F1 frames"<br> F1=$(( $l_frames / 2 ))<br> + myecho "[dvd-slideshow] Setting acceleration time to $F1 frames"<br> fi<br> F2=$(( $l_frames - $F1 )) <br> V0x=$( echo "scale=9; 2 * ( $xe0 - $xs0 ) / ( $l_frames + $F2 - $F1 )" | bc ) <br> @@ -4566,6 +4570,20 @@<br> next_increment="`nexteffectincrement`"<br> next_slide="${image[$i+$next_increment]}"<br> # elif [ "${effect1[$i]}" == 'scroll' ] ; then # SCROLL check<br> +# [eak] ---------------- inclusion start<br> + elif [ "${effect1[$i]}" == 'scroll' ] ; then # SCROLL check<br> + if [ -z "${frames_extended[$i]}" ] ; then<br> + frames_extended[$i]=$frames<br> + fi<br> + previous_increment="`previouseffectincrement`"<br> + previous_slide="${image[$i-$previous_increment]}"<br> + if [ "$previous_increment" -ne 0 ] ; then<br> + previous_duration="${duration[$i-$previous_increment]}" # already in thousandths.<br> + previous_frames=`div1000 $(( $frames_per_ms * $previous_duration / 1000 ))` <br> + fi<br> + next_increment="`nexteffectincrement`"<br> + next_slide="${image[$i+$next_increment]}"<br> +# [eak] ----------------- inclusion end<br> # else <br> # myecho "[dvd-slideshow] Unrecognized or malformed line in your input file:"<br> # myecho "[dvd-slideshow] $file. effect=${effect1[$i]} effect_params=${effect1_params[$i]}"<br> @@ -4742,6 +4760,13 @@<br> it=`set_variables "$file" 0`<br> if [ -n "$it" ] ; then<br> myecho "[dvd-slideshow] Set variable $it"<br> +# [eak] ---------------- inclusion start<br> + if [ -n "$sharpen" -a "$sharpen" == "1" ] ; then<br> + sharpen='-unsharp 4.8x2.2+0.5+0.05'<br> + else<br> + sharpen=''<br> + fi<br> +# [eak] ---------------- inclusion end<br> i=$(( $i+1 )) ; continue<br> fi<br> <br> <br> ==================================================================<br> *** dvd-slideshow.log excerpt (header) ***<br> <br> [dvd-slideshow] Thu Aug 9 12:54:24 BRT 2007<br> [dvd-slideshow] Command line was:<br> [dvd-slideshow] ./dvd-slideshow081 -n teste -o /mnt/sda1/FILMAGENS/SLIDESHOW -L -f roteiro/teste/teste.txt<br> [dvd-slideshow] dvd-slideshow version 0.8.1-svnEAK<br> [dvd-slideshow] Linux kurumin7 2.6.18.1-slh-up-2 #1 PREEMPT Wed Oct 25 18:46:42 CEST 2006 i686 GNU/Linux<br> [dvd-slideshow] Output directory=/mnt/sda1/FILMAGENS/SLIDESHOW<br> [dvd-slideshow] Locale: <br> LANG=pt_BR<br> LANGUAGE=pt_BR<br> LC_CTYPE="pt_BR"<br> LC_NUMERIC=en_US<br> LC_TIME="pt_BR"<br> LC_COLLATE="pt_BR"<br> LC_MONETARY="pt_BR"<br> LC_MESSAGES=pt_BR<br> LC_PAPER="pt_BR"<br> LC_NAME="pt_BR"<br> LC_ADDRESS="pt_BR"<br> LC_TELEPHONE="pt_BR"<br> LC_MEASUREMENT="pt_BR"<br> LC_IDENTIFICATION="pt_BR"<br> LC_ALL=<br> [dvd-slideshow] Using /bin/bash version GNU bash, version 3.1.17(1)-release (i486-pc-linux-gnu)<br> [dvd-slideshow] Found mjpegtools version 1.8.0<br> [dvd-slideshow] Using mjpegtools subsampling -S 420mpeg2<br> [dvd-slideshow] Found sox version 12.17.9<br> [dvd-slideshow] Found ImageMagick version 6.2.4<br> [dvd-slideshow] Found dvdauthor version 0.6.11.<br> FFmpeg version SVN-rUNKNOWN, Copyright (c) 2000-2007 Fabrice Bellard, et al.<br> configuration: --prefix=/usr --libdir=${prefix}/lib --shlibdir=${prefix}/lib --incdir=${prefix}/include/ffmpeg --enable-shared --enable-libmp3lame --enable-gpl --enable-libfaad --mandir=${prefix}/share/man --enable-libvorbis --enable-pthreads --enable-libfaac --enable-xvid --enable-libdts --enable-amr_nb --enable-amr_wb --enable-pp --enable-libogg --enable-libgsm --enable-x264 --enable-liba52 --enable-libtheora --extra-cflags=-Wall -g -fPIC -DPIC --cc=ccache cc --enable-swscaler<br> libavutil version: 49.4.0<br> libavcodec version: 51.40.2<br> libavformat version: 51.11.0<br> built on Mar 29 2007 11:08:52, gcc: 4.1.2 20061115 (prerelease) (Debian 4.1.1-21)<br> ffmpeg SVN-rUNKNOWN<br> libavutil 3212288<br> libavcodec 3352578<br> libavformat 3345152<br> [dvd-slideshow] ####################################<br> ...<br> <br> </body> </html> |