-
Notifications
You must be signed in to change notification settings - Fork 81
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
H.264 framerate #72
Comments
Agent comment from Luce Luo in Zendesk ticket #46055: Thank you for contacting DJI. Thanks, Luce Luo |
I know, that's why I'm taking the H.264 as it comes from the drone and wrap it with the RTP/RTSP stuff, providing my own RTSP server on the Android device. However, I can't get more than 20 fps on the reception side for 1280 x 720. How can you be sure, your source delivers 30 fps? |
Agent comment from Luce Luo in Zendesk ticket #46055: Thank you for contacting DJI. Thanks, Luce Luo |
This seems to be happening here. But unfortunately I'm completely unable to make it send with 30 fps. Isn't there any trick, any setting, any API to achieve this? |
Agent comment from Luce Luo in Zendesk ticket #46055: Thank you for contacting DJI. Thanks, Luce Luo |
You mean the H.264 comes from the camera? Doubt that TBH |
Agent comment from Luce Luo in Zendesk ticket #46055: Thank you for contacting DJI. Thanks, Luce Luo |
I was not necessarily after an API, I was after a confirmation, that 20 fps is ok.. Look, this is my theory: You are getting the video as plain YUV or RGB uncompressed from the drone via your wireless channel. Then the SDK utilizes the H.264 encoding caps of the underlaying Android system and encodes (and decodes again via the yuv callback) the frames. In this scenario I would understand if the framerate is 20 fps and lower at 1280x720, since I also cannot achieve more with my means here. But this would at least give the chance to see > 30fps on other, more capable devices (!?) |
Agent comment from Luce Luo in Zendesk ticket #46055: Thank you for contacting DJI. Thanks, Luce Luo |
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: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:
I suppose this is somehow depending on the hosting Android device, isn't it?
The text was updated successfully, but these errors were encountered: