Streaming mounted SSD videos via HTTP

Hey all I am trying to get my mounted shared usb SSD to be sharable over the web server (uhttpd currently installed).

I want to be able to stream the mp4 videos that are on my mounted shared drive and be able to access them using http.

As an example, my mounted shared drive is /mnt/sda2:



Now I can access these just fine with my FTP client:
image
So now I just want to be ablet to access that from a website page like http://192.168.8.1/mnt/sda2/xxxx/movies/a_movie.mp4 so that I can use a streaming app like VLC to stream that movie from the url link.

What all do I need to setup in order to do this? I currenly have to download the file via FTP to the local hdd and play it from there if I want to watch it. It would be so much simpler to just be able to stream it via the URL!

You just need to add a new section to uhttpd config file:

2 Likes

Thanks for the reply @eduperez

So I just need to add another entry to the uHTTPd config file like this?

config uhttpd 'ssd'
	option home '/mnt/sda2'
	option redirect_https '0'
	option script_timeout '60'
	option network_timeout '30'
	option http_keepalive '20'
	option rfc1918_filter '1'
	option tcp_keepalive '1'
	option cert '/etc/uhttpd.crt'
	option key '/etc/uhttpd.key'
	list listen_http '0.0.0.0:591'
	list listen_http '[::]:591'

Yes, exactly!

Seems I got it working but there's an issue. It’s very slow. Takes about 2 minutes to start playing the video if it’s around 900mb. That doesn’t sound right to me?

I’m using the external antenna which is right next to the Chromecast with google tv that I’m running my android app off of.

It looks to going -4mb/s which even with that should start the video playing after a few seconds? I get about the same data speed via ftp download.

What could I be missing here?

Looks like your client downloads the whole file before it starts playing the video... For playing videos, instead of HTTP, perhaps you could use DLNA; try with the "minidlna" package.

1 Like