[meta-freescale] Gstreamer1.0_1.4.5 with imxeglvivsink errors

Vikas Patil vikasmpatil at gmail.com
Wed Oct 14 07:27:09 PDT 2015


Hi Carlos,



Thanks for your valuable comments. It really helped a lot.



1. # gst-launch-1.0 filesrc location=/home/root/song.mp4 ! qtdemux !
h264parse ! imxvpudec ! imxipuvideotransform ! imxg2dvideosink

# gst-launch-1.0 filesrc location=/home/root/song.mp4 ! qtdemux ! h264parse
! imxvpudec ! imxipuvideotransform ! imxeglvivsink

 Thanks for correcting. Now it is working with both sinks. I was following
from : http://trac.gateworks.com/wiki/Yocto/gstreamer/video



2. With GST_DEBUG="2,*imx*:9"  (#gst-launch-1.0 imxv4l2videosrc
device=/dev/video0 ! imxeglvivsink)

- With debug log it seems “imxeglvivsink” doesn’t support YUY2 or YUYV
format. Attached here the complete log. Is there any way to run this with
this sink?


log snippets:


0:00:00.973616667   168   0x8563b0 WARN                 basesrc
gstbasesrc.c:2933:gst_base_src_loop:<imxv4l2videosrc0> error: Internal data
flow error.
0:00:00.973694333   168   0x8563b0 WARN                 basesrc
gstbasesrc.c:2933:gst_base_src_loop:<imxv4l2videosrc0> error: streaming
task paused, reason not-negotiated (-4)
ERROR: from element
/GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0: Internal data
flow error.
Additional debug info:
/gstreamer1.0/1.4.5-r0/gstreamer-1.4.5/libs/gst/base/gstbasesrc.c(2933):
gst_base_src_loop ():
/GstPipeline:pipeline0/GstImxV4l2VideoSrc:imxv4l2videosrc0:
streaming task paused, reason not-negotiated (-4)



3. # gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! imxg2dvideosink

Yes, this works.



4. Is there any standard mp4 video file (with h264 encoding) I can download
from somewhere  to test with gstreamer?



Thanks & regards,

Vikash



*From:* meta-freescale-bounces at yoctoproject.org [mailto:
meta-freescale-bounces at yoctoproject.org] *On Behalf Of *Carlos Rafael Giani
*Sent:* Wednesday, October 14, 2015 7:17 PM
*To:* Vikas Patil; meta-freescale at yoctoproject.org
*Subject:* Re: [meta-freescale] Gstreamer1.0_1.4.5 with imxeglvivsink errors


First, this pipeline is incorrect:

gst-launch-1.0 filesrc location=/home/root/song.mp4 ! h264parse ! imxvpudec
! imxipuvideotransform ! imxg2dvideosink

it should be like:

gst-launch-1.0 filesrc location=/home/root/song.mp4 ! qtdemux ! h264parse !
imxvpudec ! imxipuvideotransform ! imxg2dvideosink


Second, without log output it is impossible to say anything. For exampl,
run this pipeline with the GST_DEBUG environment variable set to
"2,*imx*:9"  :

gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! imxeglvivsink


Third, does this work?

gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! imxg2dvideosink


Fourth, the fact that this produces a "could not determine type of stream"
error indicates that your mp4 file is broken:

gst-launch-1.0 filesrc location=/home/root/song.mp4 ! decodebin ! fakesink



On Wed, Oct 14, 2015 at 7:12 PM, Vikas Patil <vikasmpatil at gmail.com> wrote:

> So far I am able to run the following pipeline successfully till now. I am
> using
>
> gstreamer1.0_1.4.5 <http://gstreamer1.0_1.4.5.bb/>
>
> gstreamer1.0-plugins-imx_0.11.1
> <http://gstreamer1.0-plugins-imx_0.11.1.bb/>
>
> Linux 3.14.28
>
> Weston 1.8.0
>
> #gst-launch-1.0 -v imxv4l2videosrc device=/dev/video0 ! imxg2dvideosink
>
> #gst-launch-1.0  imxv4l2videosrc ! imxg2dvideosink
>
> #gst-launch-1.0 videotestsrc pattern=00 ! imxg2dvideosink
> framebuffer=/dev/fb0
>
>
>
> However, it would be good if anyone can help me to run with
> "imxeglvivsink". I am getting following error
>
>
>
> ##gst-launch-1.0 -v imxv4l2videosrc device=/dev/video0 ! imxeglvivsink
>
>
>
> Setting pipeline to PAUSED ...
>
> ERROR: Pipeline doesn't want to pause.
>
> Setting pipeline to NULL ...
>
> Freeing pipeline ...
>
>
>
> Also not able to verify video encode and decode. Could you point me to
> some standard video stream for decode I can test with (may be h264)  and
> from where can I download?
>
>
>
> ##gst-launch-1.0 filesrc location=/home/root/song.mp4 ! h264parse !
> imxvpudec ! imxipuvideotransform ! imxg2dvideosink
>
>
>
> Setting pipeline to PAUSED ...
>
> [INFO]  Product Info: i.MX6Q/D/S
>
> Pipeline is PREROLLING ...
>
> [INFO]  bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable
> 0
>
> [INFO]  bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable
> 0
>
> ERROR: from element /GstPipeline:pipeline0/GstH264Parse:h264parse0:
> GStreamer encountered a general stream error.
>
> Additional debug info:
>
> /data/work/vipatil/ELINA_081015/elina-distro/build-orinoco/tmp/work/cortexa9hf-vfp-neon-elina-linux-gnueabi/gstreamer1.0/1.4.5-r0/gstreamer-1.4.5/libs/gst/base/gstbaseparse.c(3264):
> gst_base_parse_loop (): /GstPipeline:pipeline0/GstH264Parse:h264parse0:
>
> streaming stopped, reason error
>
> ERROR: pipeline doesn't want to preroll.
>
> Setting pipeline to NULL ...
>
> Freeing pipeline ...
>
>
>
> Regards,
>
> Vikash
>
> On Wed, Oct 14, 2015 at 4:09 PM, Vikas Patil <vikasmpatil at gmail.com>
> wrote:
>
>> Dear All,
>>
>> I am trying following command with gstreamer with imxeglvivsink on
>> i.MX6Solo but could not able to see working till now.
>>
>> Could you provide some example pipeline commands to run with
>> imxeglvivsink? How could I fix the below errors? Any inputs/suggestions?
>>
>> How should I test my gstreamer setup with imxeglvivsink?
>>
>> gstreamer1.0_1.4.5.bb
>>
>> gstreamer1.0-plugins-imx_0.11.1.bb
>> Linux 3.14.28
>> Weston 1.8.0
>>
>> I am running following command when desktop-shell is loaded by weston.
>>
>> 1.From File
>> root at linux3.14.28:~# gst-launch-1.0 playbin
>> uri=file:///home/root/song.mp4 video sink=imxeglvivsink
>>
>> Setting pipeline to PAUSED ...
>> ERROR: Pipeline doesn't want to pause.
>> Setting pipeline to NULL ...
>> Freeing pipeline ...
>>
>> 2. Camera video (my camera application working fine using wayland/gles)
>> root at linux3.14.28:~#gst-launch-1.0 imxv4l2videosrc device=/dev/video0 !
>> imxeglvivsink
>> Setting pipeline to PAUSED ...
>> ERROR: Pipeline doesn't want to pause.
>> Setting pipeline to NULL ...
>> Freeing pipeline ...
>>
>> 3. #gst-launch-1.0 filesrc location=/home/root/song.mp4 ! decodebin !
>> fakesink
>>
>> Setting pipeline to PAUSED ...
>> Pipeline is PREROLLING ...
>> ERROR: from element
>> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind:
>> Could not determine type of stream.
>> Additional debug info:
>> /data/work/vipatil/ELINA_081015/elina-distro/build-orinoco/tmp/work/cortexa9hf-vfp-neon-elina-linux-gnueabi/gstreamer1.0/1.4.5-r0/gstreamer-1.4.5/plugins/elements/gsttypefindelement.c(1083):
>> gst_type_find_element_loop ():
>> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind
>> ERROR: pipeline doesn't want to preroll.
>> Setting pipeline to NULL ...
>> Freeing pipeline ...
>>
>> 4.#gst-launch-1.0 filesrc location=/home/root/song.mp4 ! decodebin !
>> imxeglvivsink
>>
>> Setting pipeline to PAUSED ...
>> ERROR: Pipeline doesn't want to pause.
>> Setting pipeline to NULL ...
>> Freeing pipeline ...
>> However fakesink seems to be working
>>
>> # gst-launch-1.0 imxv4l2videosrc device=/dev/video0 ! fakesink
>>
>> Setting pipeline to PAUSED ...
>> Pipeline is live and does not need PREROLL ...
>> Setting pipeline to PLAYING ...
>> New clock: GstSystemClock
>> [ 3533.593484] imx-ipuv3 2400000.ipu: IPU Warning - IPU_INT_STAT_5 =
>> 0x00000001
>>
>> Thanks & Regards,
>> Vikash
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20151014/7a89074e/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: camera_imxeglvivsink.log
Type: application/octet-stream
Size: 10534 bytes
Desc: not available
URL: <http://lists.yoctoproject.org/pipermail/meta-freescale/attachments/20151014/7a89074e/attachment.obj>


More information about the meta-freescale mailing list