dvdrip-0.98.11-libav.patch 1.2 KB

123456789101112131415161718192021222324252627282930
  1. Description: Port from ffmpeg to avconv.
  2. Author: Dmitrijs Ledkovs <xnox@ubuntu.com>
  3. --- dvdrip-0.98.11.orig/lib/Video/DVDRip/Depend.pm
  4. +++ dvdrip-0.98.11/lib/Video/DVDRip/Depend.pm
  5. @@ -114,10 +114,10 @@ my %TOOLS = (
  6. },
  7. ffmpeg => {
  8. order => ++$ORDER,
  9. - command => "ffmpeg",
  10. + command => "avconv",
  11. comment => __ "FFmpeg video converter command line program",
  12. optional => 1,
  13. - version_cmd => "ffmpeg -version",
  14. + version_cmd => "avconv -version",
  15. get_version => sub {
  16. my ($cmd) = @_;
  17. qx[$cmd 2>&1] =~ /version ([^\s]+)/i;
  18. --- dvdrip-0.98.11.orig/lib/Video/DVDRip/Title.pm
  19. +++ dvdrip-0.98.11/lib/Video/DVDRip/Title.pm
  20. @@ -3184,7 +3184,7 @@ sub get_take_snapshot_command {
  21. . "tcdemux -s 0x80 -x mpeg2 -S $grab_options->{S} "
  22. . "-M 0 -d 0 -P /dev/null | "
  23. . "tcextract -t vob -a 0 -x mpeg2 -d 0 | "
  24. - . "ffmpeg -r $frame_rate -i - -an -r 1 -ss '$start' -vframes 1 snapshot%03d.png ";
  25. + . "avconv -r $frame_rate -i - -an -r 1 -ss '$start' -vframes 1 snapshot%03d.png ";
  26. $command .= " && "
  27. . "execflow convert"