[FFmpeg-devel] [PATCH]Add defined unusual data types for spdif

Joakim Plate elupus
Fri Jun 18 11:22:22 CEST 2010


Carl Eugen Hoyos <cehoyos <at> ag.or.at> writes:

> 
> Hi!
> 
> Attached data_types for IEC958 are defined in the specification.
> While I can't test them (which receiver knows any of those types including AAC 
> and MPEG audio?), I believe it makes sense to have documented which data types 
> exist at all.
> I will add the others as soon as I can convince my receiver to show "DTS HD" 
> for 0x11.
> 
> Please comment, Carl Eugen
> 
> 
> Index: libavformat/spdif.c
> ===================================================================
> --- libavformat/spdif.c	(revision 23639)
> +++ libavformat/spdif.c	(working copy)
> @@ -61,6 +61,10 @@
>      IEC958_DTS1               = 0x0B,          ///< DTS type I   (512 
samples)
>      IEC958_DTS2               = 0x0C,          ///< DTS type II  (1024 
samples)
>      IEC958_DTS3               = 0x0D,          ///< DTS type III (2048 
samples)
> +    IEC958_ATRAC              = 0x0E,          ///< Atrac data
> +    IEC958_ATRAC3             = 0x0F,          ///< Atrac 3 data
> +    IEC958_ATRACX             = 0x10,          ///< Atrac 3 plus data
> +    IEC958_WMAPRO             = 0x12,          ///< WMA 9 Professional data
>      IEC958_MPEG2_AAC_LSF_2048 = 0x13,          ///< MPEG-2 AAC ADTS half-rate 
low sampling frequency
>      IEC958_MPEG2_AAC_LSF_4096 = 0x13 | 0x20,   ///< MPEG-2 AAC ADTS quarter-
rate low sampling frequency
>  };
> 
> 
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel <at> mplayerhq.hu
> https://lists.mplayerhq.hu/mailman/listinfo/ffmpeg-devel

I'm not sure how you are sending this. But asfar as I know DTSHD and or EAC3 
doesn't fit over a standard spdif output. Well eac3 may, at higher sample rates 
anyway.

Some interesting reference on how this is handled for HDMI on windows is 
available here. Might be worth following. For example dolby truehd is sent with 
8 channel output at 192000Hz.

http://msdn.microsoft.com/en-us/library/dd316761(VS.85).aspx

/Joakim





More information about the ffmpeg-devel mailing list