GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — MediaServer/README.md at master · GAumala/MediaServer

Expand file tree

/

README.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
90 lines (65 loc) · 2.67 KB
/

README.md

Copy path

File metadata and controls

90 lines (65 loc) · 2.67 KB
Raw
Copy raw file
Download raw file
Outline
Edit and raw actions

MediaServer

Build Status

Media Server for streaming videos over local network written in Go. The server has no dependencies other than the Go standard library. The web client uses Video.js

Build

Currently, only Linux is supported. To build in your computer, you need to have installed all the build dependencies:

  • git
  • go
  • make
  • wget

Once you have everything installed, grab the code frome github.

go get github.com/GAumala/MediaServer

Once you have the repository in your computer go to the root directory and use the make command.

cd $GOPATH/src/github.com/GAumala/MediaServer
make

This command downloads the necessary Video.js files if they are missing and creates an executable named MediaServer. As long as the public folder is its same directory it will work properly.

Usage

You can start the server with:

./MediaServer

If you open your browser and visit localhost:8080 you will find a simple HTML file listing all your available videos.

screenshot from 2018-12-09 09-00-21 screenshot from 2018-12-09 09-03-39

Notice that the url for watching a video could be something like http://localhost:8080/watch?v=99653847.mp4. You should be able to copy that link into any player like vlc or mpv and stream it without issues.

Configuration

By default it will serve the .mp4 videos in the path /home/<USER>/Videos. If you want to configure things like the port or the directories where to find videos you can pass a JSON file as parameter:

{
  "port": 5678,
  "verbose": true,
  "videoDirs": [ 
    "/home/gabriel/Videos/",
    "MEGAsync Downloads",
    "/home/gabriel/Downloads/" 
  ]
}

The file specifies a custom port 5678 and 3 directories that should be scanned to serve videos. To use it just execute:

./MediaServer myConfig.json

If you need more help about using this tool or how to manage your video library checkout the wiki.

Raw files

By default the videos are streamed in a web client using video.js. The server will try to figure out whether to serve html or raw video files based on the client request's Accept header. If you want to force the HTML list to show raw file links your URL to localhost:8080/?player=0. This is useful when you have an unsupported video player.

You are visitor 01402792 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.