0% found this document useful (0 votes)
44 views

DSF File Format Specification E

The document specifies the DSF file format. It describes the file extension, format structure including chunks for DSD data, format, and metadata. It also notes the byte ordering and details about channel configuration and sample data storage.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
44 views

DSF File Format Specification E

The document specifies the DSF file format. It describes the file extension, format structure including chunks for DSD data, format, and metadata. It also notes the byte ordering and details about channel configuration and sample data storage.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 6

DSF File Format Specification

DSF File Format Specification

Version 1.01

Page 1 of 6 Sony Corporation


DSF File Format Specification

Contents

I. File Extension
II. Format Structure
III. Contact

Page 2 of 6 Sony Corporation


DSF File Format Specification

I. File Extension
The extension of this format is “dsf” which stands for “dsd stream file”.

II.Format Structure
DSF file is made of 4 chunks. DSD chunk, fmt chunk, data chunk and metadata chunk.
( [Annotation?] means that there is an annotation which explains detail.)

'D' , 'S' , 'D', ' ' (includes 1 DSD chunk


4 byte
space) header

8 byte Size of this chunk byte 28

8 byte Total file size byte

If Metadata doesn’t exist, set 0. If the file


has ID3v2 tag, then set the pointer to it.
8 byte Pointer to Metadata chunk byte
ID3v2 tag should be located in the end of
the file.

'f' , 'm' , 't' , ' ' (includes 1 fmt chunk


4 byte
space) header

8 byte Size of this chunk byte Usually 52bytes

Version of this file format.


4 byte Format version
1

4 byte Format ID 0 : DSD raw

1: mono
2:stereo
3:3 channels
4: quad
4 bytes Channel Type
5: 4 channels
6: 5 channels
7: 5.1 channels
[Annotation 1]

1: mono
2: stereo
4 byte Channel num

6: 6 channels

4 byte Sampling frequency Hz 2822400, 5644800

4 byte Bits per sample bit 1, 8

Page 3 of 6 Sony Corporation


DSF File Format Specification

8 byte Sample count [Annotation 2]

4 bytes Block size per channel Byte 4096 [Annotation 3]

4 bytes Reserved Fill Zero

data chunk
4 byte 'd' , 'a' , 't' , 'a'
header

8 byte Size of this chunk Bytes Equal to n(see next line) + 12

Data is set as LSB(Least Significant Bit)


n byte sample data
first. [Annotation 4]

m byte Metadata chunk ID3v2

Numerical data (ex. Size of this chunk, Channel Type) should be stored as "LSB(Least Significant Byte)
first" in the file.

[Annotation1] DSF Interleaved format


・2-CHANNELS STEREO

1 : Front Left 2 : Front Right

・3-CHANNELS

1 : Front Left 2 : Front Right 3 : Center

・QUAD

1 : Front Left 2 : Front Right 3 : Back Left 4 : Back Right

・4-CHANNELS

1 : Front Left 2 : Front Right 3 : Center 4 : Low Frequency

・5-CHANNELS

1 : Front Left 2 : Front Right 3 : Center 4 : Back Left 5 : Back Right

・5.1-CHANNELS

1 : Front Left 2 : Front Right 3 : Center 4 : Low Frequency 5 : Back Left 6 : Back Right

[Annotation2]
Sample count is the num per 1 channel.
Ex) n second data: Sample count would be Sampling frequency * n

[Annotation3]
Block size per channel is fixed, so please fill ZERO(0x00) for unused sample data area in the block.

Page 4 of 6 Sony Corporation


DSF File Format Specification

[Annotation4]
For example, if dsd stream data is 0x00, 0x01, 0x02, 0x03, 0x04….., then this is the sample data in data
chunk.

If “Bits per sample” is equal to 1, then store the data as LSB(Least Significant Bit) first.
0x00, 0x80, 0x40, 0xC0, 0x20, ….
(00000000, 10000000, 01000000, 11000000, 00100000, ….)

If “Bits per sample” is equal to 8, then store the data as MSB(Most Significant Bit) first.
0x00, 0x01, 0x02, 0x03, 0x04…..
(00000000, 00000001, 00000010, 00000011, 00000100, ….)

III. Contact
If you have any question, send e-mail (in English) to [email protected] .
However, we will not guarantee that we provide support or answer your inquiry.

Page 5 of 6 Sony Corporation


DSF File Format Specification

Change history:

[11, Nov, 2005 V1.0 → V1.1]


* Add “Numerical data should be stored as "LSB first" “ in [II Format Structure].
* Change a description in [Annotation1].
* Add “0x00” in [Annotation3].
* Add “If “Bits per sample” is equal to 8 …” in [Annotation4].
* Change a description in [III Contact].

Page 6 of 6 Sony Corporation

You might also like