question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[Support]: Audio not working on cameras

See original GitHub issue

Describe the problem you are having

I have recently tried to enable audio for my cameras using the args from the docs and the audio still doesn’t show up for me.

Version

0.9.4-26AE608

Frigate config file

mqtt:
  host: core-mosquitto.local.hass.io
  user: ****
  password: ****
  
ffmpeg:
  global_args: -hide_banner -loglevel warning
  input_args: -avoid_negative_ts make_zero -fflags +genpts+discardcorrupt -rtsp_transport tcp -stimeout 5000000 -use_wallclock_as_timestamps 1
  output_args:
    detect: -f rawvideo -pix_fmt yuv420p
    record: -f segment -segment_time 10 -segment_format mp4 -reset_timestamps 1 -strftime 1 -c:v copy -c:a aac
    rtmp: -c:v copy -f flv -c:a aac

objects:
  track:
    - person
    - bicycle
    - car
    - motorcycle
    - bus
    - truck

detectors:
  coral1:
    type: edgetpu
    device: pci:0
    
birdseye:
  enabled: False
  width: 704
  height: 480
  quality: 8
  mode: continuous
  
record:
  enabled: True
  retain_days: 60
  
snapshots:
  enabled: True
  timestamp: True
  bounding_box: True
  retain:
    default: 60

cameras:
  back_left_corner:
    ffmpeg:
      inputs:
      - path: rtsp://admin:admin@192.168.1.21/VideoInput/1/h264/2
        roles:
        - detect
        - rtmp
        
    detect:
      width: 704
      height: 480
      fps: 5
    
... more cameras with the same config

Relevant log output

No errors in the logs relating to the args.

FFprobe output from your camera

ffprobe rtsp://admin:admin@192.168.1.21/VideoInput/1/h264/2
ffprobe version 4.2.4-1ubuntu0.1 Copyright (c) 2007-2020 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.3.0-10ubuntu2)
  configuration: --prefix=/usr --extra-version=1ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, rtsp, from 'rtsp://admin:admin@192.168.1.21/VideoInput/1/h264/2':
  Metadata:
    title           : Media Server
  Duration: N/A, start: 0.200000, bitrate: N/A
    Stream #0:0: Video: h264 (Main), yuv420p(progressive), 704x480, 100 tbr, 90k tbn, 180k tbc

Frigate stats

No response

Operating system

Debian

Install method

HassOS Addon

Coral version

M.2

Network connection

Wired

Camera make and model

Lorex E892DD-E

Any other information that may be helpful

No response

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:7 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
blakeblackshearcommented, Feb 20, 2022

somewhat unrelated, but is the frigate camera page supposed to play audio? I can hear audio over the stream in home assistant, and recordings have audio, but the frigate page does not.

Audio isn’t supported in the web UI.

0reactions
stale[bot]commented, Mar 23, 2022

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshoot audio and video issues on your computer or ...
Audio issues. No sound; Volume is too high or too low. Microphone issues; Video issues; Camera issues; Get help ...
Read more >
Troubleshoot camera audio - Google Nest Help
No live or recorded camera audio · Check that your phone's media playback volume is turned up. · If you're using a speaker...
Read more >
Checklist to Troubleshoot Audio Issues
Items to check when there are audio issues. Issues with the Audio, Audio not working in live and recording. Prerequisites ACC Standard or...
Read more >
Webcam and Microphone Troubleshooting Tips
Check the computer settings to make sure the camera and sound settings are correct. For the mic, check if the input sensitivity is...
Read more >
Common Problems with Security Camera Audio?
For that reason, the most common issue behind losing audio capabilities in a wireless camera involves the Wi-Fi, cellular, or Bluetooth connection.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found