Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 113320 - media-video/y4mscaler-0.6.2.ebuild (New Package)
Summary: media-video/y4mscaler-0.6.2.ebuild (New Package)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High enhancement (vote)
Assignee: Chris White (RETIRED)
URL: http://www.mir.com/DMG/Software/
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-11-23 01:13 UTC by Sebastian
Modified: 2006-01-01 11:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
Initial ebuild (y4mscaler-0.6.2.ebuild,767 bytes, text/plain)
2005-11-23 01:14 UTC, Sebastian
Details
Even more simple (y4mscaler-0.6.2.ebuild,757 bytes, text/plain)
2005-11-23 01:18 UTC, Sebastian
Details
Ebuild updated with changes recommended by Chris White (thanks) (y4mscaler-0.6.2.ebuild,752 bytes, text/plain)
2005-11-23 01:30 UTC, Sebastian
Details
Ebuild for y4mscaler-9.0. (y4mscaler-9.0.ebuild,737 bytes, text/plain)
2005-12-21 23:50 UTC, Sebastian
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sebastian 2005-11-23 01:13:12 UTC
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
Comment 1 Sebastian 2005-11-23 01:14:40 UTC
Created attachment 73419 [details]
Initial ebuild
Comment 2 Sebastian 2005-11-23 01:18:31 UTC
Created attachment 73420 [details]
Even more simple
Comment 3 Sebastian 2005-11-23 01:30:04 UTC
Created attachment 73421 [details]
Ebuild updated with changes recommended by Chris White (thanks)
Comment 4 Chris White (RETIRED) gentoo-dev 2005-11-23 01:31:50 UTC
Accepting this bug. 
Comment 5 Sebastian 2005-12-21 23:50:03 UTC
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
Comment 6 Chris White (RETIRED) gentoo-dev 2006-01-01 01:50:38 UTC
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.
Comment 7 Sebastian 2006-01-01 08:40:01 UTC
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
}
Comment 8 Chris White (RETIRED) gentoo-dev 2006-01-01 11:01:57 UTC
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.