Go to advanced search

by cmisip
Sun Jul 02, 2017 9:33 pm
Forum: Camera board
Topic: H 264 Motion Detection - Compressed Domain
Replies: 60
Views: 30591

Re: H 264 Motion Detection - Compressed Domain

This yields something that I could reliably detect as motion. That is to say that when I am moving something in front of the camera, I could see the vectors value jump up and then when motion stops, they go back to mostly zero. struct motion_vector { char x_vector; char y_vector; unsigned short sad;...
by cmisip
Thu Jun 29, 2017 4:01 pm
Forum: Camera board
Topic: H 264 Motion Detection - Compressed Domain
Replies: 60
Views: 30591

Re: H 264 Motion Detection - Compressed Domain

I do need the images as motion events are recorded with a series of images that can be played back on the browser. If so then you should be able to shortcut the decode to only do the CABAC/CAVLC decode rather than the full decode. I'd hazard a guess that just using an ARM core that will be lighter w...
by cmisip
Thu Jun 29, 2017 10:54 am
Forum: Camera board
Topic: H 264 Motion Detection - Compressed Domain
Replies: 60
Views: 30591

Re: H 264 Motion Detection - Compressed Domain

Eureka! It now works. That was the only change necessary. The handoff from ffmpeg frame->buf to mmal buffer->data worked without issues. I wasn't aware that I needed to do that because I simply reworked the mmal decoding example ( only one I found ) into an encoding example. Can you suggest links th...
by cmisip
Thu Jun 29, 2017 3:47 am
Forum: Camera board
Topic: H 264 Motion Detection - Compressed Domain
Replies: 60
Views: 30591

Re: H 264 Motion Detection - Compressed Domain

I can't get it to work. I put together another test code where I am using libavcodec to decode the h264 stream and then I am hoping to pass along the AVFrame frame->buf data to the MMAL_BUFFER_HEADER_T buffer. Without the mmal stuff, the program runs fine and writes 100 frames of ppm. If I try to in...
by cmisip
Mon Jun 26, 2017 11:52 am
Forum: Camera board
Topic: H 264 Motion Detection - Compressed Domain
Replies: 60
Views: 30591

Re: H 264 Motion Detection - Compressed Domain

I changed the output encoding format of the encoder to MMAL_ENCODING_H264 and the ENOSPC erro went away. But I can't seem to be able to change output size. Can you check the updated code in the previous post? Here is the output DECODER OUTPUT FORMATvc.ril.video_decode:out:0 type: 3, fourcc: I420 bit...
by cmisip
Mon Jun 26, 2017 10:35 am
Forum: Camera board
Topic: H 264 Motion Detection - Compressed Domain
Replies: 60
Views: 30591

Re: H 264 Motion Detection - Compressed Domain

Can you help me figure this out? I am getting: DECODER OUTPUT FORMATvc.ril.video_decode:out:0 type: 3, fourcc: I420 bitrate: 0, framed: 0 extra data: 0, (nil) width: 704, height: 480, (0,0,704,480) ENCODER OUTPUT FORMATvc.ril.video_encode:out:0(MP4V) type: 3, fourcc: MP4V bitrate: 0, framed: 0 extra...
by cmisip
Mon Jun 26, 2017 12:34 am
Forum: Camera board
Topic: H 264 Motion Detection - Compressed Domain
Replies: 60
Views: 30591

Re: H 264 Motion Detection - Compressed Domain

Is it possible to use the mmal hardware decoder and encoder simultaneously or can only one component be activated at a time?

Thanks,
Chris
by cmisip
Sat May 20, 2017 1:35 pm
Forum: Camera board
Topic: H 264 Motion Detection - Compressed Domain
Replies: 60
Views: 30591

Re: H 264 Motion Detection - Compressed Domain

Has there been any developments here regarding H264 Motion detection. FFmpeg 3.x has exposed the motion vectors for the software decoder. Is there something equivalent on the RPI hardware decoder side or are the motion vectors in compressed domain still only available on the hardware encode side onl...
by cmisip
Tue Nov 15, 2016 11:53 am
Forum: Advanced users
Topic: RPI3 ubuntu 16.04 - kernel modules gone after reboot
Replies: 0
Views: 322

RPI3 ubuntu 16.04 - kernel modules gone after reboot

I installed ubuntu 16.04 on a raspberry pi 3. It works well until I reboot. I noticed that after a reboot, ufw is not working so I started ufw and it complained of missing iptables modules. And in fact they are missing. If I reinstall the latest kernel, the modules are back where they should be but ...
by cmisip
Fri Sep 30, 2016 10:50 am
Forum: Advanced users
Topic: Connecting an RPI to the Irobot create Cargo bay Connector 3
Replies: 9
Views: 1669

Re: Connecting an RPI to the Irobot create Cargo bay Connect

The setup is working fine after some tweaks ( I've done only limited testing) . I got occasional false positive with a LOW reading. The RPI thought that the create was ON and was not turning it on. The digital reading is consistently HIGH when the create is OFF. So I handled the case of LOW reading ...
by cmisip
Sun Sep 25, 2016 2:45 pm
Forum: Advanced users
Topic: Connecting an RPI to the Irobot create Cargo bay Connector 3
Replies: 9
Views: 1669

Re: Connecting an RPI to the Irobot create Cargo bay Connect

Thanks
I got it working but with one peculiarity. When the create is off, the RPI is reading High, and when the create is on, the RPI is reading low. I dont even have to try to control the digital output of the create. Is this typical when using a level shifter ?

Thanks
Chris
by cmisip
Sat Sep 24, 2016 5:23 pm
Forum: Advanced users
Topic: Connecting an RPI to the Irobot create Cargo bay Connector 3
Replies: 9
Views: 1669

Re: Connecting an RPI to the Irobot create Cargo bay Connect

The setup works but now I need to have a way of verifying the on/off status of the irobot create. I cannot rely on the read line of the serial stream so I am thinking of interfacing another raspberry pi pin but this time connect it to the create's pin 19 which is a digital output pin with 0-5v outpu...
by cmisip
Tue Sep 20, 2016 12:27 pm
Forum: Advanced users
Topic: Connecting an RPI to the Irobot create Cargo bay Connector 3
Replies: 9
Views: 1669

Re: Connecting an RPI to the Irobot create Cargo bay Connect

I completed the setup this morning and verified that it does work. Now I can turn on and off the irobot create from within my program. I decided on using wiring pi pin 27 though as that pin doesn't seem to have special functions that I might need for other things later.

Thank You Very Much
Chris
by cmisip
Mon Sep 19, 2016 6:42 pm
Forum: Advanced users
Topic: Connecting an RPI to the Irobot create Cargo bay Connector 3
Replies: 9
Views: 1669

Re: Connecting an RPI to the Irobot create Cargo bay Connect

Thanks for your reply. I am using this level shifter: http://www.ebay.com/itm/141980062455 The level shifter has two ground pins and I have one on the LV side attached to the RPI ground. I think ground on the LV side is shorted with ground on the HV side . So I can just connect the HV side GND pin t...
by cmisip
Sun Sep 18, 2016 5:57 pm
Forum: Advanced users
Topic: Connecting an RPI to the Irobot create Cargo bay Connector 3
Replies: 9
Views: 1669

Connecting an RPI to the Irobot create Cargo bay Connector 3

I need to interface an RPI with an irobot create via GPIO pin in order to turn on and off the irobot create via the power control toggle. The power control toggle on the create is pin 3 of the DB25 cargo bay connector. The irobot OI states : Pin 3 : Turns Create on or off on a low-to-high transition...
by cmisip
Sun Jul 17, 2016 4:37 pm
Forum: Advanced users
Topic: How to wire cmps03 to RPI 2 board
Replies: 9
Views: 1669

Re: How to wire cmps03 to RPI 2 board

I tried the voltmeter readings as I described ang got voltages pretty close to 3 volts on each of the channels. So my assumption must be correct and I am going forward with my project. Just answering the question for any future forum reader in the same situation. Finally got my HMC5883L and it is wo...
by cmisip
Fri Jul 08, 2016 7:21 pm
Forum: Advanced users
Topic: How to wire cmps03 to RPI 2 board
Replies: 9
Views: 1669

Re: How to wire cmps03 to RPI 2 board

Well sadly, my CMPS03 appears to be dead. I was having erratic readings / no readings when I was using it on usb i2c. I figured the usb i2c was the problem so interfacing directly with the Pi was hopefully going to solve the problem. i2cdetect would not see it at all. I verified that i2c was working...
by cmisip
Sun Jun 26, 2016 10:47 pm
Forum: Advanced users
Topic: How to wire cmps03 to RPI 2 board
Replies: 9
Views: 1669

Re: How to wire cmps03 to RPI 2 board

cmisip wrote: I assume the bidirectional channels are independent. That I can connect one i2c device that used HV1 and LV1 for SDA and HV2 and LV2 for SDL ; then I can connect another i2c device on HV3 and LV3 for SDA and HV4 and LV4 for SDL. What I meant was RPI <--> Shifter <--> CMPS03 SDA (pin 3 ...
by cmisip
Sun Jun 26, 2016 12:36 pm
Forum: Advanced users
Topic: How to wire cmps03 to RPI 2 board
Replies: 9
Views: 1669

Re: How to wire cmps03 to RPI 2 board

This is what I ordered: http://www.ebay.com/itm/141980062455 I am using a RPI 2. So I connect the Vcc 5V (Pi pin 2) to HV and 3.3 V (Pi pin 1) to LV. and GND ( Pi pin 6) to GND on the level shifter. GND to GND in the shifter should be connected already between the LV and HV side. The CMPS03 Vcc will...
by cmisip
Sun Jun 26, 2016 12:34 am
Forum: Advanced users
Topic: How to wire cmps03 to RPI 2 board
Replies: 9
Views: 1669

Re: How to wire cmps03 to RPI 2 board

I read a little bit about level shifters and ordered a couple. It seems I could use this for my HC-sr04 ultrasonic range finder as well. Currently using a voltage divider on the ECHO pin to reduce its voltage from 5 to 3.3v. Would it be equivalent to just using one of the bidirectional channels on t...
by cmisip
Thu Jun 23, 2016 8:23 pm
Forum: Advanced users
Topic: How to wire cmps03 to RPI 2 board
Replies: 9
Views: 1669

How to wire cmps03 to RPI 2 board

Can anybody tell me how to wire the cmps03 magnetic compass to the RPI 2 board. I am really very new to this. From what I gather, it is simply connecting : RPI CMPSO3 5v (pin 2) 5v pin 1 SCL (pin 5) SCL pin 2 SDA (pin 3) SDA pin 3 GND (pin 6) GND pin 9 However, the pi is 3.3 volts and I assume the C...
by cmisip
Fri Dec 25, 2015 11:38 am
Forum: Advanced users
Topic: Pi in DVR
Replies: 12
Views: 2636

Re: Pi in DVR

I use 2 hdhomeruns with a RPI2 running mythtv. Its connected to a 3TB USB HD. A separate RPI2 running Kodi serves as a frontend. It works well except for occasional video glitches which I attribute to possible IO concurrency and CPU load with 4 or more simultaneous recordings. Plus there is a bug in...
by cmisip
Fri Nov 13, 2015 11:11 pm
Forum: Advanced users
Topic: MythTV on RPI2 with Ubuntu 14.04 LTS Howto
Replies: 4
Views: 3251

Re: MythTV on RPI2 with Ubuntu 14.04 LTS Howto

Just some updates. Here is a replacement script for mythpreviewgen as it is having trouble with generating thumbnails for h264. You have to move mythpreviewgen to mythpreviewgen.real ################################################################################################## #!/bin/bash DIRNAM...
by cmisip
Sat Sep 19, 2015 1:03 pm
Forum: Advanced users
Topic: MythTV on RPI2 with Ubuntu 14.04 LTS Howto
Replies: 4
Views: 3251

MythTV on RPI2 with Ubuntu 14.04 LTS Howto

I started this in the mythtv forums and crossposted here. This is an updated howto so earlier steps will be in that post. My MythTV-backend on the RPI2 with Ubuntu 14.04 LTS seems to be running real well with no issues. The filesystem is mounted read only with overlayfs mounts for certain programs. ...
by cmisip
Tue Aug 25, 2015 1:01 am
Forum: Advanced users
Topic: Transcoding MOV files with a rpi2
Replies: 1
Views: 864

Re: Transcoding MOV files with a rpi2

Here is a snipet of my transcoding script for mythtv running on an rpi 2. I'm still doing some tests. Hopefully it will give you a starting point. I was able to successfully play remotely with iphone vlc and openvpn with a video bitrate of 1.2 Mbit over LTE. I have tried various pipelines and this s...

Go to advanced search