[FFmpeg-devel] Timestamp information in H.264 files

Колесников Антон prolegomini
Thu Aug 23 11:24:29 CEST 2007


Hello,

I'm experiencing a problem with H.264 files. I need to get timestamp information from them, but unfortunately I can't and I am not even sure that there is any information about time if H264-file at all.

As far as I understand every frame in a file contains a header.
Look at theese for example.

300 - frame

01 00 00 00 2c 11 00 00 fc 04 00 00 00 10 00 00    ....,...?.......
01 10 00 00 60 01 20 01 01 10 00 00 19 10 00 00    ....`. .........
00 00 00 00 00 00 00 00 00 00 00 00 12 b7 2c 1e    ............. ,.
03 10 02 00 28 00 00 00 02 00 00 00 12 02 00 00    ....(...........
64 0b 00 00                                        d...            

301 - frame

01 00 00 00 2d 11 00 00 fb 04 00 00 01 10 00 00    ....-...?.......
02 10 00 00 60 01 20 01 07 10 00 00 19 10 00 00    ....`. .........
00 00 00 00 00 00 00 00 00 00 00 00 12 b7 2c 1e    ............. ,.
01 10 02 00 28 00 00 00 02 00 00 00 12 02 00 00    ....(...........
50 00 00 00 

302 - frame
01 00 00 00 2d 11 00 00 00 05 00 00 01 10 00 00    ....-...........
02 10 00 00 60 01 20 01 07 10 00 00 19 10 00 00    ....`. .........
00 00 00 00 00 00 00 00 00 00 00 00 13 b7 2c 1e    ............. ,.
01 10 00 00 63 00 00 00 02 00 00 00 12 02 00 00    ....c...........
50 00 00 00                                        P...            

303 - frame
01 00 00 00 2d 11 00 00 fe 04 00 00 00 10 00 00    ....-...?.......
03 10 00 00 60 01 20 01 05 10 00 00 19 10 00 00    ....`. .........
00 00 00 00 00 00 00 00 00 00 00 00 13 b7 2c 1e    ............. ,.
04 10 00 00 63 00 00 00 02 00 00 00 12 02 00 00    ....c...........
a4 01 00                                            ..             

I would really appreciate it if you could tell me at least if the information about time is here or not.

Thank you,
Anton Kolesnikov




More information about the ffmpeg-devel mailing list