View Full Version : Tools for encoding AVI in linux
axeld
12th December 2004, 12:07
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
mean
12th December 2004, 12:33
The built in calc also gives you the corresponding average bitrate
--edit typo
axeld
12th December 2004, 20:50
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
mikeX
13th December 2004, 02:09
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 (http://users.ntua.gr/el01707/app/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
mean
13th December 2004, 08:13
ok, you are right, i did not get you.
axeld
14th December 2004, 10:20
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
14th December 2004, 10:40
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
mikeX
14th December 2004, 22:50
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...
DaveQB
23rd December 2004, 12:59
Thanx alot for the bitrate calculator mikeX :)
shevegen
24th December 2004, 00:07
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 ) :)
mikeX
24th December 2004, 02:55
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.
shevegen
24th December 2004, 03:26
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
nls
2nd February 2005, 01:06
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 (http://gigantic.ath.cx/video/brc_0.12.zip)
vBulletin® v3.8.11, Copyright ©2000-2025, vBulletin Solutions Inc.