﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	severity	resolution	keywords	cc	mlocked
13211	MythTV needs a backport from FFmpeg 3.3/3.4 to make German DVB-T2 HD with 5.1 audio work	Bjoern Voigt <bjoernv@…>	Peter Bennett	"Broadcasts in German DVB T2 contain 2 channels (Stereo) or 6 channels (5.1 surround) audio. Especially cinema movies and shows often use 6 channels. Broadcasts with 2 channels work without problems in MythTV.

But broadcasts with 6 audio channels cause sloppy sound, error messages and as a result also sloppy video playback. There are two log files with the error message for a sample video recording attached using the original MythTV version (fixes/29 branch).

The root cause for this issue is, that MythTV uses FFmpeg 3.2, but the relevant bug was only fixed for FFmpeg 3.3, 3.4 or higher:

Problem transcoding 5.1 AAC LATM audio streams 
https://trac.ffmpeg.org/ticket/4544

Unfortunately the patch in FFmpeg bug report 4544 itself is not sufficient.

I had to backport some more changes from FFmpeg 3.3 to fix the problem. Since I am no FFmpeg developer and no export for AAC decoding I do not know, if the patch is minimal.

My current version of the patch contains 499 lines for two FFmpeg files.

I have tested the patched MythTV version on daily use. I have not found any issues.

Some more attachments show playback logs for the patched version."	Bug Report - General	closed	major	30.0	3rd Party - FFMPEG	v29-fixes	medium	Fixed	dvb, t2, hevc, latm, aac, ffmpeg		0
