Hi,
For those of us using Linux, I put together a readme and some sample scripts on how to convert .m2ts files to a format playable with mplayer.
Here's a link to the package I put together:
http://www.olmosconsulting.com/m2ts.tar.gz
Here is the procedure used:
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
4. Convert the .yuv file into a .y4m file using yuv4mpeg.
At this point, you have a .y4m file and .ac3 file which should be
standard.
5. Use ffmpeg to create a .avi file that contains the .y4m
transcoded to something else and the .ac3 file.
Sample commands:
xporthdmv -nh FILE.m2ts 1 1 1
ldecod -i bits0001.mpv -o /tmp/FILE.yuv
mv bits0001.mpa /tmp/FILE.ac3
yuv4mpeg -w 1440 -h 1080 -x 420mpeg2 < /tmp/FILE.yuv > /tmp/FILE.y4m
ffmpeg -i /tmp/FILE.y4m -i /tmp/FILE.ac3 -acodec copy -vcodec h264 -sameq -s 1440x1080 -aspect 16:9 -b 15000000 FILE.avi
If there is anyone out there who knows what they are doing with ffmpeg and
has suggestions, I'd love to hear them.
Axel