# Video plugin and camera settings

**URL:** <https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230>\
**Category:** General\
**Created:** [12 October 2020 12:03 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230 "2020-10-12T12:03:03Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://openflexure.discourse.group/u/Bogdan)\
**Post date:** [12 October 2020 12:03 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/1 "2020-10-12T12:03:03Z")

</div>

Hi guys,

Is there any news related to implementing video recording?  
Also, how can camera colour settings like saturation be modified?

---

<div class="post-metadata">

**Author:** ![samuelmcdermott](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/samuelmcdermott/32/112_2.png) [@samuelmcdermott](https://openflexure.discourse.group/u/samuelmcdermott)\
**Post date:** [13 October 2020 12:09 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/2 "2020-10-13T12:09:38Z")

</div>

Hello,

Video recording is currently done through an extension. You can download it [here](https://gitlab.com/openflexure/microscope-extensions/openflexure-videoplugin) and save into `/var/openflexure/extensions/microscope_extensions` on your microscope. It hasn’t been used extensively, so let me know if there are any problems through an issue on the repository or in the forum!

---

<div class="post-metadata">

**Author:** ![Bogdan](https://avatars.discourse-cdn.com/v4/letter/b/ce7236/32.png) [@Bogdan](https://openflexure.discourse.group/u/Bogdan)\
**Post date:** [13 October 2020 13:08 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/3 "2020-10-13T13:08:49Z")

</div>

Thanks a lot, will give it a try as soon as I have some time.  
Do Inhave to do anything else or it appeeas in the app by itself as a tab?

---

<div class="post-metadata">

**Author:** ![samuelmcdermott](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/samuelmcdermott/32/112_2.png) [@samuelmcdermott](https://openflexure.discourse.group/u/samuelmcdermott)\
**Post date:** [14 October 2020 11:16 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/4 "2020-10-14T11:16:46Z")

</div>

No, you should be able to put it in the folder and it will appear as a tab automatically. You may need to restart your microscope for it to load in.

---

<div class="post-metadata">

**Author:** ![vthyng](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/vthyng/32/160_2.png) [@vthyng](https://openflexure.discourse.group/u/vthyng)\
**Post date:** [24 January 2021 01:07 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/5 "2021-01-24T01:07:38Z")

</div>

Hi, I gave the video recording plugin a try and it works for me! I don’t see the video show up in gallery, so I used filezilla to transfer it. It would be helpful to find a way to add it in to the regular gallery for easy download… Although I was thinking it would be helpful to have it move around to collect a larger area, I would image this would not be very helpful from the vibration and lack of focus. Thank you for this plugin!

Vince

---

<div class="post-metadata">

**Author:** ![samuelmcdermott](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/samuelmcdermott/32/112_2.png) [@samuelmcdermott](https://openflexure.discourse.group/u/samuelmcdermott)\
**Post date:** [24 January 2021 17:14 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/6 "2021-01-24T17:14:26Z")

</div>

Hello!

Great, glad you find it’s working well. Yes at the moment the gallery only shows images, but thanks for the recommendation, I’ll add it to the to-do list!

The videos are stored in a seperate folder in the micrographs folder. I normally find [winSCP](https://winscp.net/eng/index.php) is a useful tool for transfering them back to a Windows PC.

You are able to move the stage around manually whilst recording, but at the moment it’s not possible to do an automated scan whilst video recording.

---

<div class="post-metadata">

**Author:** ![bseven](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bseven](https://openflexure.discourse.group/u/bseven)\
**Post date:** [16 April 2022 18:20 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/7 "2022-04-16T18:20:21Z")

</div>

Hello I installed the extension as explained on [gitlab](https://gitlab.com/openflexure/microscope-extensions/openflexure-videoplugin) but I can’t see the plugin access in the left menu.  
Have you a hint about this ?

---

<div class="post-metadata">

**Author:** ![r.w.bowman](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/r.w.bowman/32/15_2.png) [@r.w.bowman](https://openflexure.discourse.group/u/r.w.bowman)\
**Post date:** [20 April 2022 08:56 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/8 "2022-04-20T08:56:55Z")

</div>

Hi @bseven, I believe it ought still to work - just to check, if you log in with SSH or a terminal and type:

```auto
ls /var/openflexure/extensions/microscope_extensions

```

do you see `video_extension.py` in that list? If you downloaded a zip file or cloned the repository, you’ll need to move just that Python file into the folder, otherwise it won’t be found.

Also, it is worth looking in your logs to see if the extension installed properly; if it’s found, but can’t load (e.g. due to a missing dependency) this should show up in your logs, which you can view with `ofm log`. It’s easiest to run this after restarting, so that anything relating to the start-up process is near the end of the log.

---

<div class="post-metadata">

**Author:** ![bseven](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bseven](https://openflexure.discourse.group/u/bseven)\
**Post date:** [20 April 2022 09:08 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/9 "2022-04-20T09:08:18Z")

</div>

Hi,  
Yes the python file is properly copied in the microscope\_extensions folder.  
I tried to search a solution in looking into the ofm log and it appears that ffmpeg-python library isn’t loaded because the log throw a ModuleNotFound Error.  
I am thinking this appears because of the virtual environment with python version differs from other versions installed on the pi.  
I tried to pip3 install ffmpeg-python outside the virtual environment with ofm desactivate but it didn’t solve my problem.

---

<div class="post-metadata">

**Author:** ![samuelmcdermott](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/samuelmcdermott/32/112_2.png) [@samuelmcdermott](https://openflexure.discourse.group/u/samuelmcdermott)\
**Post date:** [20 April 2022 17:50 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/10 "2022-04-20T17:50:28Z")

</div>

Hello,

Did you run:

`ofm activate`  
`pip install ffmpeg-python`

This will install the required package within the server’s virtual environment.

---

<div class="post-metadata">

**Author:** ![bseven](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bseven](https://openflexure.discourse.group/u/bseven)\
**Post date:** [20 April 2022 18:41 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/11 "2022-04-20T18:41:20Z")

</div>

yes I tried this method first as explained [here](https://gitlab.com/openflexure/microscope-extensions/openflexure-videoplugin) but unfortunately I had the ModuleNotFound Error so I tried the other method I wrote earlier but I’m still stuck with the same error…  
I am wondering why python didn’t found the library.

---

<div class="post-metadata">

**Author:** ![bseven](https://avatars.discourse-cdn.com/v4/letter/b/41988e/32.png) [@bseven](https://openflexure.discourse.group/u/bseven)\
**Post date:** [21 April 2022 09:34 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/12 "2022-04-21T09:34:46Z")

</div>

Hi  
I solved my problem, it was my fault… I was mistaken when I firstly tried to install ffmpeg-python library. Instead of pip install ffmpeg-python I typed sudo pip install ffmpeg-python.  
Installing without privileges elevation make it work, the extension appears in the left menu.  
Sorry for the inconvenience!!!

---

<div class="post-metadata">

**Author:** ![r.w.bowman](https://yyz2.discourse-cdn.com/free1/user_avatar/openflexure.discourse.group/r.w.bowman/32/15_2.png) [@r.w.bowman](https://openflexure.discourse.group/u/r.w.bowman)\
**Post date:** [25 April 2022 15:52 UTC](https://openflexure.discourse.group/t/video-plugin-and-camera-settings/230/13 "2022-04-25T15:52:21Z")

</div>

well done! typing `sudo` will cancel out `ofm activate` and so you’re installing the library into the wrong environment - as you say, installing it without `sudo` (and after `ofm activate`) should fix it.

The currently-in-development new extension mechanism should fix a lot of these problems, and give clearer errors about them as well… This is planned for v3, i.e. the next major release of the software, which I hope will be in a prerelease “before too long”.
