LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 07-20-2005, 09:12 AM   #1
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Rep: Reputation: 90
divxcalc - automake version error


I'm trying to install divxcalc, a tool to calculate bitrate for ripping of DVD to mpeg4. But I get the following error:
Code:
bash-3.00$ make -f Makefile.dist 
This Makefile is only for the CVS repository
This will be deleted before making the distribution

*** YOU'RE USING automake (GNU automake) 1.9.5.
*** KDE requires automake 1.5
make[1]: *** [cvs] Error 1
make: *** [all] Error 2
bash-3.00$
Does this really mean I should downgrade automake??? Or is there another way around?

I don't have KDE installed, except for (most of?) the libraries.

Cheers, Leon.
 
Old 07-20-2005, 11:08 AM   #2
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,569

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
From the source, this is how the bitrate is computed :
Code:
bitrate = (((cdlength*1024*8)/1000)*1024)-(mp3bitrate*dvdmovielength*60))/(dvdmovielength*60)*numbercds) ));
So in a bash script that could be :
Code:
#!/bin/bash

echo -n 'Enter the CD length in MB [700] : '
read cdlength

[ -z $cdlength ] && cdlength=700

echo
echo -n 'Enter the mp3 bitrate in kbps [96] : '
read mp3bitrate

[ -z $mp3bitrate ] && mp3bitrate=96

echo
echo -n 'Enter the movie length in minutes [100] : '
read dvdmovielength

[ -z $dvdmovielength ] && dvdmovielength=100

echo
echo -n 'Enter the number of CD [1] : '
read numbercds

[ -z $numbercds ] && numbercds=1

# too much (()) from the divxcalc sources, I split the 
# whole operation to make thing clear ;)

bitrate=$(
cat <<END | bc
a = (($cdlength * 1024 * 8) / 1000)*1024
a = a - ($mp3bitrate * $dvdmovielength * 60)
a = a / (($dvdmovielength * 60) / $numbercds)
print a
END
)

# done
echo "computed bitrate: $bitrate"
While tested it, I replaced * cdnumbers with / cdnumbers
at the end of the operation, that seems more logical to me
 
Old 07-21-2005, 03:29 AM   #3
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Solved!

Thanks Keefaz! Good to know the actual calculation.

I solved the problem (thanks to Ralph Slooten, author of divxcalc) by editing the divxcalc-0.6/admin/cvs.sh script.

Change
Code:
  automake*1.4* | automake*1.5* | automake*1.5-* | automake*1.6.* | automake*1.7* ) : ;;
to
Code:
  automake*1.4* | automake*1.5* | automake*1.5-* | automake*1.6.* | automake*1.7* | automake*1.9* ) : ;;
to allow newer versions of automake.

Cheers, Leon.

Last edited by BroX; 07-21-2005 at 03:30 AM.
 
Old 07-21-2005, 07:32 AM   #4
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,569

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
I have a question, is the computed bitrate accurate ?
Even if you put more than 1 CDs in the corresponding field ?

I ask you that because with the original calculation, I found the
result wrong so I modified it
 
Old 07-21-2005, 07:39 AM   #5
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Quote:
Originally posted by keefaz
I have a question, is the computed bitrate accurate ?
Even if you put more than 1 CDs in the corresponding field ?
I ask you that because with the original calculation, I found the
result wrong so I modified it
So far I have only used the bitrate calculator once, and then it gave a pretty exact calculation. I have not tested it with more than 1 CD. I'll keep you posted as soon as I have tested it more extensively.

Cheers, Leon.
 
Old 07-21-2005, 07:46 AM   #6
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,569

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
nm I just tested it and it is ok.. This is weird as I changed the
last part of the calculation : (dvdmovielength*60)*numbercds)
to : (dvdmovielength*60) / numbercds)

And the script I posted and divxcalc report the same bitrate
 
Old 07-21-2005, 08:25 AM   #7
BroX
Member
 
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833

Original Poster
Rep: Reputation: 90
Both scripts yield the same result, because of the use of the brackets in the calculation.
So,
Code:
(((((cdlength*1024*8)/1000)*1024)-(mp3bitrate*dvdmovielength*60))/(dvdmovielength*60)*numbercds)
is the same as your
Code:
a = a / (($dvdmovielength * 60) / $numbercds)
Cheers, Leon.
 
Old 07-21-2005, 09:00 AM   #8
keefaz
LQ Guru
 
Registered: Mar 2004
Distribution: Slackware
Posts: 6,569

Rep: Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875Reputation: 875
I get it

/me feel stupid
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Automake installAutoconf error p4inkill4 Linux - Newbie 0 10-10-2005 10:54 AM
Automake: make check error _InTeNsDoWn_ Linux From Scratch 1 08-08-2005 01:56 AM
automake version problem davidsrsb Slackware 1 02-23-2005 11:09 PM
Scribus installation problem, sez I need automake 1.6 when automake 1.9 is istalled Rockgod2099 Linux - Software 13 11-14-2004 07:37 PM
automake error/make doesn't work anymore deadlove75 Linux - Software 0 06-22-2004 07:03 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:18 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration