View Full Version : Question about m2ts h264 files
dtv_user
11th March 2011, 03:36
Does anyone know if it is possible to get the time a frame is displayed using the 4 byte tp_extra_header on 192 byte packet size h264 m2ts files?
I would like to use this time from a IDR frame to put in tsmuxer for chapter marks.
I can get the timecode from pts but would like to use the tp_extra_header if possible.
Thanks in advance
Bob
kieranrk
11th March 2011, 06:28
The tp_extra_header is unrelated to PTS.
dtv_user
11th March 2011, 13:16
@kieranrk
Yes I know that but I was looking for a different way to find the timecode.
I think the tp_extra_header relates back to the PCR in the packet.
I don't know how to convert the PCR value to current display time.
I think you have to keep a running time from the first packet in the file up to the current packet.
Thanks for your reply.
Bob
kieranrk
11th March 2011, 16:24
What you are trying to do is not possible.
drmpeg
11th March 2011, 23:40
tp_extra_header is not very useful as a timecode since it only has 30 bits at 27 MHz. That is, it rolls over every 40 seconds.
rollover time = 1/27000000 * 2^30
Ron
dtv_user
12th March 2011, 12:33
@drmpeg
Thanks Ron for your input and knowledge. I have gained valuable knowledge from your programs and postings in the past.(Actually used some of your code from xport to build a index program for dvr files for my private use when I was using firewire playback.)
Let me explain what I was trying to find out.
I'm trying to find out if the tp_extra_header is used when seeking is done from the clpi file in bluray authored files.
I know the clpi file has a course and fine seek table but I don't know how they relate to the playback of the m2ts file.
Thanks again
Bob
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.