<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: gst-launch-1.0 returns: Internal data stream error in i.MX Graphics</title>
    <link>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1575633#M388</link>
    <description>&lt;P&gt;RAW10 works for IMX8MM with gst, example below.&amp;nbsp;&lt;BR /&gt;gst-launch-1.0 -vvv v4l2src device=/dev/video0 num-buffers=1 \! "video/x-bayer,width=1920,height=1080,framerate=(fraction)25/1,format=(string)bggr" \! bayer2rgb ! pngenc ! filesink location=test.png&lt;BR /&gt;&lt;BR /&gt;Thera are patches and bbappned for yocto.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Manifest for Yocto :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    "meta-freescale": {
        "branch": "hardknott",
        "rev": "469d6c958c76ea235b3d3c1527e797ce3a7392e3",
        "url": "https://github.com/Freescale/meta-freescale"
    },
    "meta-freescale-3rdparty": {
        "branch": "hardknott",
        "rev": "f8150f3b37cb83cba1f9e2378e57bb63e02d4610",
        "url": "https://github.com/Freescale/meta-freescale-3rdparty"
    },
    "meta-freescale-distro": {
        "branch": "hardknott",
        "rev": "e6daa26ba1f748326546063d63a085ae671827d9",
        "url": "https://github.com/Freescale/meta-freescale-distro"
    },
    "meta-imx": {
        "branch": "hardknott-5.10.72-2.2.0",
        "rev": "refs/tags/rel_imx_5.10.72_2.2.0",
        "url": "https://source.codeaurora.org/external/imx/meta-imx"
    },
    "meta-openembedded": {
        "branch": "hardknott",
        "rev": "f44e1a2b575826e88b8cb2725e54a7c5d29cf94a",
        "url": "https://github.com/openembedded/meta-openembedded"
    },
    "poky": {
        "branch": "hardknott",
        "rev": "269265c00091fa65f93de6cad32bf24f1e7f72a3",
        "url": "https://git.yoctoproject.org/git/poky"
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Build Configuration:
BB_VERSION           = "1.50.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8mmevk"

DISTRO_VERSION       = "5.10-hardknott"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU           = ""


meta-poky            = "HEAD:269265c00091fa65f93de6cad32bf24f1e7f72a3"
meta-oe              
meta-multimedia      
meta-python          = "HEAD:f44e1a2b575826e88b8cb2725e54a7c5d29cf94a"
meta-freescale       = "HEAD:469d6c958c76ea235b3d3c1527e797ce3a7392e3"
meta-freescale-3rdparty = "HEAD:f8150f3b37cb83cba1f9e2378e57bb63e02d4610"
meta-freescale-distro = "HEAD:e6daa26ba1f748326546063d63a085ae671827d9"
meta-bsp             
meta-sdk             
meta-ml              = "HEAD:a38040cc159f0ef9fc177358932c2c75257c59e9"
meta-gnome           
meta-networking      
meta-filesystems     = "HEAD:f44e1a2b575826e88b8cb2725e54a7c5d29cf94a"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Dec 2022 18:08:14 GMT</pubDate>
    <dc:creator>btarnowski</dc:creator>
    <dc:date>2022-12-29T18:08:14Z</dc:date>
    <item>
      <title>gst-launch-1.0 returns: Internal data stream error</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1533632#M356</link>
      <description>&lt;P&gt;Hi all. I'm working with imx8mm and camera sensor os02g10.&lt;BR /&gt;I added the Rockchip driver for this sensor as a patch.&lt;BR /&gt;It supports only RAW10 pixelformat. I can capture data from the sensor with command:&lt;/P&gt;&lt;P&gt;v4l2-ctl -d /dev/video0 --verbose --set-fmt-video=width=1920,height=1080,pixelformat=BG10 --stream-mmap --stream-count=1 --stream-to=raw10.raw&lt;/P&gt;&lt;P&gt;The output file needs to be processed to get correct size and raw natural green image (before White Balancing). It has to be done with PC computer with using this command:&lt;/P&gt;&lt;P&gt;gst-launch-1.0 -v filesrc location=path_to_file_from_camera_sensor.raw blocksize=42923008 ! "video/x-bayer,format=bggr,width=1920,height=1080,framerate=1/1" ! bayer2rgb ! videoconvert ! avenc_mjpeg ! filesink location=frame.jpeg&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;So the data from camera sensor looks correct but the target device (not PC) has issue with gst-launch-1.0. The goal is to get this command to work:&lt;/P&gt;&lt;P&gt;gst-launch-1.0 v4l2src num-buffers=1 ! jpegenc ! filesink location=picture.jpg&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is a my log for this command (patch added to have additional messages):&lt;/P&gt;&lt;P&gt;root@abcd:~# gst-launch-1.0 v4l2src num-buffers=1 ! jpegenc ! filesink location=/tmp/test.jpg&lt;BR /&gt;[ 161.334441] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_open&lt;BR /&gt;[ 161.340830] mx6s-csi 32e20000.csi_bridge: v4l_subdev: mxc_mipi-csi.0&lt;BR /&gt;[ 161.347230] mx6s-csi 32e20000.csi_bridge: csi v4l2 busfreq high request.&lt;BR /&gt;[ 161.353969] os02g10 3-003d: in function: os02g10_s_power&lt;BR /&gt;[ 161.359313] os02g10 3-003d: in function: os02g10_runtime_resume&lt;BR /&gt;[ 161.365272] os02g10 3-003d: in function: __os02g10_power_on&lt;BR /&gt;[ 161.370922] os02g10 3-003d: mux_oe_gpio - dir 1&lt;BR /&gt;[ 161.381504] os02g10 3-003d: pwdn_gpio - dir 1&lt;BR /&gt;[ 161.386003] os02g10 3-003d: mux_sel_gpio - dir 1&lt;BR /&gt;[ 161.395694] os02g10 3-003d: reset_gpio - dir 1&lt;BR /&gt;[ 161.410247] os02g10 3-003d: OS02G10_REG_SOFTWARE_RESET&lt;BR /&gt;[ 161.415915] m01_b_os02g10 3-003d: return value: 0&lt;BR /&gt;[ 161.420762] mxc_mipi-csi.0: return value: 0&lt;BR /&gt;[ 161.425074] mx6s-csi 32e20000.csi_bridge: in function: csi_clk_enable&lt;BR /&gt;[ 161.431531] mx6s-csi 32e20000.csi_bridge: in function: csihw_reset&lt;BR /&gt;[ 161.437764] mx6s-csi 32e20000.csi_bridge: in function: csi_init_interface&lt;BR /&gt;[ 161.444582] mx6s-csi 32e20000.csi_bridge: in function: csi_dmareq_rff_disable&lt;BR /&gt;[ 161.451750] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_init&lt;BR /&gt;[ 161.458176] mx6s-csi 32e20000.csi_bridge: in function: mx6s_vidioc_querycap&lt;BR /&gt;[ 161.465522] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_close&lt;BR /&gt;[ 161.472011] mx6s-csi 32e20000.csi_bridge: in function: csihw_reset&lt;BR /&gt;[ 161.478216] mx6s-csi 32e20000.csi_bridge: in function: csi_init_interface&lt;BR /&gt;[ 161.485041] mx6s-csi 32e20000.csi_bridge: in function: csi_dmareq_rff_disable&lt;BR /&gt;[ 161.492207] mx6s-csi 32e20000.csi_bridge: in function: csi_clk_disable&lt;BR /&gt;[ 161.498760] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_deinit&lt;BR /&gt;[ 161.505330] os02g10 3-003d: in function: os02g10_s_power&lt;BR /&gt;[ 161.510686] os02g10 3-003d: in function: os02g10_runtime_suspend&lt;BR /&gt;[ 161.511644] m01_b_os02g10 3-003d: return value: 0&lt;BR /&gt;[ 161.516723] os02g10 3-003d: in function: __os02g10_power_off&lt;BR /&gt;[ 161.521523] mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_stop_stream&lt;BR /&gt;[ 161.527212] mxc_mipi-csi.0: return value: 0&lt;BR /&gt;[ 161.538735] mx6s-csi 32e20000.csi_bridge: csi v4l2 busfreq high release.&lt;BR /&gt;[ 161.617586] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_open&lt;BR /&gt;[ 161.623974] mx6s-csi 32e20000.csi_bridge: v4l_subdev: mxc_mipi-csi.0&lt;BR /&gt;[ 161.630373] mx6s-csi 32e20000.csi_bridge: csi v4l2 busfreq high request.&lt;BR /&gt;[ 161.637110] os02g10 3-003d: in function: os02g10_s_power&lt;BR /&gt;[ 161.642447] os02g10 3-003d: in function: os02g10_runtime_resume&lt;BR /&gt;[ 161.648403] os02g10 3-003d: in function: __os02g10_power_on&lt;BR /&gt;[ 161.654048] os02g10 3-003d: mux_oe_gpio - dir 1&lt;BR /&gt;[ 161.664367] os02g10 3-003d: pwdn_gpio - dir 1&lt;BR /&gt;[ 161.668752] os02g10 3-003d: mux_sel_gpio - dir 1&lt;BR /&gt;[ 161.677952] os02g10 3-003d: reset_gpio - dir 1&lt;BR /&gt;[ 161.692776] os02g10 3-003d: OS02G10_REG_SOFTWARE_RESET&lt;BR /&gt;[ 161.698437] m01_b_os02g10 3-003d: return value: 0&lt;BR /&gt;[ 161.703283] mxc_mipi-csi.0: return value: 0&lt;BR /&gt;[ 161.707602] mx6s-csi 32e20000.csi_bridge: in function: csi_clk_enable&lt;BR /&gt;[ 161.714064] mx6s-csi 32e20000.csi_bridge: in function: csihw_reset&lt;BR /&gt;[ 161.720266] mx6s-csi 32e20000.csi_bridge: in function: csi_init_interface&lt;BR /&gt;[ 161.727074] mx6s-csi 32e20000.csi_bridge: in function: csi_dmareq_rff_disable&lt;BR /&gt;[ 161.734232] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_init&lt;BR /&gt;[ 161.740647] mx6s-csi 32e20000.csi_bridge: in function: mx6s_vidioc_querycap&lt;BR /&gt;[ 161.748024] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_close&lt;BR /&gt;[ 161.754493] mx6s-csi 32e20000.csi_bridge: in function: csihw_reset&lt;BR /&gt;[ 161.760696] mx6s-csi 32e20000.csi_bridge: in function: csi_init_interface&lt;BR /&gt;[ 161.767518] mx6s-csi 32e20000.csi_bridge: in function: csi_dmareq_rff_disable&lt;BR /&gt;[ 161.774690] mx6s-csi 32e20000.csi_bridge: in function: csi_clk_disable&lt;BR /&gt;[ 161.781247] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_deinit&lt;BR /&gt;[ 161.787801] os02g10 3-003d: in function: os02g10_s_power&lt;BR /&gt;[ 161.793164] os02g10 3-003d: in function: os02g10_runtime_suspend&lt;BR /&gt;[ 161.794252] m01_b_os02g10 3-003d: return value: 0&lt;BR /&gt;[ 161.799217] os02g10 3-003d: in function: __os02g10_power_off&lt;BR /&gt;[ 161.804027] mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_stop_stream&lt;BR /&gt;[ 161.809705] mxc_mipi-csi.0: return value: 0&lt;BR /&gt;[ 161.821233] mx6s-csi 32e20000.csi_bridge: csi v4l2 busfreq high release.&lt;BR /&gt;Setting pipeline to PAUSED ...&lt;BR /&gt;[ 161.852442] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_open&lt;BR /&gt;[ 161.861400] mx6s-csi 32e20000.csi_bridge: v4l_subdev: mxc_mipi-csi.0&lt;BR /&gt;[ 161.867790] mx6s-csi 32e20000.csi_bridge: csi v4l2 busfreq high request.&lt;BR /&gt;[ 161.874537] os02g10 3-003d: in function: os02g10_s_power&lt;BR /&gt;[ 161.879880] os02g10 3-003d: in function: os02g10_runtime_resume&lt;BR /&gt;[ 161.885849] os02g10 3-003d: in function: __os02g10_power_on&lt;BR /&gt;[ 161.891499] os02g10 3-003d: mux_oe_gpio - dir 1&lt;BR /&gt;[ 161.902085] os02g10 3-003d: pwdn_gpio - dir 1&lt;BR /&gt;[ 161.906463] os02g10 3-003d: mux_sel_gpio - dir 1&lt;BR /&gt;[ 161.916000] os02g10 3-003d: reset_gpio - dir 1&lt;BR /&gt;[ 161.930715] os02g10 3-003d: OS02G10_REG_SOFTWARE_RESET&lt;BR /&gt;[ 161.936325] m01_b_os02g10 3-003d: return value: 0&lt;BR /&gt;[ 161.941245] mxc_mipi-csi.0: return value: 0&lt;BR /&gt;[ 161.945569] mx6s-csi 32e20000.csi_bridge: in function: csi_clk_enable&lt;BR /&gt;[ 161.952066] mx6s-csi 32e20000.csi_bridge: in function: csihw_reset&lt;BR /&gt;[ 161.958303] mx6s-csi 32e20000.csi_bridge: in function: csi_init_interface&lt;BR /&gt;[ 161.965256] mx6s-csi 32e20000.csi_bridge: in function: csi_dmareq_rff_disable&lt;BR /&gt;[ 161.972434] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_init&lt;BR /&gt;[ 161.978838] mx6s-csi 32e20000.csi_bridge: in function: mx6s_vidioc_querycap&lt;BR /&gt;[ 161.985842] mx6s_capture.c in function: mx6s_vidioc_enum_input&lt;BR /&gt;[ 161.991844] mx6s_capture.c in function: mx6s_vidioc_enum_input&lt;BR /&gt;[ 161.997733] mx6s-csi 32e20000.csi_bridge: in function: mx6s_vidioc_g_std - input argument a=0x0&lt;BR /&gt;[ 162.006459] mxc_mipi-csi.0: return value: -515&lt;BR /&gt;[ 162.011021] mx6s_capture.c in function: mx6s_vidioc_g_input&lt;BR /&gt;[ 162.017438] mx6s-csi 32e20000.csi_bridge: in function: mx6s_vidioc_enum_fmt_vid_cap&lt;/P&gt;&lt;P&gt;Pipeline is live and does not need PREROLL ...&lt;/P&gt;&lt;P&gt;[ 162.027911] mx6s-csi 32e20000.csi_bridge: v4l2_subdev: mxc_mipi-csi.0&lt;BR /&gt;Pipeline is PREROLLED ...&lt;/P&gt;&lt;P&gt;[ 162.035677] os02g10 3-003d: in function: os02g10_enum_mbus_code&lt;/P&gt;&lt;P&gt;Setting pipeline to PLAYING ...&lt;/P&gt;&lt;P&gt;[ 162.043934] m01_b_os02g10 3-003d: return value: 0&lt;BR /&gt;New clock: GstSystemClock&lt;/P&gt;&lt;P&gt;[ 162.051586] mxc_mipi-csi 32e30000.mipi_csi: supported format0 by mipi-csi driver: 0x2008&lt;BR /&gt;[ 162.051590] mxc_mipi-csi 32e30000.mipi_csi: supported format1 by mipi-csi driver: 0x2007&lt;BR /&gt;[ 162.062267] mxc_mipi-csi 32e30000.mipi_csi: supported format2 by mipi-csi driver: 0x3001&lt;BR /&gt;[ 162.070637] mxc_mipi-csi 32e30000.mipi_csi: supported format3 by mipi-csi driver: 0x3007&lt;BR /&gt;[ 162.079002] mxc_mipi-csi.0: return value: 0&lt;BR /&gt;[ 162.091640] mx6s_captuere.c in function format_by_mbus&lt;BR /&gt;[ 162.096794] mx6s_captuere.c: mbus_code 3007&lt;BR /&gt;[ 162.101029] mx6s-csi 32e20000.csi_bridge: in function: mx6s_vidioc_enum_fmt_vid_cap&lt;BR /&gt;[ 162.108713] mx6s-csi 32e20000.csi_bridge: v4l2_subdev: mxc_mipi-csi.0&lt;BR /&gt;[ 162.115179] os02g10 3-003d: in function: os02g10_enum_mbus_code&lt;BR /&gt;[ 162.121121] os02g10 3-003d: invalid argument&lt;BR /&gt;[ 162.125414] m01_b_os02g10 3-003d: return value: -22&lt;BR /&gt;[ 162.130395] mxc_mipi-csi.0: return value: -22&lt;BR /&gt;[ 162.134859] mx6s-csi 32e20000.csi_bridge: No more fmt&lt;BR /&gt;[ 162.139961] mx6s-csi 32e20000.csi_bridge: in function: mx6s_vidioc_g_pixelaspect&lt;BR /&gt;[ 162.147408] mx6s-csi 32e20000.csi_bridge: in function: mx6s_vidioc_g_selection&lt;BR /&gt;[ 162.154652] mx6s-csi 32e20000.csi_bridge: in function: mx6s_vidioc_g_selection&lt;BR /&gt;ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.&lt;/P&gt;&lt;P&gt;[ 162.162785] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_close&lt;BR /&gt;[ 162.171658] mx6s-csi 32e20000.csi_bridge: in function: csihw_reset&lt;BR /&gt;[ 162.180697] mx6s-csi 32e20000.csi_bridge: in function: csi_init_interface&lt;/P&gt;&lt;P&gt;Additional debug info:../git/libs/gstine0/GstV4l2Src:v4l2src0:&lt;BR /&gt;/base/gstbasesrc.c(3127): gst_base_src_loop (): /GstPipeline:pipel&lt;/P&gt;&lt;P&gt;[ 162.190366] mx6s-csi 32e20000.csi_bridge: in function: csi_dmareq_rff_disable&lt;BR /&gt;[ 162.200397] mx6s-csi 32e20000.csi_bridge: in function: csi_clk_disable&lt;BR /&gt;[ 162.209794] mx6s-csi 32e20000.csi_bridge: in function: mx6s_csi_deinit&lt;BR /&gt;[ 162.219209] os02g10 3-003d: in function: os02g10_s_power&lt;BR /&gt;[ 162.227400] os02g10 3-003d: in function: os02g10_runtime_suspendd (-4)&lt;/P&gt;&lt;P&gt;streaming stopped, reason not-negotiate&lt;BR /&gt;Execution ended after 0:00:00.126697071&lt;BR /&gt;Setting pipeline to NULL ...&lt;/P&gt;&lt;P&gt;[ 162.228012] m01_b_os02g10 3-003d: return value: 0&lt;BR /&gt;[ 162.236290] os02g10 3-003d: in function: __os02g10_power_off&lt;BR /&gt;[ 162.243926] mxc_mipi-csi 32e30000.mipi_csi: in function: mipi_csis_stop_stream&lt;BR /&gt;Freeing pipeline ...&lt;BR /&gt;[ 162.243947] mxc_mipi-csi.0: return value: 0&lt;BR /&gt;[ 162.243957] mx6s-csi 32e20000.csi_bridge: csi v4l2 busfreq high release.&lt;BR /&gt;root@abcd:~#&lt;/P&gt;&lt;P&gt;So the main issue is connected with (short version):&lt;/P&gt;&lt;P&gt;ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Internal data stream error.&lt;BR /&gt;Additional debug info:&lt;BR /&gt;../git/libs/gst/base/gstbasesrc.c(3127): gst_base_src_loop ():&lt;BR /&gt;/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:&lt;BR /&gt;streaming stopped, reason not-negotiated (-4)&lt;BR /&gt;Execution ended after 0:00:00.136944375&lt;/P&gt;&lt;P&gt;Any hints, any help ?&lt;BR /&gt;What is wrong ?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Oct 2022 21:20:11 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1533632#M356</guid>
      <dc:creator>btarnowski</dc:creator>
      <dc:date>2022-10-06T21:20:11Z</dc:date>
    </item>
    <item>
      <title>Re: gst-launch-1.0 returns: Internal data stream error</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1533706#M357</link>
      <description>&lt;P&gt;what bsp version do you use? did you change any source code? current bsp shouldn't support raw10 data as default&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 04:56:58 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1533706#M357</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2022-10-07T04:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: gst-launch-1.0 returns: Internal data stream error</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1533778#M358</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Linux version 5.10.72-lts-5.10.y+gbea7af8cc939&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and I added format definition for RAW10 : &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt; static struct mx6s_fmt formats[] = {
 	{
 		.name		= "UYVY-16",
		.fourcc		= V4L2_PIX_FMT_UYVY,
 		.pixelformat	= V4L2_PIX_FMT_UYVY,
 		.mbus_code	= MEDIA_BUS_FMT_UYVY8_2X8,
 		.bpp		= 2,
 	}, {
 		.name		= "YUYV-16",
		.fourcc		= V4L2_PIX_FMT_YUYV,
 		.pixelformat	= V4L2_PIX_FMT_YUYV,
 		.mbus_code	= MEDIA_BUS_FMT_YUYV8_2X8,
 		.bpp		= 2,
 	}, {
 		.name		= "YUV32 (X-Y-U-V)",
		.fourcc		= V4L2_PIX_FMT_YUV32,
 		.pixelformat	= V4L2_PIX_FMT_YUV32,
 		.mbus_code	= MEDIA_BUS_FMT_AYUV8_1X32,
 		.bpp		= 4,
 	}, {
 		.name		= "RAWRGB8 (SBGGR8)",
		.fourcc		= V4L2_PIX_FMT_SBGGR8,
 		.pixelformat	= V4L2_PIX_FMT_SBGGR8,
 		.mbus_code	= MEDIA_BUS_FMT_SBGGR8_1X8,
 		.bpp		= 1,
+	}, {
+		.name		= "RAWRGB10 (SBGGR10)",
+		.fourcc	        = V4L2_PIX_FMT_SBGGR10,
+		.pixelformat	= V4L2_PIX_FMT_SBGGR10,
+		.mbus_code	= MEDIA_BUS_FMT_SBGGR10_1X10,
+		.bpp		= 2,
 	}
 };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and here&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;@@ -322,6 +322,10 @@ static const struct csis_pix_format mipi_csis_formats[] = {
 		.code = MEDIA_BUS_FMT_SBGGR8_1X8,
 		.fmt_reg = MIPI_CSIS_ISPCFG_FMT_RAW8,
 		.data_alignment = 8,
+	}, {
+		.code = MEDIA_BUS_FMT_SBGGR10_1X10,
+		.fmt_reg = MIPI_CSIS_ISPCFG_FMT_RAW10,
+		.data_alignment = 16,
 	}
 };&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;and also I changed resolution in function:&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;static void csi_init_interface(struct mx6s_csi_dev *csi_dev)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="c"&gt;imag_para = (1080 &amp;lt;&amp;lt; 16) | 1920;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 08:29:01 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1533778#M358</guid>
      <dc:creator>btarnowski</dc:creator>
      <dc:date>2022-10-07T08:29:01Z</dc:date>
    </item>
    <item>
      <title>Re: gst-launch-1.0 returns: Internal data stream error</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1533819#M359</link>
      <description>&lt;P&gt;The complete replay above.&lt;BR /&gt;Linux version 5.10.72-lts-5.10.y+gbea7af8cc939&lt;/P&gt;</description>
      <pubDate>Fri, 07 Oct 2022 09:37:22 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1533819#M359</guid>
      <dc:creator>btarnowski</dc:creator>
      <dc:date>2022-10-07T09:37:22Z</dc:date>
    </item>
    <item>
      <title>Re: gst-launch-1.0 returns: Internal data stream error</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1536966#M360</link>
      <description>&lt;P&gt;confirmed that jpegenc doesn't support bggr as input&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2022 08:27:34 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1536966#M360</guid>
      <dc:creator>joanxie</dc:creator>
      <dc:date>2022-10-13T08:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: gst-launch-1.0 returns: Internal data stream error</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1573923#M383</link>
      <description>&lt;P&gt;can you able to stream using RAW10?&lt;/P&gt;</description>
      <pubDate>Thu, 22 Dec 2022 23:49:25 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1573923#M383</guid>
      <dc:creator>Udhay_</dc:creator>
      <dc:date>2022-12-22T23:49:25Z</dc:date>
    </item>
    <item>
      <title>Re: gst-launch-1.0 returns: Internal data stream error</title>
      <link>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1575633#M388</link>
      <description>&lt;P&gt;RAW10 works for IMX8MM with gst, example below.&amp;nbsp;&lt;BR /&gt;gst-launch-1.0 -vvv v4l2src device=/dev/video0 num-buffers=1 \! "video/x-bayer,width=1920,height=1080,framerate=(fraction)25/1,format=(string)bggr" \! bayer2rgb ! pngenc ! filesink location=test.png&lt;BR /&gt;&lt;BR /&gt;Thera are patches and bbappned for yocto.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Manifest for Yocto :&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;    "meta-freescale": {
        "branch": "hardknott",
        "rev": "469d6c958c76ea235b3d3c1527e797ce3a7392e3",
        "url": "https://github.com/Freescale/meta-freescale"
    },
    "meta-freescale-3rdparty": {
        "branch": "hardknott",
        "rev": "f8150f3b37cb83cba1f9e2378e57bb63e02d4610",
        "url": "https://github.com/Freescale/meta-freescale-3rdparty"
    },
    "meta-freescale-distro": {
        "branch": "hardknott",
        "rev": "e6daa26ba1f748326546063d63a085ae671827d9",
        "url": "https://github.com/Freescale/meta-freescale-distro"
    },
    "meta-imx": {
        "branch": "hardknott-5.10.72-2.2.0",
        "rev": "refs/tags/rel_imx_5.10.72_2.2.0",
        "url": "https://source.codeaurora.org/external/imx/meta-imx"
    },
    "meta-openembedded": {
        "branch": "hardknott",
        "rev": "f44e1a2b575826e88b8cb2725e54a7c5d29cf94a",
        "url": "https://github.com/openembedded/meta-openembedded"
    },
    "poky": {
        "branch": "hardknott",
        "rev": "269265c00091fa65f93de6cad32bf24f1e7f72a3",
        "url": "https://git.yoctoproject.org/git/poky"
    }&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Build Configuration:
