mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-04-05 14:47:40 +03:00
faster transcode and debug
This commit is contained in:
parent
96360a08d5
commit
eeb17ae2b8
@ -93,13 +93,16 @@ def _build_ffmpeg_cmd(
|
||||
"pipe,file,http,tcp",
|
||||
"-i",
|
||||
input_url,
|
||||
# Scale down to 720p max, preserve aspect ratio
|
||||
"-vf",
|
||||
"scale=-2:'min(720,ih)'",
|
||||
# Encode to H.264 (software — universally available)
|
||||
"-c:v",
|
||||
"libx264",
|
||||
"-preset",
|
||||
"fast",
|
||||
"ultrafast",
|
||||
"-crf",
|
||||
"23",
|
||||
"26",
|
||||
"-profile:v",
|
||||
"high",
|
||||
"-level:v",
|
||||
|
||||
@ -10,6 +10,7 @@ let hevcResult: boolean | null = null;
|
||||
* Result is cached after the first call.
|
||||
*/
|
||||
export function isHevcSupported(): boolean {
|
||||
if (localStorage.getItem("forceTranscode") === "true") return false;
|
||||
if (hevcResult !== null) return hevcResult;
|
||||
|
||||
const codecs = [
|
||||
|
||||
Loading…
Reference in New Issue
Block a user