Chatwalker
21st August 2002, 08:29
Hi all
I need to count all I,P and B Frames in a VOB. To do this, i scan each block of the VOB with videocontent for Picture-Start-Codes. Then i get the Frametype from the Pictureheader. This works but still some frames were not found.
Another method i tried, was to scan the blocks for Coding-Extensions and count up if the 'Picture-Structure' = 3(Frame). This works but also frames were missing (not the same as above).
I worked out, that B and P-Frames not always contain both a 'Picture-Start-Code' and 'Coding-Extensions'. One of them is always there. So what can i do to count without counting twice, especially when a block contain more than one frame?
Thanks
Chatwalker
I need to count all I,P and B Frames in a VOB. To do this, i scan each block of the VOB with videocontent for Picture-Start-Codes. Then i get the Frametype from the Pictureheader. This works but still some frames were not found.
Another method i tried, was to scan the blocks for Coding-Extensions and count up if the 'Picture-Structure' = 3(Frame). This works but also frames were missing (not the same as above).
I worked out, that B and P-Frames not always contain both a 'Picture-Start-Code' and 'Coding-Extensions'. One of them is always there. So what can i do to count without counting twice, especially when a block contain more than one frame?
Thanks
Chatwalker