m2tstoavi

Software Screenshot:
m2tstoavi
Software Details:
Version: 0.5
Upload Date: 3 Jun 15
Developer: Axel Olmos
Distribution Type: Freeware
Downloads: 7

Rating: nan/5 (Total Votes: 0)

m2tstoavi is a script for people who have recorded .m2ts videos using a high def camcorder and want to play them on their Linux / Unix / Mac OS X computer, or want to convert them to another format.

Here is the procedure used to convert a .m2ts file by the m2tstoavi script:

    1. Use xporthdmv to convert the file into .mpv and .mpa files.
    2. Use ldecod to convert the .mpv file into a .yuv file.
    3. Rename the .mpa file ldecod created to .ac3

At this point, a .yuv file and .ac3 file are created which should be standard.

    4. Use ffmpeg to create a .avi file that contains the .yuv transcoded to something else and the .ac3 file.

Step 4 is highly customizable. You should be able to transcode to whatever format you want at this step.

There are different versions of m2tstoavi including m2tstoavi.fifo which  uses a fifo to speed up the conversion process, and m2tstoavi.mencoder which uses mencoder instead of ffmpeg to create the video.  Use whichever of the three versions of the scripts works best for you.

The commands for steps 1-4 would look something like this, for a sample file named samplevideo.m2ts:

xporthdmv -nh samplevideo.m2ts 1 1 1
ldecod -i bits0001.mpv -o /tmp/samplevideo.yuv
mv bits0001.mpa /tmp/samplevideo.ac3
ffmpeg -r 29.97 -s 1440x1080 -i /tmp/samplevideo.yuv -i /tmp/samplevideo.ac3
-vcodec mpeg4
-sameq -acodec copy -aspect 16:9 -b 15000k samplevideo.avi


The commands above would produce a samplevideo.avi file that contains the converted version of the samplevideo.m2ts.  In this example, it's converted  to the mpeg4 codec, but you can use whatever codec you choose.

The included example script m2tstoavi performs the conversion task, and makes things a little easier. Modify the m2tstoavi script to suit your specific transcoding needs by changing the ffmpeg line in the script.

Usage:

m2tstoavi filename ...


where filename is something like homevideo.m2ts and it will start
the process, creating homevideo.avi as output.

You can also use wildcards, like:

m2tstoavi *.m2ts

This process is extremely slow.

You will need a LOT of disk space in /tmp.

I have included a sample video file, samplevideo.m2ts.

Try converting it and watch it with the commands:

m2tstoavi samplevideo.m2ts
mplayer samplevideo.m2ts


DO NOT DELETE YOUR ORIGINAL .m2ts or .MTS FILES.  Save them in case a better solution to this problem appears in the future.

For those of your with a Sony HDR-SR1 AVC HD Camcorder and Linux:

I plug in the HSR-SR1 to my USB 2.0 port and run the script:

hdrsr1

which converts all the .MTS files in the camcorder to .avi and places them in the current directory.

If someone comes up with a better process, please modify this package and run with the ball.

Similar Software

Transmageddon
Transmageddon

17 Feb 15

TwitchBrowser
TwitchBrowser

17 Feb 15

AcidRip
AcidRip

4 Jun 15

Comments to m2tstoavi

Comments not found
Add Comment
Turn on images!