On Sun, May 27, 2012 at 1:04 PM, Jeroen <
jeroenja...@gmail.com> wrote:
> Hi,
>
> I have a HD webcam connected to my pandaboard, and I want to do
> streaming with vlc. The streaming works, but according to "top", it
> consumes 115% cpu (I wonder how that's even possible?), and it seems
> the stream drops some frames now and then.
without doing anything special, you would be using ARM CPU for
encoding and image processing, so nothing surprising really ;-)
>
> This is the vlm.conf file I use:
>
> --
> new camNumber2 broadcast enabled
> setup camNumber2 input v4l2:///dev/video2:width=640:height=480
> setup camNumber2 output
> #transcode{vcodec=mp2v,acodec=none,vb=5000}:standard{access=http,mux=ogg,dst=
0.0.0.0:8080}
> control camNumber2 play
> --
>
> I reduced the resolution which seems to solve some issues, but cpu
> usage is still very high. My webcam is a logitech c525 with native
> resolution of 1280x720 (720).
>
> Since the stream is only used on my own network, I want to settle for
> higher bandwith use, if I just can get decent image quality without
> overloading my cpu all the time.
>
> I'm using the Ubuntu pandaboard image (without the omap-multimedia
> extensions). I doubt that those extensions will help me, since they
> are for video-decoding, not encoding (right?).
no, there is encoder support as well. at least in 11.10, we haven't
pushed encoders in 12.04 yet.
we provide low level user space API (libDCE) to access the codecs, and
we provide Gstreamer plugins that work with these codecs. If you use
an application that is not using Gstreamer (such as VLC), you will
have to plug in libDCE.
however, if you use a USB webcam it is likely that the image format
won't be compatible with what OMAP h/w accelerated codecs need (NV12)
and you will need to make a YUV->NV12 on ARM, before you can use the
codecs, but at least you can get read of the encoding on ARM, get a
high quality stream..
Gstreamer can do that like this:
http://omappedia.org/index.php?title=Gstreamer_overview#Display_webcam_video