linux-media.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* MFC decode failed in S5PV210 in kernel 3.8
@ 2013-03-02  4:00 Lonsn
  2013-03-02  9:19 ` Lonsn
  2013-03-04  9:22 ` Kamil Debski
  0 siblings, 2 replies; 7+ messages in thread
From: Lonsn @ 2013-03-02  4:00 UTC (permalink / raw)
  To: linux-samsung-soc, linux-media; +Cc: k.debski, Sylwester Nawrocki

Hi,
I tested the MFC decode example v4l2_decode from
http://git.infradead.org/users/kmpark/public-apps and meet some problems
as following:
# ./v4l2_decode -f /dev/video5 -m /dev/video9 -d /dev/fb0 -c mpeg4 -i
shrek.m4v
V4L2 Codec decoding example application
Kamil Debski <k.debski@samsung.com>
Copyright 2012 Samsung Electronics Co., Ltd.

(fb.c:fb_open:51): Framebuffer properties: xres=1024, yres=768, bpp=32
(fb.c:fb_open:53): Virtual resolution: vxres=1024 vyres=768
(fimc.c:fimc_open:56): FIMC Info (/dev/video5): driver="s5pv210-fimc"
bus_info="" card="s5pv210-fimc" fd=0x5
(mfc.c:mfc_open:57): MFC Info (/dev/video9): driver="s5p-mfc"
bus_info="" card="s5p-mfc" fd=0x6
(main.c:main:415): Successfully opened all necessary files and devices
(mfc.c:mfc_dec_setup_output:101): Setup MFC decoding OUTPUT buffer
size=1048576 (requested=1048576)
(mfc.c:mfc_dec_setup_output:118): Number of MFC OUTPUT buffers is 2
(requested 2)
(mfc.c:mfc_dec_setup_output:148): Succesfully mmapped 2 MFC OUTPUT buffers
(main.c:extract_and_process_header:84): Extracted header of size 13089
(mfc.c:mfc_dec_queue_buf:178): Queued buffer on OUTPUT queue with index 0
(mfc.c:mfc_stream:236): Stream ON on OUTPUT queue
(mfc.c:mfc_dec_setup_capture:277): MFC buffer parameters: 0x0 plane[0]=0
plane[1]=0
Error (mfc.c:mfc_dec_setup_capture:283): Failed to get crop information

And kernel print:
 s5p_mfc_handle_error:420: Interrupt Error: 00000035
vidioc_g_crop:782: Cannont set crop

It seems MFC buffer parameters error first.
The shrek.m4v comes from http://www.uky.edu/~drlane/com351/shrek.m4v and
is H264 format. But if I use -c h264, then v4l2_decode will print:
Error (parser.c:parse_h264_stream:337): Output buffer too small for
current frame
Error (main.c:extract_and_process_header:71): Failed to extract header
from stream

Any suggestions?

Thanks.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2013-03-04 11:42 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-03-02  4:00 MFC decode failed in S5PV210 in kernel 3.8 Lonsn
2013-03-02  9:19 ` Lonsn
2013-03-03  3:10   ` Lonsn
2013-03-04  9:22     ` Kamil Debski
2013-03-04  9:30   ` Kamil Debski
2013-03-04 11:42     ` Lonsn
2013-03-04  9:22 ` Kamil Debski

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).