Transcoding

Multimedia User Guide (UG1449)

Document ID
UG1449
Release Date
2023-10-19
Revision
1.7 English
  • Transcode from H.265 to H.264 using Gstreamer-1.0:

    Use the following pipeline to convert a H.265 based input container format file into H.264 format.

    gst-launch-1.0 filesrc location="/run/media/sda/input-h265-file.mp4" ! \
    qtdemux name=demux demux.video_0 ! h265parse ! video/x-h265, alignment=au ! \
    omxh265dec low-latency=0 ! omxh264enc ! video/x-h264, alignment=au ! \
    filesink location="/run/media/sda/output.h264"

    In this example, the file is present in the SATA drive, the H265 based input file format is MP4, and the file is transcoded into a H264 video format file.

  • Transcode from H.264 to H.265 using Gstreamer-1.0:

    Use the following pipeline to convert a H.264 based input container format file into H.265 format.

    gst-launch-1.0 filesrc location="input-h264-file.mp4" ! \
    qtdemux name=demux demux.video_0 ! h264parse ! video/x-h264, alignment=au ! \
    omxh264dec low-latency=0 ! omxh265enc ! video/x-h265, alignment=au ! \
    filesink location="output.h265"

    In this example, the file is present in the SATA drive, the H264 based input file format is MP4, and is transcoded into a H265 video format file.