[FFmpeg-user] MXF Replace Audio Streams while maintaining Data Closed Caption vbi_vanc_smpte_436M stream
Alex Bell
alex.morgan.bell at gmail.com
Thu Jan 29 21:27:44 CET 2015
Hello,
Attempting to replace first two audio streams within a MXF File with two
WAV audio streams. The below works if I remove Data stream but I need CC.
Is there a way to copy over the data stream as well?
/Applications/DevelopmentTools/ffmpeg/ffmpeg -i
~/Downloads/ExampleCopy.mxf -i -acodec copy -vcodec copy -dcodec copy -map
0:0 -map 1:0 -map 2:0 -map 0:9 Output.mxf
HSPOutput.mxf audio_3.wav audio_6.wav
audio_encoded_2.wav audio_encoded_5.wav
audio_1.wav audio_4.wav audio_7.wav
audio_encoded_3.wav audio_encoded_6.wav
audio_2.wav audio_5.wav audio_encoded_1.wav
audio_encoded_4.wav audio_encoded_7.wav
XXX-MacBook-Air-2:temp xxx$ /Applications/DevelopmentTools/ffmpeg/ffmpeg -i
~/Downloads/ExampleCopy.mxf -i audio_1.wav -i audio_2.wav -acodec copy
-vcodec copy -dcodec copy -map 0:0 -map 1:0 -map 2:0 -map 0:9 Output.mxf
ffmpeg version N-69382-g038f3a1 Copyright (c) 2000-2015 the FFmpeg
developers
built on Jan 29 2015 14:02:27 with Apple LLVM version 6.0
(clang-600.0.56) (based on LLVM 3.5svn)
configuration:
libavutil 54. 18.100 / 54. 18.100
libavcodec 56. 21.101 / 56. 21.101
libavformat 56. 19.100 / 56. 19.100
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 9.101 / 5. 9.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
Guessed Channel Layout for Input Stream #0.1 : mono
Guessed Channel Layout for Input Stream #0.2 : mono
Guessed Channel Layout for Input Stream #0.3 : mono
Guessed Channel Layout for Input Stream #0.4 : mono
Guessed Channel Layout for Input Stream #0.5 : mono
Guessed Channel Layout for Input Stream #0.6 : mono
Guessed Channel Layout for Input Stream #0.7 : mono
Guessed Channel Layout for Input Stream #0.8 : mono
Input #0, mxf, from '/Users/xxx/Downloads/ExampleCopy.mxf':
Metadata:
uid : 138157ae-9bbe-1b41-871b-1bfc102cb188
generation_uid : 8af54e43-25e4-184a-b85a-87bb9d8a4d8d
company_name : AVID
product_name : TRMG
product_version : 3.01
product_uid : 00000000-0000-0000-0000-000000000000
modification_date: 2014-12-31 19:29:53
material_package_umid:
0x060A2B340101010501010D1313000000E785EB19DB75A340B703A96982AF2957
timecode : 01:00:00;00
Duration: 00:01:00.06, start: 0.000000, bitrate: 60846 kb/s
Stream #0:0: Video: mpeg2video (4:2:2), yuv422p(tv, bt709), 1280x720
[SAR 1:1 DAR 16:9], 50000 kb/s, 59.94 fps, 59.94 tbr, 59.94 tbn, 119.88 tbc
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:3: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:4: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:5: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:6: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:7: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:8: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152
kb/s
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:9: Data: none
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
data_type : vbi_vanc_smpte_436M
Input #1, wav, from 'audio_1.wav':
Metadata:
encoder : Lavf54.63.104
timecode : 01:00:00;00
Duration: 00:01:00.06, bitrate: 1152 kb/s
Stream #1:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, mono,
s32 (24 bit), 1152 kb/s
Input #2, wav, from 'audio_2.wav':
Metadata:
encoder : Lavf54.63.104
timecode : 01:00:00;00
Duration: 00:01:00.06, bitrate: 1152 kb/s
Stream #2:0: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, mono,
s32 (24 bit), 1152 kb/s
[mxf @ 0x7fe0b2a42000] track 3: could not find essence container ul, codec
not currently supported in container
Output #0, mxf, to 'Output.mxf':
Metadata:
uid : 138157ae-9bbe-1b41-871b-1bfc102cb188
generation_uid : 8af54e43-25e4-184a-b85a-87bb9d8a4d8d
company_name : AVID
product_name : TRMG
product_version : 3.01
product_uid : 00000000-0000-0000-0000-000000000000
modification_date: 2014-12-31 19:29:53
material_package_umid:
0x060A2B340101010501010D1313000000E785EB19DB75A340B703A96982AF2957
timecode : 01:00:00;00
encoder : Lavf56.19.100
Stream #0:0: Video: mpeg2video, yuv422p, 1280x720 [SAR 1:1 DAR 16:9],
q=2-31, 50000 kb/s, 59.94 fps, 59.94 tbr, 59.94 tbn, 59.94 tbc
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
Stream #0:1: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, mono
(24 bit), 1152 kb/s
Stream #0:2: Audio: pcm_s24le ([1][0][0][0] / 0x0001), 48000 Hz, mono
(24 bit), 1152 kb/s
Stream #0:3: Data: none
Metadata:
file_package_umid:
0x060A2B340101010501010D13130000006D9F377935593C4280BA79DD0090270A
data_type : vbi_vanc_smpte_436M
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #1:0 -> #0:1 (copy)
Stream #2:0 -> #0:2 (copy)
Stream #0:9 -> #0:3 (copy)
Could not write header for output file #0 (incorrect codec parameters ?):
Operation not permitted
More information about the ffmpeg-user
mailing list