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
how can I get current real-time buffer size in vlc streaming buffer through python-vlc? #61
Comments
The
Following is an example of the output (with Python 2.7.15) playing one video, but paused:
*) Bitrates are conventionally in Screen shots of 2 of the Media Information... window panes of the VLC App (on macOS) playing an other video. |
The latest version 18.7.27 of |
@mrJean1 , hello, thank you for your reply. Is it possible to get buffer size through |
Possibly, using one of these cache sizes. But you may have to get that cache size from the VLC App, since there doesn't seem to be a way to get or set any of these from Python. Here's a screen shot of the VLC 3.0.3 App Preferences -> Input/Codecs -> Advanced caching settings on macOS. |
It turns out there are command line options to set the caching values:
From Python, you could set these as follows, untested however:
|
@mrJean1 Thanks a lot! It seems to set the caching values means to set the total size of the buffer pool, like, when I set the file-caching=2000, it means the upper limit of buffer pools is 2000ms, in another word, the max time of video the buffer pool can store is 2000ms. what I want to get is the real-time buffer size when streaming the video data, because the pool is not always full, so 2000ms may not be the value I want, am I right? So, any other adivce? correct me if I am wrong~ |
That question is now beyond the Python-VLC project. Ask that again, but at the VideoLan.org support/help page. |
OK, Thanks a lot anyway! |
Just to explain, the buffer size is probably not just the bitrate times the caching time. |
Ok, So |
Like my previous comment, this may not be that simple either. Just don’t know and don’t have an authoritative answer, sorry. |
ok, thank you for your patient reply~ |
As an experiment, the latest Typical initial values are around |
this is closed - I suppose it means that this is just impossible? |
The |
I want to get the current real-time buffer size while vlc streaming video, How can I get it through python-vlc. real-time buffer size means like, a video is stream from one server to one client, vlc get it and stored it in a buffer pool, and vlc decode the data in the pool so as to show the video currently, what I want is the size or time of video data in the pool during the streaming.
The text was updated successfully, but these errors were encountered: