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

Latency #60

Open
spyhunter99 opened this issue Mar 14, 2016 · 7 comments
Open

Latency #60

spyhunter99 opened this issue Mar 14, 2016 · 7 comments
Labels

Comments

@spyhunter99
Copy link

After some fiddling, i was able to get the sample apps to fire up. I'm seeing about a 2 second latency between devices. Do you have any tips for reducing the latency? The video itself is quite smooth.

Apparently kindle fire's have issues with 640x480 video (on the transmission side)

great work by the way!

@adamantivm
Copy link
Member

Hi @spyhunter99 thank you for your kind words!

Did you try to change the window type to min-delay? see #59

Otherwise maybe play a little bit with the window size? Optimum values may vary a lot for particular video configurations.

I'd suggest using logging to try to understand what's going on, it's hard to say from such a high level.

I know the optimal video codec configuration details change greatly from device to device since it depends on which particular hardware codec is present in that device.
It would be nice if you could share some details on which particular configuration worked for you on which particular devices. We may be able to collect and share that kind of information to help future users.

@spyhunter99
Copy link
Author

took me a while to figure out where to set this. for future users, it's on the decode (receiving video) side, assets, configuration file. i'll play around with it when i have more time

@spyhunter99
Copy link
Author

galaxy s5 on the transmit side at 640x480, fps15,30
5th gen kindle fire, negative on transmit at 320x200 ,640x480, even though it's in the supported video sizes. No problem receiving video though

@spyhunter99
Copy link
Author

And I'm still seeing a ~2 second lag time

@adamantivm
Copy link
Member

@spyhunter99 did you try to compare transmitting from a desktop computer? At least that will let you isolate where the lag is coming from.
Did you try with the min-delay configuration? Did that make any difference?
Any kind of logging you can provide on a gist may help shed some light on the matter.

@spyhunter99
Copy link
Author

i've only been looking at this project, is there a project for desktop too? 2sec lag is with this

# General decoder configuration values
DEBUGGING=true
USE_NIO=true
RECEIVE_BUFFER_SIZE_BYTES=50000
# Has to be one of: 'time-window' or 'min-delay'
BUFFER_TYPE=min-delay
# Maximum delay in milliseconds for the min-delay buffer
NODELAY_TIMEOUT=500
# Window size in milliseconds for the time-window buffer
FRAMES_WINDOW_TIME=1000

edit, i'll give the desktop sample a shot

edit again, what desktop sample?

@adamantivm
Copy link
Member

@spyhunter99 if you look in the readme, there is a small section on how to stream using FFmpeg. That is, for the sender part.
Note that this project is only about the receiving end, the sending part is provided by another library. We just listed it here for completeness and to try to aid people on assembling the whole thing together.

Those settings look reasonable to me. Did you look in the logcat of the receiver to see if there is any information that can help clarify what is going on? Could you post that output?

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

No branches or pull requests

2 participants