All of lore.kernel.org
 help / color / mirror / Atom feed
From: schorpp <thomas.schorpp@gmail.com>
To: vdr@linuxtv.org
Cc: alsa-devel@alsa-project.org
Subject: Re: [vdr] Identifying MPEG-4 HE-AAC (LATM, LAOS) audio formats
Date: Fri, 6 Dec 2024 22:31:06 +0100	[thread overview]
Message-ID: <4d80afb0-fd93-4ab7-afcd-06a9a4d7700a@gmail.com> (raw)
In-Reply-To: <Z1NfRupTvjFeTlbi@jyty>

Am 06.12.24 um 21:32 schrieb Marko Mäkelä:
> A couple of weeks ago, Finland took the penultimate step to get rid of 
> DVB-T. Since years, we had DVB-T and DVB-T2 running in parallel. The 
> DVB-T transponders should be shut down in 2025.

same here but h.265 video and aac audio.

> 
> The step was to introduce a second free-to-air DVB-T2 bouquet to carry 
> some channels that were previously only available with DVB-T and MPEG-2. 
> The VDR channel search failed to find this transponder; I ran a patched 
> version of https://github.com/mighty-p/t2scan/pull/15/ to generate a new 
> channels.conf. (Is this a bug of VDR, or a feature? I remember that when 
> I originally set up VDR, I had to get a channels.conf from tscan or 
> t2scan.)

have You tried the latest git version of scan in dvb-utils @linuxtx.org 
repo?

> 
> Unlike our first free-to-air DVB-T2 bouquet, which uses MPEG-4 H.264 
> video with AC3 audio, the second one uses H.264 video and HE-AAC audio, 
> also known as LATM or LOAS. This had to be explicitly enabled for my 
> output device: https://github.com/reufer/rpihddevice/issues/20
> 

> The HE-AAC support in rpihddevice is experimental, 

as it has been in ffmpeg until today and rpihddevive is based on it?

> maybe because the 
> sampling rate is hard-coded as 48 kHz and the number of channels as 2. 
> Unlike AC3, it does not look like these parameters would be available in 
> any audio frame header. As far I understood from a NorDig.org 
> specification, the sampling rate would always be 48 kHz, but the number 
> of channels could be identified by something in the container, 
> specifically, Table 12.28 and Table 12.29 at page 164 of
> https://nordig.org/wp-content/uploads/2016/03/NorDig-Unified- 
> Requirements-ver.-3.2.1.pdf

Have You tried the latest git ffprobe version, does it detect the aac 
flavor of Your dvb-t2 DVB channels correctly?

Have You tried latest git mediainfo?

> 
> What would have to be changed in VDR or rpihddevice or both to correctly 
> switch between 2-channel and 5.1-channel HE-AAC audio? This is mostly an 
> academic question and exercise, because I only have stereo audio 
> hardware and don't know if any programming is actually available with 
> multichannel audio.

Not at all academic. Since AVRs do not implement Fraunhofer codecs we 
need a HDNI PCM Multichannel driver for the raspberry pi to playback 5.1 
channel aac without transcoding it to ac3 which can be done with mplayer 
on the fly.

I've made a HDMI PCM Multichannel output to AVR driver patch for the 
Allwinner SoC alsa audio driver, look for it on the alsa-dev list archives.

> 
> Best regards,
> 
>      Marko

y
tom

       reply	other threads:[~2024-12-06 21:32 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <Z1NfRupTvjFeTlbi@jyty>
2024-12-06 21:31 ` schorpp [this message]
2024-12-09 17:23   ` [vdr] Re: Identifying MPEG-4 HE-AAC (LATM, LAOS) audio formats Marko Mäkelä

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4d80afb0-fd93-4ab7-afcd-06a9a4d7700a@gmail.com \
    --to=thomas.schorpp@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=vdr@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.