Log in

View Full Version : How to parse bitrate info from AVC video?


iiiemuiii
16th January 2006, 20:49
I'm just wondering how can I find out the bitrate an AVC file was encoded at. I've been reading the forums, but have not found a solution to this. any help would be appreciated.

Mutant_Fruit
16th January 2006, 20:51
iirc at the start of the x264 file theres a section where the x264 encoder stores the commandline used to encode the video. I think its referred to as an "atom". Search the forum for that term to find out more. It should store the bitrate there.

here (http://forum.doom9.org/showthread.php?p=747491#post747491)

Doom9
16th January 2006, 21:07
but that's just for x264. Depending on the container, you can use a tool to extract the bitrate. Like gspot for AVI, mp4box for MP4 and I'm sure there's something for MKV as well.

iiiemuiii
16th January 2006, 21:08
hey mutant thanks for the link, but that's not exactly what i'm looking for. but i guess my original question wasn't too clear.

what i'm trying to do is: say i downloaded an AVC video, i have no idea what the video bitrate is and i want to find out. how do i go about doing that?

also what if a wasn't encoded with x264. is there a tool that can parse video info from x264 and other avc encodes?

EDIT: heheh doom replied before i did. so gspot would be able to parse avc avi's? so basicly i can extract the video stream from other containers and mux it into avi and run gspot on it?

EDIT2: muxing the AVC stream into avi then running Gspot worked great. thx for the hint doom :p

bond
16th January 2006, 21:53
EDIT: heheh doom replied before i did. so gspot would be able to parse avc avi's? so basicly i can extract the video stream from other containers and mux it into avi and run gspot on it?

EDIT2: muxing the AVC stream into avi then running Gspot worked great. thx for the hint doom :premuxing to avi is a pretty useless thing to do

doom9 already mentioned what you can use if your file is a .mp4, an alternative to mp4box is mp4info

iiiemuiii
16th January 2006, 22:24
i've only tried that on mkv containers so far. need to do some reading on mp4box for mp4s.

foxyshadis
17th January 2006, 00:41
For mkv you can use mkvverify. Great tool, very informative. For practically anything else you can also use Mediainfo to get a lot of stats.

Caroliano
17th January 2006, 03:24
You can also use the window's shell extension for Matroska.

iiiemuiii
17th January 2006, 19:51
mkvverify works great for .mkv. mp4box doesn't seem to like some characters in the file name, so i have to rename some files before running mp4box on them

bond
17th January 2006, 23:33
what characters?

iiiemuiii
18th January 2006, 20:13
i'm guess it's the "[", "]" or "-". most likely the dash tho. didn't bother confirming it :p