Did anyone do a Script for *nix? i see alot of windows not much linux.
i would love one for linux.
Video_TS to ISO
-
- Full Member
- Posts: 146
- Joined: January 21st, 2010, 5:36 pm
Re: Video_TS to ISO
Andy, give this a try:vicster wrote: Did anyone do a Script for *nix? i see alot of windows not much linux.
i would love one for linux.
http://www.macosxhints.com/article.php? ... 9033145907
-
- Full Member
- Posts: 146
- Joined: January 21st, 2010, 5:36 pm
Re: Video_TS to ISO
Actually this is even simpler:vicster wrote: Did anyone do a Script for *nix? i see alot of windows not much linux.
i would love one for linux.
http://www.macosxhints.com/article.php? ... 2161317338
Please share your script if you get this working, I'd like to see how you have it setup for a post processing script.
Thanks!
Last edited by randyharris on April 5th, 2010, 1:18 pm, edited 1 time in total.
Re: Video_TS to ISO
Hi All,
I have made a contribution to the script, to search in folders and for iso's.
I hope you all like it!
The only thing is that you must set imgburn to "auto yes to create video dvd"
greetings Xenomes
ps. tested on windows home server.
I have made a contribution to the script, to search in folders and for iso's.
I hope you all like it!
The only thing is that you must set imgburn to "auto yes to create video dvd"
greetings Xenomes
ps. tested on windows home server.
Code: Select all
@ECHO off
set dirnamedw=%1
set dirnamedw=%dirnamedw:"=%
set nzb-name=%2
set name=%3
set name=%name:"=%
set nbID=%4
set DLTYPE=%5
set group=%6
set status=%7
set dest="D:\shares\Videos\Dvd\"
set dest=%dest:"=%
ECHO %time% : Begin script
PUSHD "%dirnamedw%"
FOR /D /r %%G in ("*") do IF EXIST "%%G\*.iso" CALL :moveISO "%%G"
FOR /D /r %%G in ("*") do IF EXIST "%%G\video_ts.*" CALL :makeISO "%%G"
IF EXIST "*.iso" CALL :moveISO "%dirnamedw%"
IF EXIST "video_ts.*" CALL :makeISO "%dirnamedw%"
POPD
IF EXIST "%dirnamedw%" ECHO %time% : No video_ts or iso found!
GOTO :EOF
:makeISO
set dirname="%~1"
set dirname=%dirname:"=%
ECHO %time% : Video_ts converting to ISO
"C:\Program Files\ImgBurn\ImgBurn.exe" /DELETESOURCE /MODE BUILD /BUILDMODE IMAGEFILE /NOIMAGEDETAILS /VOLUMELABEL "DvD" /SRC "%dirname%\" /DEST "%dest%%name%.iso" /START /CLOSE
set makeerr=%ERRORLEVEL%
ECHO %time% : Source deleted
POPD
IF %makeerr% == 0 RMDIR "%dirnamedw%" /S/Q
ECHO %time% : Ready
GOTO :EOF
:moveISO
set dirname="%~1"
set dirname=%dirname:"=%
ECHO %time% : ISO Moved
MOVE "%dirname%\*.iso" "%dest%%name%.iso"
set moveerr=%ERRORLEVEL%
ECHO %time% : Source deleted
POPD
IF %moveerr% == 0 RMDIR "%dirnamedw%" /S/Q
ECHO %time% : Ready
GOTO :EOF
Last edited by Xenomes on April 9th, 2010, 6:55 am, edited 1 time in total.