Friday, May 3, 2024
 Popular · Latest · Hot · Upcoming
7
rated 0 times [  7] [ 0]  / answers: 1 / hits: 4462  / 1 Year ago, tue, april 25, 2023, 11:44:31

Is there any easy way to locally stream media files over a network (to other Ubuntu machines)? I tried using ssh, but that's too slow for anything, and I can't figure out anything that would allow me to stream any video fast enough.


More From » streaming

 Answers
0

I use lighttpd to make media accessible via HTTP, which is unencrypted (and therefore relatively fast), allows access control and is quite usable for streaming, although often underestimated for this purpose.



This is my lighttpd setup:



server.modules = (
"mod_access",
"mod_alias",
"mod_compress",
"mod_redirect",
"mod_auth",
"mod_cgi"
)

cgi.assign = ( ".cgi" => "" )

server.port = 8001
server.document-root = "/home/shared/htvideo"
server.errorlog = "/dev/stdout"
server.dir-listing = "enable"
dir-listing.encoding = "utf-8"
index-file.names = ( "index.cgi", "index.html")
include_shell "/usr/share/lighttpd/create-mime.assign.pl"


This brings up a small HTTP server on port 8001 which delivers content from /home/shared/htvideo. I got some self-written CGI scripts, to manage them, hence the CGI part in the configuration. But you can ignore that.



I use this to watch videos on my Android tablet without downloading them.



Whoops, you still need to start the service ;-)



Put this stuff into a configuration file (like .video_service), and run lighttpd -f .video_service.



After starting up the service tell your friends to point a browser to http://your.computers.ip.address:8001. They will see the list of files and can open each link directly with VLC media player, or totem or mplayer, Windows Media Player, or whatever. Most browsers even support to play MP4 videos (and sometimes other formats) by themselves nowadays.


[#34682] Wednesday, April 26, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
sharall

Total Points: 407
Total Questions: 127
Total Answers: 121

Location: Saint Helena
Member since Fri, Mar 26, 2021
3 Years ago
;