Author Topic: Capturing Video from Flir E4 to portable device  (Read 33489 times)

0 Members and 1 Guest are viewing this topic.

Offline Captain Morgan

  • Contributor
  • Posts: 28
Capturing Video from Flir E4 to portable device
« on: December 26, 2013, 04:53:00 pm »
Hello,

I love my new upgraded E4 and would want to capture video to a portable recording device via the usb cable. I can stream this to the PC and view via the Flir Tools, but obviously I can't lug a PC around in the field. The best I could hope for would be a smallish netbook.

Does anyone know a way to capture this usb video stream to an Android device such as a 10" ASUS tablet?

Are there any suggestions for portable DVRs that will accept a USB input?

Thank for your suggestions!
 

Offline bronson

  • Regular Contributor
  • *
  • Posts: 172
  • Country: us
Re: Capturing Video from Flir E4 to portable device
« Reply #1 on: December 27, 2013, 04:16:41 am »
A Raspberry Pi or any of its friends can do UVC streaming quite well if you don't need battery power.

Otherwise a netbook or tablet/laptop hybrid might be your best bet.  Unsurprisingly, there don't seem to be many promising Android results.  Here's a summary but it's a year out of date: http://stackoverflow.com/questions/8963897/use-usb-camera-on-android-application
 

Offline Captain Morgan

  • Contributor
  • Posts: 28
Re: Capturing Video from Flir E4 to portable device
« Reply #2 on: December 27, 2013, 06:31:33 am »
Thanks bronson. I had not consider a Raspberry Pi type device and not that familair with them. I can supply pwr via packpack etc.

If I could find something that writes to USB or flash and has low current draw then even better.

Something like this then? - http://www.raspberrypi.org/phpBB3/viewtopic.php?f=63&t=49530
« Last Edit: December 27, 2013, 06:34:57 am by Captain Morgan »
 

Offline bronson

  • Regular Contributor
  • *
  • Posts: 172
  • Country: us
Re: Capturing Video from Flir E4 to portable device
« Reply #3 on: December 27, 2013, 07:04:55 am »
Yea, I haven't done UVC on the Pi myself but that sounds right.

There's also this: http://www.raspberrypi.org/phpBB3/viewtopic.php?f=43&t=53530
 

Offline Captain Morgan

  • Contributor
  • Posts: 28
Re: Capturing Video from Flir E4 to portable device
« Reply #4 on: December 27, 2013, 07:37:42 am »
Thanks again, I was just reading the note about "Model B Hardware Revision 2.0 and Revision 1.0 with ECN0001 change" in the RPi VerifiedPeripherals wiki.

If I'm just using the full USB end of the USB-micro cable, and plugging in to one of USB female ports on the PI, then I don't think there should be any issues since this would be high impedence and no draw. Any 5v on the PI end wouldn't hurt the Flir either?

With the correct drivers, I should be able to grab the twain or stream from the Flir and capture at some size and framerate according the script I use.

*i think*

Thanks again for youe time and efforts!

Cheers
 

Offline Captain Morgan

  • Contributor
  • Posts: 28
Re: Capturing Video from Flir E4 to portable device
« Reply #5 on: December 30, 2013, 07:47:00 am »
Does anyone know what the signal is coming from the E4?

Is it a purely digital stream?

Does anyone know if this could be captured by a device using an adapter cable of some type?

THX
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 11871
  • Country: gb
    • Mike's Electric Stuff
Re: Capturing Video from Flir E4 to portable device
« Reply #6 on: December 30, 2013, 08:12:36 am »
Does anyone know what the signal is coming from the E4?

Is it a purely digital stream?

Does anyone know if this could be captured by a device using an adapter cable of some type?

THX
There is a raw 60fps digital stream inside (see teardown vid), but you'd need to do quite a lot of processing (NUC, noise reduction, scaling, calibration) to get something useable. For something visual as opposed to accurate for measurement, a lot of these steps could be very simple.
 
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Captain Morgan

  • Contributor
  • Posts: 28
Re: Capturing Video from Flir E4 to portable device
« Reply #7 on: December 30, 2013, 10:23:22 am »
Thanks Mike! Appreciate your feedback.

I guess the Flir Tools software handles the E4's raw 60fps output in Windows.

I do need to record something visual, an .avi or mpeg etc, but not seeing anything off the shelf for this.

Looks like learning Linux and going the PI route may be my only option.

