Welcome to LEAD Support Forum Login | Register | Faq  

    LEAD Support Forum
  Resource to find answers and post technical questions about LEAD products.
Search    
   

Re: Upload video to Oracle . . .
Started by Amit at 05-17-2006 7:14. Topic has 11 replies.

Print Search « Previous Thread Next Thread »
  05-17-2006, 7:14
Amit is not online. Last active: 12/17/2008 11:45:37 AM Amit

Top 25 Posts
Joined on 05-10-2006
Posts 168
Upload video to Oracle . . .
Reply Quote

Hi,

I am using visual basic 6 with lead tools 14

My application captures video and after complition, it uploads video file to Oracle database.

While uploading file to oracle, I cannot pass whole file.  I need to pass chunks (32 KB each) and append at oracle end.  After complition, it will create complete file.  While downloading from oracle, the same process.

Right now, my program works ok.  But it takes much time to upload (imagine, 32 kb per chunk and if video size is 700 MB)

I findout the solution.  Logically simple.  I will simultaneously upload the video file to oracle while it is in capturing process.  I tried it.  The file gets uploaded, but when downloaded, it is not true video file.  I examined the problem.  I donot get the header for the file.

So the problem for you is, how can I get actual video data while the AVI is in capturing mode.  If I cannot, tell me the technical reson why ?

Waiting for reply

Thanks


Amit
   Report 
  05-22-2006, 11:43
Amin is not online. Last active: 10/29/2008 7:59:53 AM Amin



Top 10 Posts
Joined on 06-27-2005
Posts 749
Re: Upload video to Oracle . . .
Reply Quote
Amit,
The problem with trying to take a copy of an AVI files while its still being written is the following:
Although the video data (or most of it) is being written to the file, the file's header itself is only written in the end. This means the file does not become a valid AVI until you stop capturing.
One alternative that might work is to use the OGG output format instead of AVI. With the OGG format, the file is written from start to end, so you should be able to start reading and storing the data from the beginning of the file before the whole thing is done.


Amin Dodin
LEADTOOLS Technical Support

   Report 
  05-23-2006, 2:05
Amit is not online. Last active: 12/17/2008 11:45:37 AM Amit

Top 25 Posts
Joined on 05-10-2006
Posts 168
Re: Upload video to Oracle . . .
Reply Quote

Thanks Amin for reply.

The first thing you told, the header is written at the end not matching with my observations.

What I did is, I started capturing AVI and while, I Power Off my PC to test the same thing.  After restart, the AVI captured was running ok.  If I power off the pc, there is definitely no time for any software (Windows, LEADTools etc.) to write the header and complete the AVI.

How could it possible.  To know this mechanism is very important for me as my all logic is depend on this only.  I am looking towards you as you are VIDEO BOMB.  Please satisfy my query.

Second thing is about OGG format.  Will it need any extra filters to be installed on user machine, or will it need any extra codding (that needed for MPEG capture) ?

Waiting for reply


Amit
   Report 
  05-25-2006, 17:31
Amin is not online. Last active: 10/29/2008 7:59:53 AM Amin



Top 10 Posts
Joined on 06-27-2005
Posts 749
Re: Upload video to Oracle . . .
Reply Quote
Amit,
How exactly did you power off the machine? Did you pull of the electric power cable?
Also, are you using the default AVI MUX installed with DirectShow or a different MUX?

About using OGG, it will not need additional coding, but you have to change the TargetFormat to become ltmmCapture_TargetFormat.ltmmCapture_TargetFormat_OGG instead of AVI.
About extra files, it doesn't use the default Microsoft AVI Mux, so you will need to deploy our OGG multiplexer to be able to save OGG.


Amin Dodin
LEADTOOLS Technical Support

   Report 
  05-30-2006, 11:07
Amit is not online. Last active: 12/17/2008 11:45:37 AM Amit

Top 25 Posts
Joined on 05-10-2006
Posts 168
Re: Upload video to Oracle . . .
Reply Quote

I switched off the switch on electric board which is connected to SMPS of my machine.  When I restarted the machine and checked video file, it was running fine.

OK this is one thing.  Now think on other side.

For customer need, I cannot use OGG format.

Am I able to read the data form the video buffer when video is in capturing process ?

Should I use ltmmCapture.TargetArray OR TargetObject OR something, that will give me the most updated header ?

I want to know, whether header of AVI file created in memory when we start capturing and written to the file when we stop capturing.  If the header is there in memory, can we read it ?

Think over these of any other solution you may see.

But please, reply soon as you get the solution.

Waitnig for reply.

Thanks


Amit
   Report 
  06-04-2006, 14:56
Amin is not online. Last active: 10/29/2008 7:59:53 AM Amin



Top 10 Posts
Joined on 06-27-2005
Posts 749
Re: Upload video to Oracle . . .
Reply Quote
Amit,
Our multimedia help file states that "AVI files are not suitable for video streaming or video on demand situations. In most cases, the complete AVI file is downloaded before the video starts playing. Convert the file to ASF or OGG using LEAD OGG splitter on the client to avoid this problem."

