All of lore.kernel.org
 help / color / mirror / Atom feed
* image capturing on i.mx27 with gstreamer
@ 2011-08-19  7:05 Jan Pohanka
  2011-08-19 18:10 ` Fabio Estevam
  2011-08-19 18:18 ` Fabio Estevam
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Pohanka @ 2011-08-19  7:05 UTC (permalink / raw)
  To: linux-media, oselas

Hi all,

I'm playing with i.mx27 processor by Freescale, namely with ipcam  
reference design. There is unfortunately no support available for this hw  
this time so I have adapted a kernel from Pengutronix Oselas distribution  
(available here  
ftp://ftp.phytec.de/pub/Products/phyCORE-iMX27/Linux/PD11.1.0/).

There is mt9d131 CMOS imager from Aptina on the board with 1600x1200  
resolution. As there was none driver, I adapted the one for mt9m111 one  
for my chip. Unfortunately I'm able to get image with any resolution only  
up to 800x600, with higher resolution resulting image is fragmented - it  
looks like the both synchronization (vertical, horizontal) fails. I was  
not able to solve it yet, I'm only sure that I wrote correct values to  
WINDOW_WIDHT and WINDOW_HEIGHT registers, also no skipping is set up.
I use following command to capture single image:
gst-launch \
   v4l2src num-buffers=1 device=/dev/video1 ! \
   video/x-raw-yuv,format=\(fourcc\)UYVY,width=$WIDTH,height=$HEIGHT ! \
   ffmpegcolorspace ! \
   video/x-raw-yuv,width=$WIDTH,height=$HEIGHT ! \
   jpegenc ! \
   filesink location=col_image.jpg

My second problem concerns streaming via udp. I'm able to stream mpeg4  
using hardware VPU on the chip using following gstreamer command
gst-launch -v \
   v4l2src device=/dev/video1 ! \
   video/x-raw-yuv,format=\(fourcc\)UYVY,width=$WIDTH,height=$HEIGHT,  
framerate='(fraction)'10/1 ! \
   ffmpegcolorspace ! \
   mfw_vpuencoder codec-type=std_mpeg4 bitrate=16383 gopsize=20  
profile=true ! \
   rtpmp4vpay send-config=TRUE  ! \
   udpsink host=192.168.10.1 port=5434

However, there is also an issue with resolution. This works up to 640x480.  
For example for 800x600 i'm getting this error message
WARNING: erroneous pipeline: could not link ffmpegcsp0 to mfwgstvpu_enc0

Could please anyone give me an advice how to solve described problems?

with best regards
Jan


-- 
Tato zpráva byla vytvořena převratným poštovním klientem Opery:  
http://www.opera.com/mail/

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

* Re: image capturing on i.mx27 with gstreamer
  2011-08-19  7:05 image capturing on i.mx27 with gstreamer Jan Pohanka
@ 2011-08-19 18:10 ` Fabio Estevam
  2011-08-19 18:18 ` Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2011-08-19 18:10 UTC (permalink / raw)
  To: Jan Pohanka; +Cc: linux-media, oselas

Jan,

On Fri, Aug 19, 2011 at 4:05 AM, Jan Pohanka <xhpohanka@gmail.com> wrote:
...
> However, there is also an issue with resolution. This works up to 640x480.
> For example for 800x600 i'm getting this error message
> WARNING: erroneous pipeline: could not link ffmpegcsp0 to mfwgstvpu_enc0

MX27 can decode/encode up to full D1 (720x576 or 720x480) resolution.

Regards,

Fabio Estevam

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

* Re: image capturing on i.mx27 with gstreamer
  2011-08-19  7:05 image capturing on i.mx27 with gstreamer Jan Pohanka
  2011-08-19 18:10 ` Fabio Estevam
@ 2011-08-19 18:18 ` Fabio Estevam
  1 sibling, 0 replies; 3+ messages in thread
From: Fabio Estevam @ 2011-08-19 18:18 UTC (permalink / raw)
  To: Jan Pohanka; +Cc: linux-media, oselas

On Fri, Aug 19, 2011 at 4:05 AM, Jan Pohanka <xhpohanka@gmail.com> wrote:
> Hi all,
>
> I'm playing with i.mx27 processor by Freescale, namely with ipcam reference
> design. There is unfortunately no support available for this hw this time so
> I have adapted a kernel from Pengutronix Oselas distribution (available here
> ftp://ftp.phytec.de/pub/Products/phyCORE-iMX27/Linux/PD11.1.0/).

Whick kernel version is this? I am also interested in getting VPU
support in the mainline kernel?

Are you working on that?

Regards,

Fabio Estevam

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

end of thread, other threads:[~2011-08-19 18:18 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-08-19  7:05 image capturing on i.mx27 with gstreamer Jan Pohanka
2011-08-19 18:10 ` Fabio Estevam
2011-08-19 18:18 ` Fabio Estevam

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.