diff options
author | Alexis Ballier <aballier@gentoo.org> | 2013-01-17 18:42:45 +0000 |
---|---|---|
committer | Alexis Ballier <aballier@gentoo.org> | 2013-01-17 18:42:45 +0000 |
commit | b7d50764c122d24d9d913a76fc348d0e535ca56c (patch) | |
tree | a1f686826a74d1c02edc991885d0c5731f97c88d /app-cdr | |
parent | Fix X.org server depend (diff) | |
download | historical-b7d50764c122d24d9d913a76fc348d0e535ca56c.tar.gz historical-b7d50764c122d24d9d913a76fc348d0e535ca56c.tar.bz2 historical-b7d50764c122d24d9d913a76fc348d0e535ca56c.zip |
Fix build with recent ffmpeg versions: Import patch from slackware and sanitize the include paths so that libavutil headers do not pollute it. Part of bug #443192
Package-Manager: portage-2.2.0_alpha154/cvs/Linux x86_64
Manifest-Sign-Key: 0x160F534A
Diffstat (limited to 'app-cdr')
-rw-r--r-- | app-cdr/backlite/ChangeLog | 9 | ||||
-rw-r--r-- | app-cdr/backlite/Manifest | 16 | ||||
-rw-r--r-- | app-cdr/backlite/backlite-1.0.3-r1.ebuild | 6 | ||||
-rw-r--r-- | app-cdr/backlite/files/backlite-1.0.3-ffmpeg-0.11.patch | 363 | ||||
-rw-r--r-- | app-cdr/backlite/files/backlite-1.0.3-includepaths.patch | 89 |
5 files changed, 478 insertions, 5 deletions
diff --git a/app-cdr/backlite/ChangeLog b/app-cdr/backlite/ChangeLog index 4945d1f63ad8..dc1468994b97 100644 --- a/app-cdr/backlite/ChangeLog +++ b/app-cdr/backlite/ChangeLog @@ -1,6 +1,13 @@ # ChangeLog for app-cdr/backlite # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-cdr/backlite/ChangeLog,v 1.33 2013/01/13 11:12:46 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-cdr/backlite/ChangeLog,v 1.34 2013/01/17 18:42:37 aballier Exp $ + + 17 Jan 2013; Alexis Ballier <aballier@gentoo.org> backlite-1.0.3-r1.ebuild, + +files/backlite-1.0.3-ffmpeg-0.11.patch, + +files/backlite-1.0.3-includepaths.patch: + Fix build with recent ffmpeg versions: Import patch from slackware and + sanitize the include paths so that libavutil headers do not pollute it. Part + of bug #443192 13 Jan 2013; Agostino Sarubbo <ago@gentoo.org> backlite-1.0.3-r1.ebuild: Stable for amd64, wrt bug #451276 diff --git a/app-cdr/backlite/Manifest b/app-cdr/backlite/Manifest index 9a96595f9eaf..77eea155c73f 100644 --- a/app-cdr/backlite/Manifest +++ b/app-cdr/backlite/Manifest @@ -1,5 +1,17 @@ +-----BEGIN PGP SIGNED MESSAGE----- +Hash: SHA256 + +AUX backlite-1.0.3-ffmpeg-0.11.patch 23775 SHA256 a1f37a12ab5a4cc14517f3db18b5ae64a9da4e5bf56a564392778f679a1cd676 SHA512 0da3063316df2e9c87ec5c41fffb6e8828f99ed37af27bd4dbae7b9b1cf3cf9a36bbf256924afbc817e7e7da6eac8c135bb8f8068071838b64cf4bf645598710 WHIRLPOOL 0c2bddeb37a460ccbdcc86ddbeb46122cb219a882e8b60a50faf2aec91219c15289674adf5224e18a8558fb0b1eeccba1edff450e20b223e3b27599d327b9db6 +AUX backlite-1.0.3-includepaths.patch 2556 SHA256 b2fb92758a9ed84cdd6d0e2cba1159d38a1a8b5651a9d7e309752cc9cfc8b519 SHA512 5b74f39d0dff9ec1a648de42ef825e64a3e71e2be5f884950db4ba4670e97adff828147c241bbbbb9111663db9c5e3f5833041f752d3effb2c1f0a61e4bd2c97 WHIRLPOOL 80d6c3fa619f802db7895d8af515cd9b8b3094e4c030fba604de4549b23ae893be79ca9cfd9df44d8e9439e050e6e9f23cd6bcf019772d70cce17159a8d7ff90 DIST backlite-1.0.3.tar.gz 1597117 SHA256 f181667b585a26e7b44c2cd89e46ed00e4b0363542f2cfeb9ae2378d1718e5ca SHA512 6deb5cf33594da26a4ba1a4a01999feda10e8225b82c141df06eb958b559e5162be18b54a285ef34f4cf06af88dc635a4b2a27845a51a7fdecc96b94ac27f4c1 WHIRLPOOL b061a308443e226be9a1f479247e11baf0d14876b03bc87f8c7d39b0b42cc220725635f5433519f134c4e983401b4253a2ab66d5a952692b0499ef6082b3f5e7 -EBUILD backlite-1.0.3-r1.ebuild 1061 SHA256 7064b73f64f1b077096be31377fd992c55e014cfe67294e4d2f6757308d74684 SHA512 8a82c81acdbacdad49e44d820680814bf22072e8ad452931ede8385077d3f59d32a1de481de67bdb79611193cac00f676ee7597a539a2a6b13629211ed606a73 WHIRLPOOL 0f8bf4c623e97777da371f0b7e6cfddba62fb8674dd68c64fa2bded7e58cb06475480e6c339a503c14b39eaada0e6770a0759182bd9f0d4c304a19fe55fe102a +EBUILD backlite-1.0.3-r1.ebuild 1160 SHA256 d1e1f94f5761ad6880b1c5e9b7ff04e239cb1fa41cabb7408cb19d323ce1d21c SHA512 39fc5e40f620eb42af346925a2bc2a0a2dddbb17da1d3dae096b7c5b432baee5c0ac05a3521acb3c4ccd2029e3c832d44a3f97019bcb6d677075bccd4c04af5d WHIRLPOOL 13c03ae4982a8691ae5a8faf03cb0dbc92fe7666881a0b7ee300f530798ecd72702dd16770e61ac09549b3274a799d8c80c6188c9504d7a01caf670030043014 EBUILD backlite-1.0.3.ebuild 973 SHA256 6cb42b9e2e569b896bb4c1418164f8f3ce192b28b2e18a4830558410e6eca010 SHA512 38ed72318994ff6bd7a7db4c8866159c27fd6c24aedca4993ad7bcf77c34529851747df5e7850dc5f7406d6ac97adf17fda4a5b881a49174a18cac77b625efd7 WHIRLPOOL c758121fb1d30dfc723f494c777ded7fae44f2a49ba7749591f2e78c0e2eb888ccf74d30aec5b19dac1322fea8595a19e0a68e4fd3d4d28fde930f5797a2455a -MISC ChangeLog 4222 SHA256 01b1456982a7bc4bdfa425ffb0b26ff0edc81a7fccdbc2b8b5f580ea873fea29 SHA512 160895f378560eca56866d2462fce043dae05f3aec8951e52c02c2bce3232bd59c0a43a87cd569390048ee8fed3e3e18327ef24ba444ae830d00b3398d22d51f WHIRLPOOL 6988a2c954c5b49de754e7dacd6b2301ca1bd6ded8fa483e2cb789f2632b2669aff18bab44b6593ff4926aa84b02e4d478e782a0fc3b311b6e233e12e54520c2 +MISC ChangeLog 4562 SHA256 e2389371a2dd5bfdf3a1f99fc54028d6809cb9a003b29df92b92b5889d4afd7c SHA512 ad7ac0289e576e5d5dabfaf882426fb2fe0282815143c9bb78564045dde18e16c30609a84fe08d9b5be85322994bcac86afe8582bac3b4ca65161291d23f5bc3 WHIRLPOOL c6fc68e404d018cf4c2fd8ff78f3c25cf5e910ef4c1dbc26649e859dac9e89a3b9d028b0706c7d58b210d5f53e6480cc6b3769385e22355e1e4a8058389421a5 MISC metadata.xml 345 SHA256 b1fe48e308ef42b24d4932d637ea5c6b52f2716772b42c59907ecb913c3ce0a8 SHA512 d1e522603852d84368f03e5e49eadee4e880dd46fbda578f3fdc4fb8326fe31d114c87b7c920014c91f61b75923eb968d0627e4110e7c6ded04a0ccebd451fe8 WHIRLPOOL 6bfd875c15e6f039949dccf0b20f8cdef64b21c5571a34fd7db92cbea453c6e542594a12ba1c06a35d4fa1bc9824760fd7ddc43deed8c01bf6577e8f07f4816c +-----BEGIN PGP SIGNATURE----- +Version: GnuPG v2.0.19 (GNU/Linux) + +iEYEAREIAAYFAlD4Rh4ACgkQvFcC4BYPU0p5PQCfcAc1G7orZqKu8MZK/0D8cKYI +2Z4An3sPwiBK3kGJvv9ytZlJ/BL53OTU +=K9Kj +-----END PGP SIGNATURE----- diff --git a/app-cdr/backlite/backlite-1.0.3-r1.ebuild b/app-cdr/backlite/backlite-1.0.3-r1.ebuild index 84ed5586228d..7bfedcb0ef2f 100644 --- a/app-cdr/backlite/backlite-1.0.3-r1.ebuild +++ b/app-cdr/backlite/backlite-1.0.3-r1.ebuild @@ -1,10 +1,10 @@ # Copyright 1999-2013 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-cdr/backlite/backlite-1.0.3-r1.ebuild,v 1.2 2013/01/13 11:12:46 ago Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-cdr/backlite/backlite-1.0.3-r1.ebuild,v 1.3 2013/01/17 18:42:37 aballier Exp $ EAPI=4 -inherit qt4-r2 +inherit qt4-r2 eutils DESCRIPTION="backlite is a pure QT4 version of k9copy" HOMEPAGE="http://k9copy.sourceforge.net/" @@ -32,6 +32,8 @@ RDEPEND="${DEPEND} src_prepare() { sed -i -e '/^MimeTypes=.*/d' \ -e '/^Encoding=.*/d' *.desktop || die + epatch "${FILESDIR}/${P}-ffmpeg-0.11.patch" \ + "${FILESDIR}/${P}-includepaths.patch" } src_configure() { diff --git a/app-cdr/backlite/files/backlite-1.0.3-ffmpeg-0.11.patch b/app-cdr/backlite/files/backlite-1.0.3-ffmpeg-0.11.patch new file mode 100644 index 000000000000..7feb3f9871da --- /dev/null +++ b/app-cdr/backlite/files/backlite-1.0.3-ffmpeg-0.11.patch @@ -0,0 +1,363 @@ +From slackware: +http://www.slackware.org.uk/slackbuilds.org/14.0/multimedia/backlite/ +https://bugs.gentoo.org/show_bug.cgi?id=443192 + +diff -Nru backlite-1.0.3.orig/backlite.pro backlite-1.0.3/backlite.pro +--- backlite-1.0.3.orig/backlite.pro 2011-12-07 21:34:56.000000000 +0100 ++++ backlite-1.0.3/backlite.pro 2012-11-23 10:02:55.000000000 +0100 +@@ -386,6 +386,11 @@ + INCLUDEPATH += $$a/ffmpeg + INCLUDEPATH += $$a/ffmpeg/libavformat + } ++ exists($$a/ffmpeg/libavutil) { ++ message(found $$a/ffmpeg!) ++ INCLUDEPATH += $$a/ffmpeg ++ INCLUDEPATH += $$a/ffmpeg/libavutil ++ } + exists($$a/ffmpeg/libswscale) { + message(found $$a/ffmpeg!) + INCLUDEPATH += $$a/ffmpeg +@@ -400,6 +405,10 @@ + message(found $$a/libavformat!) + INCLUDEPATH += $$a/libavformat + } ++ exists($$a/libavutil) { ++ message(found $$a/libavutil!) ++ INCLUDEPATH += $$a/libavutil ++ } + exists($$a/libswscale) { + message(found $$a/libswscale!) + INCLUDEPATH += $$a/libswscale +diff -Nru backlite-1.0.3.orig/src/backup/k9mp4enc.cpp backlite-1.0.3/src/backup/k9mp4enc.cpp +--- backlite-1.0.3.orig/src/backup/k9mp4enc.cpp 2011-12-07 21:34:56.000000000 +0100 ++++ backlite-1.0.3/src/backup/k9mp4enc.cpp 2012-12-11 10:01:39.507859366 +0100 +@@ -619,7 +619,7 @@ + // cmd << "-lavfopts" << "i_certify_that_my_video_stream_does_not_use_b_frames"; + } + //synchronize audio +- cmd << "-async" << "1" ; ++ cmd << "-async" << "44100" ; + cmd << "-y" << KShell::quoteArg(path); + cmd << slNewAudio; + // if (m_extractMkv) { +diff -Nru backlite-1.0.3.orig/src/core/k9audiocodecs.cpp backlite-1.0.3/src/core/k9audiocodecs.cpp +--- backlite-1.0.3.orig/src/core/k9audiocodecs.cpp 2011-12-07 21:34:56.000000000 +0100 ++++ backlite-1.0.3/src/core/k9audiocodecs.cpp 2012-12-11 10:01:39.510859330 +0100 +@@ -75,10 +75,10 @@ + m_codecs[4]=_k9AudioCodec("sonic","-oac lavc -lavcopts acodec=sonic:abitrate=$AUDBR","mencoder"); + m_codecs[5]=_k9AudioCodec("aac","-oac faac -faacopts br=$AUDBR","mencoder"); + m_codecs[6]=_k9AudioCodec("mp3 (lame)","-oac mp3lame -lameopts abr:br=$AUDBR","mencoder"); +- m_codecs[7]=_k9AudioCodec("copy","-acodec copy","ffmpeg",""); +- m_codecs[8]=_k9AudioCodec("mp3","-acodec libmp3lame -ab $AUDBRk -ac 2","ffmpeg",".mp3"); +- m_codecs[9]=_k9AudioCodec("vorbis","-acodec vorbis -ab $AUDBRk -ac 2","ffmpeg",".ogg"); +- m_codecs[10]=_k9AudioCodec("aac","-acodec libfaac -ab $AUDBRk -ac 2","ffmpeg",".aac"); ++ m_codecs[7]=_k9AudioCodec("copy","-codec:a copy","ffmpeg",""); ++ m_codecs[8]=_k9AudioCodec("mp3","-codec:a libmp3lame -ab $AUDBRk -ac 2 -ar 44100","ffmpeg",".mp3"); ++ m_codecs[9]=_k9AudioCodec("vorbis","-codec:a vorbis -ab $AUDBRk -ac 2 -ar 44100","ffmpeg",".ogg"); ++ m_codecs[10]=_k9AudioCodec("aac","-codec:a libfaac -ab $AUDBRk -ac 2 -ar 44100","ffmpeg",".aac"); + + save(); + } +diff -Nru backlite-1.0.3.orig/src/core/k9videocodecs.cpp backlite-1.0.3/src/core/k9videocodecs.cpp +--- backlite-1.0.3.orig/src/core/k9videocodecs.cpp 2011-12-07 21:34:56.000000000 +0100 ++++ backlite-1.0.3/src/core/k9videocodecs.cpp 2012-12-11 10:01:39.512859304 +0100 +@@ -98,12 +98,12 @@ + m_codecs[18]=_k9VideoCodec("ASUS v1","","-ovc lavc -lavcopts vcodec=asv1:vhq:v4mv:vqmin=2:vbitrate=$VIDBR:aspect=$ASPECT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT","-ovc lavc -lavcopts vcodec=asv1:vhq:v4mv:vqmin=2:vbitrate=$VIDBR:aspect=$ASPECT:turbo:vpass=$PASS -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT","-ovc lavc -lavcopts vcodec=asv1:vhq:v4mv:vqmin=2:vbitrate=$VIDBR:aspect=$ASPECT:turbo:vpass=$PASS -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT","mencoder"); + m_codecs[19]=_k9VideoCodec("ASUS v2","","-ovc lavc -lavcopts vcodec=asv2:vhq:v4mv:vqmin=2:vbitrate=$VIDBR:aspect=$ASPECT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT","-ovc lavc -lavcopts vcodec=asv2:vhq:v4mv:vqmin=2:vbitrate=$VIDBR:aspect=$ASPECT:turbo:vpass=$PASS -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT","-ovc lavc -lavcopts vcodec=asv2:vhq:v4mv:vqmin=2:vbitrate=$VIDBR:aspect=$ASPECT:turbo:vpass=$PASS -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT","mencoder"); + m_codecs[20]=_k9VideoCodec("flv","","-ovc lavc -lavcopts vcodec=flv:vhq:v4mv:vqmin=2:vbitrate=$VIDBR:aspect=$ASPECT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT","-ovc lavc -lavcopts vcodec=flv:vhq:v4mv:vqmin=2:vbitrate=$VIDBR:aspect=$ASPECT:turbo:vpass=$PASS -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT","-ovc lavc -lavcopts vcodec=flv:vhq:v4mv:vqmin=2:vbitrate=$VIDBR:aspect=$ASPECT:turbo:vpass=$PASS -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP,scale=$WIDTH:$HEIGHT,dsize=$ASPECT","mencoder"); +- m_codecs[21]=_k9VideoCodec("copy","","-vcodec copy","-vcodec copy","-vcodec copy","ffmpeg"); +- m_codecs[22]=_k9VideoCodec("x264","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -vcodec libx264 -level 30","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec libx264 -pass $PASS -passlogfile $PASSLOGFILE -level 30","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec libx264 -pass $PASS -passlogfile $PASSLOGFILE -level 30","ffmpeg"); +- m_codecs[23]=_k9VideoCodec("x264 (high)","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -vcodec libx264 -level 30 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 -flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec libx264 -level 30 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 -flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -pass $PASS -passlogfile $PASSLOGFILE","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec libx264 -level 30 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 -flags2 +bpyramid+wpred+mixed_refs+dct8x8 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -pass $PASS -passlogfile $PASSLOGFILE","ffmpeg"); +- m_codecs[24]=_k9VideoCodec("MPEG-4 ","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -vcodec mpeg4 ","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec mpeg4 -pass $PASS -passlogfile $PASSLOGFILE","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec mpeg4 -pass $PASS -passlogfile $PASSLOGFILE","ffmpeg"); +- m_codecs[25]=_k9VideoCodec("Flash Video","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -vcodec flv ","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec flv -pass $PASS -passlogfile $PASSLOGFILE","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec flv -pass $PASS -passlogfile $PASSLOGFILE","ffmpeg"); +- m_codecs[26]=_k9VideoCodec("Windows Media 8","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -vcodec wmv2","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec wmv2 -pass $PASS -passlogfile $PASSLOGFILE","-b $VIDBRk -s $WIDTHx$HEIGHT -croptop $CROPTOP -cropbottom $CROPBOTTOM -cropleft $CROPLEFT -cropright $CROPRIGHT -aspect $ASPECT -vcodec wmv2 -pass $PASS -passlogfile $PASSLOGFILE","ffmpeg"); ++ m_codecs[21]=_k9VideoCodec("copy","","-codec:v copy","-codec:v copy","-codec:v copy","ffmpeg"); ++ m_codecs[22]=_k9VideoCodec("x264","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v libx264 -level 30","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v libx264 -pass $PASS -passlogfile $PASSLOGFILE -level 30","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v libx264 -pass $PASS -passlogfile $PASSLOGFILE -level 30","ffmpeg"); ++ m_codecs[23]=_k9VideoCodec("x264 (high)","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v libx264 -level 30 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 -b-pyramid normal -weightb 1 -mixed-refs 1 -8x8dct 1 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v libx264 -level 30 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 -b-pyramid normal -weightb 1 -mixed-refs 1 -8x8dct 1 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -pass $PASS -passlogfile $PASSLOGFILE","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v libx264 -level 30 -flags +loop+mv4 -cmp 256 -partitions +parti4x4+parti8x8+partp4x4+partp8x8+partb8x8 -me_method hex -subq 7 -trellis 1 -refs 5 -bf 3 -b-pyramid normal -weightb 1 -mixed-refs 1 -8x8dct 1 -coder 1 -me_range 16 -g 250 -keyint_min 25 -sc_threshold 40 -i_qfactor 0.71 -qmin 10 -qmax 51 -qdiff 4 -pass $PASS -passlogfile $PASSLOGFILE","ffmpeg"); ++ m_codecs[24]=_k9VideoCodec("MPEG-4 ","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v mpeg4 ","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v mpeg4 -pass $PASS -passlogfile $PASSLOGFILE","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v mpeg4 -pass $PASS -passlogfile $PASSLOGFILE","ffmpeg"); ++ m_codecs[25]=_k9VideoCodec("Flash Video","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v flv ","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v flv -pass $PASS -passlogfile $PASSLOGFILE","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v flv -pass $PASS -passlogfile $PASSLOGFILE","ffmpeg"); ++ m_codecs[26]=_k9VideoCodec("Windows Media 8","","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$CROPWIDTH:$CROPHEIGHT:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v wmv2","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v wmv2 -pass $PASS -passlogfile $PASSLOGFILE","-b $VIDBRk -s $WIDTHx$HEIGHT -vf crop=$WIDTH-$CROPRIGHT-$CROPLEFT:$HEIGHT-$CROPTOP-$CROPBOTTOM:$CROPLEFT:$CROPTOP -aspect $ASPECT -codec:v wmv2 -pass $PASS -passlogfile $PASSLOGFILE","ffmpeg"); + + save(); + +diff -Nru backlite-1.0.3.orig/src/import/k9avidecode.cpp backlite-1.0.3/src/import/k9avidecode.cpp +--- backlite-1.0.3.orig/src/import/k9avidecode.cpp 2011-12-07 21:34:56.000000000 +0100 ++++ backlite-1.0.3/src/import/k9avidecode.cpp 2012-11-23 09:39:06.000000000 +0100 +@@ -37,11 +37,13 @@ + : QObject(parent) { + CodecHandle=0; + FormatHandle=0; ++ UtilHandle=0; + SwscaleHandle=0; + glibref=0; + if (glibref==0) { + CodecHandle=dlopen("libavcodec.so",RTLD_LAZY ); //| RTLD_GLOBAL + FormatHandle=dlopen("libavformat.so",RTLD_LAZY); ++ UtilHandle=dlopen("libavutil.so",RTLD_LAZY); + #ifdef HAVE_SWSCALE + SwscaleHandle=dlopen("libswscale.so",RTLD_LAZY); + if (SwscaleHandle==0) +@@ -56,6 +58,12 @@ + if (!FormatHandle ) { + errs << i18n("Cannot open the library %1").arg("libavformat"); + } ++# if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 33, 0) ++ if (!UtilHandle) { ++ m_error =i18n("Cannot open then library %1").arg("libavutil"); ++ return; ++ } ++# endif + #ifdef HAVE_SWSCALE + if (!SwscaleHandle) { + errs << i18n("Cannot open the library %1").arg("libswscale"); +@@ -63,17 +71,32 @@ + #endif + + av_register_all = (av_register_all_t)dlsym(FormatHandle,"av_register_all"); ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 2, 0) ++ avformat_open_input = (avformat_open_input_t)dlsym(FormatHandle,"avformat_open_input"); ++# else + av_open_input_file = (av_open_input_file_t)dlsym(FormatHandle,"av_open_input_file"); ++# endif ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 6, 0) ++ avformat_find_stream_info = (avformat_find_stream_info_t)dlsym(FormatHandle,"avformat_find_stream_info"); ++# else + av_find_stream_info = (av_find_stream_info_t)dlsym(FormatHandle,"av_find_stream_info"); ++# endif + avcodec_find_decoder =(avcodec_find_decoder_t) dlsym(CodecHandle,"avcodec_find_decoder"); ++# if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 8, 0) ++ avcodec_open2 = (avcodec_open2_t)dlsym(CodecHandle,"avcodec_open2"); ++# else + avcodec_open = (avcodec_open_t)dlsym(CodecHandle,"avcodec_open"); ++# endif + avcodec_alloc_frame = (avcodec_alloc_frame_t)dlsym(CodecHandle,"avcodec_alloc_frame"); + avpicture_get_size = (avpicture_get_size_t)dlsym(CodecHandle,"avpicture_get_size"); + av_malloc = (av_malloc_t)dlsym(CodecHandle,"av_malloc"); + avpicture_fill = (avpicture_fill_t)dlsym(CodecHandle,"avpicture_fill"); + av_read_frame = (av_read_frame_t)dlsym(FormatHandle,"av_read_frame"); ++# if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 23, 0) ++ avcodec_decode_video2 = (avcodec_decode_video2_t)dlsym(CodecHandle,"avcodec_decode_video2"); ++# else + avcodec_decode_video = (avcodec_decode_video_t)dlsym(CodecHandle,"avcodec_decode_video"); +- if (avcodec_decode_video==0) avcodec_decode_video=(avcodec_decode_video_t)dlsym(CodecHandle,"avcodec_decode_video2"); ++# endif + #ifndef HAVE_SWSCALE + img_convert = (img_convert_t)dlsym(CodecHandle,"img_convert"); + //if img_convert is null (deprecated in ffmpeg), we need libswscale +@@ -85,7 +108,11 @@ + if (av_free_packet==0) + av_free_packet=av_free_packet_internal; + avcodec_close = (avcodec_close_t)dlsym(FormatHandle,"avcodec_close"); ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) ++ avformat_close_input = (avformat_close_input_t)dlsym(FormatHandle,"avformat_close_input"); ++# else + av_close_input_file = (av_close_input_file_t)dlsym(FormatHandle,"av_close_input_file"); ++# endif + av_seek_frame=(av_seek_frame_t)dlsym(FormatHandle,"av_seek_frame"); + av_rescale_q=(av_rescale_q_t)dlsym(FormatHandle,"av_rescale_q"); + avcodec_flush_buffers=(avcodec_flush_buffers_t)dlsym(CodecHandle,"avcodec_flush_buffers"); +@@ -94,7 +121,11 @@ + sws_getContext=(sws_getContext_t)dlsym(SwscaleHandle,"sws_getContext"); + sws_scale= (sws_scale_t)dlsym(SwscaleHandle,"sws_scale"); + #endif ++# if LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(51, 33, 0) ++ av_gettime=(av_gettime_t)dlsym(UtilHandle,"av_gettime"); ++# else + av_gettime=(av_gettime_t)dlsym(FormatHandle,"av_gettime"); ++# endif + + if (errs.count() >0) { + m_error=errs.join("\n"); +@@ -118,6 +149,8 @@ + dlclose(FormatHandle); + if (CodecHandle) + dlclose(CodecHandle); ++ if(UtilHandle) ++ dlclose(UtilHandle); + #ifdef HAVE_SWSCALE + if (SwscaleHandle) + dlclose(CodecHandle); +@@ -134,12 +167,24 @@ + close(); + + // Open video file +- if (av_open_input_file(&m_FormatCtx, _fileName.toUtf8(), NULL, 0, NULL)!=0) { ++ if ( ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 2, 0) ++ avformat_open_input(&m_FormatCtx, _fileName.toUtf8(), 0, 0)!=0 ++# else ++ av_open_input_file(&m_FormatCtx, _fileName.toUtf8(), NULL, 0, NULL)!=0 ++# endif ++ ) { + m_error=i18n("Couldn't open the file %1").arg(_fileName); + return false; // Couldn't open file} + } + // Retrieve stream information +- if (av_find_stream_info(m_FormatCtx)<0) { ++ if ( ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 6, 0) ++ avformat_find_stream_info(m_FormatCtx, NULL)<0 ++# else ++ av_find_stream_info(m_FormatCtx)<0 ++# endif ++ ) { + m_error =i18n("Couldn't find stream information"); + return false; // Couldn't find stream information + } +@@ -168,7 +213,13 @@ + return false; // Codec not found + } + // Open codec +- if (avcodec_open(m_CodecCtx, m_Codec)<0) { ++ if ( ++# if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 8, 0) ++ avcodec_open2(m_CodecCtx, m_Codec, NULL)<0 ++# else ++ avcodec_open(m_CodecCtx, m_Codec)<0 ++# endif ++ ) { + m_error =i18n("Could'nt open the codec"); + return false; // Could not open codec + } +@@ -245,15 +296,23 @@ + // Is this a packet from the video stream? + if (packet.stream_index==m_videoStream) { + // Decode video frame ++# if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 23, 0) ++ avcodec_decode_video2(m_CodecCtx, m_Frame, &frameFinished, &packet); ++# else + avcodec_decode_video(m_CodecCtx, m_Frame, &frameFinished, + packet.data, packet.size); ++# endif + + // Did we get a video frame? + if (frameFinished) { + // if (m_Frame->pts >=fspos) + int64_t cur_dts=fspos; +- if (m_FormatCtx->cur_st) +- cur_dts= m_FormatCtx->cur_st->cur_dts; ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(54, 2, 0) ++ cur_dts= packet.dts; ++# else ++ if (m_FormatCtx->cur_st) ++ cur_dts= m_FormatCtx->cur_st->cur_dts; ++# endif + if (cur_dts >=fspos) { + bFound=true; + #ifndef HAVE_SWSCALE +@@ -309,7 +368,11 @@ + avcodec_close(m_CodecCtx); + + // Close the video file ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) ++ avformat_close_input(&m_FormatCtx); ++# else + av_close_input_file(m_FormatCtx); ++# endif + m_opened=false; + } + } +diff -Nru backlite-1.0.3.orig/src/import/k9avidecode.h backlite-1.0.3/src/import/k9avidecode.h +--- backlite-1.0.3.orig/src/import/k9avidecode.h 2011-12-07 21:34:56.000000000 +0100 ++++ backlite-1.0.3/src/import/k9avidecode.h 2012-11-23 09:39:06.000000000 +0100 +@@ -15,6 +15,7 @@ + #include "k9common.h" + #include <qobject.h> + #include <avformat.h> ++#include <avutil.h> + #include <qimage.h> + #include <cstdlib> + #include <QObject> +@@ -29,10 +30,22 @@ + //typedef dvd_file_t * (*DVDOpenFile_t) ( dvd_reader_t *, int, dvd_read_domain_t ); + typedef void (*av_register_all_t) (void); + typedef int64_t (*av_gettime_t) (void); ++#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 2, 0) ++typedef int (*avformat_open_input_t)(AVFormatContext **, const char *, AVInputFormat *, AVDictionary **); ++#else + typedef int (*av_open_input_file_t)(AVFormatContext **, const char *,AVInputFormat *,int, AVFormatParameters *); ++#endif ++#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 6, 0) ++typedef int (*avformat_find_stream_info_t)(AVFormatContext *, AVDictionary **); ++#else + typedef int (*av_find_stream_info_t)(AVFormatContext *); ++#endif + typedef AVCodec* (*avcodec_find_decoder_t)(enum CodecID); ++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 8, 0) ++typedef int (*avcodec_open2_t)(AVCodecContext *, AVCodec *, AVDictionary **); ++#else + typedef int (*avcodec_open_t)(AVCodecContext *, AVCodec *); ++#endif + typedef AVFrame * (*avcodec_alloc_frame_t)(void); + + typedef int (*avpicture_get_size_t)(int , int , int ); +@@ -40,11 +53,19 @@ + typedef int (*avpicture_fill_t)(AVPicture *, uint8_t *,int , int , int); + typedef int (*av_read_frame_t)(AVFormatContext *, AVPacket *); + ++#if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 23, 0) ++typedef int (*avcodec_decode_video2_t)(AVCodecContext *, AVFrame *, int *, AVPacket *); ++#else + typedef int (*avcodec_decode_video_t)(AVCodecContext *, AVFrame *,int *, uint8_t *, int ); ++#endif + typedef int (*img_convert_t)(AVPicture *, int , const AVPicture *, int ,int, int); + typedef void (*av_free_t)(void *); + typedef int (*avcodec_close_t)(AVCodecContext *); ++#if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) ++typedef void (*avformat_close_input_t)(AVFormatContext **); ++#else + typedef void (*av_close_input_file_t)(AVFormatContext *); ++#endif + typedef int (*av_seek_frame_t)(AVFormatContext *,int,int64_t timestamp,int flags); typedef int64_t (*av_rescale_q_t)(int64_t , AVRational , AVRational ) ; + typedef void (*avcodec_flush_buffers_t)(AVCodecContext *); + typedef void (*av_free_packet_t)(AVPacket *); +@@ -77,21 +98,41 @@ + + private: + av_register_all_t av_register_all; ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 2, 0) ++ avformat_open_input_t avformat_open_input; ++# else + av_open_input_file_t av_open_input_file; ++# endif ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 6, 0) ++ avformat_find_stream_info_t avformat_find_stream_info; ++# else + av_find_stream_info_t av_find_stream_info; ++# endif + avcodec_find_decoder_t avcodec_find_decoder; ++# if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(53, 8, 0) ++ avcodec_open2_t avcodec_open2; ++# else + avcodec_open_t avcodec_open; ++# endif + avcodec_alloc_frame_t avcodec_alloc_frame; + av_seek_frame_t av_seek_frame; + avpicture_get_size_t avpicture_get_size; + av_malloc_t av_malloc; + avpicture_fill_t avpicture_fill; + av_read_frame_t av_read_frame; ++# if LIBAVCODEC_VERSION_INT >= AV_VERSION_INT(52, 23, 0) ++ avcodec_decode_video2_t avcodec_decode_video2; ++# else + avcodec_decode_video_t avcodec_decode_video; ++# endif + img_convert_t img_convert; + av_free_t av_free; + avcodec_close_t avcodec_close; ++# if LIBAVFORMAT_VERSION_INT >= AV_VERSION_INT(53, 17, 0) ++ avformat_close_input_t avformat_close_input; ++# else + av_close_input_file_t av_close_input_file; ++# endif + av_rescale_q_t av_rescale_q; + av_gettime_t av_gettime; + avcodec_flush_buffers_t avcodec_flush_buffers; +@@ -103,6 +144,7 @@ + #endif + void *CodecHandle; + void *FormatHandle; ++ void *UtilHandle; + void *SwscaleHandle; + int glibref; + diff --git a/app-cdr/backlite/files/backlite-1.0.3-includepaths.patch b/app-cdr/backlite/files/backlite-1.0.3-includepaths.patch new file mode 100644 index 000000000000..bd9cdba6ffe3 --- /dev/null +++ b/app-cdr/backlite/files/backlite-1.0.3-includepaths.patch @@ -0,0 +1,89 @@ +libavutil/time.h in recent ffmpeg versions pollute the includes. +include libav* headers correcly. + +Index: backlite-1.0.3/backlite.pro +=================================================================== +--- backlite-1.0.3.orig/backlite.pro ++++ backlite-1.0.3/backlite.pro +@@ -383,39 +383,31 @@ for(a, INCLOC ) { + exists($$a/ffmpeg/libavcodec) { + message(found $$a/ffmpeg!) + INCLUDEPATH += $$a/ffmpeg +- INCLUDEPATH += $$a/ffmpeg/libavcodec + } + exists($$a/ffmpeg/libavformat) { + message(found $$a/ffmpeg!) + INCLUDEPATH += $$a/ffmpeg +- INCLUDEPATH += $$a/ffmpeg/libavformat + } + exists($$a/ffmpeg/libavutil) { + message(found $$a/ffmpeg!) + INCLUDEPATH += $$a/ffmpeg +- INCLUDEPATH += $$a/ffmpeg/libavutil + } + exists($$a/ffmpeg/libswscale) { + message(found $$a/ffmpeg!) + INCLUDEPATH += $$a/ffmpeg +- INCLUDEPATH += $$a/ffmpeg/libswscale + DEFINES += HAVE_SWSCALE + } + exists($$a/libavcodec) { + message(found $$a/libavcodec!) +- INCLUDEPATH += $$a/libavcodec + } + exists($$a/libavformat) { + message(found $$a/libavformat!) +- INCLUDEPATH += $$a/libavformat + } + exists($$a/libavutil) { + message(found $$a/libavutil!) +- INCLUDEPATH += $$a/libavutil + } + exists($$a/libswscale) { + message(found $$a/libswscale!) +- INCLUDEPATH += $$a/libswscale + DEFINES += HAVE_SWSCALE + } + } +Index: backlite-1.0.3/src/import/k9avidecode.cpp +=================================================================== +--- backlite-1.0.3.orig/src/import/k9avidecode.cpp ++++ backlite-1.0.3/src/import/k9avidecode.cpp +@@ -10,14 +10,14 @@ + // + // + #include "k9avidecode.h" +-#include <avcodec.h> ++#include <libavcodec/avcodec.h> + #include <qimage.h> + #include <dlfcn.h> + #include "k9common.h" + + #ifdef HAVE_SWSCALE + +-#include "swscale.h" ++#include <libswscale/swscale.h> + + static int sws_flags = SWS_BICUBIC; + +Index: backlite-1.0.3/src/import/k9avidecode.h +=================================================================== +--- backlite-1.0.3.orig/src/import/k9avidecode.h ++++ backlite-1.0.3/src/import/k9avidecode.h +@@ -14,13 +14,13 @@ + + #include "k9common.h" + #include <qobject.h> +-#include <avformat.h> +-#include <avutil.h> ++#include <libavformat/avformat.h> ++#include <libavutil/avutil.h> + #include <qimage.h> + #include <cstdlib> + #include <QObject> + #ifdef HAVE_SWSCALE +-#include <swscale.h> ++#include <libswscale/swscale.h> + #endif + /** + @author Jean-Michel PETIT <k9copy@free.fr> |