Re: SH7724, VOU, PAL mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Janusz

Sorry, this is not going to be a very detailed reply. It's been a long 
time since I've worked with VOU and AK8813(4).

On Mon, 4 Jun 2012, Janusz Uzycki wrote:

> Hi Guennadi.
> 
> I am trying to force to proper work CS4954 encoder with sh4.
> I want to use sh4 VOU in PAL mode (kernel 3.2.7). Do you have any experience
> with AK881x and PAL?

Yes, I think, I tested both PAL and NTSC modes.

> If I set PAL mode (v4l2-ctl -s) VOUCR::MD is still configured for NTSC.

This shouldn't be the case: look at sh_vou_s_std(). Can you try to add 
debugging to the driver to see, whether that function gets called, when 
you run v4l2-ctl? If not - either you're calling it wrongly, or there's a 
bug in it. If it is - see, whether it's not configuring VOUCR properly or 
somehow it gets reset again later.

> I
> noticed that VOU is limited to NTSC resolution: "Maximum destination image
> size: 720 x 240 per field".

You mean in the datasheet? I don't have it currently at hand, but I seem 
to remember, that there was a bug and the VOU does actually support a full 
PAL resolution too. I'm not 100% certain, though.

> And indeed I had to change my encoder settings to
> NTSC-M CCIR601 timing 720x480 (PAL synch freq. only) for synced (stable) color
> video picture of BAR generated by the encoder (not VOU). On the other hand
> VOUDSR register has bit-limit 1024x512 (enough for PAL 768x576 interlaced).
> Another method for stable PAL picture (but 768x576) is change both VOUCR::MD
> to PAL output mode and set the encoder to PAL mode. Then the green picture has
> a bound about 480 line I think.
> Unfortunately I can't still manage to work video data from VOU to the encoder
> - green picture only. Do you have any test program for video v4l2 output?

You can use gstreamer, e.g.:

gst-launch -v filesrc location=x.avi ! decodebin ! ffmpegcolorspace ! \ 
video/x-raw-rgb,bpp=24 ! v4l2sink device=/dev/video0 tv-norm=PAL-B

I also used a (possibly modified) program by Laurent (cc'ed) which either 
I - with his agreement - can re-send to you, or maybe he'd send you the 
original.

> Does
> the idea fb->v4l2 output
> http://www.spinics.net/lists/linux-fbdev/msg01102.html is alive?

More dead, than alive, I think.

Thanks
Guennadi
---
Guennadi Liakhovetski, Ph.D.
Freelance Open-Source Software Developer
http://www.open-technology.de/
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux