[ivtv-users] Finding out the length (in min) of saved encoder (MP2) file?

Johan Persson johanp at aditus.nu
Tue Feb 23 14:55:34 CET 2010


Since my knowledge of the details of the MP2 stream produced by a caputure card 
(+ ivtv) driver is rather vague so before I start to immerse myself in standards 
documents I was wondering if there is some "shortcut" to find out the overall 
length (in min or sec) for a saved MP2 file from the capture card without having 
to write a (semi-) complete MP2 decoder onseself? 

I'm thinking of using the libmpeg2 but before I start analysing the headers and 
example programs (there is no documentation) I thought I would ask.

It doesn't have ot be precise on the second; +/- 1 min accuracy is good enough 
for my purposes. 

/Johan




More information about the ivtv-users mailing list