Forum Archive Home -> Video Conversion -> AVCHD (*.MTS) to MPEG-2 conversion
AVCHD (*.MTS) to MPEG-2 conversion | ||
| keesio posted 2007 Apr 02 21:58 | ||
| Hello folks,
I am trying to convert some AVCHD (*.MTS) files to standard MPEG-2 format. What is the best software for this conversion? I've done some searches and looks like the most recognized option is Nero 7. I've heard of possibly Ulead DMF 6 and Elecard. Any tips would be very appreciated. Thanks! | ||
| Soopafresh posted 2007 Apr 03 04:39 | ||
| If you don't mind a scripted method, look towards the bottom of this page. Make sure you rename your file to Input.ts You'll also need to install Avisynth and have the .NET 2.0 runtimes installed.
http://forum.videohelp.com/viewtopic.php?t=323601&postdays=0& ... p;start=30 This should be the file to download http://www.bestsharing.com/files/EhLsL239733/enc2mpeg2_NEW_R2.zip.html | ||
| keesio posted 2007 Apr 05 23:47 | ||
| I will give this a try! Thanks!!! | ||
| keesio posted 2007 Apr 06 14:10 | ||
| Hi Sooprafresh,
I get a bunch of errors with my stream during the mpeg2repair portion: ... Error: Packet at file offset 3010229901 has no TS Sync Byte Error: Packet at file offset 3027361532 has no TS Sync Byte Error: Can't find next TS Sync Byte. Terminating operation. Info: End of H.264 sequence Any ideas on the cause? My input files are *.mts files from a Panasonic HDC-SD1 Thanks | ||
| Soopafresh posted 2007 Apr 06 18:51 | ||
| I just might. :) Give me a few minutes to take a look. What I could really use from you is a chunk of the file so I can figure out where it needs to be modified for your type of .MTS files.
Cut a piece and post it on one of the many free file posting sites. EDIT - Actually, I might not need the file chunk. Are these samples the same as yours? http://www.camcorderinfo.com/bbs/showthread.php?t=132542&page=1 EDIT 2 - Wow, those are non standard AVC files. You're right, same errors on the samples as the one you mentioned. There must be a way to make them play nice. Lemme look into it... EDIT 3 - Okay, it isn't that non standard. Looks like an easy modification. I'll post the updated ZIP file for you in a bit. EDIT 4 - Well, they seem to use PAFF , which can't be decoded unless you're using an AVC decoder that supports it. The best is CoreAVC ($9 but worth it) and you also need to install Haali Media Splitter (which is called MatroskaSplitter). It works fine via the modifications I made. Replace the files in your folder with these. update.rar And here's proof it works :D output_hq.mpg | ||
| keesio posted 2007 Apr 06 22:45 | ||
| Soopafresh,
Thanks for the fast and very informative responses! It is very very appreicated! I tried the new drop and ran into a different error. When running HCenc, I get: "ERROR: can't process AVS file, wait for AviSynth error message" followed by a series of can't crop error (probably caused because of the first failure). I see test.avs get generated however. I have AviSynth and Haali installed. I don't have CoreAVC (can't purchase it off their site for now) so I installed ffdshow shich I believe has an AVC decoder. Do I explicitly need CoreAVC for you script? Thanks | ||
| Soopafresh posted 2007 Apr 06 22:53 | ||
| Can you play your MTS files in Media Player ? How are you currently playing them ?
I don't think FFdshow's AVC decoder can decode your file, although I could be wrong. I believe there won't be a free solution until late summer. Lemme know. The options are limited, unfortunately, but not completely hopeless. If you have LOTS and LOTS of disk space, there's another way but it is slow. | ||
| keesio posted 2007 Apr 06 23:04 | ||
I can play the MTS files in Media Player somewhat but it is choppy because my PC doesn't have the processing power to handle H264 decode (P4 2.8 GHz). Hence why I want to convert to standard MPEG-2. I've installed so much stuff that I don't know what I have that is doing the decode. I also have Nero 7 Ultra installed. It could be that I'm using that codec. Nero Vison4 (which comes with Nero 7) can actually do AVCHD->MPEG-2 converstion. I've converted some smaller files. But it is barfing on one file that I really want to convert so I am looking at other methods to try and convert it. I do have a decent amount of disk space (~100 GB) available... Thanks again | ||
| Soopafresh posted 2007 Apr 06 23:10 | ||
| Okay, lemme test Plan B and I'll post the files shortly. | ||
| keesio posted 2007 Apr 06 23:35 | ||
Thanks. btw - I've stuck a small clip of one of the MTS files I am working with. http://www.yousendit.com/download/QlVqZGVSbEFVVGswTVE9PQ This one I was able to convert using Nero but should give you an idea of file type. (Trying to convert this with the script failed with that error I mentioned). Thanks again. | ||
| Soopafresh posted 2007 Apr 06 23:54 | ||
| Here are the updated files. Like I said, it is friggin slow... The process of converting from AVC to uncompressed YUV is like watching paint dry.
update2.rar My input.ts avchd file was 26MB, look at the size of the temporary YUV file....
You'll need 43x the amount of free disk space for the YUV file, so a 600MB TS file will need space for a 26GB YUV file. You can delete the YUV after the batch file encodes the MPEG. And here's an example of the output output_fast.mpg Edit: Here's Your Example AVC file. Is that cake or mashies on the table ? output_hq.mpg ![]() | ||
| keesio posted 2007 Apr 07 02:07 | ||
| Thanks! Definately appreciate all your help with this.
Wow, you weren't kidding about the space requirements. The file I need to convert is a 3 GB MTS file so I'll need over 120 GB for the temp file! I'll need to clear out some space and give this a try... Again thanks for all the timely help. And yup, that is a cake on the table. It is footage from a costume/birthday party! | ||
| 45tripp posted 2007 Apr 07 09:23 | ||
| You can drop your file in graphedit to see what is decoding.
You can change merit priority of filters, or unregister even, to change things so the filter you want is used. | ||
| keesio posted 2007 Apr 10 22:38 | ||
| Finally had a chance to try this after just purchasing a new HD for extra storage :)
The latest drop worked a lot better! I was able to convert my smaller clips with no problem. Did hit a issue with the H264->raw YUV decode. At about 4/5 of the way through I hit some fseek error and it aborted. I ended up with a 99 GB temp file instead of the ~125 GB expected. Anyway HCenc ran and converted the raw file to mpeg2 video. However the file is PAL. How do I tweak so that it is NTSC? Also when I try to mux the video and audio together, it is out of sync - the video is slower than the audio. I'm wondering if has anything to do with the video in PAL (less fps - sorry, a newbie thought). | ||
| Soopafresh posted 2007 Apr 11 02:46 | ||
Ah yes, my fault. :oops: Lemme post some NTSC compatible scripts. Should be a quick modification. You can try this on your 25fps encode, but I wouldn't be too optimistic about the results.
This version includes muxing to .MPG (just for a quick look. It still keeps the .M2V and AC3 so you can mux with your DVD creator.) updatentscv2.rar | ||
| ls01c posted 2007 Apr 12 21:11 | ||
| Hi,
Im a beginner in this conversion. I hav just transfered all the stream files with .mts extension from my HDR-SR1 HD AVCHD digital cam into my pc. I hav no idea how to play the video in my pc. I hav tried use powerdvd 7 , media player classic bt failed. Finally i found this post thread in this forum which seems very helpful. For your information, i hv K-Lite standard package installed, Avisynth 2.5, Haali Media Splitter installed. I downloaded the enc2mpeg2_NEW_R2 and update2 zip files and pasted the files inside update2 into enc2mpeg2_NEW_R2. I dont hav output.h264 file as this is required by the DGAVCIndex.exe, am i right? I tried to run the _encode_Fast.bat, and generated a .yuv file which is very very large, a .mpa file, a .mpv file and .ac3 file. This is how it looks like after running the _encode_Fast.bat.
I was stucked after those files were created. Now i still unable to play the file. Can somebody plz help me? | ||
| Soopafresh posted 2007 Apr 12 22:47 | ||
| Do you have Avisynth installed ? It is required. Download and install it.
Also, CoreAVC pro can play mts files, but it is commercial software. Only $20, but worth it. For the script above, download this update and copy the files into the same folder.
Malaysia uses the PAL standard, so use the appropriate batch file. updatepal.rar | ||
| ls01c posted 2007 Apr 13 00:32 | ||
| i have installed Avisynth 2.5 and Haali Media Splitter. But i dont have CoreAVC. Any other way? | ||
| Soopafresh posted 2007 Apr 13 01:25 | ||
| Open test.avs in VirtualDub. Any Error messages ? | ||
| ls01c posted 2007 Apr 13 01:33 | ||
| THanks Soopafresh for ur updated batch files. I can finally see some moving motion pictures. After converting into the output.yuv, bits0001.mpa and .mpv files, it use the HCenc_020.exe to convert into output.m2v and output.ac3.
But when it try to mux these two files into the .mpg format, it failed. I can only view the output.m2v file. BTW, there isnt any error message when i use VirtualDub to play the test.avs file. I can see the video clips. | ||
| Soopafresh posted 2007 Apr 13 05:37 | ||
| That's progress, at least :) So the muxing isn't working ? Try this gui based muxer.
mplex.zip | ||
| ls01c posted 2007 Apr 13 09:20 | ||
| thanks Soopafresh, although it doesnt mux the ac3 file with the m2v file, bt it can mux the mpa and the m2v file into the mpg file. So finally i can watch the video clips.
But it will gonna take quite some time cos i hav bout few GB mts files to convert and also alot of space in my hardisk. :( once again thanks Soopafresh. | ||
| Abond posted 2007 Apr 13 09:45 | ||
He, he, it can, but in a weird way. Either rename the ac3>mpa or type the file name (with the extension) by hand in the window of file selection. | ||
| Soopafresh posted 2007 Apr 13 09:52 | ||
| The conversion to YUV is the terribly slow part. If you get the CoreAVC codec, you can bypass that process and start encoding straight from the .mpv file. | ||
| ls01c posted 2007 Apr 13 19:29 | ||
| Thanks for ur help, Soopafresh. | ||
| Soopafresh posted 2007 Apr 13 20:33 | ||
| No problem. :) I'll probably post an updated script in the next day or so that makes the audio track more stable. | ||
| keesio posted 2007 Apr 14 12:05 | ||
| la01c - I used ImagnoMPECG-Muxer:
http://www.videohelp.com/tools?tool=ImagoMPEG-Muxer worked perfectly for muxing the m2v and ac3 files generated from soopafresh's script | ||
| keesio posted 2007 Apr 14 12:09 | ||
| Soopafresh - you are the MAN!!! Thanks so much for all your help!
You're latest drop worked great. My video is in NTSC and was able to mux with video and audio in sync. | ||
| Soopafresh posted 2007 Apr 14 12:50 | ||
| Great! Nice to hear about results with the script. | ||
| Soopafresh posted 2007 Apr 22 02:53 | ||
| Okay, a new version of the script, this time up to 3X faster, thanks to the new celtic druid build of the YUV decoder. Contains all of the fixes from above, all you need is this file (and Avisynth installed)
http://www.wikiupload.com/download_page.php?id=131874 Same requirements- input file must be named input.ts I'm gonna leave the choice of muxer up to you. The imago one referred to a few posts above is quite fine. | ||
| racer-x posted 2007 Apr 22 07:48 | ||
| I just tried it on a clip from a Panasonic SD3. The clip is originally 1920 x 1080, so I edited the "Fast encode bat" file to reflect the input size and change fps to 29.97. It works fine, but is very slow.
Good job on your method. Besides doing it in Nero Vision, I also managed to do it with Avisynth using DirectshowSource after installing CoreAVC. The only poblem there, is the audio gets downsampled to 2 chanels. | ||
| Soopafresh posted 2007 Apr 22 11:53 | ||
| Yeah, the CoreAVC method is multitudes of times faster; some folks don't have the means to purchase it over the internet. This is about the only free option.
You can keep the 5.1 sound - demux with xport.exe and process only the video during the Avisynth conversion. Then mux it all back together. There can't be that much lost in the sound, however, unless you're recording with several mics. You can always mod the 2.0-5.1 upmixing script to create a pretty impressive pseudo surround sound track. http://forum.videohelp.com/viewtopic.php?t=326127 | ||
| Soopafresh posted 2007 Apr 23 20:46 | ||
| Just bumping this up into prime-time in order to remind those that haven't downloaded the new script package to do so. The decoder portion is now 2-3 times faster than before (which makes the speed unbearable rather than intolerable). There are 4 scripts included - PAL Fast and HQ and NTSC Fast and HQ. The HQ versions are quite nice looking, but 1/6th the speed of the fast encoder scripts.
http://www.wikiupload.com/download_page.php?id=131874 | ||
| Soopafresh posted 2007 Jun 07 23:21 | ||
| Updated Jun 7, 2007. Minor performance enhancements and plugin updates.
New versions of Yadif and MVtools - even better deinterlacing. Upgrade HC encoder to v21 for SSE3 proc enhancement 4MB http://www.filefactory.com/file/49f841/ Example output 1.5MB m2v output_hq.m2v | ||
| Soopafresh posted 2007 Jul 03 20:22 | ||
| Minor Batch file modification - Allows you to process a directory of .MTS files - No need to rename the input file to input.ts any longer. Download the following and replace the same named batch files in your folder. For M2TS files, you'll have to make a minor modification to the batch files, replacing *.MTS with *.M2TS.
enc2mpeg2_avchd_batch.zip mux.rar | ||
| hugster posted 2007 Aug 15 13:55 | ||
| First of all, thxn everyone especially Soopafresh!
I have been looking ages to convert (panasonic) MTS to avi (mpg,qt,m2v etc). Problem was i only copied the .MTS files from the SD cards from my SD1 cam. For everyone just reading this topic. Here is what i did you get my files from MTS to m2v and ac3: First download and install each file listed below. In my case I installed the MatroskaSplitter and HC021 in the same dir as AviSynth. All the other plugins/zips should be copied there too: * DL + install : http://www.free-codecs.com/AviSynth_download.htm (avisynth2.5+) * DL + install : http://download.videohelp.com/download/MatroskaSplitter03062007.exe (matroskasplitter) * DL + install : http://download.videohelp.com/download/HC021.zip (hcenc) * DL + install : http://www.videohelp.com/~liquid217/ImagoMPEG-Muxer.zip (app to merge m2v+ac3) This file features a .bat file witch lets you encode from mts to audio and video. To use it rename your .mts file to input.ts * DL + extract : http://forum.videohelp.com/images/guides/p1685577/update2.rar (file update by soopafresh) The next file features some modified .bat files witch lets you choose your fps rate between 25.00/29.97. When trying to encode please remember to [/u]rename your .mts file to input.ts[/u] * DL + extract : http://forum.videohelp.com/images/guides/p1688372/updatepal.rar (file update by soopafresh) The last .zip file is quite nice and lets the .bat files encode multiple .mts files (the whole STREAMS dir) at once . It includes 2 .bat files for fast/test encoding (25.00/29.97 ftps) and 2 .bat files for the hight quality work. * DL + extract : http://forum.videohelp.com/images/guides/p1724406/enc2mpeg2_avchd_batch.zip (file by soopafresh) Not all the information is listed here but its good to have a little workflow to go through before starting to encode. All the other information can be found in this thread! | ||
| scuty posted 2008 Apr 20 00:20 | ||
| hi!
can you hugster give more details about what to do with this files? where do you copy them ... do I just dump them in the same folder where AviSynth is. and then what's the order of the process step by step. thank you in advance. | ||
| Soopafresh posted 2008 Apr 20 00:43 | ||
| Hi scuty,
The process has been updated. Have a look here: http://forum.videohelp.com/topic346331.html Feed the AVS files to your favorite Mpeg2 encoder (Favc or ConvertXtoDVD) and you're done | ||
| scuty posted 2008 Apr 20 01:53 | ||
| thanks for the fast response! | ||
| drecord posted 2009 Sep 30 12:23 | ||
| Hi all
I found out to use tmpeg express 4.7 direkt and then movie maker... for 99$ it saves a lot of time... Canon HF200 mts 2 HDmpg see this guide http://www.vimeo.com/629815 this works perfekt... |
Login/Register to our forum to be able to post here.


after running the _encode_Fast.bat.