The problem has been fixed to some extent, this is what i did:
This method is to specify PPS and SPS for different devices, we should set SPS、PPS according to the file
(THE full mpeg-4 file,not the raw stream ) we got earlier,as shown below,PPS and SPS is located behind avcC,(there's lot of information about SPS AND PPS ,so i am not going to tell the details, it's quite easy).
And it works .
Also thanks Oliver ,your suggestion is also helpful.
Hi Ray, I've recorder sample video using "DUMP_FILE" method which uses streaming format. By comparing those two and looking at the code you're right: it's expected that 3f3f3f3f will be nalLength in your case. I'm not familiar yet with those box types and so on, but I'll be looking at it soon. If it might be of any help for you my dump file is attached. Regards, Pawel
2B08F903@F62FF53D.7AC4C251 (7.59 KB)
290EFF05@F62FF53D.7AC4C251 (37.1 KB)