gstreamer rtsp server on "i.MX 8M Mni EVK"

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

gstreamer rtsp server on "i.MX 8M Mni EVK"

Jump to solution
4,948 Views
ysato_ad
Contributor II

I want to implement gstreamer rtsp server on "i.MX 8M Mini EVK".

https://www.nxp.com/docs/en/user-guide/IMXLXYOCTOUG.pdf
I set up Yocto Project on the host machine while referring to the above.

Then, at https://www.nxp.com/docs/en/user-guide/IMXLUG.pdf
I did bitbake with reference to '7.3.14 RTSP streaming server',
But, there are no .libs, no builds directory.

Please tell me the cause and measures.
For the time being, I checked the following, but it did not work.
https://community.nxp.com/thread/380070


What I did:
1) $ cd imx-yocto-bsp

2) $ MACHINE=imx8mmevk DISTRO=fsl-imx-xwayland source ./fsl-setup-release.sh -b build

3) $ gedit ./conf/bblayers.conf &
=======================================================================================
LCONF_VERSION = "7"

BBPATH = "${TOPDIR}"
BSPDIR := "${@os.path.abspath(os.path.dirname(d.getVar('FILE', True)) + '/../..')}"

BBFILES ?= ""
BBLAYERS = " \
${BSPDIR}/sources/poky/meta \
${BSPDIR}/sources/poky/meta-poky \
\
${BSPDIR}/sources/meta-openembedded/meta-oe \
${BSPDIR}/sources/meta-openembedded/meta-multimedia \
\
${BSPDIR}/sources/meta-freescale \
${BSPDIR}/sources/meta-freescale-3rdparty \
${BSPDIR}/sources/meta-freescale-distro \
"

# i.MX Yocto Project Release layers
BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-bsp "
BBLAYERS += " ${BSPDIR}/sources/meta-fsl-bsp-release/imx/meta-sdk "

BBLAYERS += " ${BSPDIR}/sources/meta-browser "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-gnome "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-networking "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-python "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-filesystems "
BBLAYERS += " ${BSPDIR}/sources/meta-qt5 "
BBLAYERS += " ${BSPDIR}/sources/meta-openembedded/meta-multimedia " #add
=======================================================================================

4) $ gedit ./conf/local.conf
=======================================================================================
MACHINE ??= 'imx8mmevk'
DISTRO ?= 'fsl-imx-xwayland'
PACKAGE_CLASSES ?= "package_rpm"
EXTRA_IMAGE_FEATURES ?= "debug-tweaks"
USER_CLASSES ?= "buildstats image-mklibs image-prelink"
PATCHRESOLVE = "noop"
BB_DISKMON_DIRS ??= "\
STOPTASKS,${TMPDIR},1G,100K \
STOPTASKS,${DL_DIR},1G,100K \
STOPTASKS,${SSTATE_DIR},1G,100K \
STOPTASKS,/tmp,100M,100K \
ABORT,${TMPDIR},100M,1K \
ABORT,${DL_DIR},100M,1K \
ABORT,${SSTATE_DIR},100M,1K \
ABORT,/tmp,10M,1K"
PACKAGECONFIG_append_pn-qemu-native = " sdl"
PACKAGECONFIG_append_pn-nativesdk-qemu = " sdl"
CONF_VERSION = "1"

DL_DIR ?= "${BSPDIR}/downloads/"
ACCEPT_FSL_EULA = "1"

IMAGE_INSTALL_append += "gstreamer1.0-rtsp-server" #add
=======================================================================================

5) $ bitbake core-image-minimal

6) $ cd ~/imx-yocto-bsp/build/tmp/work/aarch64-poky-linux/gstreamer1.0-rtsp-server/1.14.4-r0

7) $ ls -la
drwxrwxr-x 12 sato sato 4096 4月 11 11:46 .
drwxrwxr-x 3 sato sato 4096 4月 11 11:45 ..
drwxr-xr-x 3 sato sato 4096 4月 11 11:35 deploy-rpms
drwxrwxr-x 3 sato sato 4096 4月 11 11:34 license-destdir
drwxr-xr-x 6 sato sato 4096 4月 11 11:34 pkgdata
drwxrwxr-x 2 sato sato 4096 4月 11 11:45 sstate-install-package_qa
drwxrwxr-x 2 sato sato 4096 4月 11 11:46 sstate-install-package_write_rpm
drwxrwxr-x 2 sato sato 4096 4月 11 11:46 sstate-install-packagedata
drwxrwxr-x 2 sato sato 4096 4月 11 11:46 sstate-install-populate_lic
drwxrwxr-x 2 sato sato 4096 4月 11 11:45 sstate-install-populate_sysroot
drwxr-xr-x 4 sato sato 4096 4月 11 11:34 sysroot-destdir
drwxrwxr-x 2 sato sato 4096 4月 11 11:46 temp

0 Kudos
1 Solution
4,170 Views
radhikasomaiya
Senior Contributor II

Hi ysato.ad@minebeamitsumi.com ,

To build .libs/test-uri (to build examples and tests) remove or comment the below line from file gstreamer1.0-rtsp-server.inc (path: sources/poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server.inc).

         EXTRA_OECONF = "--disable-examples --disable-tests"

then follow the steps from section 7.3.14 RTSP streaming server of i.MX Linux User's guide.

Let us know if you have any further query.

Regards,

Radhika Somaiya.

View solution in original post

0 Kudos
8 Replies
4,171 Views
radhikasomaiya
Senior Contributor II

Hi ysato.ad@minebeamitsumi.com ,

To build .libs/test-uri (to build examples and tests) remove or comment the below line from file gstreamer1.0-rtsp-server.inc (path: sources/poky/meta/recipes-multimedia/gstreamer/gstreamer1.0-rtsp-server.inc).

         EXTRA_OECONF = "--disable-examples --disable-tests"

then follow the steps from section 7.3.14 RTSP streaming server of i.MX Linux User's guide.

Let us know if you have any further query.

Regards,

Radhika Somaiya.

0 Kudos
4,170 Views
ysato_ad
Contributor II

Hi Radhika Somaiya


Thank you for your reply.

Before seeing this reply, I tried the following and was able to confirm the operation.
But I was wondering why bitbake doesn't automatically make it.
I understand from your reply.

I tried the method you taught me.
It was automatically made with bitbake.
Thank you very much.

-------
8) $ bitbake -c cleanall gstreamer1.0-rtsp-server
9) $ bitbake gstreamer1.0-rtsp-server
10) $ cd ~/imx-yocto-bsp/tmp/work/aarch64-poky-linux/gstreamer1.0-rtsp-server/1.14.4-r0/build/examples
11) $ls -la
   drwxr-xr-x 2 sato sato  4096  4月  12 13:10 .
   drwxr-xr-x 9 sato sato  4096  4月  12 13:10 ..
   -rw-r--r-- 1 sato sato 47297  4月  12 13:10 Makefile
11) $ make
   ....snip....
   make: aarch64-poky-linux-gcc: Command not found
   Makefile:736: Failed in recipe for target 'test-video.o'.
   make: *** [test-video.o] Error 127
12) $ source /opt/fsl-imx-xwayland/4.14-sumo/environment-setup-aarch64-poky-linux
   (*)I have done the following in advance:
     $ bitbake -c populate_sdk core-image-minimal
     $ cd ~/imx-yocto-bsp/tmp/deploy/sdk/
     $ /fsl-imx-xwayland-glibc-x86_64-core-image-minimal-aarch64-toolchain-4.14-sumo.sh
13) $ export ARCH=arm64
14) $ make
15) $ ls -la
   drwxr-xr-x 3 sato sato  4096  4月 18 16:45 .
   drwxr-xr-x 9 sato sato  4096  4月 18 15:38 ..
   drwxrwxr-x 2 sato sato  4096  4月 18 16:45 .libs
   -rw-r--r-- 1 sato sato 47297  4月 18 15:38 Makefile
   ----- snip -----
   -rwxrwxr-x 1 sato sato 11245  4月 18 16:45 test-launch
   ----- snip -----
   -rwxrwxr-x 1 sato sato 11212  4月 18 16:45 test-uri
   ----- snip -----
16) Copy the contents of'.libs' to the target / usr / lib / using SCP
17) Copy sample MP4 (aaa.MP4) to / home / root / using SCP
18) test-uri file:///home/root/aaa.mp4
  --> Host PC VLC application : rtsp://(target ip address):8554/test
  --> MP4 Streeming Play OK.
19) test-launch '( v4l2src device=/dev/video0 ! videoconvert ! vpuenc_h264 ! rtph264pay name=pay0 pt=96 )'
  --> Host PC VLC application : rtsp://(target ip address):8554/test
  --> MIPI CSI CAMERA Streeming Play OK.
-------

0 Kudos
4,172 Views
joanxie
NXP TechSupport
NXP TechSupport

you can use this L4.14.98-2.0.0_ga, but core-image-minimal is the minimal image which only supports board booting up, try to use "fsl-image-qt5-validation-imx"

0 Kudos
4,172 Views
ysato_ad
Contributor II

Hi Joan Xie

Thank you for your reply.

I have verified that test-uri can be run on the target of L4.14.78_1.0.0_MX8MM.

Is L4.14.78_1.0.0_MX8MM that can be downloaded from the following URL bit-baked with "fsl-image-qt5-validation-imx"?


L4.14.78_1.0.0_MX8MM
https://www.nxp.com/webapp/sps/download/license.jsp?colCode=L4.14.78_1.0.0_MX8MM&appType=file1&DOWNL...

0 Kudos
4,172 Views
joanxie
NXP TechSupport
NXP TechSupport

yes, it should be built by "fsl-image-qt5-validation-imx", but since you need add your own feature in the bb file, I think you should build by yourself

0 Kudos
4,172 Views
ysato_ad
Contributor II

Hi Joan Xie

I was checking RTSP in the environment of 'L4.14.78_1.0.0_MX8MM' I wrote first.
I checked the writing of the image of 'core-image-minimal' that I created, and it was CUI.
Recreate the image with 'fsl-image-qt5-validation-imx'.
Thank you.
0 Kudos
4,172 Views
radhikasomaiya
Senior Contributor II

Hi ysato.ad@minebeamitsumi.com ,

As per the Yocto project User's guide, L4.9.88_2.0.0_ga is not supported for imx8mmevk so, Have you added the support of i.MX8M mini in rocko by yourself?

We are working on it with sumo L4.14.98_2.0.0.

Regards,

Radhika Somaiya.

0 Kudos
4,170 Views
ysato_ad
Contributor II

Hi Radhika Somaiya


Thank you for your reply.

Sorry.
I forgot to write my current environment.
https://source.codeaurora.org/external/imx/imx-manifest/tree/?h=imx-linux-sumo
I referred to the following URL and used 4.9.88-2.3.1.
> $ mkdir imx-yocto-bsp
> $ cd imx-yocto-bsp
> $ repo init -u https://source.codeaurora.org/external/imx/imx-manifest -b imx-linux-sumo -m imx-4.9.88-2.3.1.xml
> $ repo sync

0 Kudos