Is it possible to get gop struct from sps info? I need to know the num of b frames in a gop.
No, its not possible without parsing the entire stream as ever GOP can have a different number of b frames.