Menu

#39 Patch for mjpegtools compatibility

closed-fixed
None
5
2004-07-05
2004-03-02
Anonymous
No

encodedv doesn't read ppm files generated from mjpegtools
because the headers look like

P6
720 480 255

rather than

P6
720 480
255

my patch to enc_input.c is something like

{
int r;
if (sscanf(line, "%*d %*d %d",&r) != 1) {
fgets(line, sizeof(line), f); /* 255 */
fprintf(stderr,"Type 1\n");
}
}

I.e. Surrount the line fgets(line, sizeof(line), f);
/* 255 */
by code to check whether 255 appear already on the
previous line.

--Eric

Discussion

  • Dan Dennedy

    Dan Dennedy - 2004-07-05
    • assigned_to: nobody --> ddennedy
    • status: open --> closed-fixed
     
  • Dan Dennedy

    Dan Dennedy - 2004-07-05

    Logged In: YES
    user_id=78682

    A fix is committed to CVS--not exactly the same as yours. I
    tested using:

    ffmpeg -i /home/ddennedy/Media/video/cicadas-001.dv -f
    yuv4mpegpipe - | y4mtoppm -L | encodedv/encodedv - | playdv
    --no-mmap