using imgburn on command line for batch - AVS Forum
Forum Jump: 
 
Thread Tools
post #1 of 13 Old 03-26-2012, 09:17 AM - Thread Starter
AVS Special Member
 
sukumar's Avatar
 
Join Date: Feb 2011
Location: Forthworth,Texas
Posts: 1,130
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 12
I am trying to convert blu-ray folder structure files into ISO. I am able to use imgburn GUI. However, it is tedious task to check for every 20 minutes to continue running for mulitple folders.

I am wondering the following
1. Does anybody has sample command that I can run on command line? Based on read me file, I think it may be like this not sure.


imgburn /mode build /buildoutputmode imagefile /DEST "e:\\soundofmusic.iso" /src "d:\\soundofmusic" /VOLUMELABEL_ISO9660 "sound of music" /VOLUMELABEL_UDF "sound of music"

2. Is there any way I can feed multiple commands in batch file and it should run them in sequentially after completing one by one.

I don't understand what isso label and udf label and what I am missing.

Appreciate your help.
sukumar is offline  
Sponsored Links
Advertisement
 
post #2 of 13 Old 03-26-2012, 09:37 AM
Advanced Member
 
Hamilcar Barca's Avatar
 
Join Date: Dec 2010
Posts: 662
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 21
Quote:
Originally Posted by sukumar View Post

1. Does anybody has sample command that I can run on command line?
Based on read me file, I think it may be like this not sure.

imgburn /mode build /buildoutputmode imagefile /DEST "e:\\soundofmusic.iso" /src "d:\\soundofmusic" /VOLUMELABEL_ISO9660 "sound of music" /VOLUMELABEL_UDF "sound of music"

Running this command won't destroy anything, so I'd try it to see. I don't
have any BDMV structures to test, myself. Do you need an ISO 9660 (CD-ROM)
label?

Quote:
Originally Posted by sukumar View Post

2. Is there any way I can feed multiple commands in batch file
and it should run them in sequentially after completing one by one.

Yes, but since there's no real (or at least obvious) relation between these
elements of your command-line -- "e:\\soundofmusic.iso", "d:\\soundofmusic",
and "sound of music" -- you must create the batch file manually.

Once you've identified the command-line parameters you require, list each
rip you want to convert on a separate line in a .BAT or .CMD file. Assuming
your initial command line is correct, just repeat the pattern. For example,

Code:
imgburn /mode build /buildoutputmode imagefile /DEST "e:\\soundofmusic.iso" /src "d:\\soundofmusic"  /VOLUMELABEL_ISO9660 "sound of music" /VOLUMELABEL_UDF "sound of music"
imgburn /mode build /buildoutputmode imagefile /DEST "e:\\statefair.iso"    /src "d:\\statefair"     /VOLUMELABEL_ISO9660 "state fair"     /VOLUMELABEL_UDF "state fair"
...
Then run your new batch file from the command-line.
Hamilcar Barca is offline  
post #3 of 13 Old 03-26-2012, 09:46 AM - Thread Starter
AVS Special Member
 
sukumar's Avatar
 
Join Date: Feb 2011
Location: Forthworth,Texas
Posts: 1,130
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 12
Quote:
Originally Posted by Hamilcar Barca View Post

Running this command won't destroy anything, so I'd try it to see. I don't
have any BDMV structures to test, myself. Do you need an ISO 9660 (CD-ROM)
label?

I guess I may not need it. Since imgburn GUI tool asked to type text for both isso and udf, I thought it is needed. May be it is only for old operating system etc.

Quote:




Yes, but since there's no real (or at least obvious) relation between these
elements of your command-line -- "e:\\soundofmusic.iso", "d:\\soundofmusic",
and "sound of music" -- you must create the batch file manually.

Once you've identified the command-line parameters you require, list each
rip you want to convert on a separate line in a .BAT or .CMD file. Assuming
your initial command line is correct, just repeat the pattern. For example,

Code:
imgburn /mode build /buildoutputmode imagefile /DEST "e:\\soundofmusic.iso" /src "d:\\soundofmusic"  /VOLUMELABEL_ISO9660 "sound of music" /VOLUMELABEL_UDF "sound of music"
imgburn /mode build /buildoutputmode imagefile /DEST "e:\\statefair.iso"    /src "d:\\statefair"     /VOLUMELABEL_ISO9660 "state fair"     /VOLUMELABEL_UDF "state fair"
...
Then run your new batch file from the command-line.

I will give it a try. I found one more following parameter which may be needed
/UDFREVISION "2.50


I need to run batch command with source/destination from 2 external hard drives to convert from bdmv to iso. I will make batch file that you gave as sample. I am hoping that each command won't be running at the same time and one will complete before running second one.
sukumar is offline  
post #4 of 13 Old 03-26-2012, 10:27 AM
Advanced Member
 
Hamilcar Barca's Avatar
 
Join Date: Dec 2010
Posts: 662
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 21
Quote:
Originally Posted by sukumar View Post

I found one more following parameter which may be needed
/UDFREVISION "2.50

You want UDF 2.5. You definitely don't want ISO-9660 as I now recall.

Quote:
Originally Posted by sukumar View Post

I need to run batch command with source/destination
from 2 external hard drives to convert from bdmv to iso. I will make batch file
that you gave as sample.

It's simple ... and tedious.

Quote:
Originally Posted by sukumar View Post

I am hoping that each command won't be running at the same time
and one will complete before running second one.

They'll definitely be sequential. I think you can use the 'START' command to
run them in parallel, but I don't remember for sure.
Hamilcar Barca is offline  
post #5 of 13 Old 03-26-2012, 10:37 AM - Thread Starter
AVS Special Member
 
sukumar's Avatar
 
Join Date: Feb 2011
Location: Forthworth,Texas
Posts: 1,130
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 12
Quote:
Originally Posted by Hamilcar Barca View Post

You want UDF 2.5. You definitely don't want ISO-9660 as I now recall.



It's simple ... and tedious.



They'll definitely be sequential. I think you can use the 'START' command to
run them in parallel, but I don't remember for sure.

Thanks Hamilcar for quick reply. I will in the evening to run batch file. I also found following option


/FILESYSTEM "ISO9660 + UDF"


I guess, it is possible to support both of them. I am not sure how it is possible for single ISO to support both formats and wonder if it takes more space.

I think GUI tool generates supporting both. I might redo if it saves space by providing just UDF.
sukumar is offline  
post #6 of 13 Old 03-26-2012, 11:58 AM
Advanced Member
 
Hamilcar Barca's Avatar
 
Join Date: Dec 2010
Posts: 662
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 21
Quote:
Originally Posted by sukumar View Post

Thanks Hamilcar for quick reply.

You're welcome. Hopefully, something I said will be helpful.

Quote:
Originally Posted by sukumar View Post

/FILESYSTEM "ISO9660 + UDF"

I guess, it is possible to support both of them.

I'm nearly certain you must choose a single filesystem for your ISO file. If this
is true, you don't want ISO 9660.

On this wesleytech.com web page, there's an image with some words,
Blu-ray BD-R Burning Step 4) Select UDF, which seems to bear this out.
Hamilcar Barca is offline  
post #7 of 13 Old 03-26-2012, 03:14 PM - Thread Starter
AVS Special Member
 
sukumar's Avatar
 
Join Date: Feb 2011
Location: Forthworth,Texas
Posts: 1,130
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 12
Quote:
Originally Posted by Hamilcar Barca View Post

You're welcome. Hopefully, something I said will be helpful.



I'm nearly certain you must choose a single filesystem for your ISO file. If this
is true, you don't want ISO 9660.

On this wesleytech.com web page, there's an image with some words,
Blu-ray BD-R Burning Step 4) Select UDF, which seems to bear this out.

Thanks again for prompt help.

I tried following command successfully on test files, I will test blu-ray files in the evening.


@for /d %%i in (*.*) do "C:\\Program Files\\ImgBurn\\imgburn.exe" /mode build /buildmode imagefile /src "%%i\\" /dest "C:\\aaapersonal\\imgburn\\DestFolder\\%%i.iso" /FILESYSTEM "UDF" /UDFREVISION "2.5" /VOLUMELABEL "%%i" /start /CLOSE /NOIMAGEDETAILS /PRESERVEFULLPATHNAMES no /rootfolder yes

I got an article link on the following site.
http://www.ephestione.it/how-to-use-...backup-to-dvd/

However, it is missing PRESERVEFULLPATHNAMES attribute. So, I was getting complete path. After fixing it I am able to create iso file containing only contents of the root folder without full path. It is creating multiple iso files. It wouuld help to run automatically for many files and take care of my baby;-) Otherwise, it is pain to check every 20 minutes. I need to confirm 100% before conversion. It is painful process to do it again and again.
sukumar is offline  
post #8 of 13 Old 03-27-2012, 08:49 AM
Advanced Member
 
Hamilcar Barca's Avatar
 
Join Date: Dec 2010
Posts: 662
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 21
Quote:
Originally Posted by sukumar View Post

@for /d %%i in (*.*) do "C:\\Program Files\\ImgBurn\\imgburn.exe" /mode build /buildmode imagefile /src "%%i\\" /dest "C:\\aaapersonal\\imgburn\\DestFolder\\%%i.iso" /FILESYSTEM "UDF" /UDFREVISION "2.5" /VOLUMELABEL "%%i" /start /CLOSE /NOIMAGEDETAILS /PRESERVEFULLPATHNAMES no /rootfolder yes

I got an article link on the following site.
http://www.ephestione.it/how-to-use-...backup-to-dvd/

The structure of the 'for' loop looks good.

Quote:
Originally Posted by sukumar View Post

After fixing it I am able to create iso file containing only contents of the
root folder without full path. It is creating multiple iso files.

Is that what you wanted to do? (I'm not really familiar with the BDMV
structure.)

Quote:
Originally Posted by sukumar View Post

It wouuld help to run automatically for many files and take care of my baby;-)

When you run the command line above, from some directory, are the 'root'
folders of your rips all in that directory? If so, and assuming you've got the
imgburn parameters right, I don't see why you shouldn't get what you
want.

You might try this. Instead of the 'for' loop above, type the following.
(IIRC, you use a single '%' on the command line, and two ('%%') in batch
files.)

Code:
for /d %i in (*.*) do dir %i | more
CMD should list each of your directories and their contents in the pager named
'more'; press Enter to scroll through the results. If you see the directories
you want, all that's left is to get the 'imgburn' parameters correct.
Hamilcar Barca is offline  
post #9 of 13 Old 03-27-2012, 01:51 PM - Thread Starter
AVS Special Member
 
sukumar's Avatar
 
Join Date: Feb 2011
Location: Forthworth,Texas
Posts: 1,130
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 12
Quote:
Originally Posted by Hamilcar Barca View Post

The structure of the 'for' loop looks good.



Is that what you wanted to do? (I'm not really familiar with the BDMV
structure.)



When you run the command line above, from some directory, are the 'root'
folders of your rips all in that directory? If so, and assuming you've got the
imgburn parameters right, I don't see why you shouldn't get what you
want.

You might try this. Instead of the 'for' loop above, type the following.
(IIRC, you use a single '%' on the command line, and two ('%%') in batch
files.)

Code:
for /d %i in (*.*) do dir %i | more
CMD should list each of your directories and their contents in the pager named
'more'; press Enter to scroll through the results. If you see the directories
you want, all that's left is to get the 'imgburn' parameters correct.

Using the command I posted, I am able to create iso files from all directories from the folder I am in.

Thanks for the command. It is good to know the command to run directly without creating batch file. This one is listing sub folder contents as well. But for creating I only need current sub directories as corresponding iso.

Appreciate all your help. I will use it a snippet when I need.
sukumar is offline  
post #10 of 13 Old 03-27-2012, 02:41 PM
Advanced Member
 
Hamilcar Barca's Avatar
 
Join Date: Dec 2010
Posts: 662
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 21
Quote:
Originally Posted by sukumar View Post

This one is listing sub folder contents as well. But for creating I only need
current sub directories as corresponding iso.

The 'for' is "enumerating" or "iterating over" those top level folders, just
as you wanted. A better command to check the "items" found by 'for' is

Code:
for /d %i in (*.*) do @echo %i
If you enter this command, what you want to see are the names of the
root folders to be processed, and nothing else.

If you don't, something's wrong -- you're in the wrong directory, you
entered the command line incorrectly, someone like me gave you a
bogus command line(!), etc.
Hamilcar Barca is offline  
post #11 of 13 Old 03-28-2012, 07:36 AM - Thread Starter
AVS Special Member
 
sukumar's Avatar
 
Join Date: Feb 2011
Location: Forthworth,Texas
Posts: 1,130
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 12
Quote:
Originally Posted by Hamilcar Barca View Post

The 'for' is "enumerating" or "iterating over" those top level folders, just
as you wanted. A better command to check the "items" found by 'for' is

Code:
for /d %i in (*.*) do @echo %i
If you enter this command, what you want to see are the names of the
root folders to be processed, and nothing else.

If you don't, something's wrong -- you're in the wrong directory, you
entered the command line incorrectly, someone like me gave you a
bogus command line(!), etc.

Thanks. I tried this command, it is listing folders only in current directory. It is not listing any files. This is exactly what I want.

I thought this command will give all files including folders and text files or files etc . Looks like it only lists sub directories. Need to understand.
sukumar is offline  
post #12 of 13 Old 03-28-2012, 12:12 PM
Advanced Member
 
Hamilcar Barca's Avatar
 
Join Date: Dec 2010
Posts: 662
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 21
Code:
for /d %i in (*.*) do @echo %i
Quote:
Originally Posted by sukumar View Post

I thought this command will give all files including folders and text files or files etc.

'for %i in (*.*)' means "enumerate everything ('*.*') in the current
directory, including subdirectories and files."

'for /d %i in (*.*)' means "enumerate only subdirectories in the
current directory, not anything else."

'echo' lets us see what the 'for' command is finding quickly and without any
change to your system. '@' tells CMD not to display the command before
executing it.
Hamilcar Barca is offline  
post #13 of 13 Old 03-29-2012, 08:30 AM
Advanced Member
 
Hamilcar Barca's Avatar
 
Join Date: Dec 2010
Posts: 662
Mentioned: 0 Post(s)
Tagged: 0 Thread(s)
Quoted: 0 Post(s)
Liked: 21
Quote:
Originally Posted by sukumar View Post

Need to understand.

I'm not sure why I didn't think of this before. It's what I usually do.

The object is to tweak the imgburn (and 'for') parameters until it looks like
everything's going to work; when it looks good, you execute it for real.

1. Check the 'for' loop parameters

Code:
for /d %i in (*.*) do @echo %i
When those directory names are what you want, go to the next step.

2. Check the imgburn parameters

Code:
for /d %i in (*.*) do @echo your-imgburn-command-line
This tells CMD you want to display (not execute) the imgburn commands.
You can check the goodness of the pattern (template) you're using. If the
output is hard to read, and it will be, the code below saves the output to a
file which you can view (with, for example, Notepad.)

Code:
for /d %i in (*.*) do @echo your-imgburn-command-line > test-output.txt
When you're satisfied that the imgburn sequence will do what you want,
you're ready for the real thing.

3. Execute your series of commands

Code:
for /d %i in (*.*) do your-imgburn-command-line
Remove 'echo', and CMD will execute the commands rather than displaying
them.
Hamilcar Barca is offline  
Reply Home Theater Computers

User Tag List

Thread Tools
Show Printable Version Show Printable Version
Email this Page Email this Page


Forum Jump: 

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off