#1 Burning Software

It is currently Thu Dec 19, 2024 6:59 am

All times are UTC




Post new topic Reply to topic  [ 7 posts ] 
Author Message
 Post subject: Callbacks not working correctly with VideoCD()
PostPosted: Fri May 05, 2006 8:27 pm 
Offline

Joined: Fri Apr 28, 2006 10:36 pm
Posts: 7
When I use the StarBurn_CdvdBurnerGrabber_VideoCD() call, the percentages I get from the callback are not correct. It appears that it is going from 0-100 a few times, so I get numbers like 69, 71, 28, 45, etc.

If I use VideoCDEx() and use Disc-At-Once mode, then the callbacks work fine. Are there any problems with using Disc-At-Once with a VCD in Starburn?


Top
 Profile  
 
 Post subject:
PostPosted: Fri May 05, 2006 8:32 pm 
Offline

Joined: Fri Apr 28, 2006 10:36 pm
Posts: 7
Correction: I was using WRITE_MODE_SESSION_AT_ONCE.


Top
 Profile  
 
 Post subject:
PostPosted: Sat May 06, 2006 1:42 pm 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Status callbacks are called after passed delays in seconds (2 seconds by default). If you're burning small image - quite a lot of data would be written between two callbacks. So it's normal to have the values as non-discrete ones. It's a feature and not a bug :)


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 07, 2006 1:47 am 
Offline

Joined: Fri Apr 28, 2006 10:36 pm
Posts: 7
I understand that the callbacks come infrequently. However, the percentage should go from 0 to 100% as the VCD is written. It does not. It seems as though the percentage is set for each file as it is written. That is, the first file is written, and the percentage goes from 0 to 100%. Then the second file is written, with its percentage going from 0 to 100%. Etc. Since there is no indication of which file is being written, providing a useful VCD writing progress indicator seems impossible. Am I missing something?

On the other hand, when I use Session At Once, it writes the entire image in one pass, and thus the percentage does go from 0 to 100%. I just want to make sure that using this mode to write a VCD will cause no problems.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Sun May 07, 2006 9:27 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
Oh, I see what you mean. With Track-At-Once you burn two tracks (data track and MPEG track) one-by-one. So you first get percents for data track, then you need to catch SYNCHRONIZE_CACHE callback - it's a signal for you data track is done, then next percents callback are from MPEG track. Quite simple - check the console samples :) For Session-At-Once whole disc is written with one stream so you get only one 0..100% serie of calls. These are just different modes and you need to handle them in the different way.

phatmann wrote:
I understand that the callbacks come infrequently. However, the percentage should go from 0 to 100% as the VCD is written. It does not. It seems as though the percentage is set for each file as it is written. That is, the first file is written, and the percentage goes from 0 to 100%. Then the second file is written, with its percentage going from 0 to 100%. Etc. Since there is no indication of which file is being written, providing a useful VCD writing progress indicator seems impossible. Am I missing something?

On the other hand, when I use Session At Once, it writes the entire image in one pass, and thus the percentage does go from 0 to 100%. I just want to make sure that using this mode to write a VCD will cause no problems.

Thanks.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 6:08 am 
Offline

Joined: Fri Apr 28, 2006 10:36 pm
Posts: 7
Thanks for the tip. The sync callback was what I needed to know which track I was on.

I had to use TAO rather than SAO, since we are supporting CD and DVD media.


Top
 Profile  
 
 Post subject:
PostPosted: Wed May 17, 2006 8:30 am 
Offline
Site Admin

Joined: Fri Jun 18, 2004 12:03 am
Posts: 4089
Location: British Virgin Islands
I see... It would be better if you'd try to stick with SAO for VCDs/SVCDs (if burner supports this mode) however.

phatmann wrote:
Thanks for the tip. The sync callback was what I needed to know which track I was on.

I had to use TAO rather than SAO, since we are supporting CD and DVD media.


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

All times are UTC


Who is online

Users browsing this forum: Google [Bot] and 42 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