Page 1 of 1

Tool to get audio and video bitrates on linux,...

Posted: Wed Feb 09, 2005 3:15 pm
by nich
...is there any?

mkvinfo gives me the codec, height, width, etc. Can't find length (not really a problem, just starting mplayer gives me that) nor bitrates, though.

At least, is there a good way to calculate bitrates from the info mkvinfo provides?

Posted: Wed Feb 09, 2005 3:41 pm
by rowaasr13

Posted: Wed Feb 09, 2005 4:14 pm
by nich
Wow! Thx! Good tool for avi.

For mkv, though, it still fails at getting me some information about bitrates. :(

Code: Select all

$ avinfo Oruchuban_Ebichu_-_01.avi
Oruchuban_Ebichu_-_01.avi, 148Mb
video: 512x384 00:21:08 23.97fps DivX3 848Kbps
audio: 44KHz  00:21:08 Stereo 127Kbps mp3
against

Code: Select all

$ avinfo gunslinger.girl.11.xvid.anime_fin.mkv
gunslinger.girl.11.xvid.anime_fin.mkv, 233Mb
video: und 839x472 00:23:10 23.97fps DivX
audio: jpn 48KHz  00:23:10 Stereo  A_VORBIS
subs: eng(S_TEXT/SSA) + eng(S_TEXT/UTF8)
:/

Any ideas?

Posted: Wed Feb 09, 2005 4:53 pm
by rowaasr13
Hm, not right now. Author promised he will add this in future, though.

Posted: Wed Feb 09, 2005 5:02 pm
by hhaamu
mplayer can display the nominal bitrate for vorbis with the -identify switch, and the same for most CBR audio streams, but cannot show the video bitrate.
[snip lots of subtitle streams]
ID_FILENAME="mewmew-vorbis-ssa.mkv"
ID_VIDEO_FORMAT=XVID // mind you, this is just the 4CC value, so usually not to be relied on
ID_VIDEO_BITRATE=0
ID_VIDEO_WIDTH=640
ID_VIDEO_HEIGHT=480
ID_VIDEO_FPS=23,976
ID_VIDEO_ASPECT=0,0000
ID_AUDIO_CODEC=vorbis
ID_AUDIO_FORMAT=65534
ID_AUDIO_BITRATE=112000
ID_AUDIO_RATE=48000
ID_AUDIO_NCH=2
ID_LENGTH=58

Posted: Thu Feb 10, 2005 1:49 pm
by George Shuklin
nich wrote:Wow! Thx! Good tool for avi.

For mkv, though, it still fails at getting me some information about bitrates. :(
Any ideas?
Sorry, It is my lazziness. Currently AVInfo do not read a MKV index, so, couldn't calculate a length/bitrate.

Long and forgotten todo. -_-

Posted: Fri Feb 11, 2005 2:43 am
by nich
Uh?

You're the dev?

(Sorry. I can't read a thing in Russian - or, for that matter, anything that's not in either English or Portuguese.)

I'll be waiting for your next version, then. ^^;

Btw, thx for the tool! Image

[Edit]Baka me! You're name's in the program itself! :roll: