Page 1 of 1

How to reduce VLC buffering time when video starts??

Posted: 06 Sep 2013 14:15
by kapoorsudhish
Hi All,

I am doing RTP streaming using VLC but the video does not start to play till the time the data gets buffered for 10-secs. Can the initial buffering be reduced from 10 sec to ~3sec, the problem persists if the data starts to buffer in between also where the video is not smooth and start to buffer for long time.


Regards,
Sudhish.

Re: How to reduce VLC buffering time when video starts??

Posted: 06 Sep 2013 15:30
by fkuehne
The following should be your friend in this case:

Code: Select all

--network-caching <Integer [0 .. 60000]>

Re: How to reduce VLC buffering time when video starts??

Posted: 10 Sep 2013 11:46
by kapoorsudhish
Thanks for the reply Felix, but how can this be called using an API because i am using VLC libraries for streaming??

Re: How to reduce VLC buffering time when video starts??

Posted: 11 Sep 2013 12:30
by fkuehne
The following code should do:

Code: Select all

NSArray* options = @[@"--network-caching=[0 .. 60000]"]; VLCMediaPlayer * mediaPlayer = [[VLCMediaPlayer alloc] initWithOptions:options];

Re: How to reduce VLC buffering time when video starts??

Posted: 12 Sep 2013 07:16
by kapoorsudhish
Thanks for the help Felix :)