diff options
author | Steve Dibb <beandog@gentoo.org> | 2007-04-28 04:29:18 +0000 |
---|---|---|
committer | Steve Dibb <beandog@gentoo.org> | 2007-04-28 04:29:18 +0000 |
commit | fc3fcf314c9840aa88df87c245bea2dfc91566bc (patch) | |
tree | ff6b2c3c667057738cdcb1a2ba02b9af61026b99 /media-video/tovid | |
parent | Version bump, bug 173917 (diff) | |
download | gentoo-2-fc3fcf314c9840aa88df87c245bea2dfc91566bc.tar.gz gentoo-2-fc3fcf314c9840aa88df87c245bea2dfc91566bc.tar.bz2 gentoo-2-fc3fcf314c9840aa88df87c245bea2dfc91566bc.zip |
ffmpeg patch, bug 176266
(Portage version: 2.1.2.4)
Diffstat (limited to 'media-video/tovid')
-rw-r--r-- | media-video/tovid/ChangeLog | 8 | ||||
-rw-r--r-- | media-video/tovid/files/digest-tovid-0.30-r1 | 3 | ||||
-rw-r--r-- | media-video/tovid/files/tovid-0.30-ffmpeg.patch | 68 | ||||
-rw-r--r-- | media-video/tovid/tovid-0.30-r1.ebuild | 76 |
4 files changed, 154 insertions, 1 deletions
diff --git a/media-video/tovid/ChangeLog b/media-video/tovid/ChangeLog index a265d58b7e6e..ba01b2c97c84 100644 --- a/media-video/tovid/ChangeLog +++ b/media-video/tovid/ChangeLog @@ -1,6 +1,12 @@ # ChangeLog for media-video/tovid # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/media-video/tovid/ChangeLog,v 1.7 2007/03/30 03:46:11 beandog Exp $ +# $Header: /var/cvsroot/gentoo-x86/media-video/tovid/ChangeLog,v 1.8 2007/04/28 04:29:18 beandog Exp $ + +*tovid-0.30-r1 (28 Apr 2007) + + 28 Apr 2007; Steve Dibb <beandog@gentoo.org> + +files/tovid-0.30-ffmpeg.patch, +tovid-0.30-r1.ebuild: + ffmpeg patch, bug 176266 30 Mar 2007; Steve Dibb <beandog@gentoo.org> -tovid-0.29-r1.ebuild, tovid-0.30.ebuild: diff --git a/media-video/tovid/files/digest-tovid-0.30-r1 b/media-video/tovid/files/digest-tovid-0.30-r1 new file mode 100644 index 000000000000..536aabef5fe1 --- /dev/null +++ b/media-video/tovid/files/digest-tovid-0.30-r1 @@ -0,0 +1,3 @@ +MD5 feb3418acade9584cd8256f5ce2efb88 tovid-0.30.tar.gz 393084 +RMD160 ef7e35e6553fddc4f601fd44b681b5afd643705a tovid-0.30.tar.gz 393084 +SHA256 fe30a4ef08d1aa15fcb811d123d14a7934a9f5180abbcaddafef1e543c42720f tovid-0.30.tar.gz 393084 diff --git a/media-video/tovid/files/tovid-0.30-ffmpeg.patch b/media-video/tovid/files/tovid-0.30-ffmpeg.patch new file mode 100644 index 000000000000..93f953f3d083 --- /dev/null +++ b/media-video/tovid/files/tovid-0.30-ffmpeg.patch @@ -0,0 +1,68 @@ +diff -Naur tovid-0.30/libtovid/gui/options.py tovid-0.30.2/libtovid/gui/options.py +--- tovid-0.30/libtovid/gui/options.py 2007-02-12 22:51:57.000000000 +0000 ++++ tovid-0.30/libtovid/gui/options.py 2007-04-17 17:00:03.000000000 +0000 +@@ -42,7 +42,7 @@ + # Get global configuration (for output directory) + curConfig = TovidConfig() + +- strCommand = "makexml -noask -quiet -overwrite -%s " % self.format ++ strCommand = "makexml -quiet -overwrite -%s " % self.format + + for curItem in self.optionList: + # Prefix -topmenu or -menu if necessary +diff -Naur tovid-0.30/src/makemenu tovid-0.30.2/src/makemenu +--- tovid-0.30/src/makemenu 2007-02-12 22:51:57.000000000 +0000 ++++ tovid-0.30/src/makemenu 2007-04-17 16:58:49.000000000 +0000 +@@ -755,14 +755,14 @@ + MENU_LENGTH="-t 4" + fi + echo "Creating $(echo "$MENU_LENGTH" | cut -c 4-)-second silent $ASUF audio... " +- AUDIO_CMD="ffmpeg -f s16le -i /dev/zero -ac 2 -ar $SAMPRATE -ab 224 \ ++ AUDIO_CMD="ffmpeg -f s16le -i /dev/zero -ac 2 -ar $SAMPRATE -ab 224k \ + $MENU_LENGTH -acodec $ASUF -y \"$AUDIO_STREAM\"" + $DEBUG && echo -e "\n\nBG audio:\n$AUDIO_CMD" >> $REDIR + eval $AUDIO_CMD >> $REDIR 2>&1 + # Otherwise, convert provided audio to the target format + else + echo "Converting \"$BG_AUDIO\" to $ASUF... " +- AUDIO_CMD="ffmpeg -i \"$BG_AUDIO\" -ac 2 -ar $SAMPRATE -ab 224 \ ++ AUDIO_CMD="ffmpeg -i \"$BG_AUDIO\" -ac 2 -ar $SAMPRATE -ab 224k \ + $MENU_LENGTH -acodec $ASUF -y \"$AUDIO_STREAM\"" + $DEBUG && echo -e "\n\nBG audio:\n$AUDIO_CMD" >> $REDIR + eval $AUDIO_CMD >> $REDIR 2>&1 +diff -Naur tovid-0.30/src/postproc tovid-0.30.2/src/postproc +--- tovid-0.30/src/postproc 2006-12-05 05:19:32.000000000 +0000 ++++ tovid-0.30/src/postproc 2007-04-17 16:59:03.000000000 +0000 +@@ -210,7 +210,7 @@ + # Re-encode audio + mv -v audio_dump normed_audio + AUDIO_BITRATE=$(expr $ID_AUDIO_BITRATE / 1000) +- AUDIO_ENC="ffmpeg -i normed_audio -vn -ab $AUDIO_BITRATE -ar $ID_AUDIO_RATE" ++ AUDIO_ENC="ffmpeg -i normed_audio -vn -ab ${AUDIO_BITRATE}k -ar $ID_AUDIO_RATE" + AUDIO_ENC="$AUDIO_ENC -ac $ID_AUDIO_NCH -acodec $ID_AUDIO_CODEC" + AUDIO_ENC="$AUDIO_ENC -y audio_dump.$ID_AUDIO_CODEC" + +diff -Naur tovid-0.30/src/todisc tovid-0.30.2/src/todisc +--- tovid-0.30/src/todisc 2007-04-17 17:53:57.000000000 +0000 ++++ tovid-0.30/src/todisc 2007-04-17 16:58:26.000000000 +0000 +@@ -1856,7 +1856,7 @@ + + # easier to have non transparent showcase use the transparent block + if $SHOWCASE && ! $TRANSPARENT; then TRANSPARENT=:; fi +-AUDIO_OPTS="-ab 224 -ar $SAMPLERATE -ac 2 -acodec $AUDIO_EXT" ++AUDIO_OPTS="-ab 224k -ar $SAMPLERATE -ac 2 -acodec $AUDIO_EXT" + # spumux and dvdauthor vars + if $WIDE_SCREEN; then + TITLES_VIDEO_TAG="<video widescreen=\"$WIDESCREEN\" $V_ASPECT/>" +diff -Naur tovid-0.30/src/tovid tovid-0.30.2/src/tovid +--- tovid-0.30/src/tovid 2007-02-11 20:11:11.000000000 +0000 ++++ tovid-0.30/src/tovid 2007-04-17 16:59:50.000000000 +0000 +@@ -1810,7 +1810,7 @@ + AUDIO_ENC=( "${AUDIO_ENC[@]}" -i "${AUDIO_IN_FILE[@]}" ) + yecho "Encoding audio stream to $AUD_SUF with the following command:" + fi +- AUDIO_ENC=( "${AUDIO_ENC[@]}" -vn -ab $AUD_BITRATE -ar $SAMPRATE -ac 2 ) ++ AUDIO_ENC=( "${AUDIO_ENC[@]}" -vn -ab ${AUD_BITRATE}k -ar $SAMPRATE -ac 2 ) + ! $DO_NORM && AUDIO_ENC=( "${AUDIO_ENC[@]}" $CLIP_SEEK $FF_LENGTH $AUDIO_MAP ) + AUDIO_ENC=( "${AUDIO_ENC[@]}" -acodec $AUD_SUF) + $DO_NORM && AUDIO_ENC=( "${AUDIO_ENC[@]}" "${AUDIO_WAV_MAP[@]}" ) diff --git a/media-video/tovid/tovid-0.30-r1.ebuild b/media-video/tovid/tovid-0.30-r1.ebuild new file mode 100644 index 000000000000..ee37f30a15e5 --- /dev/null +++ b/media-video/tovid/tovid-0.30-r1.ebuild @@ -0,0 +1,76 @@ +# Copyright 1999-2007 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/media-video/tovid/tovid-0.30-r1.ebuild,v 1.1 2007/04/28 04:29:18 beandog Exp $ + +inherit eutils + +DESCRIPTION="Video conversion and DVD authoring tools" +HOMEPAGE="http://tovid.wikia.com/" +SRC_URI="mirror://sourceforge/tovid/${P}.tar.gz" +IUSE="tk" +DEPEND="media-video/mplayer + app-text/txt2tags" +RDEPEND="media-video/mjpegtools + media-video/ffmpeg + media-video/transcode + media-sound/normalize + media-gfx/imagemagick + media-sound/sox + media-video/dvdauthor + media-video/vcdimager + media-video/lsdvd + virtual/cdrtools + dev-python/pycairo + >=dev-python/wxpython-2.6 + app-cdr/dvd+rw-tools + app-cdr/cdrdao + dev-python/imaging" +KEYWORDS="~x86 ~amd64" +LICENSE="GPL-2" +SLOT="0" + +pkg_setup() { + if use tk && ( ! built_with_use dev-lang/python tk ); then + eerror "Please emerge python with useflag 'tk' enabled." + die "Fix USE flags and re-emerge" + elif ! use tk; then + ewarn "If you want to use 'todiscgui', then emerge" + ewarn "dev-lang/python and this package with the 'tk' use flag" + fi + if ! built_with_use media-video/mplayer encode; then + eerror "Please emerge media-video/mplayer with useflag 'encode'." + die "Fix USE flags and re-emerge" + fi +} + +src_unpack() { + unpack ${A} + cd "${S}" + epatch "${FILESDIR}/${P}-configure.patch" + epatch "${FILESDIR}/${P}-ffmpeg.patch" +} + +src_install() { + make DESTDIR="${D}" install || die "make install died" + dodoc AUTHORS ChangeLog NEWS README +} + +pkg_postinst() { + einfo "" + einfo "List of suite components:" + einfo " idvid: Identifies video format, resolution, and length" + einfo " makemenu: Creates (S)VCD/DVD menus" + einfo " makeslides: Creates mpeg still slides for (S)VCD" + einfo " makexml: Creates XML specification for an (S)VCD or DVD navigation hierarchy" + einfo " makedvd: Creates the DVD structure and/or iso image" + einfo " postproc: Adjusts A/V sync and does shrinking of encoded video" + einfo " tovid: Converts video to (S)VCD or DVD mpeg format" + einfo " tovidgui: The tovid GUI" + einfo " pytovid: The new (experimental) python based tovid script" + einfo " todisc: Create a DVD with animated menus" + einfo " todiscgui: Experimental gui for todisc" + einfo "" + einfo "Please check out the tovid documentation on the web:" + einfo " http://tovid.wikia.com/" + einfo "" +} |