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. |
|
![]() |
|
Thread Tools | Search this Thread | Display Modes |
![]() |
#1 | Link |
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! ![]() |
![]() |
![]() |
![]() |
#2 | Link |
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 |
![]() |
![]() |
![]() |
Tags |
h.264 ext of frames, h.264/avc |
Thread Tools | Search this Thread |
Display Modes | |
|
|