I have a lot of home-made videos I recorded using my Canon Vixia HFG10 that are in MTS format. I want to erase all the audio files from the group of videos (I don't need to save any of the audio, I just want silence on all the videos). I currently own Sony Vegas 11.0 but haven't found any batch processing method that would help me. I'm unfamiliar with the other tools and not a programmer. Does anyone have any suggestions on an easy/quick way to batch process all my MTS videos so none of them have any audio?
Matt in NH
+ Reply to Thread
Results 1 to 14 of 14
Maybe with a ffmpeg / ffmbc batch script, to batch copy the video stream into a new container
(But ffmpeg notoriously has problems with avc in transport streams, so test out a few first in a folder before doing the whole batch. ffmbc handles transport streams slightly better)
1) Download ffmbc binary from here, place ffmbc.exe in folder of videos to be converted
2) Open a text file in notepad in same directory , copy & paste the following, save it, change .txt extension to .bat
for %%a in ("*.mp4") do ffmbc -i "%%a" -vcodec copy -an -f mpegts "%%~na.new.mts" pause
This will leave original files untouched, and copy the video stream, no audio, into a new .mts container with the same name with "new" appended . e.g. "00001.mts" will generate "00001.new.mts"
So try a few first, and test playback, compatibility etc... before doing the whole bunch
Thanks, I followed the instructions and placed my *.MTS files in a directory, along with the BAT file I created and the ffmbc file. A command line opened up when I clicked the BAT file that said "press any key to continue" but then nothing happened. I noticed in the BAT file script that it begins by looking for mp4 files, but I don't have any mp4 files, they are all *.mts files. Could this be why nothing happened?
for %%a in ("*.mts") do ffmbc -i "%%a" -vcodec copy -an -f mpegts "%%~na.new.mts" pause
Is there a list of other cool command lines like that online anywhere? I'd love to see what else I can do with that ffmbc and new BAT files. That was really awesome.
This is a great forum/website!
Just set a different folder for the output files
for %%a in ("*.mts") do ffmbc -i "%%a" -vcodec copy -an -f mpegts "C:\folder\%%~na.new.mts" pause
I have tried the coding and its working well. many thanks for preparing such a nice coding. Even i can remove the audio from it using this coding, i am facing another problem since the subtitle information also vanishes once i remove the audio. could you suggest a trouble shooting method for removing audio by keeping the video and subtitle information as it is.
I am having some mts video files on which date and time coding information is available. i have recorded it with sony HDR PJ230 handycam. The time and date information is showing once i play the file in the handycam but once i copy the video to computer and play it using media player, the subtitle information is missing. kindly advice. (the video is in mts format and the subtitling information on the media player is also on)
I know this is an old thread but I hope poisondeathray is still around and can answer this question. I had the same problem and have followed the instructions.
My problem is that when I initially execute the .bat file I get the following pop-up message "ffmbc.exe has stopped working: A problem caused the program to stop working correctly. Windows will close the program and notify you if a solution is available."
I click "close program", and then the program in the .CMD window runs and converts my files perfectly except for the first file. The files are named 00000.mts, 00001.mts, 00002.mts. I thought maybe the problem was the ooooo in the first file name so I renamed them starting 00001.mts but I get the same result.
I suspect there is some issue in the .bat file that didn't consider Win8.1 when it was written. Scripting is way beyond my skill set so any advice would be greatly appreciated!
Thank You in advance!
@subin - oops, I guess it's old thread, but you can try adding -scodec copy to copy the subtitle information. But for camcorder transport streams, it probably won't work. You can try to extract them as srt subs with avchd2srt
@baddog9 - The windows batch syntax hasn't changed in windows 8 or 10 - it might be that 00000.mts is corrupted since the other files convert ok. Try re transferring it from the card. You can also try ffmpeg, it has improved significantly since this thread while ffmbc has been stagnant in development, or if you're using the ffmbc from the link above, that might be an older version, maybe try the newest ffmbc build
Thanks poisondeathray for your help. I had tried a workaround by duplicating the file and dropping a '0" in the file name resulting in 4 files. I then ran the .bat again. It ran as before, again not converting the first file but now I can just delete it. I had made sure to use the most recent build of ffmbc I could find but I will try ffmpeg. If that doesn't work, I will use the workaround.
Can't tell you how much I appreciate this forum and your help. Even if I am stuck using the workaround it is going to save me so much time with near 1 TB of files I have to work with.