This tutorial outlines the steps needed to build the Intel® Integrated Native Developer Experience (Intel® INDE) Media for Mobile cross-platform Qt Sample.
Before getting started, download the Intel® INDE at http://intel.com/software/inde and install Media for Mobile component. For additional assistance, visit the Intel INDE forum.
- Download sources from GitHub.
- Launch Qt Creator and open xplat_sample project from /sample/ folder.
- Find your Intel® INDE Media For Mobile installation directory, further referred to as <install_folder>.
Further steps are platform dependent.
Android:
- Edit xplat_sample.pro. Replace the MFM_PATH variable with the value of <install_folder>/Android path.
- Go to /sample/android/package_source_dir/ folder and create /libs/ subdirectory.
- Copy all jar files (without subfolders) from <install_folder>/Android/libs/ to /sample/android/package_source_dir/libs/.
- Plug in your Android device. Build and run the project!
iOS:
- Edit xplat_sample.pro. Replace the MFM_PATH variable with the value of <install_folder>/iOS path
- Let’s build wrapper. For that purpose open /wrapper/ios/MediaPackC++.xcodeproj. Add reference to <install_folder>/iOS/MediaForMobile.framework. Choose configuration (simulator or device) and build.
- Switch to already opened xplat_sample.pro file. Edit MFM_WRAPPER_LIB variable. Leave /Debug-iphoneos at the end of the path or replace it with /Debug-iphonesimulator.
- Plug in your iPhone or iPad (or start emulator). Build and run the project!
UI of this sample is pretty simple. So, pick a video file and start transcoding!
Known issues:
- On Android it’s impossible to pick a file from arbitrary directory. You can use only /Movies/ folder.