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

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old 20th November 2015, 15:29   #1  |  Link
raj2569
Registered User
 
Join Date: Aug 2005
Posts: 18
Decoding H.264 in MPEG-2 transport streams

Hi,

I am writing a program to identify IDR frames in an H.264 in MPEG-2 transport stream. The source video is streamed by vlc (v2.2.0) with "RTP/MPEG Transport Stream" destination and H.264+MP3 (MP4) profile.

So far I am not able to find a resource which documents the packet format. I can see documentation about packet structure of H.264: NAL Units, but documentation about how they are contained in MPEG-TS container is not to be found.

I can see the TS headers starting with 0x47, but what comes next is a mystery. Any pointers is much appreciated.


Following is the raw dump of some of the packets I am seeing for reference:

Start of dump of packet 386
47004518 246D6246 D9639AB8 76C15270
1F7001F4 EE89F77A D529056A 1D6F6B47
2A9DCDBB 52C06C9A 362D435A FA28E400
6D64E5C5 020F8A25 3EB4D0BB 2C8E8269
B2B67D81 B4E1EBDF 2D0AB171 1EE6B73E
C17C6AE8 07DDD566 A0F5748F DA9AA472
8E46ABC9 73C22BE8 0E9DB7BB 1E326861
B3727009 B65700E1 2CB401F9 33A7277E
2774C958 EE19A561 913FBE92 BDA1E1C1
9B7183FC 129CC115 8FD6ACB5 AFDFF8F9
D9C1F74A D1E0BB65 1A67C9D3 B277B486
B3852A9C B3BC3367 BAC141C6 00000000
Start of dump of packet 387
47404415 000001C0 01A98080 052190E7
97E3FFFD 80044433 33322232 22222211
11249249 00000900 00000000 ABAAABB9
AAAAA6AE 1C739138 E4145565 9761959A
5D765761 86DC6DB7 1C71D71B 6DD7227D
F420E461 3564DC8D 5CCE2B71 2BE94EEB
B7E38DE8 91020292 CDB4DAD5 36CD33A2
77E2DD4A A2E17252 592072C0 A1FA3438
76870ECE CE5836AC 646B74EA 63B5DDA5
6379DAF6 2F2C7152 384DB9AD B9F533CD
D5374042 391AD528 ED7354A6 BAA178DA
10E04347 16DFA8ED 7AED2045 00000000
Start of dump of packet 388
47004519 3A98BBB1 56DE0C76 DF359974
3AD6C36E B5C92FE6 91FB9282 1C773F28
EFE4EB90 FD25A18F C28A81C7 01437068
AEAF6D9E 04F7BAC8 D228DB46 839A6A85
F16403F7 FF9B7E7A 0788B29C B72FE010
A79996E6 BE7C3893 517602B0 8D7A5378
4067D8E4 7C0BAC0E 2CD85D5F 05BE42F9
83381659 505E63F7 5739C3C4 BBD138E9
22DB602C 7DC82BA7 463D8171 A0311912
80B6EEC5 7F08DE97 ED158BA4 14D7C036
E9784122 2C297F09 5C5690E5 18694202
F62D5E89 7B99AE71 B2869145 00000000
Start of dump of packet 389
4700451A 2071EA49 3F285273 36CF3308
877BA784 45E5D173 4B2F52F7 697A0C6F
A72DFF3E C0A5986A C26B33FD 6C37656F
22F40C96 E369F566 34E284B7 C63376E8
26AA7840 47582682 C26F1A18 6D41C1F5
384AE189 D04C85FB 3FD1F2DC 38DECC2F
A025086A 6396A8B3 D63BED58 AB81A922
1C9102CE DD484BC2 86267476 562F7B34
E0A559D7 26A517B5 2F4D1700 4FDA8C55
28992B03 8CD43F93 F06C5E40 498C1931
31410C40 90497216 6FD7D172 93D32599
B01F0D61 CB98B500 997EFE12 00000000
Start of dump of packet 390
4700451B F60EF8B1 20FC5EC4 0C3B2071
C60362E1 DA4CFEFA 87ACB0D5 87A685C3
41FBE318 759B5256 0782FA1C 04EB47FB
C21D1BDB 1CBBDD6B 96FFE3EC 73CF7CD4
4E8D42FD 476AEB66 A8BA60EA E01AAFD2
2FC4686F D45E5477 6195ED33 46C0D2E5
2B469519 5AF4AED1 D377F5F6 3C1279BE
5CAA6FB4 CE33AC74 FE50253C 6FF1DCE2
8039B20E E7ED7D5F 138B4F3E 7A506E4C
8E075283 F9BBF801 96EC2F5F 56F560D5
8EE93BDF 492C351B 52F23525 BF753B6A
8DBEFA08 EDCBBC6B CD8E05F4 00000000
Start of dump of packet 391
4700453C 8600FFFF FFFFFFFF FFFFFFFF
FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
FFFFFFFF FFFFFFFF FFFFFFFF FFFFFFFF
FFFFFFFF FFFFFFFF FFFFFF2E 2D287D58
DC1829A7 A6196089 C59CC23A 29CDD44D
EBB4558F 3B070489 E9E65C7A 5C02F6AC
3E2BD107 ED6BAE24 3F924B20 00000000
Start of dump of packet 392
4740451D 000001E0 146A80C0 0A3190E7
D72F1190 E79C9700 00000109 E0000000
01419A33 49E10F26 53027FB0 F6E417BB
6BCB3929 2E359B04 5CB03DB6 4157981D
EBAEE340 A72CF089 81C653AD 4A191FC3
CE534FFD 7E3545F4 0512613F 1BE17DE0
DBA9648D B8D18DB6 22E5881F D904B78F
D3244E21 DC5D46A0 D2925288 4AF04550
F54AEFA3 E49F9CCA B4C34D1F 460CFFEA
D98BB2F0 19EF5D17 2B081543 AB16867E
1C968C7C 3C55156D F2135C80 1CD2B37B
4D5C40D1 4611341F 09C08504 00000000
raj2569 is offline   Reply With Quote
 

Tags
h.264, mpeg-ts

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 14:43.


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