Stop VLC buffering entire file up to seek time (WebDAV network stream)

For questions and discussion that is NOT (I repeat NOT) specific to a certain Operating System.
tarkeez
New Cone
New Cone
Posts: 1
Joined: 06 Mar 2019 22:33

Stop VLC buffering entire file up to seek time (WebDAV network stream)

Postby tarkeez » 06 Mar 2019 23:02

EDIT: it's occurred to me that this is probably an issue with WebDAV/Nextcloud when using cifs mounted samba shares, and it is not VLC's fault. Later I will try with a video file added directly to the nextcloud data folder, and also one added to the raspi's internal memory mounted as local storage in nexcloud to see where the problem is.

VLC 3.0.2 on opensuse leap 15 (but presumably not OS specific)

Problem:
When I seek in a video file, VLC buffers the entire content between where it was playing back and until the time I seek to. So if I seek 10 minutes ahead into a video, I have to wait for VLC to buffer 10 minutes of video before playback starts. I want it to start from the seek point directly.

This is a problem because I am streaming through nextcloud on a raspberry pi and it goes to 100% cpu usage while buffering the video at full speed to catch up. If I want to start a video one hour in, this means a lot of waiting and a lot of strain on the raspi, going full speed. When streaming without buffering it doesn't need to go full speed (only needs to match the bitrate of the files).

setup:
Server on my LAN providing samba shares from local and external usb drives.
Samba shares mounted on raspberry pi on the same LAN using cifs.
added in nextcloud instance on the same raspberry pi as local storage.
accessed online through webDAV (address of files would be something like https://xxx/nextcloud/remote.php/webdav/xxx/xxx.mkv

extra info:
I have checked the network usage to confirm that VLC:
streams the file at its normal bitrate during playback (desirable)
peaks to max transfer speed after seeking, until caught up (undesirable), then starts playback and transfer speed goes back to normal
doesnt buffer when paused (desireable)

Jean-Baptiste Kempf
Site Administrator
Site Administrator
Posts: 37523
Joined: 22 Jul 2005 15:29
VLC version: 4.0.0-git
Operating System: Linux, Windows, Mac
Location: Cone, France
Contact:

Re: Stop VLC buffering entire file up to seek time (WebDAV network stream)

Postby Jean-Baptiste Kempf » 10 Mar 2019 21:19

You're serving HTTP without arbitrary seeking, I would say.
Jean-Baptiste Kempf
http://www.jbkempf.com/ - http://www.jbkempf.com/blog/category/Videolan
VLC media player developer, VideoLAN President and Sites administrator
If you want an answer to your question, just be specific and precise. Don't use Private Messages.


Return to “General VLC media player Troubleshooting”

Who is online

Users browsing this forum: No registered users and 41 guests