ports/63962: New Port: multimedia/y4mscaler -- scales, crops, and shifts Y'CbCr video

michael johnson ahze at ahze.net
Tue Mar 9 04:00:33 UTC 2004


>Number:         63962
>Category:       ports
>Synopsis:       New Port: multimedia/y4mscaler -- scales, crops, and shifts Y'CbCr video
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          maintainer-update
>Submitter-Id:   current-users
>Arrival-Date:   Mon Mar 08 20:00:32 PST 2004
>Closed-Date:
>Last-Modified:
>Originator:     michael johnson
>Release:        5.2-CURRENT && 4.9-STABLE
>Organization:
>Environment:
>Description:
New Port multimedia/y4mscaler

y4mscaler is a general-purpose video scaler which operates on YUV4MPEG2 
streams, as produced and consumed by the MJPEGtools such as lav2yuv and 
mpeg2enc(1).

y4mscaler is meant to be used in a pipeline. Thus, input is from stdin, and 
output is to stdout. The essential function of y4mscaler is to scale a 
specified "active" region of the input stream (the source) into a specified 
active region of the output stream (the target). Pixels outside of the active 
region of the source are ignored; pixels outside of the active region of 
the target are filled with a background color. The source may additionally 
have a matte applied to it; pixels outside the source matte are set to a 
separately specified background color.

y4mscaler correctly handles chroma sampling, and thus it can also perform 
chroma subsampling conversions. The YUV4MPEG2 stream format currently only 
supports 4:2:0 subsampling, although y4mscaler can process 4:1:1, 4:2:2, and 
4:4:4 modes by abusing the YUV4MPEG2 format a bit. 

Includes preset parameters for popular output streams: DVD, SVCD, VCD,  DV, 
CVD, and SVCD/VCD still images.
>How-To-Repeat:
      
>Fix:
# This is a shell archive.  Save it in a file, remove anything before
# this line, and then unpack it by entering "sh file".  Note, it may
# create directories; files and directories will be owned by you and
# have default permissions.
#
# This archive contains:
#
#	multimedia/y4mscaler/
#	multimedia/y4mscaler/pkg-descr
#	multimedia/y4mscaler/distinfo
#	multimedia/y4mscaler/Makefile
#
echo c - multimedia/y4mscaler/
mkdir -p multimedia/y4mscaler/ > /dev/null 2>&1
echo x - multimedia/y4mscaler/pkg-descr
sed 's/^X//' >multimedia/y4mscaler/pkg-descr << 'END-of-multimedia/y4mscaler/pkg-descr'
XFrom y4msclaer(1):
X
Xy4mscaler is a general-purpose video scaler which operates on YUV4MPEG2 
Xstreams, as produced and consumed by the MJPEGtools such as lav2yuv and 
Xmpeg2enc(1).
X
Xy4mscaler is meant to be used in a pipeline. Thus, input is from stdin, and 
Xoutput is to stdout. The essential function of y4mscaler is to scale a 
Xspecified "active" region of the input stream (the source) into a specified 
Xactive region of the output stream (the target). Pixels outside of the active 
Xregion of the source are ignored; pixels outside of the active region of 
Xthe target are filled with a background color. The source may additionally 
Xhave a matte applied to it; pixels outside the source matte are set to a 
Xseparately specified background color.
X
Xy4mscaler correctly handles chroma sampling, and thus it can also perform 
Xchroma subsampling conversions. The YUV4MPEG2 stream format currently only 
Xsupports 4:2:0 subsampling, although y4mscaler can process 4:1:1, 4:2:2, and 
X4:4:4 modes by abusing the YUV4MPEG2 format a bit. 
X
XIncludes preset parameters for popular output streams: DVD, SVCD, VCD,  DV, 
XCVD, and SVCD/VCD still images.
X
XWWW: http://www.mir.com/DMG/y4mscaler.html
END-of-multimedia/y4mscaler/pkg-descr
echo x - multimedia/y4mscaler/distinfo
sed 's/^X//' >multimedia/y4mscaler/distinfo << 'END-of-multimedia/y4mscaler/distinfo'
XMD5 (y4mscaler-0.6.1-src.tgz) = 4f5d1451065f940c80624269ee3cc872
XSIZE (y4mscaler-0.6.1-src.tgz) = 49966
END-of-multimedia/y4mscaler/distinfo
echo x - multimedia/y4mscaler/Makefile
sed 's/^X//' >multimedia/y4mscaler/Makefile << 'END-of-multimedia/y4mscaler/Makefile'
X# New ports collection makefile for:	y4mscaler
X# Date created:		Mon Mar  8 21:36:23 EST 2004
X# Whom:			michael johnson <ahze at ahze.net>
X#
X# $FreeBSD: ports/multimedia/mpeg/Makefile,v 1.5 2003/04/04 01:38:37 lioux Exp $
X#
X
XPORTNAME=	y4mscaler
XPORTVERSION=	0.6.1
XCATEGORIES=	multimedia
XMASTER_SITES=	http://www.mir.com/DMG/Software/
XDISTNAME=	${PKGNAME}-src
XEXTRACT_SUFX=	.tgz
X
XMAINTAINER=	ahze at ahze.net
XCOMMENT=	Y4mscaler scales, crops, and shifts Y'CbCr video
X
XLIB_DEPENDS=	lavjpeg-1.6.1:${PORTSDIR}/multimedia/mjpegtools
X
XUSE_REINPLACE=	yes
XUSE_GMAKE=	yes
X
XWRKSRC=		${WRKDIR}/${PKGNAME}
X
XDOC_FILES=	COPYING ChangeLog INSTALL README TODO
XMAN1=		y4mscaler.1
XPLIST_FILES=	bin/y4mscaler
X
X.include <bsd.port.pre.mk>
X
X.ifndef(PORTDOCS)
X.for plistfile in ${DOC_FILES}
XPLIST_FILES+=	share/doc/${PORTNAME}/${plistfile}
X.endfor
XPLIST_DIRS+=	share/doc/${PORTNAME}
X.endif
X
Xpost-patch:
X	@${REINPLACE_CMD} -e 's|/usr/local|${LOCALBASE}|' \
X		${WRKSRC}/Makefile
X	@${REINPLACE_CMD} -e 's|-march=i686 -mcpu=i686|${CFLAGS}|' \
X		${WRKSRC}/Makefile
X	@${REINPLACE_CMD} -e 's|COPT = -O2|#|' \
X		${WRKSRC}/Makefile
X.if ${OSVERSION} < 500000
X	@${REINPLACE_CMD} -e 's|#define HAVE_STDINT_H 1|#undef HAVE_STDINT_H 1|' \
X		${WRKSRC}/y4m-config.h
X.endif
X
Xdo-install:
X	@${INSTALL_PROGRAM} ${WRKSRC}/y4mscaler ${PREFIX}/bin/y4mscaler
X	@${INSTALL_MAN} ${WRKSRC}/y4mscaler.1 ${MANPREFIX}/man/man1/
X.ifndef(PORTDOCS)
X	@${MKDIR} ${DOCSDIR}
X.for docfile in ${DOC_FILES}
X	@${INSTALL_DATA} ${WRKSRC}/${docfile} ${DOCSDIR}
X.endfor
X.endif
X
X.include <bsd.port.post.mk>
END-of-multimedia/y4mscaler/Makefile
exit


>Release-Note:
>Audit-Trail:
>Unformatted:



More information about the freebsd-ports-bugs mailing list