Go to advanced search

by kulve
Tue Oct 16, 2012 6:39 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

2) HD H264 to lower bitrate SD H264 I was about to say that changing the resolution could be a heavy process but it seems that Broadcom actually provides some support for it in a form of OMX.broadcom.resize component. With today's 512MB announcement, I'm wondering if this will help enable simultane...
by kulve
Mon Oct 15, 2012 9:20 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

but now i have to convert it to YUV and put it in x264enc, right? I'm new to gstreamer, so i still have to understand witch is the right pipeline, if you can help me i'll be glad to run some test What's you goal? If you want to get the video to the screen on the same device, you don't encode it in ...
by kulve
Sat Oct 13, 2012 2:33 pm
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

With my better USB camera, I get the raw YUV frames out from the camera. But only with 160x120 resolution. Any higher resolution and the frames are just lost somewhere before the user-space. And of course the YUV formats the camera supports are such that the encoder doesn't support them. Any way, no...
by kulve
Wed Oct 10, 2012 10:40 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

actually i'm concerning more on bitrate than quality or fps. btw 15/20kB/s in h264 are about 800*600@25fps To my understanding bitrate is independent of other attributes. E.g. Full HD @ 24 FPS videos in youtube look bad compared to Full HD @ 24 FPS on blu-ray because the latter has bitrate several ...
by kulve
Wed Oct 10, 2012 8:54 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

using a cam with inside h264 encoder is a no-go, because they don't compress aggressively and still output at 500kB/s (720p) or 800kB/s (1024p), too much for internet streaming where normally we (italy) have about 50kB/s of upload. I think the video encoder allows you to set bitrate. But of course ...
by kulve
Tue Oct 09, 2012 5:37 pm
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

We managed to get the gst-omx initially working enough to stream h264 RTP over UDP from RPi to a PC using " videotestsrc ". Now I started to experiment with USB camera but I can't get any data out of it. And google revealed this: http://lists.infradead.org/pipermail/linux-rpi-kernel/2012-September/0...
by kulve
Mon Oct 08, 2012 3:01 pm
Forum: Advanced users
Topic: Updated GPU firmware
Replies: 308
Views: 219606

Re: Updated GPU firmware

II modify the hello_encode example to encode a 1080p video, and found it took roughly 44 seconds. I figured perhaps the pattern calculation chewed up quite a number of cycles, so I replaced generate_test_card() with a simple memset() of a incrementing value. The result still took roughly 20 seconds...
by kulve
Sun Oct 07, 2012 3:04 pm
Forum: Advanced users
Topic: Updated GPU firmware
Replies: 308
Views: 219606

Re: Updated GPU firmware

"cat /proc/kmsg" blocks and prints only messages from that point on, so keep it in a separate window. You can also run "dmesg" to see past kernel messages if the system is not frozen.
by kulve
Sun Oct 07, 2012 3:03 pm
Forum: Advanced users
Topic: Updated GPU firmware
Replies: 308
Views: 219606

Re: Updated GPU firmware

I haven't tried this on earlier kernels but at least the latest one is able to download at full 11MB/s speed. With scp it drops to ~3.7MB/s and with "scp -c blowfish" it's about 4.4MB/s. Both to memory instead of SD card, so it's completely CPU bound. I tried those only once, so nothing too accurate...
by kulve
Sun Oct 07, 2012 1:58 pm
Forum: Advanced users
Topic: Updated GPU firmware
Replies: 308
Views: 219606

Re: Updated GPU firmware

In general you may be able to get some kernel backtraces by logging in over ssh and then:

Code: Select all

cat /proc/kmsg
The kernel may lock up or freeze faster than it can write the backtrace over the network but at least it could provide an easier way for pasting those kernel dumps to this forum.
by kulve
Sat Oct 06, 2012 3:45 pm
Forum: Advanced users
Topic: Updated GPU firmware
Replies: 308
Views: 219606

Re: Updated GPU firmware

dom wrote: If you want a changelist then:
https://github.com/raspberrypi/firmware/commits/master
I also realized that I can enable watch in github to get email notifications from changes and I hope that resolves my notification need.
by kulve
Sat Oct 06, 2012 2:21 pm
Forum: Advanced users
Topic: Updated GPU firmware
Replies: 308
Views: 219606

Re: Updated GPU firmware