BB_VERSION           = "1.50.0"
BUILD_SYS            = "x86_64-linux"
NATIVELSBSTRING      = "ubuntu-20.04"
TARGET_SYS           = "aarch64-poky-linux"
MACHINE              = "imx8mmevk"

DISTRO_VERSION       = "5.10-hardknott"
TUNE_FEATURES        = "aarch64 armv8a crc cortexa53 crypto"
TARGET_FPU           = ""


meta-poky            = "HEAD:269265c00091fa65f93de6cad32bf24f1e7f72a3"
meta-oe              
meta-multimedia      
meta-python          = "HEAD:f44e1a2b575826e88b8cb2725e54a7c5d29cf94a"
meta-freescale       = "HEAD:469d6c958c76ea235b3d3c1527e797ce3a7392e3"
meta-freescale-3rdparty = "HEAD:f8150f3b37cb83cba1f9e2378e57bb63e02d4610"
meta-freescale-distro = "HEAD:e6daa26ba1f748326546063d63a085ae671827d9"
meta-bsp             
meta-sdk             
meta-ml              = "HEAD:a38040cc159f0ef9fc177358932c2c75257c59e9"
meta-gnome           
meta-networking      
meta-filesystems     = "HEAD:f44e1a2b575826e88b8cb2725e54a7c5d29cf94a"&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Dec 2022 18:08:14 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Graphics/gst-launch-1-0-returns-Internal-data-stream-error/m-p/1575633#M388</guid>
      <dc:creator>btarnowski</dc:creator>
      <dc:date>2022-12-29T18:08:14Z</dc:date>
    </item>
  </channel>
</rss>

