Skip to content
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

Decoding latency and FPV_VR_OS #43

Open
Consti10 opened this issue May 17, 2021 · 7 comments
Open

Decoding latency and FPV_VR_OS #43

Consti10 opened this issue May 17, 2021 · 7 comments

Comments

@Consti10
Copy link

Hello,
I find this project really interesting as a developer,since I have an OS android app for digital fpv / vr link

I also have a repo that compares the decoding time for different streams on different smartphone HW (there can be a lot of differences,see
google/ExoPlayer#8514

I am wondering if you could create a .h264 recording of the "raw data you get via usb" so I can analyze it and perhaps provide a bit of details if and how you can decode the stream with low latency on android.
( I personally don't have a dji fpv system).

Greetings,
Constantin

@Consti10 Consti10 changed the title Decoding latency Decoding latency and FPV_VR_OS May 17, 2021
@d4rken
Copy link

d4rken commented May 17, 2021

@Consti10 Here is a file with the raw output:

out.bin
https://drive.google.com/file/d/1_gt9cQFMU_Hm5gc_MX2HBjzM2-5uSsd0/view

@jlucidar
Copy link
Member

@Consti10 sure ! any helps is really appreciate on this. We are struggling a bit with issue #16 , so feel free to contribute as much as you want :p

@Consti10
Copy link
Author

The test file you sent me just plays completely fine in LiveVideo10ms:

@Consti10
Copy link
Author

Screenshot_20210519-153227

@Consti10
Copy link
Author

I haven't tested it on more devices yet, but for me, nothing looks special/uncommon with it.
Are you sure you are configuring the decoder correctly ?
LiveVideo10ms is available as a module & easy to implement.
https://github.com/Consti10/LiveVideo10ms

@Consti10
Copy link
Author

Test device: Pixel 3.

@Consti10
Copy link
Author

If you want to use the repo (shamelessly promiting my own sw here):
https://github.com/Consti10/LiveVideo10ms/blob/master/VideoCore/src/main/java/constantin/video/core/player/VideoPlayer.java#L181

and use VIDEO_DATA_TYPE::RAW_h264 ( that is confusing, for reference: I added support for the dji spark, which needs special h264 parsin (VIDEO_DATA_TYPE::DJI).
https://github.com/Consti10/LiveVideo10ms/blob/1e6f7c3e3991cacceb9f8d0db3f03d6d6a854eb1/VideoCore/src/main/cpp/VideoPlayer/VideoPlayer.cpp#L278

but the test file you've sent me doesn't need special parsing (it doesn't slice frames).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants