Results 1 to 6 of 6

Thread: Exporting and playing an AVI file [Solved]

Threaded View

  1. #1

    Thread Starter
    New Member
    Join Date
    Jun 2004
    Posts
    3

    Exporting and playing an AVI file [Solved]

    Hi all. I am trying to do a program that will do a few things and then delete a few files not needed anymore. I want to display the windows page flying from folder to the dustbin and here is my problem.

    In the VB directory you can find this AVI file (FILEDELR.AVI I think is the name), so there is no problem to play it with an animation control but my problem is to export this AVI file along with my program. I don't want to have two files because of size and order.

    If I use an OLE object container, when I export the video with the SaveToFile method, it is not playable by the Animation control and either by Windows Media (I think exporting from OLE object includes information about links an so on that might do the file ilegible to usual AVI players)

    What I am trying to do now is (I am a little ashame of this, because it's like a kick in the arse of programming ) is opening the AVI file via the Notepad, copying the file contents (the 33ÿ f3ÿ ™3ÿÿ stuff ) to an invisible TextBox in the main form of my program (the AVI file is only 14 KB so there is no size problem) and when this form opens, exporting the contents of this TextBox to a file called video.avi via a put instruction.
    The problem? Well, it doesn't work either. If you try to open it with the Windows Media Player it displays a message about unknown class or something like that, I don't remmember the message correctly. again

    I have even made a small rutine to compare both files (the generated AVI and the original AVI file) character by character and both are the same, so I don't know what is wrong.

    Any idea? Any alternate way to solve this? Is there any other way to store this AVI file along with the mother program? If so, please let me know because this is driving me nuts...

    Thanks a lot, you VB fans
    Last edited by xupixaxi; Jun 27th, 2004 at 01:19 PM.
    This is Ground Control to Major Tom!!!...
    Your circuit's dead...There's something wrong!!!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width