I have all of my DVDs ripped to ISO's which I use on my machine and a network media player or two. I have a script to generate the ISO's and it works wonderfully. I love having the ISO's as it gives me the whole DVD experience... however, for my tablet and other mobile devices, I want to have smaller / nimbler files.
Enter MP4 and a batch file I've cobbled together... I've found though that the CLI mode does things slightly differently than the GUI. It is as if it is ignoring some settings in the GUI.
Example, no matter what my settings are, I can't get the thing to create a file name in the format I want (which is to use whatever the iso file name is and an mp4 extension). I also can't seem to get it to save all of the mp4 files in one directory, it wants to create subdirectories.
So, is it my command line, or is it the product... here is my batch...
what I want on the output side is f:\mp4s to have one mp4 file for each of the iso's found in g:\dvds\isos\.
what I get with this on the output side is something like this...
f:\mp4s (dir)
f:\mp4s\animal_house.mp4 (dir)
f:\mp4s\animal_house.mp4\mp4 (dir)
f:\mp4s\animal_house.mp4\mp4\animal_house (dir)
f:\mp4s\animal_house.mp4\mp4\animal_house\animal_h ouse.Title1.mp4 (file)
now, I could write another script to clean this up, but it seems like that is avoiding the real issue.
can anyone lend me a hand? again, i can't tell if my command line is botched or the product isn't paying attention to the settings right.
thanks
bruce
Enter MP4 and a batch file I've cobbled together... I've found though that the CLI mode does things slightly differently than the GUI. It is as if it is ignoring some settings in the GUI.
Example, no matter what my settings are, I can't get the thing to create a file name in the format I want (which is to use whatever the iso file name is and an mp4 extension). I also can't seem to get it to save all of the mp4 files in one directory, it wants to create subdirectories.
So, is it my command line, or is it the product... here is my batch...
Code:
@echo off ::Output what is going on... echo.Initializing... ::enable delayed variable expansion (to counter stupid dos batch behaviour) echo.- EnableDelayedExpansion SETLOCAL EnableDelayedExpansion set pathback=%cd% ::output variables echo.- setting variables set exe=I:\Apps\DVDFab\DVDFab.exe set isodrive=G: set isodir=G:\dvds\isos set isoext=iso set mp4drive=F: set mp4dir=F:\mp4s\ set mp4ext=mp4 set scriptdrive=G: echo.-- isodrive=%isodrive% echo.-- isodir=%isodir% echo.-- isoext=%isoext% echo.-- mp4drive=%mp4drive% echo.-- mp4dir=%mp4dir% echo.-- mp4ext=%mp4ext% %isodrive% cd %isodir% for /f "delims=" %%X in ('dir /b /o-n *.%%isoext%%') do ( IF not exist "%mp4dir%\%%~nX.%mp4ext%" ( echo.!date! !time! Processing %%~sX %exe% /MODE "DVDMP4" /PROFILE "cellphone.GalaxyTab.mp4" /SRC "%%~sX" /DEST "%mp4dir%\%%~nX.%mp4ext%" /CLOSE ) ELSE ( echo.!date! !time! Skipping %%~sX ...%mp4dir%\%%~nX.%mp4ext% already exists. ) ) %scriptdrive% cd %pathback% @echo on
what I get with this on the output side is something like this...
f:\mp4s (dir)
f:\mp4s\animal_house.mp4 (dir)
f:\mp4s\animal_house.mp4\mp4 (dir)
f:\mp4s\animal_house.mp4\mp4\animal_house (dir)
f:\mp4s\animal_house.mp4\mp4\animal_house\animal_h ouse.Title1.mp4 (file)
now, I could write another script to clean this up, but it seems like that is avoiding the real issue.
can anyone lend me a hand? again, i can't tell if my command line is botched or the product isn't paying attention to the settings right.
thanks
bruce
Comment