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",
|
"pipe,file,http,tcp",
|
||||||
"-i",
|
"-i",
|
||||||
input_url,
|
input_url,
|
||||||
|
# Scale down to 720p max, preserve aspect ratio
|
||||||
|
"-vf",
|
||||||
|
"scale=-2:'min(720,ih)'",
|
||||||
# Encode to H.264 (software — universally available)
|
# Encode to H.264 (software — universally available)
|
||||||
"-c:v",
|
"-c:v",
|
||||||
"libx264",
|
"libx264",
|
||||||
"-preset",
|
"-preset",
|
||||||
"fast",
|
"ultrafast",
|
||||||
"-crf",
|
"-crf",
|
||||||
"23",
|
"26",
|
||||||
"-profile:v",
|
"-profile:v",
|
||||||
"high",
|
"high",
|
||||||
"-level:v",
|
"-level:v",
|
||||||
|
|||||||
@ -10,6 +10,7 @@ let hevcResult: boolean | null = null;
|
|||||||
* Result is cached after the first call.
|
* Result is cached after the first call.
|
||||||
*/
|
*/
|
||||||
export function isHevcSupported(): boolean {
|
export function isHevcSupported(): boolean {
|
||||||
|
if (localStorage.getItem("forceTranscode") === "true") return false;
|
||||||
if (hevcResult !== null) return hevcResult;
|
if (hevcResult !== null) return hevcResult;
|
||||||
|
|
||||||
const codecs = [
|
const codecs = [
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user