Cheers
 

Online Fraser

  • Super Contributor
  • ***
  • Posts: 8163
  • Country: gb
Re: Capturing Video from Flir E4 to portable device
« Reply #8 on: January 02, 2014, 02:48:37 am »
The Ex series output 9fps, visual and digital, to avoid some ITAR restrictions. 60fps does not appear at the cameras USB port.
 

Offline Captain Morgan

  • Contributor
  • Posts: 28
Re: Capturing Video from Flir E4 to portable device
« Reply #9 on: January 10, 2014, 06:02:30 pm »
Thanks for the clarification. Even at 9fps, I want to snag that signal!

I don't currently have a scope, can anyone say which pin(s) on the USB end the video feed is on?

Maybe I can catch that and find something to consume the feed.

THX
 

Online Fraser

  • Super Contributor
  • ***
  • Posts: 8163
  • Country: gb
Re: Capturing Video from Flir E4 to portable device
« Reply #10 on: January 10, 2014, 09:00:46 pm »
The E4 has a standard USB port that uses D+ and D- for USB data communication. There are no other communications or video stream pins present. From what I understand,  the only way to extract video from the E4 via that port is by treating it as a USB webcam operating as a UVC device.
« Last Edit: January 10, 2014, 09:08:17 pm by Aurora »
 

Offline amyk

  • Super Contributor
  • ***
  • Posts: 6217
Re: Capturing Video from Flir E4 to portable device
« Reply #11 on: January 10, 2014, 10:02:17 pm »
If you connect the portable device to the E4 it will probably try to charge from it, unless its battery is full.
 

Offline Jolly

  • Contributor
  • Posts: 14
  • Country: de
Re: Capturing Video from Flir E4 to portable device
« Reply #12 on: January 12, 2014, 01:49:23 am »
Finally my E4 (E8) VCR is done. It is based on Raspberry PI with a patched Linux Kernel module. To get a video signal out, I lower the switch. To record, I raise the switch. If someone has an idea about how to use mplayer/mencoder to play and record at the same time, let me know.
Recording of E4 videos using a Raspberry PI: http://www.eversberg.eu/download/flir_vcr_v0.1.zip
 

Online Fraser

  • Super Contributor
  • ***
  • Posts: 8163
  • Country: gb
Re: Capturing Video from Flir E4 to portable device
« Reply #13 on: January 12, 2014, 03:02:19 am »
Nice implementation  :-+

I note you have some video glasses connected...... I have several sets of Olympus  FMD700 EyeTrek glasses awaiting use in my projects, so this would be a good one to start with.

Any chance you can shared the Rasberry-Pi code

 

Offline Captain Morgan

  • Contributor
  • Posts: 28
Re: Capturing Video from Flir E4 to portable device
« Reply #14 on: January 13, 2014, 11:04:14 am »
Jolly! You beat me to it!

My PI hasn't arrived yet, I already dl all the builds etc.

Would you mind working with me on various builds and peripherals etc?

I would like to know your implementation as well.

Please PM if you're interested and I'll shoot you an email address.

I would love to share and compare notes with you.

cheers
 

Offline pomonabill221

  • Frequent Contributor
  • **
  • Posts: 252
  • Country: us
Re: Capturing Video from Flir E4 to portable device
« Reply #15 on: January 14, 2014, 02:43:23 pm »
If you connect the portable device to the E4 it will probably try to charge from it, unless its battery is full.
I found the E4 runs from the connected device, through the usb connector, whether it is charged or not.
This means that your device's battery is powering the E4 which draws about 500-700 mA depending on whether it is calibrating (shutter operating) or not, but still draws the 500 mA.
The battery does NOT power the E4 when connected!  not so good for portable use!
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 11871
  • Country: gb
    • Mike's Electric Stuff
Re: Capturing Video from Flir E4 to portable device
« Reply #16 on: January 14, 2014, 08:26:18 pm »
If you connect the portable device to the E4 it will probably try to charge from it, unless its battery is full.
I found the E4 runs from the connected device, through the usb connector, whether it is charged or not.
This means that your device's battery is powering the E4 which draws about 500-700 mA depending on whether it is calibrating (shutter operating) or not, but still draws the 500 mA.
The battery does NOT power the E4 when connected!  not so good for portable use!
Remember to turn the backlight down - this makes a big difference to power draw. As the sensor is heated, you may find that current draw reduces once the sensor has stabilised.
 
May be worth looking at how the backlight is controlled in hardware - if it was in a power manager on I2C, you could shut it off with a console command over USB.

Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Online Fraser

  • Super Contributor
  • ***
  • Posts: 8163
  • Country: gb
Re: Capturing Video from Flir E4 to portable device
« Reply #17 on: January 14, 2014, 09:36:26 pm »
To solve this problem could you not modify a USB to Micro USB cable by disconnecting the +5V line. You would still have the 0v, D+ and D- for comms. I am not sure whether the +5v is used to trigger any 'external connectivity' mode in the E4 though.  The USB to Micro USB cables are very cheap to experiment with.
« Last Edit: January 15, 2014, 12:16:22 am by Aurora »
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 11871
  • Country: gb
    • Mike's Electric Stuff
Re: Capturing Video from Flir E4 to portable device
« Reply #18 on: January 14, 2014, 10:42:54 pm »
You can probably stop charging without affecting connectivity by reducing the voltage on the USB supply pin.
Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline Jolly

  • Contributor
  • Posts: 14
  • Country: de
Re: Capturing Video from Flir E4 to portable device
« Reply #19 on: January 15, 2014, 12:39:21 am »
Any chance you can shared the Rasberry-Pi code

Yes, I finally made an image of it. It is about 1 Gig. Once I have upload it, I will announce it here.
Recording of E4 videos using a Raspberry PI: http://www.eversberg.eu/download/flir_vcr_v0.1.zip
 

Online Fraser

  • Super Contributor
  • ***
  • Posts: 8163
  • Country: gb
Re: Capturing Video from Flir E4 to portable device
« Reply #20 on: January 15, 2014, 03:46:30 am »
Hi Jolly,

That would be great thanks you. I have not used the RPi before and this wil be a good excuse to buy one to experiment with  :)

Cheers

Aurora
 

Offline amigo

  • Regular Contributor
  • *
  • Posts: 108
  • Professional Wannabe
Re: Capturing Video from Flir E4 to portable device
« Reply #21 on: January 15, 2014, 05:08:11 am »
Finally my E4 (E8) VCR is done. It is based on Raspberry PI with a patched Linux Kernel module. To get a video signal out, I lower the switch. To record, I raise the switch. If someone has an idea about how to use mplayer/mencoder to play and record at the same time, let me know.

Have you tried using VLC, as it can capture various kinds of streams while playing back at the same time?
 

Offline Captain Morgan

  • Contributor
  • Posts: 28
Re: Capturing Video from Flir E4 to portable device
« Reply #22 on: January 15, 2014, 06:07:14 am »
I agree with snipping the +5v wire idea. This is an easy hack and can just recover with shrink tube.

@ Jolly, can you also share info about the switches you added, and the connections etc?

many thanks

.
 
 

Offline Jolly

  • Contributor
  • Posts: 14
  • Country: de
Re: Capturing Video from Flir E4 to portable device
« Reply #23 on: January 15, 2014, 08:18:23 am »
Here is the PI image (for video recording and output on the video out) and some quick README files: http://www.eversberg.eu/download/flir_vcr_v0.zip

It should explain everything that is required. If you have problems, let me know.

If someone can make it work to record and view at the same time without extra latency, he/she will receive a free E4 camera.  ;D (That was a joke!)
Recording of E4 videos using a Raspberry PI: http://www.eversberg.eu/download/flir_vcr_v0.1.zip
 

Offline Jolly

  • Contributor
  • Posts: 14
  • Country: de
Re: Capturing Video from Flir E4 to portable device
« Reply #24 on: January 15, 2014, 08:33:37 am »
Finally my E4 (E8) VCR is done. It is based on Raspberry PI with a patched Linux Kernel module. To get a video signal out, I lower the switch. To record, I raise the switch. If someone has an idea about how to use mplayer/mencoder to play and record at the same time, let me know.

Have you tried using VLC, as it can capture various kinds of streams while playing back at the same time?

It is worth trying. Just install the VLC on the PI image that I submitted in the post above. The device of a connected camera is /dev/video0. It supports full frame rate with my patched kernel module. Unpatched driver only allows to capture 3.75 frames/s. (The driver patch is very dirty, so connecting other cameras than Ex might/will crash the kernel.)
Recording of E4 videos using a Raspberry PI: http://www.eversberg.eu/download/flir_vcr_v0.1.zip
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf