VideoHelp Forum

Our website is made possible by displaying online advertisements to our visitors. Consider supporting us by disable your adblocker or Try ConvertXtoDVD and convert all your movies to DVD. Free trial ! :)
+ Reply to Thread
Results 1 to 14 of 14
Thread
  1. 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?

    Thanks!
    Matt in NH
    Quote Quote  
  2. 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
    http://www.mediafire.com/?8xynxe10rxb88

    2) Open a text file in notepad in same directory , copy & paste the following, save it, change .txt extension to .bat

    Code:
    for %%a in ("*.mp4") do ffmbc -i "%%a" -vcodec copy -an -f mpegts "%%~na.new.mts"
    pause
    3) Double click .bat

    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
    Quote Quote  
  3. 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?

    Thanks again!
    Matt
    Quote Quote  
  4. sorry typo

    Code:
    for %%a in ("*.mts") do ffmbc -i "%%a" -vcodec copy -an -f mpegts "%%~na.new.mts" 
    pause
    Quote Quote  
  5. Originally Posted by poisondeathray View Post
    sorry typo

    Code:
    for %%a in ("*.mts") do ffmbc -i "%%a" -vcodec copy -an -f mpegts "%%~na.new.mts" 
    pause
    Wow! Thanks! You are awesome. That script and your directions worked perfectly! You don't know how happy I am right now! I thought I might have to manually process each file separately and re-render everything. You just saved me hours of effort with your knowledge. I really appreciate this. Thank you sooooooooo much!!!!

    Matt
    Quote Quote  
  6. Cheers
    Quote Quote  
  7. Originally Posted by poisondeathray View Post
    Cheers
    I've run the script a couple times and it's great. Thanks again. One minor issue that I am having with it though is that it doesn't stop after processing all the videos in the folder, it loops and starts redoing them all again and tacking on an extra .new at the end. I just came back to check on my batch and noticed all the files were done twice and it was working on the third. That is I had: File-a.new, File-a.new.new, File-a.new.new.new and so on. So I just closed the command line window and will manually delete the extra files. The script worked great though, and if you have any suggestions on how I can get it to process them only once in the future that would be great, either way I plan on using it again (even if I do end up with "extra files" after).

    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!

    Thanks!
    Matt
    Quote Quote  
  8. Just set a different folder for the output files

    e.g.
    C:\folder

    Code:
    for %%a in ("*.mts") do ffmbc -i "%%a" -vcodec copy -an -f mpegts "C:\folder\%%~na.new.mts"  
    pause
    Quote Quote  
  9. Perfect. Thanks!
    Quote Quote  
  10. Member
    Join Date
    Jul 2013
    Location
    india
    Search Comp PM
    hello
    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.
    Quote Quote  
  11. Member
    Join Date
    Jul 2013
    Location
    india
    Search Comp PM
    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)
    many thanks
    subin
    Quote Quote  
  12. 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!
    Quote Quote  
  13. @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
    Quote Quote  
  14. 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.

    Cheers!
    Quote Quote  



Similar Threads