Skip to content

Transcoding AVCHD .mts file produces file without video

I'm trying to transcode a AVCHD .mts file that has been recorded with a Sony HDR-CX305 Camcorder into a usable format.

Playing the file with VLC works absolutely fine, but transcoding it (from GUI and from CLI) produces a file with audio, but without any video.

I tried different target video codecs (mp4v, mp2v) and different muxers (ts, ps, mp4, ogg) - always the same.

Input file:

  • 5.6MiB
  • video codec:
    • H264 - MPEG-4 AVC (part 10) (h264)
    • Resolution: 1440x1080
    • 50 fps
  • audio codec:
    • Codec: A52 Audio (aka AC3) (a52 )
    • 48khz, 256kb/s

Transcoding command on cli: cvlc -vvv 00147.MTS --sout "#transcode{vcodec=mp4v,acodec=mp2a,vb=4096,ab=192,scale=1,audio-sync}:standard{access=file,mux=ogg,dst=00147.MTS.ogg}" vlc://quit

Transcoding with the GUI:

  • start vlc
  • Media -> convert/save
  • Select file 00147.MTS
  • Click "Convert/save" button
  • Set destination file: 00147.MTS.mp4
  • Keep default profile "Video - H.264 + AAC (MP4)
  • Click "Start"

The resulting file is 56.5KB, audio plays, no video.

An example file which can be used to reproduce the issue is available at http://hidden.cweiske.de/00042.MTS

To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information