summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPacho Ramos <pacho@gentoo.org>2015-10-27 19:53:07 +0100
committerPacho Ramos <pacho@gentoo.org>2015-10-27 19:53:07 +0100
commit3ab3271a94fe96c01203ddeef7d729059af8a08c (patch)
tree14cd14cf9bad4ba583ad89cc16a9df685207ab3e /media-video/dvdrip/files
parentsys-devel/llvm: fix compilation on armv5 (diff)
downloadgentoo-3ab3271a94fe96c01203ddeef7d729059af8a08c.tar.gz
gentoo-3ab3271a94fe96c01203ddeef7d729059af8a08c.tar.bz2
gentoo-3ab3271a94fe96c01203ddeef7d729059af8a08c.zip
media-video/dvdrip: Support libav too (#474346)
Package-Manager: portage-2.2.23
Diffstat (limited to 'media-video/dvdrip/files')
-rw-r--r--media-video/dvdrip/files/dvdrip-0.98.11-libav.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/media-video/dvdrip/files/dvdrip-0.98.11-libav.patch b/media-video/dvdrip/files/dvdrip-0.98.11-libav.patch
new file mode 100644
index 000000000000..a9d60e2338b1
--- /dev/null
+++ b/media-video/dvdrip/files/dvdrip-0.98.11-libav.patch
@@ -0,0 +1,29 @@
+Description: Port from ffmpeg to avconv.
+Author: Dmitrijs Ledkovs <xnox@ubuntu.com>
+
+--- dvdrip-0.98.11.orig/lib/Video/DVDRip/Depend.pm
++++ dvdrip-0.98.11/lib/Video/DVDRip/Depend.pm
+@@ -114,10 +114,10 @@ my %TOOLS = (
+ },
+ ffmpeg => {
+ order => ++$ORDER,
+- command => "ffmpeg",
++ command => "avconv",
+ comment => __ "FFmpeg video converter command line program",
+ optional => 1,
+- version_cmd => "ffmpeg -version",
++ version_cmd => "avconv -version",
+ get_version => sub {
+ my ($cmd) = @_;
+ qx[$cmd 2>&1] =~ /version ([^\s]+)/i;
+--- dvdrip-0.98.11.orig/lib/Video/DVDRip/Title.pm
++++ dvdrip-0.98.11/lib/Video/DVDRip/Title.pm
+@@ -3184,7 +3184,7 @@ sub get_take_snapshot_command {
+ . "tcdemux -s 0x80 -x mpeg2 -S $grab_options->{S} "
+ . "-M 0 -d 0 -P /dev/null | "
+ . "tcextract -t vob -a 0 -x mpeg2 -d 0 | "
+- . "ffmpeg -r $frame_rate -i - -an -r 1 -ss '$start' -vframes 1 snapshot%03d.png ";
++ . "avconv -r $frame_rate -i - -an -r 1 -ss '$start' -vframes 1 snapshot%03d.png ";
+
+ $command .= " && "
+ . "execflow convert"