diff mbox series

[FFmpeg-devel] Added V210 codec support to MXF encoder

Message ID CACy9-yve+b=Xf_WXQ8ZF3YRRW8DRETtPVs6cWSaMS66S-eO6Yg@mail.gmail.com
State New
Headers show
Series [FFmpeg-devel] Added V210 codec support to MXF encoder
Related show

Checks

Context Check Description
andriy/default pending
andriy/configure warning Failed to apply patch

Commit Message

Swami Kevala Sept. 18, 2020, 10:19 a.m. UTC
Verified the container_ui and element_ui with a sample file produced by
Sony Server  1.3.0.0.1 (Sony MXF Development Kit (Win32) 4.9.1.118.1)

Tested converting an ffv1/mkv to v210/mxf successfully


Signed-off-by: Swami Kevala <swami.kevala@ishafoundation.org>
---
 libavformat/mxfenc.c | 7 +++++++
 1 file changed, 7 insertions(+)

},
+      {
0x06,0x0E,0x2B,0x34,0x01,0x02,0x01,0x01,0x0D,0x01,0x03,0x01,0x15,0x01,0x02,0x00
},
+      {
0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0A,0x04,0x01,0x02,0x01,0x01,0x02,0x02,0x01
},
+      mxf_write_cdci_desc },
     // H.264
     { {
0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x0a,0x0D,0x01,0x03,0x01,0x02,0x10,0x60,0x01
},
       {
0x06,0x0E,0x2B,0x34,0x01,0x02,0x01,0x01,0x0D,0x01,0x03,0x01,0x15,0x01,0x05,0x00
},
--
1.8.3.1
diff mbox series

Patch

diff --git a/libavformat/mxfenc.c b/libavformat/mxfenc.c
index cbb0fc5..32e5ffa 100644
--- a/libavformat/mxfenc.c
+++ b/libavformat/mxfenc.c
@@ -123,6 +123,7 @@  enum ULIndex {
     INDEX_DV,
     INDEX_DNXHD,
     INDEX_JPEG2000,
+    INDEX_V210,
     INDEX_H264,
     INDEX_S436M,
     INDEX_PRORES,
@@ -138,6 +139,7 @@  static const struct {
     { AV_CODEC_ID_DVVIDEO,    INDEX_DV },
     { AV_CODEC_ID_DNXHD,      INDEX_DNXHD },
     { AV_CODEC_ID_JPEG2000,   INDEX_JPEG2000 },
+    { AV_CODEC_ID_V210,       INDEX_V210 },
     { AV_CODEC_ID_H264,       INDEX_H264 },
     { AV_CODEC_ID_PRORES,     INDEX_PRORES },
     { AV_CODEC_ID_NONE }
@@ -189,6 +191,11 @@  static const MXFContainerEssenceEntry
mxf_essence_container_uls[] = {
       {
0x06,0x0e,0x2b,0x34,0x01,0x02,0x01,0x01,0x0d,0x01,0x03,0x01,0x15,0x01,0x08,0x00
},
       {
0x06,0x0e,0x2b,0x34,0x04,0x01,0x01,0x07,0x04,0x01,0x02,0x02,0x03,0x01,0x01,0x00
},
       mxf_write_cdci_desc },
+    // V210
+    { {
0x06,0x0E,0x2B,0x34,0x04,0x01,0x01,0x01,0x0D,0x01,0x03,0x01,0x02,0x05,0x01,0x05