-
Notifications
You must be signed in to change notification settings - Fork 8.1k
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
Setting Buffer Size #13
Comments
|
#define DEFAULT_HIGH_WATER_MARK_IN_BYTES (8 * 1024) #define DEFAULT_MAX_HIGH_WATER_MARK_IN_MS (0.25 * 1000) I set them like these. It is still around 5 seconds... |
Could you uncomment this line in ff_ffplay.c and paste some log?
|
audio cache=%1923 (4784/250) |
The DEFAULT_MAX_HIGH_WATER_MARK_IN_MS means the least buffer to resume. If you mean the max pre-reading size, I think it should be
Which one did you mean when you mention ''5 seconds"? |
When I change stream on the server, in the app I see the change 5 seconds later. Then I decided to decrease the buffersize. |
Then you should reduce MIN_FRAMES or/and MAX_QUEUE_SIZE |
Does this API:
still exist? |
You can ,
On IjkVideoView. Also , you can learn variables from , https://github.com/Bilibili/ijkplayer/blob/master/ijkmedia/ijkplayer/ff_ffplay_def.h |
HI @developeralp , Thank you! I was using this before: opts.setPlayerOptionIntValue(5 * 1000, forKey: "first-high-water-mark-ms")
opts.setPlayerOptionIntValue(50 * 1000, forKey: "next-high-water-mark-ms")
opts.setPlayerOptionIntValue(100 * 1000, forKey: "last-high-water-mark-ms")
opts.setPlayerOptionIntValue(10000, forKey: "min-frames")
opts.setPlayerOptionIntValue((128 * 1024 * 1024), forKey: "max-buffer-size") Will re-evaluate today, as it did not seem to work. Why did you set |
can anyone, @rocxteady , @bbcallen @ened @developeralp @tewilove please tell me how to change the size of the video buffer? what's the size of video buffer by default? from where it's calling the buffer to write into it and who takes the data out of the buffer? I am getting an error I have seen ijkfifobuffer is implemented but I want to know where the buffer is written actually? I have seen an array based contiguous allocation. |
Hello.
How can I set the buffer size of a stream? Or buffer time?
I am streaming only audio.
Default buffer time is around 5 seconds. How can I decrease this?
Thanks
The text was updated successfully, but these errors were encountered: