Video playback problem with omx

classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

Video playback problem with omx

Abin P

Hi all
I build  a kernal on Rcar E2(arm based board).I already installed  weston /wayland ,gststreamer-1.0 with omx(hardware acceleration enabled) in R car-E2. I checked all the omx plugins installed in Rcar E2 using  gst-inspect-1.0 omx .

Omxh264enc:openmax h.264 video decoder

Omxwmadec: openmax wma audio decoder

Omxmp3dec: openmax mp3 audio decoder

Omxaacdec: openmax aac audio decoder

Omxh265dec : openmax h.265 video decoder

Omxvc1dec : openmax wmv video decoder

Omxaaclcdec: openmax aac audio decoder

Omxmpeg4videodec : openmax mpeg4  video decoder

Omxh264dec : openmax h.264 video decoder

Then i tried to test omx hardware acceleration  using pipeline
gst-launch-1.0 -v  filesrc location=sample.mp4 ! qtdemux name=dmx dmx.video_0 ! h264parse ! omxh264dec ! waylandsink

Also checked

gst-launch-1.0 -v  filesrc location=sample.mp4 ! qtdemux name=dmx dmx.video_0 ! video/x-h264 ,width=1280,height=720,framerate=25/1  ! omxh264dec ! waylandsink

But i got plenty of errors.no video shown in display.I attached the error summary using debug
GST_DEBUG =4 gst-launch-1.0 -v  filesrc location=sample.mp4 ! qtdemux name=dmx dmx.video_0 ! h264parse ! omxh264dec ! waylandsink

Is there any issue in my pipeline?
Can anyone help me to find the real root cause of this error.

Thanks & regards
Abin


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

error.txt (69K) Download Attachment
error.txt (69K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Video playback problem with omx

Sebastian Dröge-3
On Wed, 2016-10-26 at 16:55 +0530, Abin P wrote:

> [...]
> Then i tried to test omx hardware acceleration  using pipeline
> gst-launch-1.0 -v  filesrc location=sample.mp4 ! qtdemux name=dmx
> dmx.video_0 ! h264parse ! omxh264dec ! waylandsink
> Also checked
> gst-launch-1.0 -v  filesrc location=sample.mp4 ! qtdemux name=dmx
> dmx.video_0 ! video/x-h264 ,width=1280,height=720,framerate=25/1  !
> omxh264dec ! waylandsink
> But i got plenty of errors.no video shown in display.I attached the
> error summary using debug
> GST_DEBUG =4 gst-launch-1.0 -v  filesrc location=sample.mp4 ! qtdemux
> name=dmx dmx.video_0 ! h264parse ! omxh264dec ! waylandsink
There is no pad video_00 on qtdemux here (as used in the log), it's
called video_0 as in the pipeline you pasted above.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Video playback problem with omx

Abin P

Thanks sebastisb droge

I got a sample.h264 video.so i used pipeline like

gst-launch-1.0 -v -m filesrc  location=sample.h264 ! h264parse ! omxh264dec ! filesink= out.yuv

This pipelibe got errors like  negotiaion problem,decoder not initialized.

I used GST DEBUG = 4 to analyze the errors.Attached error status with this mail.
Please help me to find exact problem behind this.I like to make a playback using omx video decoder.
Thanks and regards
Abin


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

error.txt (68K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Video playback problem with omx

munezbn.dev
Hi 

can you try if it works with below command 

gst-launch-1.0 -v -m filesrc  location=sample.h264 ! h264parse ! omxh264dec ! videoconvert ! autovidoesink

Thanks & Regards
Munez

On Tue, Nov 1, 2016 at 3:52 PM, Abin P <[hidden email]> wrote:

Thanks sebastisb droge

I got a sample.h264 video.so i used pipeline like

gst-launch-1.0 -v -m filesrc  location=sample.h264 ! h264parse ! omxh264dec ! filesink= out.yuv

This pipelibe got errors like  negotiaion problem,decoder not initialized.

I used GST DEBUG = 4 to analyze the errors.Attached error status with this mail.
Please help me to find exact problem behind this.I like to make a playback using omx video decoder.
Thanks and regards
Abin


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video playback problem with omx

Sebastian Dröge-3
In reply to this post by Abin P
On Tue, 2016-11-01 at 15:52 +0530, Abin P wrote:

> Thanks sebastisb droge
> I got a sample.h264 video.so i used pipeline like
> gst-launch-1.0 -v -m filesrc  location=sample.h264 ! h264parse !
> omxh264dec ! filesink= out.yuv
> This pipelibe got errors like  negotiaion problem,decoder not
> initialized.
> I used GST DEBUG = 4 to analyze the errors.Attached error status with
> this mail.
> Please help me to find exact problem behind this.I like to make a
> playback using omx video decoder.
The problem is the following:

> 0:00:01.385422582  3049     0x36da0320 INFO                     omx gstomx.c:1622:gst_omx_port_allocate_buffers_unlocked:<omxh264dec-omxh264dec0> Allocating 2 buffers of size 6291456 for H264 port 0
> MMI open: No such file or directory
> > > > > ts:2486.000047 level:0x00001000 func:OmxrAllocateWorkBuffer_allocfunc(265) tid:3051 mes:error: mmngr fatal. -1
> > > > > ts:2486.000075 level:0x00100000 func:OmxrMeVideoVcmnInterface_AllocateBufferSuper(66) tid:3051 mes:RuntimeError
> > > > > ts:2486.000089 level:0x00100000 func:OmxrMeVideoVcmnInterfaceVdcmn_AllocateBuffer(794) tid:3051 mes:RuntimeError
> > > > > ts:2486.000117 level:0x00010000 func:RegisterNewBufferToPort(361) tid:3051 mes:
> > > > > ts:2486.000130 level:0x00010000 func:OmxrMcErrorHandler_Notify(221) tid:3051 mes:u32ErrorCode = H'80001001
> ts:2486.000160 level:0x00010000 func:OmxrMcApiProxy_AllocateBuffer(1049) tid:3053 mes:eError = H'80001001

It looks like your OpenMAX IL is not set up correctly, and it has
problem finding some kind of file... which then makes it fail
allocating buffers (for the compressed video) on the decoder.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Video playback problem with omx

Abin P

Dear Sebastian droge

Thanks for your valuable reply.

How can i solve the problem with allocating buffers on decoder.Is there anyway to find which file or library missing??

I am awaiting for your suggestions.

Regards
Abin


On Nov 2, 2016 1:42 PM, "Sebastian Dröge" <[hidden email]> wrote:
On Tue, 2016-11-01 at 15:52 +0530, Abin P wrote:
> Thanks sebastisb droge
> I got a sample.h264 video.so i used pipeline like
> gst-launch-1.0 -v -m filesrc  location=sample.h264 ! h264parse !
> omxh264dec ! filesink= out.yuv
> This pipelibe got errors like  negotiaion problem,decoder not
> initialized.
> I used GST DEBUG = 4 to analyze the errors.Attached error status with
> this mail.
> Please help me to find exact problem behind this.I like to make a
> playback using omx video decoder.

The problem is the following:

> 0:00:01.385422582  [332m 3049 [00m     0x36da0320  [36mINFO    [00m  [00m                 omx gstomx.c:1622:gst_omx_port_allocate_buffers_unlocked:<omxh264dec-omxh264dec0> [00m Allocating 2 buffers of size 6291456 for H264 port 0
> MMI open: No such file or directory
> > > > > ts:2486.000047        level:0x00001000        func:OmxrAllocateWorkBuffer_allocfunc(265)      tid:3051        mes:error: mmngr fatal. -1
> > > > > ts:2486.000075        level:0x00100000        func:OmxrMeVideoVcmnInterface_AllocateBufferSuper(66)   tid:3051        mes:RuntimeError
> > > > > ts:2486.000089        level:0x00100000        func:OmxrMeVideoVcmnInterfaceVdcmn_AllocateBuffer(794)  tid:3051        mes:RuntimeError
> > > > > ts:2486.000117        level:0x00010000        func:RegisterNewBufferToPort(361)       tid:3051        mes:
> > > > > ts:2486.000130        level:0x00010000        func:OmxrMcErrorHandler_Notify(221)     tid:3051        mes:u32ErrorCode = H'80001001
> ts:2486.000160        level:0x00010000        func:OmxrMcApiProxy_AllocateBuffer(1049)        tid:3053        mes:eError = H'80001001

It looks like your OpenMAX IL is not set up correctly, and it has
problem finding some kind of file... which then makes it fail
allocating buffers (for the compressed video) on the decoder.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video playback problem with omx

Sebastian Dröge-3
On Wed, 2016-11-02 at 14:15 +0530, Abin P wrote:
> Dear Sebastian droge
> Thanks for your valuable reply.
>
> How can i solve the problem with allocating buffers on decoder.Is
> there anyway to find which file or library missing??

It doesn't look like a problem in GStreamer at this point, but with the
OpenMAX IL provided by your hardware's manufacturer.

You'll have to check if that is installed correctly, if you set it up
correctly in the gstomx.conf and otherwise ask them for support.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Video playback problem with omx

Abin P

Dear Sebastian droge

I checked gstomx.conf file in build image on board.Its shows all omx packages that installed in image.How can i solve buffer allocation problem?.Here i am attaching the gstomx.conf file with this mail.
Regards Abin


On Nov 2, 2016 2:29 PM, "Sebastian Dröge" <[hidden email]> wrote:
On Wed, 2016-11-02 at 14:15 +0530, Abin P wrote:
> Dear Sebastian droge
> Thanks for your valuable reply.
>
> How can i solve the problem with allocating buffers on decoder.Is
> there anyway to find which file or library missing??

It doesn't look like a problem in GStreamer at this point, but with the
OpenMAX IL provided by your hardware's manufacturer.

You'll have to check if that is installed correctly, if you set it up
correctly in the gstomx.conf and otherwise ask them for support.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

gstomx.conf (4K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Video playback problem with omx

Sebastian Dröge-3
On Thu, 2016-11-03 at 10:02 +0530, Abin P wrote:
> Dear Sebastian droge
> I checked gstomx.conf file in build image on board.Its shows all omx
> packages that installed in image.How can i solve buffer allocation
> problem?.Here i am attaching the gstomx.conf file with this mail.

By talking to the hardware manufacturer, or having someone work on that
together with the required documentation and the hardware in question.
Without further debugging on the target hardware, this won't be
solvable.

Also you're apparently using a modified gst-omx here, it contains
changes for your hardware platform and we don't know what all these
changes are.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment