I have 10,000 video galleries on my drive like this:
Folder: GalleryOne 01.mpg 02.mpg 03.mpg
Folder: GalleryTwo 01.mpg 02.mpg 03.mpg
I need a program that will go into each folder, convert the mpegs to .wmv, and dump them into the same folder.. so that it would turn out to be like this
Folder: GalleryOne 01.wmv 02.wmv 03.wmv
Folder: GalleryTwo 01.wmv 02.wmv 03.wmv
+ Reply to Thread
Results 1 to 15 of 15
-
-
It doesn't have to be .wmv... so long as they are re-encoded..
I don't know how to run a recursive over here -
What is your goal or purpose in re-encoding? Reduce size, compatibility, what?
Are you aware the visual quality will be worse with any re-encode?
If you go to the commandline and type "dir *.mpg /s" you have done a recursive directory search. It is not hard, you just have to figure out the big words. -
If it doesn't have to be wmv, then what is wrong with mpg? You have to have some kind of criteria.
Basically just for /R %%f in (*.mpg) DO (whatever.exe "%%f" "%%~nf.whatever")
Runs whatever command you create for each mpg file with the /R making it recursive so if you start in the root folder, it will do the lot.
Run for /? for full info.
ffmpeg -formats will give you a list of supported output formats. If you just want smaller files, then x264 would be a good option. -
Sorry about that,
To be more clear - they can be just any format so long as the filesizes change. I don't care if they're bigger or smaller. -
So I replace *.mpg with the folder I have the galleries in? (c:\galleries\*.mpg)
And then the whatever.exe becomes something like
converterappname.exe command to send to program
? -
Ah, I see,
Would I have to put the program executable in that same folder at the .bat file.. or could I path to it? -
exe can be anywhere. Don't forget quotes if it is in say program files though.
-
What do you need quotes for.. is that in case of a filename with spaces in it? I probably would tilde one it because I am lazy (some times)
-
for %%f in (*.mpg) do ffmpeg.exe -i "%%f" -vcodec wmv2 -b 768 -acodec mp3 -y "%%~nf.wmv"
1)Save the line above into a file called Process.bat Make sure it ends up with a .BAT extension and not a .txt extension. If it does, rename it and give it a .bat extension only.
2)Create a test folder and copy a few of your mpg files into it. Place your Process.bat file into the same folder.
3) Do you have ffmpeg.exe already ? place it into the same test folder as well. Again, this is only a rehearsal for the real thing, but you'll get to see what your WMV files will look and sound like, and you'll ensure things actually work.
4) Double click on process.bat and away she goes....
Similar Threads
-
Software to list thumbnails of music-videos from many folders in sigle view
By DaveBG in forum Newbie / General discussionsReplies: 0Last Post: 5th Mar 2012, 13:55 -
Videos encoded w/ Vdubmod = less saturated/vibrant? (Example video inside)
By ahphoto in forum Newbie / General discussionsReplies: 2Last Post: 28th Dec 2010, 09:28 -
Syncing two videos + embedding one inside the other
By Ygramul in forum EditingReplies: 3Last Post: 17th Mar 2010, 20:50 -
Cant Import videos into iTunes library from other folders
By Gangstapimp50 in forum Portable VideoReplies: 1Last Post: 30th Oct 2007, 00:34