mencoder convert script
Can please someone help me? . I've got a big list of .rmvb files and i want to convert these files to .avi
I found this command and it works very good: mencoder <input_movie> -oac mp3lame -ovc lavc -o output_movie.avi But, i can only use this command for 1 .rmvb file Does anyone has an idea or example for me to make an (bash? or something else) script to convert the whole list of .rmvb files to .avi files? And that the script put the converted .avi files in a other directory. I´ve tried to search with several keywords for an example, but no result. ( maby wrong keywords? hahah ) |
A simple for loop on the command line:
Code:
for i in *.rmvb; do mencoder "$i" -oac mp3lame -ovc lavc -o "/some/other/directory/${i/.rmvb/.avi}"; done Code:
#!/bin/bash |
Try this:
Code:
#!/bin/sh |
All times are GMT -5. The time now is 03:27 PM. |