#1 Burning Software

It is currently Thu Dec 19, 2024 9:53 am

All times are UTC




Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: How to create iso image from Hard Disc folds?
PostPosted: Wed May 23, 2007 2:02 pm 
Offline

Joined: Wed May 23, 2007 2:16 am
Posts: 4
How to create iso image from Hard Disc folds(Example: "C:\\DVD\\VIDEO_TS")? This Example have some errors. Could

you give me a complete example? Thanks.

PVOID l__PVOID__FileTree;
EXCEPTION_NUMBER l__EXCEPTION_NUMBER;
ULONG l__ULONG__TreeNodes;
ULONG l__ULONG__Status = 0;
CHAR l__CHAR__ExceptionText[ 1024 ];

PVOID l__LONG__TreeNodes;
// Prepare exception text buffer
RtlZeroMemory(&l__CHAR__ExceptionText, sizeof( l__CHAR__ExceptionText ));

// Try to create Joliet file tree
l__EXCEPTION_NUMBER =
StarBurn_ISO9660JolietFileTree_Create(
&l__PVOID__FileTree,
( PCHAR )( &l__CHAR__ExceptionText ),
sizeof( l__CHAR__ExceptionText ),
&l__ULONG__Status,
( PCALLBACK )( ISOProc ),
( PVOID )( &l__LONG__TreeNodes ),
TRUE,
FALSE,
TRUE,
FILE_TREE_JOLIET
);

// Try to get root here
PVOID l__PVOID__Root = StarBurn_ISO9660JolietFileTree_GetRoot( l__PVOID__FileTree );

// l__PVOID__Root is NULL
// Check for correct reply
if ( l__PVOID__Root == NULL )
{
}

CString m_SourceDataPath = "C:\\DVD\\VIDEO_TS";
PVOID l__PVOID__NewNode;
char *pBuff = m_SourceDataPath.GetBuffer(0);
// Try to add all from the root directory of the drive D: to already created Joliet file tree
l__EXCEPTION_NUMBER =
StarBurn_ISO9660JolietFileTree_Add(
l__PVOID__FileTree,
( PCHAR )( &l__CHAR__ExceptionText ),
sizeof( l__CHAR__ExceptionText ),
&l__ULONG__Status,
pBuff,
NULL,
FILE_TIME_LAST_WRITE,
&l__PVOID__Root,
&l__PVOID__NewNode
);

// Check for correct reply
if ( l__EXCEPTION_NUMBER != EN_SUCCESS )
{
}

// Perform actions with Joliet tree here...

// Destroy the Joliet file tree
StarBurn_Destroy( &l__PVOID__FileTree );

// Just check for pointer (paranoid?)
if ( l__PVOID__FileTree != NULL )
{
// Handle error here...
}


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 23, 2007 2:03 pm 
Offline

Joined: Wed May 23, 2007 2:16 am
Posts: 4
I'm trying to write a very basic program that uses only a few of the vast number of features StarBurn support. Basically this program has 3 options, it can burn a DVD from a VIDEO_TS folder, burn a DVD from an ISO image or create an ISO image from a VIDEO_TS folder. However the samples included with the SDK are ludicrously complicated. The code is spead out across dozens of files due to the property sheet based wizard interface and I can't make heads or tails of what is actually going on. I figured I'd start off by just doing something simple and attempted to just get a list of the drives available on the system but I can't even get it to compile. It appears that I need to use the CDeviceFinder class, but I get linker and compiler errors whenever I attempt to use that class in any of my own code. (the sample app compiles fine)

Does anyone have any simpler sample source code I could take a look at that might help me figure out how to get this going? I tried looking at the commandline programs, but I'm a C++ guy and have very little experience with straight C so those don't make much sense to me either.

Prior to this I was using a competing SDK, and while it was very simple to code for it had some compatibility problems with certain DVD burners so I had to dump it. I was hoping the transition to StarBurn would be simple but so far I've spent 3 days messing with this and I still haven't even been able to get it to build, let alone actually do anything.

Please help!

Dan


There are very basic and very simple console samples. Take a look at %StarBurnRoot%\Samples\Console\[C|Pascal] folders and you'll find tiny lovely things there. Example you'd start looking from is called DVDVideoTrackAtOnceFromTree[Ex] and it does EXACTLY what you want. With as few lines of code as possible


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 23, 2007 2:10 pm 
Offline

Joined: Wed May 23, 2007 2:16 am
Posts: 4
but create an ISO image from a VIDEO_TS folder is failure.

help me! my mail is david20060306@163.com

Could

you give me a complete example?(C++) Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Thu May 24, 2007 7:44 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Unfortunately what you're trying to do here is fundamentally wrong... You're creating ISO9660/Joliet file tree from the DVD-Video content. What are you going to do with it later? It would not play on stand-alone DVD players...

What you really need to do - create ISO9660/UDF bridge file system image. Take a look at DVDVideoBuildImageEx sample. It does EXACTLY what you want. It's pretty simple and well documented.

If you're submitting bugreport or just a problem we need complete debug log from you (take a look at StarBurn FAQ on how to generate it). It would save us both a lot of time :)

Thanks!


Top
 Profile  
 
 Post subject: thanks
PostPosted: Mon May 28, 2007 1:55 am 
Offline

Joined: Wed May 23, 2007 2:16 am
Posts: 4
hi:
staff!
Thanks.
My question is nothing, DVDVideoBuildImage sample is good.
i'm chinese, my english is so poor,sorry!


Top
 Profile  
 
 Post subject: Re: thanks
PostPosted: Mon May 28, 2007 8:28 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
DVDVideoBuildImage uses "old style" API allowing you to create custom disc layou. DVDVideoBuildImageEx uses "new style" API sucking all of the VIDEO_TS content automagically. Much less coding :) FYI.

It's OK :) We're not native English speakers either :)

Feel free to ask any other questions you

david999 wrote:
hi:
staff!
Thanks.
My question is nothing, DVDVideoBuildImage sample is good.
i'm chinese, my english is so poor,sorry!


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 14 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group