ssr icon indicating copy to clipboard operation
ssr copied to clipboard

AAC: Unsupported channel layout "2 channels"

Open autogris opened this issue 6 months ago • 1 comments

Hi, after upgrading ffmpeg to 7.0.2 from 6.x, SSR gives me the following error when trying to produce an mp4 with h264+aac:

[PageRecord::StartPage] Starting page ...
[PageRecord::StartPage] Started page.
[PageRecord::StartOutput] Starting output ...
[PageRecord::StartOutput] Output file: /tmp/video.mp4
[Muxer::Init] Using format mp4 (MP4 (MPEG-4 Part 14)).
[Muxer::AddStream] Using codec libx264 (libx264 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10).
[VideoEncoder::PrepareStream] Using pixel format nv12.
[libx264 @ 0x27bed500] using SAR=1/1
[libx264 @ 0x27bed500] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x27bed500] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x27bed500] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2024 - http://www.videolan.org/x264.html - options: cabac=1 ref=1 deblock=1:0:0 analyse=0x3:0x3 me=dia subme=1 psy=1 psy_rd=1,00:0,00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=8 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=1 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc=crf mbtree=0 crf=23,0 qcomp=0,60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1,40 pb_ratio=1,30 aq=1:1,00
[Muxer::AddStream] Using codec aac (AAC (Advanced Audio Coding)).
[BaseEncoder::EncoderThread] Encoder thread started.
[AudioEncoder::PrepareStream] Using sample format f32p.
[aac @ 0x27fcfa00] Unsupported channel layout "2 channels"
[aac @ 0x27fcfa00] Qavg: nan
[BaseEncoder::Init] Error: Can't open codec!
[BaseEncoder::~BaseEncoder] Stopping encoder thread ...
[BaseEncoder::EncoderThread] Encoder thread stopped.
[PageRecord::StartOutput] Error: Something went wrong during initialization.

I'm on the latest git commit (https://github.com/MaartenBaert/ssr/commit/4e3ba13dd212fc4213fe0911f371bc7d34033b8d)

autogris avatar Aug 19 '24 19:08 autogris