Log in

View Full Version : total number of frames in one mpeg file?


gurpreet1989
22nd February 2011, 09:57
hello

IS it possible to find total number of frames in one mpeg file And TOTAL Number of GOP in a mpeg file AND total number of frames in one GOP..........

pandy
22nd February 2011, 13:50
Yes, MPEG syntax description and Hex editor can help, but DGIndex is more user friendly

gurpreet1989
23rd February 2011, 09:11
i know hexeditor helps me but how i already open mpeg file in hexeditor also know many things bur i want to know about how to find number of gop in one mpeg and number of frames in one mpeg file

Blue_MiSfit
26th February 2011, 05:58
Please do not bring old dead threads back to life. I've taken the liberty of moving your posts.

gurpreet1989
3rd March 2011, 09:35
I don't wanna any s/w to find all these...........is there any bytes to show total number of frames and total number of gop in mpeg video file

hank315
8th March 2011, 01:16
No, there isn't such a byte, MPEG2 is a streaming protocol.
You can estimate the nr. of frames by looking at the running length (assuming the fps is constant in the file).
Also the nr. of frames per GOP may vary a lot.

The only way to know the exact nr. of GOPs and frames is to parse the whole file and count the GOP and frame headers.

gurpreet1989
8th March 2011, 07:34
Thanx hank315

for your reply............ok fine now please tell me is there any method to count number of slices in one picture frame and number of macroblock per picture............

if you have any documents for mpeg format please send me on gpsm1989@yahoo.com

if you have any corrupted mpeg video file please send me on my email

please reply soon