PDA

View Full Version : Getting the frame count of an MPEG2 elementary video stream?


Matthew
6th August 2005, 10:25
Not sure this forum is the best fit...anyway...

I want to get the number of frames in an mpeg2 video stream - including "pulldowned frames" (meh, I ain't so good on terminology).

This is usually not a hard task, but I want to do it at the command-line, silently (and with a free app). bbvinfo.exe reports the number of "real" frames, so it's satisfactory only if I know the pulldown operations (if any) that have been performed on the video stream. But I don't know. So I require something else. DGIndex might have done the trick if it were silent, but it isn't.

Any ideas? Thanks.

neuron2
6th August 2005, 13:50
DGIndex might have done the trick if it were silent, but it isn't. Take the source code and make it silent.

Trahald
6th August 2005, 22:13
there is a quick application i made for d3s7 thats should be in the newest version of scenaid. its command line and fairly silent. (its all cli ) i'll check when i get home later since one version that comes with some versions of scenaid didnt handle field based encodes properly. im not sure if the newer version is included in the latest scenaid yet. the newest counts fields as 1/2s frames as wholes and pull down frames as 1 1/2. it requires faily decent source since it just uses the headers so could be prone to false positives for syncs (which wouldnt exist on clean elementary sources )

Trahald
7th August 2005, 03:21
yeah.. its on scenaid.com under 1702 EXE only (its a zip with the file 'framecounter.exe' and scenaid.exe)

Matthew
7th August 2005, 05:04
Take the source code and make it silent.

Perhaps I'm reading too much in, but that response appears to assume that my remark about DGIndex was a criticism...when it's nothing of the sort. The fact it's a lovely product (and you a lovely developer) doesn't necessarily mean it suits my specific purpose (something for which was presumably not designed). And unfortunately, if my anal retentive brain could forbear starting DGIndex minimized, I cannot figure out how to get anything other than the "real" frame count out of the d2v (my techniques are rather primitive - search and replace ;o).

Thanks a bunch for that Trahald, it seems to output some junk to the screen but that matters not, as I can make it silent using a simple launcher (just like besweet, for example).

I've decided I'd also like the resolution, fps, and AR. DGIndex provides those, so come to think of it maybe I'll start it minimised and then kill the process almost immediately, to get those details.

Trahald
7th August 2005, 06:16
No prob

neuron2
7th August 2005, 06:29
Perhaps I'm reading too much in, but that response appears to assume that my remark about DGIndex was a criticism. No, not at all! I've been criticised for my short, sometimes cryptic responses; this appears to be an egregious instance thereof. My apologies.

I just meant that if all the functionality you need is in DGindex, it ought not to be too hard to adapt it to your purposes.

Matthew
7th August 2005, 07:06
Ooops, sorry for jumping to conclusions, that's something I've been known to do sometimes (perhaps I should start wearing a dress) :)

I know virtually nothing about programming, so altering the source code is not on the cards. But I know how to start DGIndex minimised and kill it after it has dumped the resolution, fps, etc, so that will do for my purposes.