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
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