How to reduce VLC buffering time when video starts??

macOS specific usage questions
kapoorsudhish
Blank Cone
Blank Cone
Posts: 17
Joined: 14 Aug 2013 14:15

How to reduce VLC buffering time when video starts??

Postby kapoorsudhish » 06 Sep 2013 14:15

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.

fkuehne
Developer
Developer
Posts: 7262
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

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

Postby fkuehne » 06 Sep 2013 15:30

The following should be your friend in this case:

Code: Select all

--network-caching <Integer [0 .. 60000]>
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

kapoorsudhish
Blank Cone
Blank Cone
Posts: 17
Joined: 14 Aug 2013 14:15

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

Postby kapoorsudhish » 10 Sep 2013 11:46

Thanks for the reply Felix, but how can this be called using an API because i am using VLC libraries for streaming??

fkuehne
Developer
Developer
Posts: 7262
Joined: 16 Mar 2004 19:37
VLC version: 0.4.6 - present
Operating System: Darwin
Location: Germany
Contact:

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

Postby fkuehne » 11 Sep 2013 12:30

The following code should do:

Code: Select all

NSArray* options = @[@"--network-caching=[0 .. 60000]"]; VLCMediaPlayer * mediaPlayer = [[VLCMediaPlayer alloc] initWithOptions:options];
VideoLAN
Felix Paul Kühne
Medic. VLC developer for appleOS since before you were born.
Blog: https://www.feepk.net

kapoorsudhish
Blank Cone
Blank Cone
Posts: 17
Joined: 14 Aug 2013 14:15

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

Postby kapoorsudhish » 12 Sep 2013 07:16

Thanks for the help Felix :)


Return to “VLC media player for macOS Troubleshooting”

Who is online

Users browsing this forum: No registered users and 11 guests