From Friday, April 19th (11:00 PM CDT) through Saturday, April 20th (2:00 PM CDT), 2024, ni.com will undergo system upgrades that may result in temporary service interruption.

We appreciate your patience as we improve our online experience.

Example Code

Convert Media File in QuickTime Using ActiveX in LabVIEW

Products and Environment

This section reflects the products and operating system used to create the example.

To download NI software, including the products shown below, visit ni.com/downloads.

    Software

  • LabVIEW

Code and Documents

Attachment

Overview
This VI converts media file to other format that is supported by QuickTime on your computer.

 
Description
You can specify media file that is supported by QuickTime. After executing the code, it will launch QuickTime on your computer and opens dialog box to specify the location of converted file. There is another sample code that uses embedded QuickTime control and converts the file without launching QuickTime. This is particularly useful if you do not wish to launch QuickTime separately.


Requirements

  • LabVIEW 2012 (or compatible)
  • QuickTime 7.7.8 (or compatible)


Steps to Implement or Execute Code

  1. Unzip the attached library to your computer
  2. Open the VI "Launch QuickTime and Convert to Other Format 2012 NIVerified.vi" in “Convert Media File in QuickTime Using ActiveX in LabVIEW 2012 NIVerified.llb”
  3. Enter media file location
  4. Specify media format to convert to
  5. Run the program

 

Additional Information or References
“Convert to Other Format and Create Export Preset in QuickTime 2012 NIVerified.vi” in “Convert Media File in QuickTime Using ActiveX in LabVIEW 2012 NIVerified.llb” converts media file to other supported format using embedded QuickTime control.

 

 

 **This document has been updated to meet the current required format for the NI Code Exchange.**

Example code from the Example Code Exchange in the NI Community is licensed with the MIT license.