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 9th February 2012, 15:54   #1  |  Link
zoeliu
Registered User
 
Join Date: Aug 2005
Posts: 2
How to extract IDR frames from H.264 elementary bitstream?

Here is what I did:

Given an H.264 elementary bitstream, use a parser to extract all the SPS/PPS/IDR nalus (judging from nal_unit_type 7/8/5), add starting code 0x00000001 at the beginning of each nalu, and write to a file.

The result however cannot be decoded correctly. What am I missing here? Great thanks!
zoeliu is offline   Reply With Quote
Old 10th February 2012, 08:22   #2  |  Link
Dust Signs
Registered User
 
Join Date: Jun 2004
Location: Salzburg, Austria
Posts: 220
The start code is 0x000001, not 0x00000001. I assume that this is the problem. However, two questions:
* What error do you get exactly when trying to decode the stream?
* Did you escape 0x000001 sequences within the NALUs to 0x00000001 (unlikely that they appear, but nonetheless possible)?

Best regards
Dust Signs
__________________
The number you dialed is imaginary. Please turn your phone by 90° and try again
Dust Signs is offline   Reply With Quote
Reply

Tags
h.264 ext of frames, h.264/avc

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 22:01.


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