Opened 13 months ago

Last modified 12 months ago

#7731 open enhancement

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 (7)

comment:1 Changed 13 months ago by Mitzsch01

  • Cc added

comment:2 Changed 13 months ago by Mitzsch01

  • Cc removed

comment:3 Changed 13 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 13 months ago by Mitzsch01

  • Cc added

comment:5 Changed 12 months ago by cehoyos

Use a file hoster of your choice or

Last edited 12 months ago by cehoyos (previous) (diff)

comment:6 Changed 12 months ago by Mitzsch01

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

comment:7 Changed 12 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.

Note: See TracTickets for help on using tickets.