Skip to content
This repository was archived by the owner on Apr 5, 2025. It is now read-only.
This repository was archived by the owner on Apr 5, 2025. It is now read-only.

Audio stream detected but not saved to video recordings #26

@s-fairchild

Description

@s-fairchild

Hello,

The recorded video files do not contain any audio.

Here is a section of the logs at LOG_LEVEL=9. I see that audio is detected, but no other audio related logs were found. I wasn't able to find any documentation concerning audio configuration other than what's in the main README.md.
I have 3 cameras connected via rtsp, the other 2 aren't recording audio either but I see the same message for the other cameras.

motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_connect: Norm: An audio stream was detected.  Capture_rate increased to compensate.
motionplus[318243]: [NTC][NET][04:nc04:frontdoor] netcam_connect: Norm: Camera (frontdoor) connected
motionplus[318243]: [NTC][NET][04:nc04:frontdoor] netcam_connect: Norm: Netcam capture FPS is 30.
motionplus[318243]: [NTC][NET][04:nc04:frontdoor] netcam_connect: Norm: Camera source is 20 FPS
motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_connect: Norm: An audio stream was detected.  Capture_rate increased to compensate.
motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_open_sws: Norm: Pixel format 13 will be converted.
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: deprecated pixel format used, make sure you did set range correctly
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: unable to decode APP fields: Invalid data found when processing input
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: CSeq 6 expected, 0 received.
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: Above message repeats 38 times
motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_interrupt: Norm: Camera reading (frontdoor) timed out
motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_read_image: Norm: Interrupted
motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_interrupt: Norm: Camera reading (frontdoor) timed out
motionplus[318243]: [ERR][NET][04:nc04:frontdoor] netcam_handler_reconnect: Norm: Reconnecting with camera....
motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_set_options: Norm: Setting rtsp/rtmp
motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_open_context: Norm: Opened camera(frontdoor)
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: Received packet without a start chunk; dropping frame.
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: Above message repeats 1 times
motionplus[318243]: [INF][ENC][23:motionplus] movie_avcodec_log: unable to decode APP fields: Invalid data found when processing input
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: Received packet without a start chunk; dropping frame.
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: Above message repeats 61 times
motionplus[318243]: [INF][NET][04:av04:frontdoor] netcam_init_swdecoder: Norm: Initializing decoder
motionplus[318243]: [NTC][NET][04:av04:frontdoor] netcam_init_swdecoder: Norm: Using decoder mjpeg
motionplus[318243]: [INF][NET][04:av04:frontdoor] netcam_open_codec: Norm: Decoder opened
motionplus[318243]: [NTC][NET][04:nc04:frontdoor] netcam_connect: Norm: Camera (frontdoor) connected
motionplus[318243]: [NTC][NET][04:nc04:frontdoor] netcam_connect: Norm: Netcam capture FPS is 30.
motionplus[318243]: [NTC][NET][04:nc04:frontdoor] netcam_connect: Norm: Camera source is 20 FPS
motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_connect: Norm: An audio stream was detected.  Capture_rate increased to compensate.
motionplus[318243]: [INF][NET][04:nc04:frontdoor] netcam_open_sws: Norm: Pixel format 13 will be converted.
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: deprecated pixel format used, make sure you did set range correctly
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: CSeq 6 expected, 0 received.
motionplus[318243]: [INF][ENC][04:nc04:frontdoor] movie_avcodec_log: Above message repeats 46 times
motionplus[318243]: [INF][ENC][23:motionplus] movie_avcodec_log: unable to decode APP fields: Invalid data found when processing input
  1. Reviewed guide and contributing documents? (Yes/No): Yes
  2. version [x.y.z, hash, other]: MotionPlus version 0.0.0-git-20230102-ca68d76
  3. installed as a package or compiled from sources [deb, rpm, git, other]: Compiled from source, running inside podman ubuntu container. Dockerfile below.
FROM docker.io/ubuntu:23.04
WORKDIR /tmp/motionplus
COPY . .

RUN apt-get update && \
  DEBIAN_FRONTEND=noninteractive apt-get install -y --no-install-recommends \
      autoconf automake autopoint pkgconf libtool libjpeg8-dev build-essential libzip-dev gettext libmicrohttpd-dev libavformat-dev libavcodec-dev libavutil-dev libswscale-dev libavdevice-dev git-all ffmpeg && \
  apt-get clean && \
  rm -rf /var/lib/apt/lists/ && \
  autoreconf -fiv && \
  ./configure && \
  make && \
  make install && \
  cd .. && \
  rm -rf /tmp/motionplus

WORKDIR /usr/local/bin/

ENTRYPOINT [ "/usr/local/bin/motionplus" ]
CMD [ "-n" ]
  1. video stream source [V4L2, network camera(http, rtsp, etc), mmal]: rtsp cameras, v4l2rtspserver source project
  2. hardware [x86, ARM, other]: x86_64
  3. operating system [18.04, Stretch, etc, FreeBSD, other]: Fedora CoreOS
cat /etc/os-release 
NAME="Fedora Linux"
VERSION="37.20221225.3.0 (CoreOS)"
ID=fedora
VERSION_ID=37
VERSION_CODENAME=""
PLATFORM_ID="platform:f37"
PRETTY_NAME="Fedora CoreOS 37.20221225.3.0"
ANSI_COLOR="0;38;2;60;110;180"
LOGO=fedora-logo-icon
CPE_NAME="cpe:/o:fedoraproject:fedora:37"
HOME_URL="https://getfedora.org/coreos/"
DOCUMENTATION_URL="https://docs.fedoraproject.org/en-US/fedora-coreos/"
SUPPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
BUG_REPORT_URL="https://github.com/coreos/fedora-coreos-tracker/"
REDHAT_BUGZILLA_PRODUCT="Fedora"
REDHAT_BUGZILLA_PRODUCT_VERSION=37
REDHAT_SUPPORT_PRODUCT="Fedora"
REDHAT_SUPPORT_PRODUCT_VERSION=37
SUPPORT_END=2023-11-14
VARIANT="CoreOS"
VARIANT_ID=coreos
OSTREE_VERSION='37.20221225.3.0'

Attached are my configuration files.
Motionplug config for github issue.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions