On Sun, 2005-11-20 at 11:31 -0500, Allen King wrote:
> [Thu Nov 17 16:46:51 2005] [warn] lav2yuv +p IMGP0706.AVI | yuv2lav -o
> IMGP0706.AVI
[..]
>       * Here, the lav2yuv and yuv2lav are connected in one command
>         with a pipe.  Below, they are executed in separate commands.
>         Behavior as a pipe or as separate seems to be identical.
[..]
> ----------- In the following, the files with "h" in there name were
> produced by hand, executing the same command under the user name
> apache at a bash prompt. The md5sum shows that the intermediate files
> are the same, but the product of yuv2lav differs in content, but ls
> shows that lengths are the same.
> 
> bash-3.00$ md5sum /var/www/html/pics/051113/tt* IMGP0706*.AVI
> 6eee2d8fc650969f5deae15ba217c61c  /var/www/html/pics/051113/tt
> 6eee2d8fc650969f5deae15ba217c61c  /var/www/html/pics/051113/tth
> f91693d1f5d7d662d646e04c64f450b4  IMGP0706.AVI
> b99d4cc1f6cc86687f55ea3d8865ee80  IMGP0706h.AVI

How did you get the tt? Did you tee the output of the pipe into a file
on its own?

So here's my guess: you use a pipe in apache, and overwrite the original
file while it is still in use. I have no idea what the consequence of
that is on how the whole system operates, but I think it'll just read
random data from the now-overwritten input file and use that as output,
and then it doesn't work for some reason that I can't really figure out.
I'd recommend using a different file as temporary intermediate and then
rename it to the old file later on. There's nothing in there that would
not make it run as Apache user.

Cheers,
Ronald



-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Mjpeg-users mailing list
Mjpeg-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mjpeg-users

Reply via email to