Opened 9 years ago
Closed 7 years ago
#5317 closed defect (fixed)
Avid MXF audio issues - "OPAtom misinterpreted as OP1a"
Reported by: | rolf | Owned by: | |
---|---|---|---|
Priority: | normal | Component: | avformat |
Version: | git-master | Keywords: | mxf |
Cc: | Blocked By: | ||
Blocking: | Reproduced by developer: | yes | |
Analyzed by developer: | no |
Description (last modified by )
(Copy of issue I emailed to ffmpeg-devel mailing list)
I have an MXF file (originally generated from Avid Media Composer I believe) on which ffmpeg fails to correctly read the second audio track.
The file is called test_Stereo.mxf and has two audio channels: on 0:a:0 there are 5s of tone, then 5s silence, then 5s tone, then 5s silence, while 0:a:1 is reversed (5s of silence then 5s of tone). Outputting 0:a:0 gives a 1kHz tone as expected but 0:a:1 gives a file that is shorter than expected and sounds garbled (like a fax machine or modem connecting).
Other programs (eg. Media Composer, QuickTime with the Calibrated{Q} MXF components, Adobe Premiere) play the original file correctly with a 1kHz tone on both tracks.
I have just uploaded test_Stereo.mxf (315MB) to ftp://upload.ffmpeg.org as requested, and include the output of the latest snapshot build below.
Best regards,
-Rolf
PS. Thanks for all your hard work on such a fantastic tool !
% ffmpeg -i test_Stereo.mxf -map 0:a:1 out0a1.mp3 ffmpeg version N-79129-gb3dc51d-tessus Copyright (c) 2000-2016 the FFmpeg developers built with Apple LLVM version 6.0 (clang-600.0.57) (based on LLVM 3.5svn) configuration: --cc=/usr/bin/clang --prefix=/opt/ffmpeg --as=yasm --extra-version=tessus --enable-avisynth --enable-fontconfig --enable-gpl --enable-libass --enable-libbluray --enable-libfreetype --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopus --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzmq --enable-version3 --disable-ffplay --disable-indev=qtkit --disable-indev=x11grab_xcb libavutil 55. 19.100 / 55. 19.100 libavcodec 57. 27.101 / 57. 27.101 libavformat 57. 28.100 / 57. 28.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 39.100 / 6. 39.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 [mxf @ 0x7fa059805600] OPAtom misinterpreted as OP1a? KLV for edit unit 0 extending into next edit unit is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mxf @ 0x7fa059805600] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org) ... [mxf @ 0x7fa059805600] OPAtom misinterpreted as OP1a? KLV for edit unit 7 extending into next edit unit is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mxf @ 0x7fa059805600] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org) Guessed Channel Layout for Input Stream #0.1 : mono Guessed Channel Layout for Input Stream #0.2 : mono Input #0, mxf, from '/Users/rolf/Desktop/FFmpeg Audio 160216-051529-364/test_Stereo.mxf': Metadata: product_uid : 60eb8921-2a02-4406-891c-d9b6a6ae0645 uid : e96bf281-cfee-11e5-86f8-2837370a7ed1 generation_uid : e96bf282-cfee-11e5-9684-2837370a7ed1 company_name : Avid Technology, Inc. product_name : MSP_MXF DLL product_version : 1.11.0 application_platform: Mac OS X modification_date: 2016-02-10 12:07:53 material_package_umid: 0x060A2B340101010501010D1213B116D390699A02287405A568F82837370A7ED1 timecode : 01:00:00:00 Duration: 00:00:20.00, start: 0.000000, bitrate: 126175 kb/s Stream #0:0: Video: dnxhd, yuv422p(bt709/unknown/unknown), 1920x1080, SAR 1:1 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc Metadata: file_package_umid: 0x060A2B340101010501010D1213F2CA4590699A02287405A58AE62837370A7ED1 file_package_name: Source Package Stream #0:1: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D1213F2CA4590699A02287405A58AE62837370A7ED1 file_package_name: Source Package Stream #0:2: Audio: pcm_s24le, 48000 Hz, 1 channels, s32 (24 bit), 1152 kb/s Metadata: file_package_umid: 0x060A2B340101010501010D1213F2CA4590699A02287405A58AE62837370A7ED1 file_package_name: Source Package Output #0, mp3, to '/Users/rolf/Desktop/out.mp3': Metadata: product_uid : 60eb8921-2a02-4406-891c-d9b6a6ae0645 uid : e96bf281-cfee-11e5-86f8-2837370a7ed1 generation_uid : e96bf282-cfee-11e5-9684-2837370a7ed1 company_name : Avid Technology, Inc. product_name : MSP_MXF DLL product_version : 1.11.0 application_platform: Mac OS X modification_date: 2016-02-10 12:07:53 material_package_umid: 0x060A2B340101010501010D1213B116D390699A02287405A568F82837370A7ED1 timecode : 01:00:00:00 TSSE : Lavf57.28.100 Stream #0:0: Audio: mp3 (libmp3lame), 48000 Hz, mono, s32p (24 bit) Metadata: file_package_umid: 0x060A2B340101010501010D1213F2CA4590699A02287405A58AE62837370A7ED1 file_package_name: Source Package encoder : Lavc57.27.101 libmp3lame Stream mapping: Stream #0:2 -> #0:0 (pcm_s24le (native) -> mp3 (libmp3lame)) Press [q] to stop, [?] for help Multiple frames in a packet from stream 2 [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input [mxf @ 0x7fa059805600] OPAtom misinterpreted as OP1a? KLV for edit unit 8 extending into next edit unit is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mxf @ 0x7fa059805600] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org) [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input [mxf @ 0x7fa059805600] OPAtom misinterpreted as OP1a? KLV for edit unit 9 extending into next edit unit is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mxf @ 0x7fa059805600] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org) [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input ... [mxf @ 0x7fa059805600] OPAtom misinterpreted as OP1a? KLV for edit unit 498 extending into next edit unit is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented. [mxf @ 0x7fa059805600] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org) [pcm_s24le @ 0x7fa05980d400] Invalid PCM packet, data has size 1 but at least a size of 3 was expected Error while decoding stream #0:2: Invalid data found when processing input size= 45kB time=00:00:05.66 bitrate= 65.3kbits/s speed=32.4x video:0kB audio:44kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.648207%
Change History (3)
comment:1 by , 9 years ago
Component: | undetermined → avformat |
---|---|
Description: | modified (diff) |
Keywords: | mxf added |
Reproduced by developer: | set |
Status: | new → open |
comment:2 by , 8 years ago
It is not unlikely this file has been not properly written by Avid MC, yet all other programs ignore or compensate for the KLV errors.
This finding is based on an unwrap of the essences to OP-Atom using the bmxtools (all essences seem to be okay) and re-wrapping the OP-Atoms to OP-1a, again using the bmxtools. The re-wrapped OP-1a's essences can be properly transcoded by ffmpeg without issues.
comment:3 by , 7 years ago
Resolution: | → fixed |
---|---|
Status: | open → closed |
Fixed in e9b0e42e773d4a1c9575c75e95688faca7ce4e06.
Thank you for the sample, uploaded to http://samples.ffmpeg.org/ffmpeg-bugs/trac/ticket5317/