Skip to content

H.264 framerate #72

Open
Open
@neilyoung

Description

@neilyoung

Hi,

I'm having a question regarding the frame rate and format of the H.264 stream coming from the SDK via VideoFeeder.VideoDataListener(). From the SPS packets in the H.264 stream it looks like variable frame rate:

[trace_headers @ 0x7fc69d505200] 108         timing_info_present_flag                                    1 = 1
[trace_headers @ 0x7fc69d505200] 109         num_units_in_tick            00000000000000000000000000000001 = 1
[trace_headers @ 0x7fc69d505200] 141         time_scale                   00000000000000000000000000111100 = 60
[trace_headers @ 0x7fc69d505200] 173         fixed_frame_rate_flag                                       0 = 0

However, I can't get more out of it than 20 fps at 1280 x 720, forwarding the H.264 directly via RTP/RTSP. Any information?

EDIT: Also, following the formula given here:

https://stackoverflow.com/questions/12018535/get-the-width-height-of-the-video-from-h-264-nalu

the image width/height is always 1280x720, at least I have never seen something different with my drone, regardless of the settings on the controller:

[trace_headers @ 0x7fc69d505200] 47          pic_width_in_mbs_minus1                         0000001010000 = 79
[trace_headers @ 0x7fc69d505200] 60          pic_height_in_map_units_minus1                    00000101101 = 44
[trace_headers @ 0x7fc69d505200] 71          frame_mbs_only_flag                                         1 = 1
[trace_headers @ 0x7fc69d505200] 72          direct_8x8_inference_flag                                   1 = 1
[trace_headers @ 0x7fc69d505200] 73          frame_cropping_flag                                         0 = 0

I suppose this is somehow depending on the hosting Android device, isn't it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions