From e297e02800a308939285c660ccf6cb21199af520 Mon Sep 17 00:00:00 2001 From: Blake Blackshear Date: Sat, 16 Oct 2021 06:06:49 -0500 Subject: [PATCH] store audio by default --- docs/docs/configuration/camera_specific.md | 4 ++-- docs/docs/configuration/index.md | 2 +- docs/docs/faqs.md | 2 +- frigate/config.py | 1 - 4 files changed, 4 insertions(+), 5 deletions(-) diff --git a/docs/docs/configuration/camera_specific.md b/docs/docs/configuration/camera_specific.md index b737a5605..ee460536e 100644 --- a/docs/docs/configuration/camera_specific.md +++ b/docs/docs/configuration/camera_specific.md @@ -15,8 +15,8 @@ Note that mjpeg cameras require encoding the video into h264 for recording, and ```yaml output_args: - record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v libx264 -an - rtmp: -c:v libx264 -an -f flv + record: -f segment -segment_time 10 -segment_format ts -reset_timestamps 1 -strftime 1 -c:v libx264 + rtmp: -c:v libx264 -f flv ``` ### RTMP Cameras diff --git a/docs/docs/configuration/index.md b/docs/docs/configuration/index.md index ed0f6b3eb..f0a111ecd 100644 --- a/docs/docs/configuration/index.md +++ b/docs/docs/configuration/index.md @@ -140,7 +140,7 @@ ffmpeg: # Optional: output args for detect streams (default: shown below) detect: -f rawvideo -pix_fmt yuv420p # Optional: output args for record streams (default: shown below) - record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c copy -an + record: -f segment -segment_time 10 -segment_format ts -reset_timestamps 1 -strftime 1 -c copy # Optional: output args for rtmp streams (default: shown below) rtmp: -c copy -f flv diff --git a/docs/docs/faqs.md b/docs/docs/faqs.md index 7159402b0..45be7a007 100644 --- a/docs/docs/faqs.md +++ b/docs/docs/faqs.md @@ -13,7 +13,7 @@ A solid green image means that frigate has not received any frames from ffmpeg. ### How can I get sound or audio in my recordings? -By default, Frigate removes audio from recordings to reduce the likelihood of failing for invalid data. If you would like to include audio, you need to override the output args to remove `-an` for where you want to include audio. The recommended audio codec is `aac`. Not all audio codecs are supported by RTMP, so you may need to re-encode your audio with `-c:a aac`. The default ffmpeg args are shown [here](configuration/index#ffmpeg). +The recommended audio codec is `aac`. Not all audio codecs are supported by RTMP, so you may need to re-encode your audio with `-c:a aac`. The default ffmpeg args are shown [here](configuration/index#full-configuration-reference). ### My mjpeg stream or snapshots look green and crazy diff --git a/frigate/config.py b/frigate/config.py index 2e872eaeb..47f8b8853 100644 --- a/frigate/config.py +++ b/frigate/config.py @@ -305,7 +305,6 @@ RECORD_FFMPEG_OUTPUT_ARGS_DEFAULT = [ "1", "-c", "copy", - "-an", ]