Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 11th March 2011, 03:36   #1  |  Link
dtv_user
Registered User
 
Join Date: May 2004
Posts: 26
Question about m2ts h264 files

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

Last edited by dtv_user; 11th March 2011 at 03:43.
dtv_user is offline   Reply With Quote
Old 11th March 2011, 06:28   #2  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 713
The tp_extra_header is unrelated to PTS.
kieranrk is offline   Reply With Quote
Old 11th March 2011, 13:16   #3  |  Link
dtv_user
Registered User
 
Join Date: May 2004
Posts: 26
@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
dtv_user is offline   Reply With Quote
Old 11th March 2011, 16:24   #4  |  Link
kieranrk
Registered User
 
Join Date: Jun 2009
Location: London, United Kingdom
Posts: 713
What you are trying to do is not possible.
kieranrk is offline   Reply With Quote
Old 11th March 2011, 23:40   #5  |  Link
drmpeg
Registered User
 
Join Date: Jan 2003
Location: Silicon Valley
Posts: 458
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
__________________
HD MPEG-2 Test Patterns http://www.w6rz.net
drmpeg is offline   Reply With Quote
Old 12th March 2011, 12:33   #6  |  Link
dtv_user
Registered User
 
Join Date: May 2004
Posts: 26
@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

Last edited by dtv_user; 12th March 2011 at 21:29. Reason: Spelling error
dtv_user is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 18:18.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2018, vBulletin Solutions Inc.