Hello,
I have a lot of VOB files on my HD and want to convert them to MPG so I bought VOB2MPG and love it. I am having a problem getting a script to run that was written by another user on this board and they have created exactly what I am looking for. I have figured out to modify the code as suggested and then copy it into notepad and save it as a bat file to run. My name issue is that it does not seem to run the program to start the conversion and my install was done with the defaults. My other 2 problems are that it does not seem to recognize my file structure or dropping in the appropriate gene and file name. I also want to be able to have the script save the file to a different HD than were they originate but I am not sure if this is possible. Below is my setup and the way I have modified the script. Can someone help me out please.
All the best,
Cliff
@echo off
:: ONLY TESTED ON VISTA 32bit, test yourself before running, script provided as is.
:: I wrote this so I can not only convert my VOB's to MPG, but I wanted to use it in
:: a playlist with Media Browser - mediabrowser.tv - and the movie needs to be 1 number
:: higher than my home theater intro so I add a 01 to the end of all movies I convert.
:: You may remove that if you wish. Search and replace %%b-01.mpg with %%b.mpg
:: *** TO USE ***
:: Change the 3 SET lines below to match your environment
:: This assumes the existing DVD directory structure is like M:\Movies\subfolder\**Movie Name**\VIDEO_TS\VIDEO_TS.IFO
:: To actually run the VOB2MPG program, remove the "echo" from the front of the last line.
:: the echo is there to show you what the command will actually do when run, no changes
:: are made with the echo in front, also you may remove the pause once you are comfortable
:: with it running otherwise you have to manually press a key to continue to the next DVD
:: once processing is complete on a DVD.
:: My directory structure example:
:: j:\Comedy\Click\VIDEO_TS\VIDEO_TS.IFO
:: M:\Anime\Kite\VIDEO_TS\VIDEO_TS.IFO
SET MOVIEDRIVE=J:
SET MOVIEPATH=J:\
SET VOB2MPGPATH=C:\VOB2MPG PRO
:: CHANGE TO THE DRIVE AND BASE PATH WHERE THE MOVIE DIRECTORIES ARE STORED
%MOVIEDRIVE%
CD %MOVIEPATH%
:: GET LIST OF ALL FOLDERS CONTAINING A VIDEO_TS.IFO FILE AND LOOP THROUGH EACH
FOR /f "tokens=3-4 delims=\" %%a in ('dir VIDEO_TS.IFO /s') DO (
echo +++++++++++
echo Processing:
echo Genre=%%a
echo Movie Name=%%b
echo.
:: CHECK TO SEE IF DIRECTORY HAS ALREADY BEEN PROCESSED, IF SO SKIP IT AND MOVE ON
IF EXIST "%MOVIEPATH%\%%a\%%b\%%b-01.mpg". (
ECHO File %%b-01.mpg already exists.
)ELSE (
echo "%VOB2MPGPATH%\VOB2MPG.EXE" /v="%MOVIEPATH%\%%a\%%b\VIDEO_TS\VIDEO_TS.IFO" /o="%MOVIEPATH%\%%a\%%b\%%b-01.mpg" /MainTitle
)
pause
)
+ Reply to Thread
Results 1 to 5 of 5
-
-
Not sure if there is enough information in my post but with 25 views of the post I was hoping someone might know enough about scripting to help me . Since this is the first tech. support question I have and the author of the software wants questions directed on the forum, generally how long does it take for the author of the software to answer the question if no one else in the forum can?
Thank and have a great day,
Cliff -
The author supports the software, but did not write that script and shouldn't be expected to support it. You will need to wait for (or PM) the script author or someone else familiar with scripting.
Good luck.Dwight
"A positive attitude may not solve all your problems, but it will annoy enough people to make it worth the effort."
- Herm Albright
www.martialconcepts.com -
Cliff, i read the forums everyday. I know nothing about batch scripts so can't shed much light on your issue. The guy who wrote the script is probably best placed to help you, along with others who know batch scripting.
SVCD2DVD v2.5, AVI/MPEG/HDTV/AviSynth/h264->DVD, PAL->NTSC conversion.
VOB2MPG PRO, Extract mpegs from your DVDs - with you in control! -
Thanks both for your help and I didn't see it as something the developer would not support Dwight but I do totally see your point. Thanks again and I hope I can get this worked out. I have a friend who knows scripting and I guess the syntax is similar but the variables change.
Once again thank you,
Cliff
Similar Threads
-
DVD-Lab Scripting
By galadar in forum Authoring (DVD)Replies: 0Last Post: 26th Dec 2010, 11:00 -
VirtualDub Scripting
By shojimbo0 in forum ProgrammingReplies: 1Last Post: 20th Oct 2008, 13:58 -
Avisynth Batch Scripting
By Maikeru-sama in forum Video ConversionReplies: 1Last Post: 20th Jun 2008, 22:18 -
DVD scripting
By Rosko1702RS in forum Authoring (DVD)Replies: 6Last Post: 15th Mar 2008, 00:57 -
Avisynth scripting
By demonwarrior in forum Newbie / General discussionsReplies: 9Last Post: 24th Dec 2007, 00:05