[FFmpeg-devel] matroska: add DSD support

Submitted by Takayuki 'January June' Suwa on March 6, 2017, 8 a.m.

Details

Message ID 1488787246-12483-1-git-send-email-jjsuwa.sys3175@gmail.com
State New
Headers show

Commit Message

Takayuki 'January June' Suwa March 6, 2017, 8 a.m.
this patch makes transporting several (low-bitrate to hi-res) music data more simpler.
almost major/defacto-std lossy/lossless audio codecs such as MP3, AAC, FLAC, etc. and now DSD can be muxed by the single way :)

global/per-stream metadata seems to be exported correctly.
---
 libavformat/matroska.c    | 2 ++
 libavformat/matroskaenc.c | 2 ++
 2 files changed, 4 insertions(+)

Comments

Carl Eugen Hoyos March 6, 2017, 9:03 a.m.
2017-03-06 9:00 GMT+01:00 Takayuki 'January June' Suwa
<jjsuwa.sys3175@gmail.com>:

> +    {"A_PDM/DSD/LSBF"   , AV_CODEC_ID_DSD_LSBF},
> +    {"A_PDM/DSD/MSBF"   , AV_CODEC_ID_DSD_MSBF},

Where are they specified?

Carl Eugen

Patch hide | download patch | download mbox

diff --git a/libavformat/matroska.c b/libavformat/matroska.c
index 6af667c..125a026 100644
--- a/libavformat/matroska.c
+++ b/libavformat/matroska.c
@@ -48,6 +48,8 @@  const CodecTags ff_mkv_codec_tags[]={
     {"A_PCM/INT/LIT"    , AV_CODEC_ID_PCM_S24LE},
     {"A_PCM/INT/LIT"    , AV_CODEC_ID_PCM_S32LE},
     {"A_PCM/INT/LIT"    , AV_CODEC_ID_PCM_U8},
+    {"A_PDM/DSD/LSBF"   , AV_CODEC_ID_DSD_LSBF},
+    {"A_PDM/DSD/MSBF"   , AV_CODEC_ID_DSD_MSBF},
     {"A_QUICKTIME/QDMC" , AV_CODEC_ID_QDMC},
     {"A_QUICKTIME/QDM2" , AV_CODEC_ID_QDM2},
     {"A_REAL/14_4"      , AV_CODEC_ID_RA_144},
diff --git a/libavformat/matroskaenc.c b/libavformat/matroskaenc.c
index 1605f0c..a9503f6 100644
--- a/libavformat/matroskaenc.c
+++ b/libavformat/matroskaenc.c
@@ -2528,6 +2528,8 @@  static const AVCodecTag additional_audio_tags[] = {
     { AV_CODEC_ID_PCM_S16BE, 0xFFFFFFFF },
     { AV_CODEC_ID_PCM_S24BE, 0xFFFFFFFF },
     { AV_CODEC_ID_PCM_S32BE, 0xFFFFFFFF },
+    { AV_CODEC_ID_DSD_LSBF,  0xFFFFFFFF },
+    { AV_CODEC_ID_DSD_MSBF,  0xFFFFFFFF },
     { AV_CODEC_ID_QDMC,      0xFFFFFFFF },
     { AV_CODEC_ID_QDM2,      0xFFFFFFFF },
     { AV_CODEC_ID_RA_144,    0xFFFFFFFF },