[FFmpeg-user] Is it possible to write a DOLBY-E metadata flag to specific PCM Audio Streams in a MXF File?

Christoph Gerstbauer christophgerstbauer at gmail.com
Tue Jul 5 10:17:43 CEST 2016


Hi

I am trying this a second time, because nobody answered to my mail in June.

I am using FFmpeg for generating a D-10 file with 8ch audio (16bit).
Typicall the Audio is always PCM but sometimes some dualchannels are is
a Dolby-E pair.

Is it possible to overwrite a metadata flag for PCM Audio channels to give the
decoder (which opens the MXF) the information that it should decode
Dolby E and not PCM on e.g Ch5 and Ch6?

Example D10 file with Dolby E is

1 stream video (0:0)
1 stream audio with 8ch (0:1):
ch1 PCM
ch2 PCM
ch3 PCM
ch4 PCM
ch5 Dolby E (encoded as PCM), needs  a "Dolby E"-flag
ch6 Dolby E (encoded as PCM), needs  a "Dolby E"-flag
ch7 PCM
ch8 PCM

-----

In mediainfo this would look approx. like following:


Audio #1
ID                                       : 3
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 59s 640ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Frame rate                               : 25.000 fps (1920 spf)
Bit depth                                : 24 bits
Stream size                              : 8.19 MiB (2%)

Audio #2
ID                                       : 4
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 59s 640ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Frame rate                               : 25.000 fps (1920 spf)
Bit depth                                : 24 bits
Stream size                              : 8.19 MiB (2%)

Audio #3
ID                                       : 5 / 6-1
Format                                   : Dolby E
Mode                                     : 24
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Muxing mode                              : SMPTE ST 337
Codec ID                                 : 0D01030102060300
Duration                                 : 59s 640ms
Bit rate mode                            : Constant
Encoded bit rate                         : 2 304 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Frame rate                               : 25.000 fps (1920 spf)
Bit depth                                : 20 bits
Delay relative to video                  : 10h 0mn
Encoded stream size                      : 16.4 MiB (4%)

Audio #4
ID                                       : 5 / 6-2
Format                                   : Dolby E
Mode                                     : 24
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Muxing mode                              : SMPTE ST 337
Codec ID                                 : 0D01030102060300
Duration                                 : 59s 640ms
Bit rate mode                            : Constant
Encoded bit rate                         : 0 bps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Frame rate                               : 25.000 fps (1920 spf)
Bit depth                                : 20 bits
Delay relative to video                  : 10h 0mn
Encoded stream size                      : 0.00 Byte (0%)

Audio #5
ID                                       : 7
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 59s 640ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Frame rate                               : 25.000 fps (1920 spf)
Bit depth                                : 24 bits
Stream size                              : 8.19 MiB (2%)

Audio #6
ID                                       : 8
Format                                   : PCM
Format settings, Endianness              : Little
Format settings, wrapping mode           : Frame (AES)
Codec ID                                 : 0D01030102060300
Duration                                 : 59s 640ms
Bit rate mode                            : Constant
Bit rate                                 : 1 152 Kbps
Channel(s)                               : 1 channel
Sampling rate                            : 48.0 KHz
Frame rate                               : 25.000 fps (1920 spf)
Bit depth                                : 24 bits
Stream size                              : 8.19 MiB (2%)

----


Any hints and tipps are welcome :)

Best Regards
Chris





More information about the ffmpeg-user mailing list