Opened 20 months ago

Closed 6 months ago

#7731 closed enhancement (fixed)

spdifenc: Too large TrueHD frame

Reported by: Mitzsch01 Owned by:
Priority: wish Component: avformat
Version: git-master Keywords: spdif
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no


Summary of the bug:
Play a high bitrate (11+Mbit) TrueHD track with passthrough enabled, you will experience dropouts.

How to reproduce:
Play a file that contains a TrueHD (with Atmos) track which exceeds a bitrate of approximately 11 Mbits in any FFmpeg based software.
kodi on windows will crash, vlc will "skip" (means you won´t hear something at these parts, continues playback) this part or crash
mpv will "skip" (like vlc) this part but also prints an "error"

Too large TrueHD frame of 2618 bytes is not implemented. 
Update your FFmpeg version to the newest one from Git. 
If the problem still occurs, it means that your file has a feature which has not been implemented.

Change History (8)

comment:1 Changed 20 months ago by Mitzsch01

  • Cc added

comment:2 Changed 20 months ago by Mitzsch01

  • Cc removed

comment:3 Changed 20 months ago by Mitzsch01

I also have a file that produces these issues, but it´s too large (6mb)
Any idea how to submit it?

comment:4 Changed 20 months ago by Mitzsch01

  • Cc added

comment:5 Changed 20 months ago by cehoyos

Use a file hoster of your choice.

Version 0, edited 20 months ago by cehoyos (next)

comment:6 Changed 20 months ago by Mitzsch01

Thank you!
I´ve uploaded it to the videolan page.

comment:7 Changed 20 months ago by cehoyos

  • Keywords spdif added
  • Priority changed from normal to wish
  • Reproduced by developer set
  • Status changed from new to open
  • Type changed from defect to enhancement

The crashes are imo an independent issue, see ticket #7733, I believe that at least some of the programs you tested do not use FFmpeg for spdif muxing.

Work-around is to use -bsf:a truehd_core, I don't think my receiver allows Atmos substreams at all, at least I was unable to find a muxing strategy that allows playback without stuttering (it is very easy to find a muxing strategy that does not overflow the spdif frame size for the sample you provided). My tests showed that the current strategy can definitely be improved though.

comment:8 Changed 6 months ago by cehoyos

  • Resolution set to fixed
  • Status changed from open to closed

This was fixed by Anssi Hannula in 56df8296f5221524bd06e91e6639c08753d1b8a0 and some earlier commits.

Note: See TracTickets for help on using tickets.