Audio sample rate identified wrong
Posted: 11 Jan 2021 21:24
I am trying to play and HEVC video with AAC-HE audio. The audio is a single track with 7 channels at 48KHz, but VLC identifies it as 24KHz in the log. Or am I interpreting this output wrong?
The playback sounds sort of crackly on the HDMI output which is easy to hear on this sample of 1KHz tone
https://mega.nz/file/U4QzVA5B#5jMCToBIi ... wWgmfaupww
I'm running on Raspbian Buster with the official build from apt repo (3.0.11-0-gdc0c5ced72). I've tried limiting the output to 2 channels but it still sounds crackly. I'm guessing that is because of the sample rate issue. I tried opening this file on a Windows PC with VLC 4.0 and it shows the same 24K sample rate in the message log. But the codec information window shows 48K and the audio playback sounds fine. I'm posting here in the general forum because the log output seems wrong on both machines.
Here is the MediaInfo:
Code: Select all
[b1f74270] mpeg4audio packetizer: AAC channels: 7 samplerate: 24000
https://mega.nz/file/U4QzVA5B#5jMCToBIi ... wWgmfaupww
I'm running on Raspbian Buster with the official build from apt repo (3.0.11-0-gdc0c5ced72). I've tried limiting the output to 2 channels but it still sounds crackly. I'm guessing that is because of the sample rate issue. I tried opening this file on a Windows PC with VLC 4.0 and it shows the same 24K sample rate in the message log. But the codec information window shows 48K and the audio playback sounds fine. I'm posting here in the general forum because the log output seems wrong on both machines.
Here is the MediaInfo:
Code: Select all
General
ID : 0 (0x0)
Complete name : /Users/elliott/MEGAsync/Public/hevc-hd-8ch.ts
Format : MPEG-TS
File size : 17.5 MiB
Duration : 8 s 292 ms
Overall bit rate mode : Constant
Overall bit rate : 17.6 Mb/s
Video
ID : 1001 (0x3E9)
Menu ID : 1 (0x1)
Format : HEVC
Format/Info : High Efficiency Video Coding
Format profile : Main 10@L5@High
Codec ID : 36
Duration : 8 s 333 ms
Width : 1 920 pixels
Height : 1 080 pixels
Display aspect ratio : 16:9
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 10 bits
Color range : Limited
Audio
ID : 1002 (0x3EA)
Menu ID : 1 (0x1)
Format : AAC LC SBR
Format/Info : Advanced Audio Codec Low Complexity with Spectral Band Replication
Commercial name : HE-AAC
Format version : Version 4
Format settings : Implicit
Muxing mode : ADTS
Codec ID : 15-2
Duration : 8 s 277 ms
Bit rate mode : Variable
Channel(s) : 8 channels
Channel layout : C L R Ls Rs Lw Rw LFE
Sampling rate : 48.0 kHz
Frame rate : 23.438 FPS (2048 SPF)
Compression mode : Lossy
Delay relative to video : -28 ms