The H.264 profile in the IMG video encoder driver is hardcoded to Base profile.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Low
    • Linux Core SDK
    • LCPD-29320
    • 08.04.00
    • 09.00.00
    • j721e-idk-gw
    • Hide
      The following 2 patches enables the user to provide user defined profile for the video encoding using Gstreamer.

      Board: J721e (TDA4VM)

      SDK Version: 8.4

       

      *Patch-1:* To be applied to Gstreamer plugin.

      Patch file Name: +0001-Added-H264-profiles-support-to-Gstreamer-Plugin-for-.patch+

      In order to apply the patch, the user needs to have a Yocto setup and for setting up Yocto, please refer to SDK Documentation. Once the Yocto build is ready, the Gstreamer plugin is found at the location:

      _<path-to-J721e-8.4-sdk>/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/gstreamer1.0-plugins-good/1.16.3-r0.0.arago3_psdkla_0/gst-plugins-good-1.16.3_

      The patch can be applied from this folder and changes are made to the files:

      _./sys/v4l2/gstv4l2h264enc.c and ./sys/v4l2/gstv4l2h264enc.h_

       

      *Patch-2:* To be applied to Linux Kernel

      Patch file name: 

      _0001-Added-H264-Profiles-Support-to-IMG-Video-encode-driv.patch_

      Location of Linux Kernel:

      _./ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.**+gitAUTOINC+*************

      Apply the patch from this folder and changes are made to the file:

      _./drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c_

      _./drivers/media/platform/vxe-vxd/encoder/vxe_enc.c_

       

       

      Once both the patches are applied, the driver can be verified by the below command. Use profile=0 for Base, profile=2 for Main, profile=4 for High. For any other value, default Base profile is set.

      _$ gst-launch-1.0 videotestsrc pattern=ball do-timestamp=true num-buffers=100  ! video/x-raw, format=NV12, width=852, height=480, framerate=30/1 ! v4l2h264enc profile=2 ! h264parse ! mp4mux ! filesink location=demo_main.mp4_

       

      Profile of the file can be verified using ffmpeg
      Show
      The following 2 patches enables the user to provide user defined profile for the video encoding using Gstreamer. Board: J721e (TDA4VM) SDK Version: 8.4   *Patch-1:* To be applied to Gstreamer plugin. Patch file Name: +0001-Added-H264-profiles-support-to-Gstreamer-Plugin-for-.patch+ In order to apply the patch, the user needs to have a Yocto setup and for setting up Yocto, please refer to SDK Documentation. Once the Yocto build is ready, the Gstreamer plugin is found at the location: _<path-to-J721e-8.4-sdk>/yocto-build/build/arago-tmp-external-arm-glibc/work/j7_evm-linux/gstreamer1.0-plugins-good/1.16.3-r0.0.arago3_psdkla_0/gst-plugins-good-1.16.3_ The patch can be applied from this folder and changes are made to the files: _./sys/v4l2/gstv4l2h264enc.c and ./sys/v4l2/gstv4l2h264enc.h_   *Patch-2:* To be applied to Linux Kernel Patch file name:  _0001-Added-H264-Profiles-Support-to-IMG-Video-encode-driv.patch_ Location of Linux Kernel: _./ti-processor-sdk-linux-j7-evm-08_04_00_11/board-support/linux-5.10.**+gitAUTOINC+************* Apply the patch from this folder and changes are made to the file: _./drivers/media/platform/vxe-vxd/encoder/vxe_v4l2.c_ _./drivers/media/platform/vxe-vxd/encoder/vxe_enc.c_     Once both the patches are applied, the driver can be verified by the below command. Use profile=0 for Base, profile=2 for Main, profile=4 for High. For any other value, default Base profile is set. _$ gst-launch-1.0 videotestsrc pattern=ball do-timestamp=true num-buffers=100  ! video/x-raw, format=NV12, width=852, height=480, framerate=30/1 ! v4l2h264enc profile=2 ! h264parse ! mp4mux ! filesink location=demo_main.mp4_   Profile of the file can be verified using ffmpeg

      Currently, The H.264 profile in the IMG video encoder driver is hardcoded to Base profile. 

            Assignee:
            TI User
            Reporter:
            TI User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                Connection: Intermediate to External PROD System
                EXTSYNC-3698 - The H.264 profile in the IMG video ...
                SYNCHRONIZED
                • Last Sync Date: