Opened 10 years ago

Last modified 10 years ago

#3112 new defect

vcodec copy produces broken AVCHD files

Reported by: Elliott Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: mpegts h264
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
Using ffmpeg to rewrap an AVCHD .mts file to .mov results in a file which does not play in Davinci Resolve or Adobe Premiere, and the OS X Finder thumbnail shows all white. If instead, I use the application ClipWrap to do this conversion, I don't have any of these problems. I got a small explanation from the ClipWrap developer:

We still need to index every PES packet in the h264 stream to build a legit QuickTime header and sample table - ffmpeg fudges that, which makes files that are playable but not properly editable.

How to reproduce:

$ ffmpeg -i 00020.MTS -an -vcodec copy 00020.mov
ffmpeg version N-57394-gea9632b Copyright (c) 2000-2013 the FFmpeg developers
  built on Oct 24 2013 11:58:12 with Apple LLVM version 5.0 (clang-500.2.79) (based on LLVM 3.3svn)
  configuration: --enable-gpl --enable-version3 --enable-nonfree --enable-static --enable-libass --enable-libbluray --enable-libfdk-aac --enable-libmp3lame --enable-libvpx --enable-libx264 --enable-opencl --enable-libfreetype --disable-shared --enable-libopenjpeg --enable-libvorbis --enable-libtheora
  libavutil      52. 47.101 / 52. 47.101
  libavcodec     55. 38.101 / 55. 38.101
  libavformat    55. 19.104 / 55. 19.104
  libavdevice    55.  5.100 / 55.  5.100
  libavfilter     3. 89.100 /  3. 89.100
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
Input #0, mpegts, from '00020.MTS':
  Duration: 00:00:00.54, start: 1.000011, bitrate: 22684 kb/s
  Program 1 
    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 23.98 fps, 23.98 tbr, 90k tbn, 47.95 tbc
    Stream #0:1[0x1100]: Audio: pcm_bluray (HDMV / 0x564D4448), 48000 Hz, stereo, s16, 1536 kb/s
    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090), 1920x1080
Output #0, mov, to '00020.mov':
  Metadata:
    encoder         : Lavf55.19.104
    Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 23.98 fps, 90k tbn, 90k tbc
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
Press [q] to stop, [?] for help
frame=   12 fps=0.0 q=-1.0 Lsize=    1314kB time=00:00:00.45 bitrate=23467.9kbits/s    
video:1313kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.074804%}}}

Attachments (1)

00020.MTS (1.5 MB ) - added by Elliott 10 years ago.

Download all attachments as: .zip

Change History (5)

by Elliott, 10 years ago

Attachment: 00020.MTS added

comment:1 by Carl Eugen Hoyos, 10 years ago

Does the output file play with QuickTime (and WMP)?

comment:2 by Elliott, 10 years ago

Yes it plays in QuickTime 7, X, and WMP 12.

comment:3 by Elliott, 10 years ago

Update: In addition to the problems I listed before, these files also "crash" DaVinci Resolve 10.0.2.

comment:4 by Carl Eugen Hoyos, 10 years ago

Keywords: mpegts h264 added
Note: See TracTickets for help on using tickets.