Slackware This Forum is for the discussion of Slackware Linux.
|
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
07-20-2005, 09:12 AM
|
#1
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833
Rep:
|
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.
|
|
|
07-20-2005, 11:08 AM
|
#2
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,569
|
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
|
|
|
07-21-2005, 03:29 AM
|
#3
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833
Original Poster
Rep:
|
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.
|
|
|
07-21-2005, 07:32 AM
|
#4
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,569
|
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
|
|
|
07-21-2005, 07:39 AM
|
#5
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833
Original Poster
Rep:
|
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.
|
|
|
07-21-2005, 07:46 AM
|
#6
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,569
|
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
|
|
|
07-21-2005, 08:25 AM
|
#7
|
Member
Registered: Oct 2003
Location: Sweden
Distribution: Slackware64-current, SlackwareARM-15.0
Posts: 833
Original Poster
Rep:
|
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.
|
|
|
07-21-2005, 09:00 AM
|
#8
|
LQ Guru
Registered: Mar 2004
Distribution: Slackware
Posts: 6,569
|
I get it
/me feel stupid
|
|
|
All times are GMT -5. The time now is 03:18 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|