hdfs-mp4-player

command module
v0.0.0-...-810d887 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 21, 2019 License: MIT Imports: 2 Imported by: 0

README

HDFS-video-player

  • Play mp4 file in HDFS by Go(Based on Beego framework) and WebHDFS in WebBrowser.
  • Support multi HDFS cluster.
Implements
  • Implement by Go which based on beego.
  • Use HDFS's WebHDFS to fetch HDFS's mp4 file data.
  • Support play jump which use HTTP status code 206 and header Content-Range.
Some tips

Mp4 metadata needs to be in front of the video. Maybe you have to understand ffmpeg and use it to keep the previous condition.

ffmpeg command which could make metadata in front of mp4:

ffmpeg -i input.mp4 -movflags faststart -acodec copy -vcodec copy output.mp4

Usage
  • Exec bee run in this project dir.
  • Visit http://localhost:8082 in your browser, select one cluster which you need to configure it before, then browse hdfs directories and choose one mp4 file to play.
  • You've better use Google Chrome browser, and could drag play button backward by raw player.
Contributing
  • Welcome to have a contributing!
  • Please see CONTRIBUTING for details.
License

The MIT License (MIT). Please see License File for more information.

Reference

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL