locked
Change video format in VBA RRS feed

  • Question

  • Is possible to change the format of a video in VBA? I try to find it everywhere on Internet but I couldn't be able to find an answer.
    Friday, May 31, 2013 3:57 PM

Answers

  • You can use a tool such as handbrake to convert videos (free) .  It has a command line interface so you can use win32 commands to call it from VBA.  I have not used it but I know others that have.

    http://handbrake.fr/

    I have used ffmpeg (free) for conversions for some video but mostly audio.  It has a command line interface.  I used VBA initially but later switched to C#.

    • Marked as answer by Dummy yoyo Monday, June 10, 2013 8:16 AM
    Tuesday, June 4, 2013 3:13 PM

All replies

  • Hi Ezkur,

    Thank you for posting in the MSDN Forum.

    I'll move your thread to Visual Basic for Applications (VBA) Forum since it's not Office development related.

    Thank you for your understanding.

    Best regards,


    Quist Zhang [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Monday, June 3, 2013 11:22 AM
  • Hi EZKUR,

    Welcome.

    I'm afraid that you need to learn the formats that you want to change from/to, namely the source format and the target format. After that, you may try to read the content of the video of into a binary stream and then modify the values according to your needs.

    You may refer to the following link:

    ACC: Reading, Storing, & Writing Binary Large Objects (BLOBs)

    http://support.microsoft.com/kb/103257

    It's a long way to go. Good Luck.


    Yoyo Jiang[MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

    Tuesday, June 4, 2013 3:20 AM
  • You can use a tool such as handbrake to convert videos (free) .  It has a command line interface so you can use win32 commands to call it from VBA.  I have not used it but I know others that have.

    http://handbrake.fr/

    I have used ffmpeg (free) for conversions for some video but mostly audio.  It has a command line interface.  I used VBA initially but later switched to C#.

    • Marked as answer by Dummy yoyo Monday, June 10, 2013 8:16 AM
    Tuesday, June 4, 2013 3:13 PM