mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-07-03 18:41:14 +03:00
Remove workaround
This commit is contained in:
parent
06c7bb1004
commit
7543582e7b
@ -465,16 +465,6 @@ PRESETS_RECORD_OUTPUT = {
|
|||||||
"-c:a",
|
"-c:a",
|
||||||
"aac",
|
"aac",
|
||||||
],
|
],
|
||||||
# NOTE: This preset originally used "-c:a copy" to pass through audio
|
|
||||||
# without re-encoding. FFmpeg 7.x introduced a threaded pipeline where
|
|
||||||
# demuxing, encoding, and muxing run in parallel via a Scheduler. This
|
|
||||||
# broke audio streamcopy from RTSP sources: packets are demuxed correctly
|
|
||||||
# but silently dropped before reaching the muxer (0 bytes written). The
|
|
||||||
# issue is specific to RTSP + streamcopy; file inputs and transcoding both
|
|
||||||
# work. Transcoding AAC audio is very lightweight (~30KiB per 10s segment)
|
|
||||||
# and adds negligible CPU overhead, so this is an acceptable workaround.
|
|
||||||
# The benefits of FFmpeg 7.x — particularly the removal of gamma correction
|
|
||||||
# hacks required by earlier versions — outweigh this trade-off.
|
|
||||||
"preset-record-generic-audio-copy": [
|
"preset-record-generic-audio-copy": [
|
||||||
"-f",
|
"-f",
|
||||||
"segment",
|
"segment",
|
||||||
@ -486,10 +476,8 @@ PRESETS_RECORD_OUTPUT = {
|
|||||||
"1",
|
"1",
|
||||||
"-strftime",
|
"-strftime",
|
||||||
"1",
|
"1",
|
||||||
"-c:v",
|
"-c",
|
||||||
"copy",
|
"copy",
|
||||||
"-c:a",
|
|
||||||
"aac",
|
|
||||||
],
|
],
|
||||||
"preset-record-mjpeg": [
|
"preset-record-mjpeg": [
|
||||||
"-f",
|
"-f",
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user