#1 Burning Software

It is currently Wed Dec 18, 2024 9:43 pm

All times are UTC




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Starburn_UDF2_FileUnicodeCreate oddity
PostPosted: Wed Nov 11, 2009 12:28 am 
Offline

Joined: Wed Oct 07, 2009 5:51 pm
Posts: 5
Introduction:
When I add a file via Starburn_UDF2_FileUnicodeCreate w/o calling StarBurn_UDF2_FileDirectoryDateTimeSet after (on the just added file), I get a failure on accessing the file later.

Suspicion (based on empirical testing):
The Starburn_UDF2_FileUnicodeCreate by itself fails to initialize a file object completely, but calling the StarBurn_UDF2_FileDirectoryDateTimeSet seems to fix the problem.

Details:
I used the UDF2BuildBurn.c (ie StarBurn_UDF2_DirectoryUnicodeProcessEx) example to burn a directory with 1 mpeg-2 file in it. On reviewing of the just burned disc, everything always works. I created a clone of the UDF2BuildBurn.c to UDF2FiletreeBurn.c, and I replaced the StarBurn_UDF2_DirectoryUnicodeProcessEx call with a StarBurn_UDF2_DirectoryUnicodeCreate & StarBurn_UDF2_FileUnicodeCreate. So the UDF2FiletreeBurn.c basically creates the same directory as before, but only adds 1 file to the just created directory.
I used the same data for both tests, and both udf discs look identical. However, when I try to access the video file from the UDF2FiletreeBurn burn, I get a failure. When I access the same video file from the UDF2BuildBurn burn, everything works.
I looked at the debug output from the UDF2BuildBurn (ie StarBurn_UDF2_DirectoryUnicodeProcessEx) and noticed that a StarBurn_UDF2_FileDirectoryDateTimeSet call is being made for every directory/file being added. So I modified the UDF2FiletreeBurn to also do a StarBurn_UDF2_FileDirectoryDateTimeSet for both the StarBurn_UDF2_DirectoryUnicodeCreate & StarBurn_UDF2_FileUnicodeCreate, and now the resulting burn always works.
I am going to modify my code to use the StarBurn_UDF2_FileDirectoryDateTimeSet which fixes my problems, however I figured you might want to know about this oddity.


Top
 Profile  
 
 Post subject: Re: Starburn_UDF2_FileUnicodeCreate oddity
PostPosted: Thu Nov 12, 2009 5:39 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Of course we'd initially love to see you logs. Also I'm not sure what do you mean by "have problems accessing". Do you mean from Window explorer? What UDF version do you set and what OS are you playing with?


Top
 Profile  
 
 Post subject: Re: Starburn_UDF2_FileUnicodeCreate oddity
PostPosted: Mon Nov 23, 2009 4:54 pm 
Offline

Joined: Wed Oct 07, 2009 5:51 pm
Posts: 5
Here is the log of the failing media. We are using Windows XP, and I set the version to STARBURN_UDF_OS_CLASS_WINDOWS_NT. I'm using a custom mfc application that relies on a Matrox sdk to load and playback the mpeg-2 video. The application fails on GetFileInformation with a MV_E_FILE_FORMAT_NOT_SUPPORTED and the matching comment is: "The file info is unknown to matrox file reader (eg: a txt file); the file information could not be retried on this file. The file info structure is invalid and should not be used. This file can not be played."


Attachments:
File comment: Debug output
Copy of UDF_Failure.zip [108.41 KiB]
Downloaded 1173 times
Top
 Profile  
 
 Post subject: Re: Starburn_UDF2_FileUnicodeCreate oddity
PostPosted: Mon Nov 23, 2009 8:26 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
This seems to be an issue with your Matrox code as they don't like UDF timestamps we set (but they are definitely OK as we pass UDF Verifier with ZERO errors). OK, I'll check what's the difference between set and unset timestamps and you can use IsGlobalDateTime set to TRUE for now.


Top
 Profile  
 
 Post subject: Re: Starburn_UDF2_FileUnicodeCreate oddity
PostPosted: Mon Nov 23, 2009 8:26 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
BTW, I guess you can copy recorded file from the UDF disc w/o any problem and it's only Matrox code which fails, right?


Top
 Profile  
 
 Post subject: Re: Starburn_UDF2_FileUnicodeCreate oddity
PostPosted: Tue Nov 24, 2009 11:17 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
OK, I've changed SDK in the way it will use default non-zero date and time for the files. You can drop a message to support@rocketdivision.com to see if it's gonna fix your issue. I still cannot trace it as everything works just fine here with all the verifiers...


Top
 Profile  
 
 Post subject: Re: Starburn_UDF2_FileUnicodeCreate oddity
PostPosted: Tue Nov 24, 2009 11:59 pm 
Offline

Joined: Wed Oct 07, 2009 5:51 pm
Posts: 5
You are correct. All the files can be copied off of the UDF disc w/o any problems (and Matrox will not fail when accessing the copies), and only the Matrox code fails (when accessing the file directly off the UDF disc). Thank you for the changes, and I'll contact support to get a copy of the changed SDK.


Top
 Profile  
 
 Post subject: Re: Starburn_UDF2_FileUnicodeCreate oddity
PostPosted: Wed Nov 25, 2009 12:16 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Please keep us updated so we could merge applied changes with the stable branch we're gonna publish very soon.


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

All times are UTC


Who is online

Users browsing this forum: No registered users and 17 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:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group