Hi all! "y4mscaler is a video scaler which operates on YUV4MPEG2 streams, as used by the tools in the MJPEGtools project. It essentially takes some region of an input stream, and scales it into some region of the output stream." (quote from its website) The tool is pretty new, and other (video) apps start to depend on it (for instance the VDR burn-plugin). There's also y4mscaler-8.1, but it's of use only in case we use mjpegtools CVS (which we don't). I'll add it when the time is right. Cheers Sebastian
Created attachment 73419 [details] Initial ebuild
Created attachment 73420 [details] Even more simple
Created attachment 73421 [details] Ebuild updated with changes recommended by Chris White (thanks)
Accepting this bug.
Created attachment 75309 [details] Ebuild for y4mscaler-9.0. Hi! This is y4mscaler-9.0. mjpegtools-1.8.0 is now stable (at least for ppc64, sparc and x86). Earlier versions of y4mscaler don't work with 1.8.0, so here we go. Cheers Sebastian
I'll need a test case, I'm not sure if I have video streams to operate on with that colorspace. Let me know if you have a link/method for it.
Hi Chris, does this help you out? Cheers Sebastian Png2Yuv() { if IsExecutable y4mscaler; then convert "$1" pnm:- | ppmtoy4m -n 1 -F25:1 -A 59:54 -I t -L -r -v 0 | y4mscaler -O chromass=420_MPEG2 elif IsExecutable png2yuv; then png2yuv -n1 -f25 -It -L1 -v0 -j "$1" else convert "$1" pnm:- | ppmtoy4m -n 1 -F25:1 -A 59:54 -I t -L -r -v 0 logger "Unable to find valid png to yuv converter program - trying to work anyway" fi }
I ended up doing lav2yuv and used a sample MJPEG avi I found, and y4mscaler worked with it ok. In cvs now, thanks for posting.