[FFmpeg-trac] #3112(undetermined:new): vcodec copy produces broken AVCHD files

FFmpeg trac at avcodec.org
Sun Nov 3 04:11:31 CET 2013


#3112: vcodec copy produces broken AVCHD files
-------------------------------------+-------------------------------------
             Reporter:               |                     Type:  defect
  spookybathtub                      |                 Priority:  normal
               Status:  new          |                  Version:  git-
            Component:               |  master
  undetermined                       |               Blocked By:
             Keywords:               |  Reproduced by developer:  0
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------
 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
 [http://www.divergentmedia.com/clipwrap 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%}}}

-- 
Ticket URL: <https://ffmpeg.org/trac/ffmpeg/ticket/3112>
FFmpeg <http://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list