I wonder if that would be good enough reason to start using twitter :)
by kulve
Sat Oct 06, 2012 2:05 pm
Forum: Advanced users
Topic: Updated GPU firmware
Replies: 308
Views: 219606

Re: Updated GPU firmware

Could there be an official sticky thread in the announcements forum that somebody would use to post about new firmwares/releases? Posts could have only a few words and a pointer to the actual thread about the new release. The sticky thread would be locked so that there wouldn't be anything else but ...
by kulve
Fri Oct 05, 2012 5:07 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

dom wrote:I believe YUV widths need padding to 32 and heights to 16.
Yes, at least that's what the too simplistic documentation is saying.

Of course, adding padding is slow and it would be better to get right sized YUV frames in the first place.
by kulve
Thu Oct 04, 2012 5:45 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

When I try to use OMX_COLOR_FormatYUV422PackedPlanar for eColorFormat Unfortunately I can't help with the stuck but the docs say: eColorFormat must be OMX_COLOR_FormatYUV420PackedPlanar, OMX_COLOR_FormatYUV420PackedSemiPlanar, OMX_COLOR_Format16bitRGB565, OMX_COLOR_Format24bitBGR888, or OMX_COLOR_F...
by kulve
Wed Oct 03, 2012 4:43 pm
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

kulve, now i'll start to study your code and find out out to encode directly to /dev/video0 , but i'm really noob on kernel and arm side, so any help is appreciated You mean encode from /dev/video0? I'm just guessing here but you probably need to use V4L2 API and read YUV frames from /dev/video0 (i...
by kulve
Wed Oct 03, 2012 5:50 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

hi, i'm using this line for gcc because of dependency: gcc -I/opt/vc/include/ -I/opt/vc/include/interface/vcos/pthreads test.c You need to get the hello_pi directory from the firmware (https://github.com/raspberrypi/firmware/tree/master/opt/vc/src/hello_pi) and copy rpi-encode in there as a subdire...
by kulve
Mon Oct 01, 2012 9:53 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

Does the GPU contain colorspace conversion capabilities? In general you can do color space conversion in OpenGL ES with shaders. I don't know about RPi but often a display controller can show multiple formats, like RGB8888, RGB565 and some YUV formats. So the video decoder gives out YUV (rarely RGB...
by kulve
Sun Sep 30, 2012 10:42 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

First a warning : everything in the code is hard coded, so don't try to use it for anything generic, it simply won't work. The encoding works only with the following steps as the resolution and filenames are hardcoded. # Get The Hobbit in 640 x 272 H264 youtube-dl -f 18 "http://www.youtube.com/watch...
by kulve
Sun Sep 30, 2012 9:14 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

We got a very hard coded proof of concept type encoding working with OMX using the ilclient in hello_pi examples. So at least now it's confirmed that the encoding works with external buffers and should work with e.g.USB cameras :)

Now we just need to figure out what gst-omx is doing differently.
by kulve
Sat Sep 29, 2012 12:51 pm
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

I think most of those devices must encode on the fly internally before stuffing the data down the USB - the USB bandwidth is probably too low to do otherwise. What they encode to is up to them. MJPEG is popular on webcams because its cheap and easy. Usually USB cameras output some sort of YUV inste...
by kulve
Wed Sep 26, 2012 9:41 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

How's the performance ? Decoding performance is good, but video rendering speed is awful as there's no accelerated video sink. Can a noob like me reproduce your success ? Probably not as we are using a bit different "distro": https://build.pub.meego.com/project/show?project=CE%3AAdaptation%3ARaspbe...
by kulve
Wed Sep 26, 2012 9:25 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

jamesh wrote:If you code up some to get the frame from wherever.
We are testing with gst-omx (we have decoding working currently) and are thinking of writing some omx-test code. Any help is appreciated :)
by kulve
Wed Sep 26, 2012 9:22 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

Ghans, do you have any pointers for this? The blog post[1] says that the h264 encoding has already been released (but I couldn't find any git commit matching that info). It even says that is should be possible to feed data to it from CPU side, so using USB cameras should actually be implicitly suppo...
by kulve
Wed Sep 26, 2012 9:02 am
Forum: General discussion
Topic: confused about H264 encoding
Replies: 60
Views: 28593

Re: confused about H264 encoding

lesto wrote:Hi,
does it support USB camera, or CSI, or what?
That's actually a good question because it's implementation specific.

How to check that?

Go to advanced search