You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
avformat/mxfenc: Write Audio Ref Level for D10
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
This commit is contained in:
@@ -500,6 +500,7 @@ static const MXFLocalTagPair mxf_local_tag_batch[] = {
|
|||||||
// Generic Sound Essence Descriptor
|
// Generic Sound Essence Descriptor
|
||||||
{ 0x3D02, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x04,0x04,0x02,0x03,0x01,0x04,0x00,0x00,0x00}}, /* Locked/Unlocked */
|
{ 0x3D02, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x04,0x04,0x02,0x03,0x01,0x04,0x00,0x00,0x00}}, /* Locked/Unlocked */
|
||||||
{ 0x3D03, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x05,0x04,0x02,0x03,0x01,0x01,0x01,0x00,0x00}}, /* Audio sampling rate */
|
{ 0x3D03, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x05,0x04,0x02,0x03,0x01,0x01,0x01,0x00,0x00}}, /* Audio sampling rate */
|
||||||
|
{ 0x3D04, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x01,0x04,0x02,0x01,0x01,0x03,0x00,0x00,0x00}}, /* Audio Ref Level */
|
||||||
{ 0x3D07, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x05,0x04,0x02,0x01,0x01,0x04,0x00,0x00,0x00}}, /* ChannelCount */
|
{ 0x3D07, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x05,0x04,0x02,0x01,0x01,0x04,0x00,0x00,0x00}}, /* ChannelCount */
|
||||||
{ 0x3D01, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x04,0x04,0x02,0x03,0x03,0x04,0x00,0x00,0x00}}, /* Quantization bits */
|
{ 0x3D01, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x04,0x04,0x02,0x03,0x03,0x04,0x00,0x00,0x00}}, /* Quantization bits */
|
||||||
{ 0x3D06, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x04,0x02,0x04,0x02,0x00,0x00,0x00,0x00}}, /* Sound Essence Compression */
|
{ 0x3D06, {0x06,0x0E,0x2B,0x34,0x01,0x01,0x01,0x02,0x04,0x02,0x04,0x02,0x00,0x00,0x00,0x00}}, /* Sound Essence Compression */
|
||||||
@@ -1298,6 +1299,8 @@ static void mxf_write_generic_sound_common(AVFormatContext *s, AVStream *st, con
|
|||||||
|
|
||||||
if (s->oformat == &ff_mxf_opatom_muxer)
|
if (s->oformat == &ff_mxf_opatom_muxer)
|
||||||
duration_size = 12;
|
duration_size = 12;
|
||||||
|
if (s->oformat == &ff_mxf_d10_muxer)
|
||||||
|
size += 5;
|
||||||
|
|
||||||
mxf_write_generic_desc(s, st, key, size+duration_size+5+12+8+8);
|
mxf_write_generic_desc(s, st, key, size+duration_size+5+12+8+8);
|
||||||
|
|
||||||
@@ -1315,6 +1318,11 @@ static void mxf_write_generic_sound_common(AVFormatContext *s, AVStream *st, con
|
|||||||
avio_wb32(pb, st->codecpar->sample_rate);
|
avio_wb32(pb, st->codecpar->sample_rate);
|
||||||
avio_wb32(pb, 1);
|
avio_wb32(pb, 1);
|
||||||
|
|
||||||
|
if (s->oformat == &ff_mxf_d10_muxer) {
|
||||||
|
mxf_write_local_tag(pb, 1, 0x3D04);
|
||||||
|
avio_w8(pb, 0);
|
||||||
|
}
|
||||||
|
|
||||||
mxf_write_local_tag(pb, 4, 0x3D07);
|
mxf_write_local_tag(pb, 4, 0x3D07);
|
||||||
if (mxf->channel_count == -1) {
|
if (mxf->channel_count == -1) {
|
||||||
if (show_warnings && (s->oformat == &ff_mxf_d10_muxer) && (st->codecpar->channels != 4) && (st->codecpar->channels != 8))
|
if (show_warnings && (s->oformat == &ff_mxf_d10_muxer) && (st->codecpar->channels != 4) && (st->codecpar->channels != 8))
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
d44bf57681071b6b45bb8bab782895af *tests/data/fate/copy-trac4914.mxf
|
631ee839b737fa56b4af1d57b588696c *tests/data/fate/copy-trac4914.mxf
|
||||||
561721 tests/data/fate/copy-trac4914.mxf
|
561721 tests/data/fate/copy-trac4914.mxf
|
||||||
#tb 0: 1001/30000
|
#tb 0: 1001/30000
|
||||||
#media_type 0: video
|
#media_type 0: video
|
||||||
|
@@ -1 +1 @@
|
|||||||
a5fdbd2155093f6eac0eaa2392cdb792
|
d0a2d75af1c4ba8c96651ec366a50e49
|
||||||
|
@@ -1 +1 @@
|
|||||||
90067b01fef77a4c5cad419bca2462b2
|
7a9d8ea19bf2f14f1af680c050c88d0d
|
||||||
|
@@ -1,9 +1,9 @@
|
|||||||
a530ecfc5521150f72ee3e735815d964 *./tests/data/lavf/lavf.mxf
|
27bbd27662f99181fbaa8c6b7b32aee2 *./tests/data/lavf/lavf.mxf
|
||||||
526393 ./tests/data/lavf/lavf.mxf
|
526393 ./tests/data/lavf/lavf.mxf
|
||||||
./tests/data/lavf/lavf.mxf CRC=0x8dddfaab
|
./tests/data/lavf/lavf.mxf CRC=0x8dddfaab
|
||||||
49a27701521b717dd501041f1e5a4476 *./tests/data/lavf/lavf.mxf
|
69ad89b94977f29fa54446680c17c43c *./tests/data/lavf/lavf.mxf
|
||||||
561721 ./tests/data/lavf/lavf.mxf
|
561721 ./tests/data/lavf/lavf.mxf
|
||||||
./tests/data/lavf/lavf.mxf CRC=0xf21b1b48
|
./tests/data/lavf/lavf.mxf CRC=0xf21b1b48
|
||||||
1a03fa10b8774749304af4cbedd8c4bd *./tests/data/lavf/lavf.mxf
|
375b804000535385db5f7ed748599fba *./tests/data/lavf/lavf.mxf
|
||||||
526393 ./tests/data/lavf/lavf.mxf
|
526393 ./tests/data/lavf/lavf.mxf
|
||||||
./tests/data/lavf/lavf.mxf CRC=0x8dddfaab
|
./tests/data/lavf/lavf.mxf CRC=0x8dddfaab
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
cec3289b3a7a92b36a6d7f30a0251d91 *./tests/data/lavf/lavf.mxf_d10
|
0bf4c7b8cc8d00290b151991ff8a675e *./tests/data/lavf/lavf.mxf_d10
|
||||||
5332013 ./tests/data/lavf/lavf.mxf_d10
|
5332013 ./tests/data/lavf/lavf.mxf_d10
|
||||||
./tests/data/lavf/lavf.mxf_d10 CRC=0x6c74d488
|
./tests/data/lavf/lavf.mxf_d10 CRC=0x6c74d488
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
2e525e922e2809914983922e6a2f41f4 *./tests/data/lavf/lavf.mxf_dv25
|
20a759ba52bbdc614f3ea448bab1eb90 *./tests/data/lavf/lavf.mxf_dv25
|
||||||
3834413 ./tests/data/lavf/lavf.mxf_dv25
|
3834413 ./tests/data/lavf/lavf.mxf_dv25
|
||||||
./tests/data/lavf/lavf.mxf_dv25 CRC=0xbdaf7f52
|
./tests/data/lavf/lavf.mxf_dv25 CRC=0xbdaf7f52
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
a3d99dfeec77a06c9033f147b3d2d1f8 *./tests/data/lavf/lavf.mxf_dvcpro50
|
8b68190fc95b97e21c260d2b134bf003 *./tests/data/lavf/lavf.mxf_dvcpro50
|
||||||
7431213 ./tests/data/lavf/lavf.mxf_dvcpro50
|
7431213 ./tests/data/lavf/lavf.mxf_dvcpro50
|
||||||
./tests/data/lavf/lavf.mxf_dvcpro50 CRC=0xe3bbe4b4
|
./tests/data/lavf/lavf.mxf_dvcpro50 CRC=0xe3bbe4b4
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
9a34611080ea36a627fbbaebebcef930 *./tests/data/lavf/lavf.mxf_opatom
|
9e3d53baab0f805e6642500ea469682b *./tests/data/lavf/lavf.mxf_opatom
|
||||||
4717625 ./tests/data/lavf/lavf.mxf_opatom
|
4717625 ./tests/data/lavf/lavf.mxf_opatom
|
||||||
./tests/data/lavf/lavf.mxf_opatom CRC=0xf55aa22a
|
./tests/data/lavf/lavf.mxf_opatom CRC=0xf55aa22a
|
||||||
|
@@ -1,3 +1,3 @@
|
|||||||
5b74d1bcf272f26023a375bf778fae5e *./tests/data/lavf/lavf.mxf_opatom_audio
|
8e1351b9aac6292d69df2d4af42e7040 *./tests/data/lavf/lavf.mxf_opatom_audio
|
||||||
102969 ./tests/data/lavf/lavf.mxf_opatom_audio
|
102969 ./tests/data/lavf/lavf.mxf_opatom_audio
|
||||||
./tests/data/lavf/lavf.mxf_opatom_audio CRC=0xd155c6ff
|
./tests/data/lavf/lavf.mxf_opatom_audio CRC=0xd155c6ff
|
||||||
|
Reference in New Issue
Block a user