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. |
12th December 2004, 12:07 | #1 | Link |
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 |
13th December 2004, 02:09 | #4 | Link |
yakisoooobaaa!!
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 |
14th December 2004, 10:20 | #6 | Link | |
Registered User
Join Date: Dec 2001
Posts: 14
|
Quote:
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 |
|
14th December 2004, 10:40 | #7 | Link |
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 |
14th December 2004, 22:50 | #8 | Link |
yakisoooobaaa!!
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... |
23rd December 2004, 12:59 | #9 | Link |
Theora and Mkv fan! :)
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! |
24th December 2004, 00:07 | #10 | Link |
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! |
24th December 2004, 02:55 | #11 | Link |
yakisoooobaaa!!
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. |
24th December 2004, 03:26 | #12 | Link |
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! |
2nd February 2005, 01:06 | #13 | Link |
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. |
Thread Tools | Search this Thread |
Display Modes | |
|
|