Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > General > Linux, Mac OS X, & Co

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th December 2004, 12:07   #1  |  Link
axeld
Registered User
 
Join Date: Dec 2001
Posts: 14
Tools for encoding AVI in linux

Hi!
I need 2 tools:
-xvid/divx bitrate calculator (this one built in avidemux is not enough for me, because I need to set length of my movie in MB)
-tool like razor lame gui in windows (for encoding wav --> mp3lame)

thanks in advance for suggestions.
adam
axeld is offline   Reply With Quote
Old 12th December 2004, 12:33   #2  |  Link
mean
Registered User
 
Join Date: Jan 2002
Posts: 206
The built in calc also gives you the corresponding average bitrate

--edit typo
mean is offline   Reply With Quote
Old 12th December 2004, 20:50   #3  |  Link
axeld
Registered User
 
Join Date: Dec 2001
Posts: 14
I think you didn't understand me.
In this build in calc is Target Medium and I can only choose:
1 x 74 cd
2 x 74 cd
1 x 80 cd
2 x 80 cd
DVD5
but I can not choose for example 350 MB - and this is my problem.

adam
axeld is offline   Reply With Quote
Old 13th December 2004, 02:09   #4  |  Link
mikeX
yakisoooobaaa!!
 
mikeX's Avatar
 
Join Date: Sep 2003
Location: Greece
Posts: 329
i've made a really simple command line bitrate calculator since transcode only takes a bitrate parameter, and i think it works correctly:
bitcalc.c

to use it:
gcc bitcalc.c -o bitcalc

and then optionally as root:
cp bitcalc /usr/local/bin/

run
bitcalc -h
for usage info
mikeX is offline   Reply With Quote
Old 13th December 2004, 08:13   #5  |  Link
mean
Registered User
 
Join Date: Jan 2002
Posts: 206
ok, you are right, i did not get you.
mean is offline   Reply With Quote
Old 14th December 2004, 10:20   #6  |  Link
axeld
Registered User
 
Join Date: Dec 2001
Posts: 14
Quote:
Originally posted by mikeX
i've made a really simple command line bitrate calculator since transcode only takes a bitrate parameter, and i think it works correctly:
it works fine!
thank you very much!

but I have some suggestion for you: meybe you can write also gui for this bitcalc and made it as regular linux application, because there isn't any bitcalc on linux at the moment.

and also you can add another option:

-a audio track clip's audio track in kbps [default: 128]

greets
adam
axeld is offline   Reply With Quote
Old 14th December 2004, 10:40   #7  |  Link
axeld
Registered User
 
Join Date: Dec 2001
Posts: 14
And what about lame gui application for linux? is there any?
look - I use this one in windows and I'm looking for similar on linux:
http://proton.dmkhost.com/~roznica/inne/razorlame.gif


and again for mikeX - if you are thinking about bitcalc-gui - look at the link - I use this one in windows and I think it's quite enough:

http://proton.dmkhost.com/~roznica/inne/gurucalc.gif

adam
axeld is offline   Reply With Quote
Old 14th December 2004, 22:50   #8  |  Link
mikeX
yakisoooobaaa!!
 
mikeX's Avatar
 
Join Date: Sep 2003
Location: Greece
Posts: 329
well the reason i didn't add an extra option for audio is cause you can calculate the audio separately, e.g. bitcalc -d duration -b 128, and then subract that size from your desired overall size (it's not that hard since size output is in MBs), + i didn't have much use for it, since i usually resample my audio @32KHz and encode vorbis @0 quality, so I can't really predict the size (mostly because of the resampling and cause vorbis is VBR)... so my encoding chain is usually like this:
rip & encode audio, subtract resulting size from desired total, and run bitcalc -d duration -s desired_size to calculate bitrate...

as for a GUI, i really don't have enough programming skills for something like that yet...
i may experiment a bit on using Glade in the near feature, so i guess something could come up...
mikeX is offline   Reply With Quote
Old 23rd December 2004, 12:59   #9  |  Link
DaveQB
Theora and Mkv fan! :)
 
DaveQB's Avatar
 
Join Date: Jun 2002
Location: Sydney
Posts: 347
Thanx alot for the bitrate calculator mikeX
__________________
Can't we all just get along?

Opty 146 @ 2.5Ghz || nForce3 ||1x330 + 3x120gig || CX23881 Capture Card
OCAU || My blog

Proud to be an Aussie!
DaveQB is offline   Reply With Quote
Old 24th December 2004, 00:07   #10  |  Link
shevegen
Registered User
 
Join Date: Nov 2003
Posts: 420
wouldnt be a simple TCL/TK script enough ?
wish foo.tcl will start it, then you can use the
system() setting to do the stuff you would normally
use via a shell for example

i personally think there are better GUIs out there (better looking
and some stuff is better solved codewise, but i didnt
check it out thoroughly) but TCL
is very easy IMO, and the IRC folks always help out quickly (but then again maybe they are all nice, freenode rules as well )
__________________
OS: Paldo (Linux)
AviSynth for Linux, go go go!
shevegen is offline   Reply With Quote
Old 24th December 2004, 02:55   #11  |  Link
mikeX
yakisoooobaaa!!
 
mikeX's Avatar
 
Join Date: Sep 2003
Location: Greece
Posts: 329
yes, a simple script is enough to do the necessary calculations, i wrote bitcalc in C cause:
- I don't know any scripting languages,
- I wanted to play around with C & command line arguments : P

Indeed TCL/TK should suffice for a simple program such as a bitrate calc.
mikeX is offline   Reply With Quote
Old 24th December 2004, 03:26   #12  |  Link
shevegen
Registered User
 
Join Date: Nov 2003
Posts: 420
simple is powerful
and useful
not what some other applications suffer... feature overbloat :P


i try to help with a GUI, just cant do much at the moment
(busy end of the year)

oh and merry x-mas by the way to the linux guys

and everyone else of course too
__________________
OS: Paldo (Linux)
AviSynth for Linux, go go go!
shevegen is offline   Reply With Quote
Old 2nd February 2005, 01:06   #13  |  Link
nls
Registered User
 
Join Date: May 2003
Posts: 2
another simple bitrate calculator

Hi, this is my first post here in Doom9. At least I must say that this is a great forum; in a lot of cases, it proved to be a valuable and informative source, whenever I faced a difficulty on my journey on the land of vedeo encoding and related technologies

Let's start with a little bit of contribution then. I've taken a lil of my time to transfer the bitrate calc logic of XviD into a command line application, named brc, which I intend to use in automating some of my regular encoding tasks. It's simple, but in practice conveys all of the bitrate calculation functionality of the XviD VFW frontend. Yes, there are others, even in this thread (that's why I posted this here anyway), but it fits my current needs best and I thought it might be useful for others as well. Without too much words and docs (a bit lazy, yeah), at the bottom is the link to the archive containing the GPL source and a MinGW-precompiled Win32 binary.

As for usage docs, please start the app with no params, and see the parameter descriptions. The utility could be improved in many ways, prolly multiple audio/subtitle tracks being the most important ones. brc is free, but not of bugs. Please comment on it, if you intend to try. The source should compile on any platform capable of compiling 32-bit binaries using gcc, or any decent C compiler.

Edit: version update.

brc 0.12

Last edited by nls; 3rd February 2005 at 12:36.
nls is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:45.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.