Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

For more information on the usage of the OpenMax sample applications, please refer to PG252: VCU OpenMax Integration Layer. The source code for the OpenMax Integration Layer sample applications is available at https://github.com/Xilinx/vcu-omx-il/tree/master/exe_omx.

QNX Codec Tests

video-encode

...

Input file can be any supported media file format and output is always h264 stream.

...

This application demonstrates the video encoding capabilities of OpenMAX AL.

...

Support for different formats depends on encoder filters.

...

Code Block
Usage: video-encode [options] [input (url or absolute path)] <output-file-path>
  Command line options:
    -v: increase verbosity, max 5
    -e 1~255: video encoder thread priority
    -c left,right,top,bottom: enable cropping
    --profile-level profile:level
       avc  profile 1-7, level 1-16
       hevc profile 1-9, level 1-14
    --display-type: a desired display type
    --post-to-screen: when using bufferqueue output, this enables
                      the decoded data to be shown on screen too

For 4k Videos, you must use a profile level of at least AVC 5.1 (16) . For example, --profile 1:16

video-decode

  • This application demonstrates the video decoding capabilities of OpenMAX AL.

  • Default output is to the DisplayPort interface

mmrplay

  • Used to playback .mp4 videos on the DisplayPort interface

    Usage:

    Code Block
    mmrplay -a "" -v "screen:/any" <absolute path to media file>.mp4

...

Code Block
# Enable the network inteface
ifconfig xzynq0 10.0.0.100 <target ip address>

# Connect to an NFS server, and mount it at /tmp
fs-nfs3 10.0.0.35:/media/data/nfs_share<nfs server ip address>:<path on server> /tmp

Other Hardware Configurations

...

Code Block
# convert to h.264/avc
ffmpeg -i input.mp4 output.h264
ffmpeg -i test.mp4 -c:v copy -bsf h264_mp4toannexb out.h264

# convert to h.265/hevc
ffmpeg -i test.mp4 -c:v copy -bsf hevc_mp4toannexb out.h265

Creating .mp4 From avc/hevc Encoded Videos

Code Block
ffmpeg -i <input file in hevc or avc>  -c:v copy -f mp4 <output file>.mp4

Raw Videos

https://media.xiph.org/video/derf/

...