-
-
Notifications
You must be signed in to change notification settings - Fork 29
Open
Description
When attempting to record rtsp streams with PCM audio, record_segment() (in /src/video/mp4_segment_recorder.c) unconditionally copies the audio stream parameters without checking is_audio_codec_compatible_with_mp4().
Log excerpt:
[2026-03-06 22:02:28] [INFO] Including audio stream in MP4 recording
[mp4 @ 0x7c270815acc0] Could not find tag for codec pcm_alaw in stream #1, codec not currently supported in container
[2026-03-06 22:02:28] [ERROR] Failed to write header: -22 (Invalid argument)
[2026-03-06 22:02:28] [ERROR] Header write failed with EINVAL, likely due to invalid video parameters
[2026-03-06 22:02:28] [ERROR] Video stream parameters: width=1920, height=1080, codec_id=27
[2026-03-06 22:02:28] [ERROR] Audio stream parameters: codec_id=65543, sample_rate=8000, channels=1
[2026-03-06 22:02:28] [ERROR] PCM A-law (G.711 A-law) audio codec is not compatible with MP4 format
[2026-03-06 22:02:28] [ERROR] Audio transcoding to AAC should be enabled automatically
[2026-03-06 22:02:28] [ERROR] If the issue persists, try disabling audio recording for this stream
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels