Skip to content

Commit

Permalink
encode: dramatically improve encoding speed by reordering ffmpeg args
Browse files Browse the repository at this point in the history
  • Loading branch information
occivink committed Dec 30, 2017
1 parent 2aef3c2 commit 2769f04
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions encode.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ function start_encoding(input_path, from, to, settings)
local args = {
"ffmpeg",
"-loglevel", "panic", "-hide_banner", --stfu ffmpeg
"-i", input_path,
"-ss", seconds_to_time_string(from, false),
"-to", seconds_to_time_string(to, false)
"-i", input_path,
"-to", tostring(to-from)
}

-- map currently playing channels
Expand Down

0 comments on commit 2769f04

Please sign in to comment.