Current section
17 Versions
Jump to
Current section
17 Versions
Compare versions
4
files changed
+11
additions
-5
deletions
| @@ -37,4 +37,4 @@ | |
| 37 37 | {<<"optional">>,false}, |
| 38 38 | {<<"repository">>,<<"hexpm">>}, |
| 39 39 | {<<"requirement">>,<<"~> 0.3.0">>}]]}. |
| 40 | - {<<"version">>,<<"0.18.0">>}. |
| 40 | + {<<"version">>,<<"0.19.0">>}. |
| @@ -10,11 +10,14 @@ defmodule Exstream do | |
| 10 10 | "ffmpeg", |
| 11 11 | "-hide_banner", |
| 12 12 | "-loglevel", "error", |
| 13 | - "-copyts", |
| 14 13 | "-ss", "#{ start }", |
| 15 14 | "-i", "#{ path }", |
| 16 15 | "-to", "#{ finish }", |
| 17 | - "-c:v", "copy", |
| 16 | + "-copyts", |
| 17 | + "-c:v", "libx264", |
| 18 | + "-preset", "faster", |
| 19 | + "-profile:v", "high", |
| 20 | + "-level:v", "4.0", |
| 18 21 | "-c:a", "aac", |
| 19 22 | "-ac", "2", |
| 20 23 | "-f", "mpegts", |
| @@ -3,6 +3,8 @@ defmodule Exstream.Application do | |
| 3 3 | |
| 4 4 | def start(_type, _args) do |
| 5 5 | opts = [strategy: :one_for_one, name: Exstream.Supervisor] |
| 6 | - Supervisor.start_link([], opts) |
| 6 | + Supervisor.start_link([ |
| 7 | + {Plug.Cowboy, scheme: :http, plug: Exstream.Router, port: 4040} |
| 8 | + ], opts) |
| 7 9 | end |
| 8 10 | end |
| @@ -4,7 +4,7 @@ defmodule Exstream.MixProject do | |
| 4 4 | def project do |
| 5 5 | [ |
| 6 6 | app: :exstream, |
| 7 | - version: "0.18.0", |
| 7 | + version: "0.19.0", |
| 8 8 | elixir: "~> 1.14", |
| 9 9 | start_permanent: Mix.env() == :prod, |
| 10 10 | description: "Pluggable video streams", |
| @@ -20,6 +20,7 @@ defmodule Exstream.MixProject do | |
| 20 20 | def application do |
| 21 21 | [ |
| 22 22 | extra_applications: [:logger], |
| 23 | + mod: {Exstream.Application, []} |
| 23 24 | ] |
| 24 25 | end |