[Kde-imaging] [Bug 101110] Cannot create MPEG from photos using transitions

Thorsten Schnebeck thorsten.schnebeck at gmx.net
Sat Apr 23 18:05:26 CEST 2005


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=101110         




------- Additional Comments From thorsten.schnebeck gmx net  2005-04-23 18:05 -------
Thanks to bablefish I could understand:
http://www.guakeland.net/archives/12_Creacion+de+SVCD+a+partir+de+JPGs.html

[cite]
ERROR: [ ppmtoy4m ] maxval Expecting == 255, not 65535! **
ERROR: [ to yuvscaler ] Could'nt read YUV4MPEG to header! 
** ERROR: [ mpegènc ] Could not read YUV4MPEG2 to header:
system error (failed read/write)! ../img2vcd-0.4: 
line 197: 3096 broken Pipe cat $TEMPFILE../img2vcd-0.4: 
line 197: 3096 broken Pipe cat $TEMPFILE../img2vcd-0.4: 
line 197: 3096 broken Pipe cat $TEMPFILE../img2vcd-0.4: 
line 197: 3096 broken Pipe cat $TEMPFILE../img2vcd-0.4: 
line 197: 3096 broken Pipe cat $TEMPFILE...

Sera excrement... that? uhm... ** ERROR: [ ppmtoy4m ] maxval Expecting == 255, not 65535. Osea that the error this when creating flow YUV4MPEG2. Playing with ppmtoy4m I see that the problem has to do with the colors. The image that arrives to him at ppmtoy4m uses 16 bits of color instead of the 8 that the delay. We are going to analyze the code.
 
The place where the image is created that goes to him to ppmtoy4m (supposing that effect in the transition is not used) is: 
montage $memoryusage +label - shadow +frame - background 
white - geometry $geom "# " - # depth 8 ppm:$TEMPFILE

uhm... that rare... if depth 8 has the option -.... cagonto. To great the evils great remedies, despues to prove that convert works well, we added this line after the previous one (line 199): 
convert - depth 8 $TEMPFILE $TEMPFILE
[/cite]

So in case of kipiplugin we have to patch images2mpg.

Bye

  Thorsten


--- /usr/kde/3.4/bin/images2mpg.vanilla 2005-04-23 16:38:27.000000000 +0200
+++ /usr/kde/3.4/bin/images2mpg 2005-04-23 17:49:59.000000000 +0200
 @ -816,7 +816,7  @
         fi

        # MjpegTools MPEG encoding with the number of frames and the current image.
-        cat "$TMPFILENAME.tmp.pnm"
+        $CONVERT_BIN -depth 8  "$TMPFILENAME.tmp.pnm" -

      done | $PPMTOY4M_BIN -v $VERBOSE -n $NBFRAMETOTAL -F $IMAGES_SEC_FORMAT | $YUVSCALER_BIN -v $VERBOSE -n $VIDEO_TYPE_LETTER -O $VIDEO_FORMAT | $MPEG2ENC_BIN -v $VERBOSE -n $VIDEO_TYPE_LETTER -b $BIT_RATE -V $BUFFER_SIZE -f $VIDEO_FORMAT_NUMBER -o "$TMPFILENAME.tmp.m2v"


More information about the Kde-imaging mailing list