id	summary	reporter	owner	description	type	status	priority	component	version	resolution	keywords	cc	blockedby	blocking	reproduced	analyzed
1600	remux of xdcam mxf to mov is unplayable in Final Cut Pro	dericed		"Summary of the bug:

I would like to rewrap MXF files from an XDCam disc to QuickTime for edit in Final Cut Pro. I ran: ffmpeg -report -i /Volumes/XDCAM8004602012511C8/Clip/979_0611_01.MXF -map 0:v -an -c copy 979_0611_01.mov. The resulting file works in QuickTime, VLC, ffplay, etc, but when I open it in Final Cut Pro I get an error ""File Error: Unknown File"".

I looked in the edts/elst atom and see
Track Dur,Media Time,Media Rate
66,-1,1.0
17318,3003,1.0

When I change the first row to zeros it works. Note, when I run the same process in ffmbc the resulting file does not have the first line with the -1 media time, but only the ""17318,3003,1.0"" line and works in FCP as expected.

Source XDCAM MXF file:
{{{
http://archive.org/download/SamplesOfXdcamMxfAndQuicktimeRewrappedWithFfmpeg/979_0611_01.MXF
}}}
FFmpeg output:
{{{
http://archive.org/download/SamplesOfXdcamMxfAndQuicktimeRewrappedWithFfmpeg/979_0611_01.mov
}}}


How to reproduce:
{{{
ffmpeg started on 2012-08-03 at 11:45:16
Report written to ""ffmpeg-20120803-114516.log""
Command line:
ffmpeg -report -i /Volumes/XDCAM8004602012511C8/Clip/979_0611_01.MXF -map 0:v -an -c copy 979_0611_01.mov
ffmpeg version 0.11.1.git Copyright (c) 2000-2012 the FFmpeg developers
  built on Jul 30 2012 14:56:32 with gcc 4.2.1 (GCC) (Apple Inc. build 5666) (dot 3)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD --enable-shared --enable-gpl --enable-version3 --enable-nonfree --enable-hardcoded-tables --enable-libfreetype --cc=/usr/bin/gcc-4.2 --host-cflags='-Os -w -pipe -march=core2 -msse4.1 -mmacosx-version-min=10.6' --host-ldflags='-L/usr/local/Cellar/gettext/0.18.1.1/lib -L/usr/local/lib -L/usr/X11/lib' --enable-libx264 --enable-libfaac --enable-libmp3lame --enable-librtmp --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libass --enable-libvo-aacenc --enable-libopenjpeg
  libavutil      51. 66.100 / 51. 66.100
  libavcodec     54. 45.100 / 54. 45.100
  libavformat    54. 22.100 / 54. 22.100
  libavdevice    54.  2.100 / 54.  2.100
  libavfilter     3.  5.101 /  3.  5.101
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[mxf @ 0x10200f600] Format mxf probed with size=2048 and score=100
[mxf @ 0x10200f600] File position before avformat_find_stream_info() is 11776
[mxf @ 0x10200f600] Probe buffer size limit 5000000 reached
rfps: 29.500000 0.017218
rfps: 29.500000 0.017218
rfps: 29.583333 0.011654
rfps: 29.583333 0.011654
rfps: 29.666667 0.007172
rfps: 29.666667 0.007172
rfps: 29.750000 0.003773
rfps: 29.750000 0.003773
rfps: 29.833333 0.001456
rfps: 29.833333 0.001456
rfps: 29.916667 0.000222
rfps: 29.916667 0.000222
rfps: 30.000000 0.000070
rfps: 30.083333 0.001000
rfps: 30.166667 0.003013
rfps: 30.250000 0.006109
rfps: 30.333333 0.010286
rfps: 30.416667 0.015546
rfps: 59.500000 0.015092
rfps: 59.500000 0.015092
rfps: 59.583333 0.009917
rfps: 59.583333 0.009917
rfps: 59.666667 0.005825
rfps: 59.666667 0.005825
rfps: 59.750000 0.002815
rfps: 59.750000 0.002815
rfps: 59.833333 0.000888
rfps: 59.833333 0.000888
rfps: 59.916667 0.000043
rfps: 59.916667 0.000043
rfps: 60.000000 0.000280
rfps: 29.970030 0.000000
rfps: 59.940060 0.000000
rfps: 59.940060 0.000000
[mxf @ 0x10200f600] File position after avformat_find_stream_info() is 5126348
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
Input #0, mxf, from '/Volumes/XDCAM8004602012511C8/Clip/979_0611_01.MXF':
  Metadata:
    timecode        : 03:46:19;20
  Duration: 00:00:17.31, start: 0.000000, bitrate: 38969 kb/s
    Stream #0:0, 30, 1001/30000: Video: mpeg2video (Main), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], 35000 kb/s, 29.97 fps, 29.97 tbr, 29.97 tbn, 59.94 tbc
    Stream #0:1, 29, 1001/30000: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Stream #0:2, 29, 1001/30000: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Stream #0:3, 29, 1001/30000: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
    Stream #0:4, 29, 1001/30000: Audio: pcm_s16le, 48000 Hz, mono, s16, 768 kb/s
Output #0, mov, to '979_0611_01.mov':
  Metadata:
    timecode        : 03:46:19;20
    encoder         : Lavf54.22.100
    Stream #0:0, 0, 1/30000: Video: mpeg2video (m2v1 / 0x3176326D), yuv420p, 1440x1080 [SAR 4:3 DAR 16:9], q=2-31, 35000 kb/s, 29.97 fps, 30k tbn, 29.97 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=  113 fps=0.0 q=-1.0 size=   16558kB time=00:00:03.73 bitrate=36296.7kbits/s    
frame=  194 fps=175 q=-1.0 size=   27943kB time=00:00:06.43 bitrate=35546.3kbits/s    
frame=  242 fps=150 q=-1.0 size=   35029kB time=00:00:08.04 bitrate=35684.8kbits/s    
frame=  293 fps=138 q=-1.0 size=   42277kB time=00:00:09.74 bitrate=35546.8kbits/s    
frame=  386 fps=147 q=-1.0 size=   55232kB time=00:00:12.84 bitrate=35221.6kbits/s    
frame=  458 fps=146 q=-1.0 size=   65892kB time=00:00:15.24 bitrate=35399.2kbits/s    
/Volumes/XDCAM8004602012511C8/Clip/979_0611_01.MXF: Operation not permitted
No more inputs to read from, finishing.
frame=  519 fps=147 q=-1.0 Lsize=   74295kB time=00:00:17.28 bitrate=35213.5kbits/s    
video:74288kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.009638%
[AVIOContext @ 0x101913480] Statistics: 18344283 bytes read, 3 seeks

}}}"	defect	new	normal	undetermined	git-master		mov				0	0
