I've some video clips on my openwrt server, I configured uhttpd to access the directory where they are
but I got a message from VLC as videos are not accessible.
My uhttpd config for that:
config uhttpd 'videodoc'
list listen_http '0.0.0.0:8081'
list listen_https '0.0.0.0:445'
option home '/mnt/FACTOTUM1/JUKEBOX1'
option rfc1918_filter '1'
option cert '/etc/uhttpd.crt'
option key '/etc/uhttpd.key'
option cgi_prefix '/cgi-bin'
list interpreter '.php=/usr/bin/php-cgi'
option script_timeout '60'
option network_timeout '30'
option index_page 'index.html index.php'
no_dirlists '1'
Yes, your're right and as you said: it was time to upgrade, but as you know some routers are ressources limited for a LED migration (my first openwrt config was based on a "SLUG" device before openwrt release name was made like AA, BB, CC was early 2000's ...) !
The URL is:
http://192.168.1.8:8081/path_to_video_clip)
The videos are not accessible either from VLC nor from my own Android apps, I've also an external VPS running CentOS and Apache, and it works with both VLC and my Android Apps.
First of all, can you access the file at all? (curl, browser etc)
Since uhttpd is a barebones httpd I would except that requesting segments etc isn't implemented simply because it doesn't make sense given the intended use of uhttpd which probably makes VLC not so happy.
To answer Frollic, the browser I use is FireFox and the video documents are found and downloaded (not played ...)
To answer Diizzy, yes files are accesible from other device on my lan. More, I wrote a PHP script to stream the clips with range feature, but no way to get it working ...
You can either use Gerbera, miniDLNA aka ReadyDLNA or a more suitable http server. If you're looking for help on how to implement DLNA in PHP I'm afraid that's out of scope for a forum targeting a Linux distribution.
Hello guys,
Many thanks to all of you to have tried to help me to fix my issue but, it seems you don't have a solution to propose me to fix it, so .... it's probably a true technical issue!
As I said I'm currently developing my own android upnp brother to interact with minidlna which works ok for me.
Regards to all of you
You may have to patch uhttpd, to teach it about the desired mimetype for your video files. That said, OpenWrt and uhttpd aren't designed with this in mind.
As I see, you have already php. Then I suggest to try nginx on top, instead/besides uhttpd.
Streaming videos myself this way, works like a charm.
How much RAM/flash do you have ?
(apache usually is more memory hungry, especially in case of multiple concurrent users.)