All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lonsn <lonsn2005@gmail.com>
To: linux-samsung-soc@vger.kernel.org, linux-media@vger.kernel.org
Cc: k.debski@samsung.com, Sylwester Nawrocki <sylvester.nawrocki@gmail.com>
Subject: MFC decode failed in S5PV210 in kernel 3.8
Date: Sat, 02 Mar 2013 12:00:18 +0800	[thread overview]
Message-ID: <51317952.9040402@gmail.com> (raw)

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.

             reply	other threads:[~2013-03-02  4:00 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-02  4:00 Lonsn [this message]
2013-03-02  9:19 ` 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=51317952.9040402@gmail.com \
    --to=lonsn2005@gmail.com \
    --cc=k.debski@samsung.com \
    --cc=linux-media@vger.kernel.org \
    --cc=linux-samsung-soc@vger.kernel.org \
    --cc=sylvester.nawrocki@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.