Go to advanced search

by Tw1stid
Sat Feb 28, 2015 3:40 pm
Forum: Camera board
Topic: RPi Cam Web Interface
Replies: 5264
Views: 1635776

Re: RPi Cam Web Interface

Thanks for the great script! I've been configuring motion but it doesn't seem like changing the pre_capture value has any effect? I'm recording at 2FPS, and I set pre_capture to 10 in motion.conf. I assumed I'd get 5 seconds of video before motion was detected? The more I thought about it, it did cr...
by Tw1stid
Thu May 16, 2013 1:06 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Looks helpful, thanks. Got hold of the CSI camera yesterday so am going to take a look at porting the code to use that at some point in the future.
by Tw1stid
Tue May 14, 2013 6:45 am
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Unfortunately I haven't seen that behaviour before. You are right about finding documentation, it's not easy :( . Have you seen this documentation?: http://www.khronos.org/files/openmax_il_spec_1_0.pdf I'll have a look at the code again tonight and see if I can spot anything. It would also be worth...
by Tw1stid
Mon May 13, 2013 6:52 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Hi, Those select timeouts stopped when I did rpi-update. :D It's been running successfully now for a while, recording 1 hour videos at 960x544, 5FPS. Then pops them in an mkv container and copies them to my NAS. Runs for a few days at a time before crashing, just added loads of printfs to try to wo...
by Tw1stid
Sun May 12, 2013 5:50 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Hi, Those select timeouts stopped when I did rpi-update. :D It's been running successfully now for a while, recording 1 hour videos at 960x544, 5FPS. Then pops them in an mkv container and copies them to my NAS. Runs for a few days at a time before crashing, just added loads of printfs to try to wo...
by Tw1stid
Sun May 12, 2013 9:56 am
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Hi, Those select timeouts stopped when I did rpi-update. :D It's been running successfully now for a while, recording 1 hour videos at 960x544, 5FPS. Then pops them in an mkv container and copies them to my NAS. Runs for a few days at a time before crashing, just added loads of printfs to try to wor...
by Tw1stid
Mon Apr 29, 2013 6:42 am
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Sounds promising! I'll see how the webcam goes. It's currently sat recording 960x544 video at 5 FPS and seems to be working great. Low light performance isn't so good though and the image isn't very focused. I put that down to it being a webcam which is designed to focus on faces up-close and in a w...
by Tw1stid
Sat Apr 27, 2013 6:29 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Sounds perfect for what I need, will investigate, thanks!

Also noticed that setting the fps on the camera now works properly after rpi-update :D
by Tw1stid
Sat Apr 27, 2013 4:08 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

That's it! I'd never run rpi-update before....and now its recording at 25fps 640x480 :). Thanks for the suggestion, feel a bit stupid for not doing it earlier...can't believe its given me around 10x increase in USB speed from the webcam. Now I'm going to try some other resolutions, then investigate ...
by Tw1stid
Sat Apr 27, 2013 2:37 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Sounds good. Would the CSI camera be capable of 640x480 (preferably higher) at 5fps, recorded on the Pi? I am almost certainly being limited by either the USB bandwidth or the webcam at the moment. I've done some more testing and the benchmark figures I am getting per frame grab is around 300ms at 6...
by Tw1stid
Sat Apr 27, 2013 1:01 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Yep, I get select errors even with the code matching the webcam framerate. Thanks for the tip on gstreamer, I'll take a look at that. So I guess I'll have to settle for super-fast videos played back at a slower rate, not too much of an issue. I might look into wrapping it in some container so I can ...
by Tw1stid
Sat Apr 27, 2013 10:19 am
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Its probably also worth mentioning that when I set the webcam to 5 fps using v4l2-ctl --set-parm 5 then I just get select timeout errors
by Tw1stid
Sat Apr 27, 2013 10:07 am
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Thanks, but I'd already spotted that and changed it :(. It seems to have no effect on the output, omxplayer still shows the fps as 25. Have you had any success exporting video at 5 fps?

Cheers
by Tw1stid
Sat Apr 27, 2013 8:34 am
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Thanks for clearing that up jamesh. So, back to fbutlers' sample code :) The webcam is a Logitech C270, connected via USB hub although I did try connecting directly which made no difference Output from v4l2-ctl --all is at the bottom of this post Overclocked to 900MHz Class 10 SD Card I have been lo...
by Tw1stid
Fri Apr 26, 2013 10:59 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

It might be worth looking at the camera demo applications in github/userland - they encode direct from the camera, but you could supply the buffers yourself rather than connecting the camera. Uses the mmal api which is like an easier to use OpenMAX. I tried this out but unfortunately it won't even ...
by Tw1stid
Fri Apr 26, 2013 10:23 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Yeah, I forgot to say that the capture was done at 25 FPS so it is really pushing things with the Pi's USB :-). I expect that at lower resolutions and frame rates the corruption would be considerably less, if not non-existent. Good luck with the code over the weekend. Thanks for the code. I've had ...
by Tw1stid
Fri Apr 26, 2013 2:22 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

Thanks jamesh, I'll take a look at mmal
by Tw1stid
Fri Apr 26, 2013 12:31 pm
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Re: Hardware H.264 Encode of Webcam

That looks really helpful, thanks! I'll be spending some time with this this weekend and hopefully I can get something working. This is to be used for some sort of basic security recording so I'm fine with dropping the framerate dramatically (in all honesty, I don't really need anything above 5fps) ...
by Tw1stid
Fri Apr 26, 2013 7:59 am
Forum: Graphics, sound and multimedia
Topic: Hardware H.264 Encode of Webcam
Replies: 54
Views: 35237

Hardware H.264 Encode of Webcam

Hi, Been spending the last few weeks looking at recording video from a USB webcam. I've had some success using OpenCV and ffmpeg but I'm finding I'm getting poor FPS and resolution. I'd like to encode my webcam stream (from /dev/video0, the webcam outputs in either YUYV or MJPEG) in hardware to H.26...
by Tw1stid
Sat Apr 13, 2013 2:45 pm
Forum: Graphics, sound and multimedia
Topic: Is this webcam setup even possible?
Replies: 0
Views: 572

Is this webcam setup even possible?

Hi, I am considering buying a Rapsberry Pi but I'm not sure it's going to be capabable of doing what I want it to. Basically, I'd like it to use it as a security cam recorder. I would have a usb webcam attached to it. I would record (and convert in real time) the video and store on the SD card. I'd ...

Go to advanced search