content-transcoder

command module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 9, 2025 License: MIT Imports: 5 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

content-transcoder

Transcodes HTTP-stream to HLS with additional features:

  1. Web-access to transcoded content
  2. On-demand transcoding
  3. Quits after specific period of inactivity

Requirements

  1. FFmpeg 3+

Basic usage

% ./server help
NAME:
   content-transcoder-server - runs content transcoder

USAGE:
   server [global options] command [command options] [arguments...]

VERSION:
   0.0.1

COMMANDS:
     help, h  Shows a list of commands or help for one command

GLOBAL OPTIONS:
   --host value, -H value                    listening host
   --port value, -P value                    listening port (default: 8080)
   --probe-port value, --pP value            probe port (default: 8081)
   --input value, -i value, --url value      input (url) [$INPUT, $ SOURCE_URL, $ URL]
   --output value, -o value                  output (local path) (default: "out")
   --content-prober-host value, --cpH value  hostname of the content prober service [$CONTENT_PROBER_SERVICE_HOST]
   --content-prober-port value, --cpP value  port of the content prober service (default: 50051) [$CONTENT_PROBER_SERVICE_PORT]
   --access-grace value, --ag value          access grace in seconds (default: 600) [$GRACE]
   --preset value                            transcode preset (default: "ultrafast") [$PRESET]
   --transcode-grace value, --tg value       transcode grace in seconds (default: 5) [$TRANSCODE_GRACE]
   --probe-timeout value, --pt value         probe timeout in seconds (default: 600) [$PROBE_TIMEOUT]
   --job-id value                            job id [$JOB_ID]
   --info-hash value                         info hash [$INFO_HASH]
   --file-path value                         file path [$FILE_PATH]
   --extra value                             extra [$EXTRA]
   --player                                  player
   --help, -h                                show help
   --version, -v                             print the version

Example

cd server &&
rm -rf out/* && rm -rf tmp/* &&
go build -mod=vendor . &&
./server --input='https://github.com/Matroska-Org/matroska-test-files/raw/master/test_files/test5.mkv' --player=true

Then you can open your browser http://localhost:8080/player/ and watch movie

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
⌂ 换网址