Although you're not doing streaming, there is similarity in that you don't want to wait for the full file before you start the transfer.

Could you try OGG files with your database setting even if you are not going to use it in the released product? Also try ASF to see if it works. This way you can tell for sure if the problem is related to the AVI header problem or not.

I'm not sure why the AVI worked when you abruptly powered the machine off during capture. Maybe you're using a different type of AVI multiplexer than what I have. My own testing (but without powering off) showed that the header during capture is different from the header after stopping capturing, and that only the final file was usable.


Amin Dodin
LEADTOOLS Technical Support

   Report 
  06-12-2006, 8:41
Amit is not online. Last active: 12/17/2008 11:45:37 AM Amit

Top 25 Posts
Joined on 05-10-2006
Posts 168
Re: Upload video to Oracle . . .
Reply Quote

Hi Amin,

As your reply, I tried much to capture video in OGG format.  I donot found ltmmCapture_TargetFormat_OGG anywhere on my machine.  It nither appear in help files nor in Visual Basic source code window.

Secondly, I tried to capture with ASF, but I donot have much information about this format.  To capture with this format, needs much extra coding.  It donot over with ltmmCapture_TargetFormat_ASF.

To solve my problem, I want to capture video in ASF format. To do so, I need following information.  If any sample project I get then it will be the best.

-  How to capture live video in ASF format ?  It donot happen with only setting ltmmCapture_TargetFormat_ASF.

-  What are certificates ? How to get it ? How to redistribute it ?

-  What are profiles ? Where can I found those ? How can I create my own ?

-  Are there any extra files (or SDK) need to be installed ? If yes, Where can I get those ?

-  How can I detect whether these necessary files are installed on users machine ?

-  Where can I get detailed information related to above questions and other related issues ?


Amit
   Report 
  06-13-2006, 17:10
Amin is not online. Last active: 10/29/2008 7:59:53 AM Amin



Top 10 Posts
Joined on 06-27-2005
Posts 749
Re: Upload video to Oracle . . .
Reply Quote
Amit,
If you own LEADTOOLS 14.5, send your product serial number to support@leadtools.com and ask for the full toolkit download instructions (not just the patch).
If you own an older version of the toolkit, download the free evaluation edition of v14.5 to try it out and consider upgrading.
The current version of the toolkit contains support for OGG and ASF.

For a detailed description and sample about Windows Media Files, see the following post:
http://support.leadtools.com/SupportPortal/cs/forums/5867/ShowPost.aspx


Amin Dodin
LEADTOOLS Technical Support

   Report 
  07-29-2008, 6:59
harish@axsys-healthtech.com is not online. Last active: 7/30/2008 11:26:50 AM harish@axsys-healthtech.com

Top 500 Posts
Joined on 04-27-2005
Posts 10
Re: Upload video to Oracle . . .
Reply Quote
Hi Amin,

Replying to very old thread, but please respond.

I have read the complete post, can you give me some sample code for playing video on demand. I am using Lead tools 14.

Regards,
Harry
   Report 
  07-29-2008, 8:30
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: Upload video to Oracle . . .
Reply Quote
Harry,

I'm not sure what you mean by Video on demand. Can you please give me as much details as you can on your specifications and on what you are trying to do?
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
  07-30-2008, 6:10
harish@axsys-healthtech.com is not online. Last active: 7/30/2008 11:26:50 AM harish@axsys-healthtech.com

Top 500 Posts
Joined on 04-27-2005
Posts 10
Re: Upload video to Oracle . . .
Reply Quote

Hi Amin,

My requirement is exactly same as that of Amit. I am also dividing files into multiple files using ltmmconvert. But the problem is coming while playing the file.

Then i found that for such requirements we should go for ASF/OGG as you also have mentioned in this post.

But i am not getting any clear cut idea how to create file using this format while capturing video and again playing back that file.

I am using LeadTools 14 activeX version.

I searched my help file and there is no constant for ltmmCapture_TargetFormat_OGG. But i have ltmmCapture_TargetFormat_Asf.

It will be very great help if you can provide me the sample to read and write files in these formats.

 

Harry


   Report 
  07-30-2008, 11:15
Qasem Lubani is not online. Last active: 12/21/2008 9:12:09 PM Qasem Lubani



Top 10 Posts
Joined on 08-13-2006
Posts 1,187
Re: Upload video to Oracle . . .
Reply Quote
I have posted this:

Is this related to forum post[http://support.leadtools.com/SupportPortal/cs/forums/22579/ShowPost.aspx]?

Regarding the OGG file format, it was only added in LEADTOOLS version 14.5. If you want to use it, please download the free evaluation version of version 15 and consider upgrading.
Qasem Al-Lubani
LEAD Technical Support
www.leadtools.com
   Report 
Post
LEAD Support Fo... » Enduser » Capture & Conve... » Re: Upload video to Oracle . . .

Powered by Community Server, by Telligent Systems