Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > (HD) DVD, Blu-ray & (S)VCD > One click suites for DVD backup and DVD creation

Reply
 
Thread Tools Search this Thread Display Modes
Old 19th September 2008, 14:12   #1  |  Link
Dan Miller
Registered User
 
Join Date: Apr 2008
Posts: 4
Batch ISO creation

I'm hoping this is the right forum for this, please move it if there is a better one...

I have a drive filled with DVD file structure folders (Main folder = Movie Title, Subfolder = VIDEO_TS). I need ISOs (playable, not necessarily for burning, in other words, layer breaks aren't necessary) for all of them.

As far as I can see, IMGBURN and/or MAGICISO could do it, but one at a time. I cry when I think of that. I have 200+ movies on this drive.

Thoughts?
Dan Miller is offline   Reply With Quote
Old 19th September 2008, 20:40   #2  |  Link
pc_speak
Old Batch Hacker
 
Join Date: Oct 2006
Location: At Home
Posts: 78
I only just now retested this on two DVD folders. YMMV.

http://www.mediafire.com/?o9jex1vlxgb

The contents of the ZIP go into the root folder of your videos. Your 'Main Folder'
-V in the batch file = Volume Identifier - max 32 characters.
So all folder names need to be, including spaces, less than 33 characters. (I have not tested this.)

Assuming a folder\file structure:

GWTW\VIDEO_TS\
3_Gorges\VIDEO_TS\
HOLIDAY_IRELAND\VIDEO_TS\
One Flew Over The Cuckoo's Nest\VIDEO_TS\
make_iso.cmd
mkisofs.doc
mkisofs.exe
mkisofs.txt
readme.1st

Double click on make_iso.cmd
pc_speak is offline   Reply With Quote
Old 20th September 2008, 01:52   #3  |  Link
Dan Miller
Registered User
 
Join Date: Apr 2008
Posts: 4
Quote:
Originally Posted by pc_speak View Post
I only just now retested this on two DVD folders. YMMV.

http://www.mediafire.com/?o9jex1vlxgb

The contents of the ZIP go into the root folder of your videos. Your 'Main Folder'
-V in the batch file = Volume Identifier - max 32 characters.
So all folder names need to be, including spaces, less than 33 characters. (I have not tested this.)

Assuming a folder\file structure:

GWTW\VIDEO_TS\
3_Gorges\VIDEO_TS\
HOLIDAY_IRELAND\VIDEO_TS\
One Flew Over The Cuckoo's Nest\VIDEO_TS\
make_iso.cmd
mkisofs.doc
mkisofs.exe
mkisofs.txt
readme.1st

Double click on make_iso.cmd
Tried it and I see a dos window come up for a few seconds and go away... Nothing happens. Is there a way to log it?

Thanks
Dan Miller is offline   Reply With Quote
Old 20th September 2008, 04:17   #4  |  Link
pc_speak
Old Batch Hacker
 
Join Date: Oct 2006
Location: At Home
Posts: 78
Open the batch file with notepad. Add the BOLD line to pause it.

Code:
cls
for /F "delims=" %%A in ('dir /ad/b') do "mkisofs.exe" -dvd-video -V "%%A" -o "%%~nA.iso" "%%A"
pause
pc_speak is offline   Reply With Quote
Old 20th September 2008, 06:37   #5  |  Link
pc_speak
Old Batch Hacker
 
Join Date: Oct 2006
Location: At Home
Posts: 78
Hi.

Better solution. I'm making it permanent for myself.

Code:
cls
for /F "delims=" %%A in ('dir /ad/b') do "mkisofs.exe" -log-file mkiso_log.txt -dvd-video -V "%%A" -o "%%~nA.iso" "%%A"
Use both techniques. Too much knowledge can't hurt.

Last edited by pc_speak; 20th September 2008 at 06:39.
pc_speak is offline   Reply With Quote
Old 20th September 2008, 13:50   #6  |  Link
Dan Miller
Registered User
 
Join Date: Apr 2008
Posts: 4
OK... I did the pause thing.

I have the files from the zip sitting in D:\Shares\Video\DVD (I'm using WHS). This is the folder just above the subfolders which are the rips themselves.

WHen I double click, it launches to c:\windows.

So, it is trying to make an ISO out of each of the subfolders under c:\windows, and since the MKISOFS.exe file isn't sitting in that directory, it is returning an unknown command message.

Thoughts?
Dan Miller is offline   Reply With Quote
Old 21st September 2008, 01:02   #7  |  Link
pc_speak
Old Batch Hacker
 
Join Date: Oct 2006
Location: At Home
Posts: 78
I'm not too sure what's happening. So I set up my directory structure to match yours. (XP Pro)
Let's try with absolute path names. Create tmp.cmd with these two lines of code in it and double click on it.
The 1st line of code echoes the command lines to list.txt. (Post the first line from list.txt and I can see what's trying to happen.)
The 2nd line takes out the echo to list.txt and tries to execute mkisofs.exe as per usual, using absolute paths.
Code:
for /F "delims=" %%A in ('dir D:\Shares\Video\DVD /ad/b') do echo D:\Shares\Video\DVD\mkisofs.exe -log-file "D:\Shares\Video\DVD\%%~nA.log" -dvd-video -V %%A -o "%%~dpnA.iso" "%%~fA" >> list.txt
for /F "delims=" %%A in ('dir D:\Shares\Video\DVD /ad/b') do D:\Shares\Video\DVD\mkisofs.exe -log-file "D:\Shares\Video\DVD\%%~nA.log" -dvd-video -V %%A -o "%%~dpnA.iso" "%%~fA"
This is my list.txt
Quote:
D:\Shares\Video\DVD\mkisofs.exe -log-file "D:\Shares\Video\DVD\IRELAND_HOLIDAY.log" -dvd-video -V IRELAND_HOLIDAY -o "D:\Shares\Video\DVD\IRELAND_HOLIDAY.iso" "D:\Shares\Video\DVD\IRELAND_HOLIDAY"
D:\Shares\Video\DVD\mkisofs.exe -log-file "D:\Shares\Video\DVD\The_3_Gorges.log" -dvd-video -V The_3_Gorges -o "D:\Shares\Video\DVD\The_3_Gorges.iso" "D:\Shares\Video\DVD\The_3_Gorges"
Isn't this fun?

Last edited by pc_speak; 21st September 2008 at 01:46. Reason: Forgot quotation marks for long filenames with spaces
pc_speak is offline   Reply With Quote
Old 21st September 2008, 02:01   #8  |  Link
RunningSkittle
Skittle
 
RunningSkittle's Avatar
 
Join Date: Mar 2008
Posts: 539
Code:
set dir=""
set dest=""
Would be useful in this kind of script
RunningSkittle is offline   Reply With Quote
Old 21st September 2008, 02:52   #9  |  Link
RunningSkittle
Skittle
 
RunningSkittle's Avatar
 
Join Date: Mar 2008
Posts: 539
My attempt, same commands i guess

Code:
@echo off
color 0a
title makeiso

set dir="c:\test"
set dest=c:\iso
set makeiso="c:\test\mkisofs.exe"
mkdir %dest%


for /d %%a in (%dir%\*) do echo %makeiso% -log-file "%dest%\%%~na-log.txt" -dvd-video -V "%%a" -o "%dest%\%%~na.iso" "%%a" >> "%dest%\cli-log.txt"
for /d %%a in (%dir%\*) do %makeiso% -log-file "%dest%\%%~na-log.txt" -dvd-video -V "%%a" -o "%dest%\%%~na.iso" "%%a"

pause
:end
It seemed silly to rely on parsing to enumerate directory names
RunningSkittle is offline   Reply With Quote
Old 21st September 2008, 10:02   #10  |  Link
Chetwood
Registered User
 
Chetwood's Avatar
 
Join Date: Nov 2001
Posts: 1,104
Well, if you guys should need Layer Breaks everntually and do come up with a solution please let me know. I've suggested ImgBurn to automatically select a layer break from the index but LUK has so far only added this

Quote:
2.4.1.0
* Added: Saving a project file now writes the previously selected LB info from the 'Create Layer Break' window. This can then be used when loading the IBB via CLI so the user isn't prompted to pick a LB, thus allowing for batch builds.
which does let you build ISOs by command line but still requires you to open each folder in advance to set the layer break.
__________________

MultiMakeMKV: MakeMKV batch processing (Win)
MultiShrink
: DVD Shrink batch processing
Offizieller Übersetzer von DVD Shrink deutsch
Chetwood is offline   Reply With Quote
Old 21st September 2008, 16:16   #11  |  Link
Dan Miller
Registered User
 
Join Date: Apr 2008
Posts: 4
Quote:
Originally Posted by Chetwood View Post
which does let you build ISOs by command line but still requires you to open each folder in advance to set the layer break.
Can you give me an example of the cammand line syntax to do the batch build?
Dan Miller is offline   Reply With Quote
Old 21st September 2008, 16:55   #12  |  Link
Chetwood
Registered User
 
Chetwood's Avatar
 
Join Date: Nov 2001
Posts: 1,104
Haven't tried myself yet due to the lack of said function. Just check the readme.txt or the ImgBurn forums. While you're over there try to rally up enough people to support my suggestion from March 2008 which would allow for completely automated batch building once implemented.
__________________

MultiMakeMKV: MakeMKV batch processing (Win)
MultiShrink
: DVD Shrink batch processing
Offizieller Übersetzer von DVD Shrink deutsch

Last edited by Chetwood; 21st September 2008 at 17:05.
Chetwood is offline   Reply With Quote
Reply

Tags
dvd backup, iso creation

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 20:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.