mrdebug
Posts: 72
Joined: Sun Apr 07, 2013 6:08 pm

Raspberry and h264

Wed May 08, 2013 6:57 am

Hi. I have installed my own software that grabs video from a webcam and transmit it across the network with h264 compression.
The program works but the video is very slow, it's unusable (320x240).
Have you got some experiences on video grabbing and h264 compression with raspberry?
www. ???
www. ???
GMT+1
Skype: mrdebug

SirLagz
Posts: 1705
Joined: Mon Feb 20, 2012 8:53 am
Location: Perth, Australia
Contact: Website

Re: Raspberry and h264

Wed May 08, 2013 7:53 am

h264 compression is done in software by default.
If you want to use h264 hardware compressions, the software will need to be recompiled to take advantage of the GPU
My Blog - http://www.sirlagz.net
Visit my blog for Tips, Tricks, Guides and More !
WiFi Issues ? Have a look at this post ! http://www.raspberrypi.org/phpBB3/viewtopic.php?f=28&t=44044

ghans
Posts: 7882
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: Raspberry and h264

Wed May 08, 2013 10:31 am

You can use either OpenMAX (open standard) or Broadcom
mmal (easier , but custom) APIs .

Here an OpenMAX example :

https://github.com/raspberrypi/userland ... llo_encode

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

dom
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 5537
Joined: Wed Aug 17, 2011 7:41 pm
Location: Cambridge

Re: Raspberry and h264

Wed May 08, 2013 11:32 am

The soon-to-be released camera board may be the best solution:
http://www.raspberrypi.org/archives/2629

Return to “General programming discussion”