Monday, 25 July 2011

Converting mov to m2t for Sony Vegas

A friend captured from a Z7 with some Apple-flavour software (I think it was FCP). That's what in the mov:
  Duration: 00:23:11.36, start: 0.511854, bitrate: 26575 kb/s
    Stream #0.0(eng): Video: mpeg2video (Main), yuv420p, 1440x1080 [PAR 4:3 DAR
16:9], 25000 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn, 47.95 tbc
    Metadata:
      creation_time   : 2011-07-14 10:48:07
    Stream #0.1(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Metadata:
      creation_time   : 2011-07-14 10:48:07
    Stream #0.2(eng): Audio: pcm_s16le, 48000 Hz, 1 channels, s16, 768 kb/s
    Metadata:
      creation_time   : 2011-07-14 10:48:07
The streams themselves are completely compatible with Vegas but the container causes problems because it loads the quicktime DLLs and they won't like mpeg2 for some reason. Essentially not a Vegas problem but an Apple problem. I decided to convert to m2t with ffmpeg:
ffmpeg -i Boots.mov -vcodec copy -an boots_noaudio.m2t
Note "-an" means no audio. With audio added to the m2t file Vegas 10 locks up. I guess ffmpeg is not generating a fully compliant m2t file. Instead I exported the audio as separate tracks:
ffmpeg -i Boots.mov -acodec copy -vn -map 0.1 boots_audio1.wav
ffmpeg -i Boots.mov -acodec copy -vn -map 0.2 boots_audio2.wav
...and loaded the 3 files into Vegas and then grouped them.
I had quite a lot of problems with ffmpeg generated files but this workflow works at least and there is no loss through recompression.

No comments:

Post a Comment