Open eomgerm opened 1 month ago
@asahtik could you please give this one a look?
Hi @eomgerm, in depthai an encoded frame message doesn't contain only a single NAL packet but contains many including SPS, PPS and slice packets, therefore you need to iterate over the packets in a message and extract the necessary data. You can refer to the methods in H26xParsers.cpp which find slice NAL units and extract the frame type (the NAL unit type that you're interested in is extracted in line 171).
Hello. I'm developing live streaming application using
OAK-1
Camera.To stream video I need to extract SPS, VPS from video data. I successfully retrieved H264 data by referring to this article. When I access to NAL Unit Type I only get value
9
and I think this is not a normal situation.However, like code below, I also saved the
.h264
file and when I hex dumped it all NAL Unit Types are normal. Is my code wrong?Please let me know how to extract SPS and VPS data using this library. Thanks
code I tried:
Output: