2009.03.15 20:37
skype-rec and soxmix error - ERROR: Couldn't locate soxmix binary at 'soxmix'

Skype-rec (http://sourceforge.net/projects/skype-rec/) is a nice tool for recording skype conversations under linux. But when I tried to run it under Debian, I received an error: "ERROR: Couldn't locate soxmix binary at soxmix". As far as I understand the error is because there is no more soxmix tool - now you have to use "sox -m". Here is the patch which makes skype-rec work again:

*** skype-rec	2005-09-25 10:28:17.000000000 +0200
--- skype-rec.NEW	2009-03-16 04:27:55.000000000 +0100
***************
*** 67,81 ****
      print "ERROR: Couldn't locate sox binary at '$SOX'";
      exit 1;
  }
! unless (defined($SOXMIX)) {
!     print "ERROR: Missing configuration setting: \$SOXMIX\n";
!     exit 1;
! }
! `which $SOXMIX`;
! if ($? != 0) {
!     print "ERROR: Couldn't locate soxmix binary at '$SOXMIX'";
!     exit 1;
! }
  unless (defined($ENC_TYPE)) {
      print "ERROR: Missing configuration setting: \$ENC_TYPE\n";
      exit 1;
--- 67,81 ----
      print "ERROR: Couldn't locate sox binary at '$SOX'";
      exit 1;
  }
! #unless (defined($SOXMIX)) {
! #    print "ERROR: Missing configuration setting: \$SOXMIX\n";
! #    exit 1;
! #}
! #`which $SOXMIX`;
! #if ($? != 0) {
! #    print "ERROR: Couldn't locate soxmix binary at '$SOXMIX'";
! #    exit 1;
! #}
  unless (defined($ENC_TYPE)) {
      print "ERROR: Missing configuration setting: \$ENC_TYPE\n";
      exit 1;
***************
*** 256,262 ****
                  print "$pretty: Error converting $local to stereo\n";
                  next;
              }
!             system "$SOXMIX -v 1 $remote.TMP.au -v 1 $local.TMP.au -v 1 $conv_base.au >/dev/null 2>&1";
              if ($? != 0) {
                  print "$pretty: Error mixing $remote and $local into $conv_base.au\n";
                  next;
--- 256,262 ----
                  print "$pretty: Error converting $local to stereo\n";
                  next;
              }
!             system "$SOX -m -v 1 $remote.TMP.au -v 1 $local.TMP.au $conv_base.au >/dev/null 2>&1";
              if ($? != 0) {
                  print "$pretty: Error mixing $remote and $local into $conv_base.au\n";
                  next;
***************
*** 264,270 ****
              unlink "$remote.TMP.au", "$local.TMP.au" if ($CLEANUP_TEMP);
          }
          else {
!             system "$SOXMIX $remote $local $conv_base.au >/dev/null 2>&1";
              if ($? != 0) {
                  print "$pretty: Error mixing $remote and $local into $conv_base.au\n";
                  next;
--- 264,270 ----
              unlink "$remote.TMP.au", "$local.TMP.au" if ($CLEANUP_TEMP);
          }
          else {
!             system "$SOX -m $remote $local $conv_base.au >/dev/null 2>&1";
              if ($? != 0) {
                  print "$pretty: Error mixing $remote and $local into $conv_base.au\n";
                  next;



komentarze:

ksywa:

tu wpisz cyfrę cztery: (tu wpisz cyfrę cztery: (to takie zabezpieczenie antyspamowe))

komentarze wulgarne albo co mi się nie spodobają będę kasował


powrót na stronę główną

RSS