# Octoprint + mjpg-streamer ffmpeg error

**URL:** <https://dietpi.com/forum/t/octoprint-mjpg-streamer-ffmpeg-error/17295>\
**Category:** Troubleshooting\
**Created:** [11 July 2023 21:46 UTC](https://dietpi.com/forum/t/octoprint-mjpg-streamer-ffmpeg-error/17295 "2023-07-11T21:46:46Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Miguelpt](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@Miguelpt](https://dietpi.com/forum/u/Miguelpt)\
**Post date:** [11 July 2023 21:46 UTC](https://dietpi.com/forum/t/octoprint-mjpg-streamer-ffmpeg-error/17295/1 "2023-07-11T21:46:46Z")

</div>

Good night,

I have an onl rasp pi2 and i decided to try octoprint, i made a fresh installation and everything seems to be working except the camera. I did a bit of reasearch and i found that for the camera to work i will also need to install mjpg-streamer, the problem is that with octoprint installed i have an error installing ffmpeg.

I leave the error i am getting in the extra details.

Thank you

### Creating a bug report/issue

#### Required Information

- DietPi version | `cat /boot/dietpi/.version`  
G\_DIETPI\_VERSION\_CORE=8  
G\_DIETPI\_VERSION\_SUB=19  
G\_DIETPI\_VERSION\_RC=1  
G\_GITBRANCH=‘master’  
G\_GITOWNER=‘MichaIng’  
G\_LIVE\_PATCH\_STATUS[0]=‘applied’  
G\_LIVE\_PATCH\_STATUS[1]=‘applied’
- Distro version | `echo $G_DISTRO_NAME $G_RASPBIAN`  
bookworm 0
- Kernel version | `uname -a`  
Linux DietPi 6.1.21-v7+ #1642 SMP Mon Apr 3 17:20:52 BST 2023 armv7l GNU/Linux
- Architecture | `dpkg --print-architecture`  
armhf
- SBC model | `echo $G_HW_MODEL_NAME` or (EG: RPi3)  
RPi 2 Model B (armv7l)
- Power supply used | (EG: 5V 1A RAVpower)  
5V - 2A
- SD card used | (EG: SanDisk ultra)  
Sandisk ultra

#### Additional Information (if applicable)

- Software title | Octoprint \ mjpg-streamer
- Fresh installation

#### Steps to reproduce

1. …
2. …

#### Expected behaviour

- …

#### Actual behaviour

- …

#### Extra details

```auto
APT install ffmpeg                                                                                 

 Command: apt-get -y --allow-change-held-packages install ffmpeg                                 
 
Exit code: 100                                                                                  
  DietPi version: v8.19.1 (MichaIng/master) | HW_MODEL: 2 | HW_ARCH: 2 | DISTRO: 7                
 - Error log:                                                                                      

Reading package lists...                                                                           

Building dependency tree...                                                                        
Reading state information...                                                                       
Some packages could not be installed. This may mean that you have                                  
requested an impossible situation or if you are using the unstable                                 
distribution that some required packages have not yet been created                                 
or been moved out of Incoming.                                                                     
The following information may help to resolve the situation:                                       
                                                                                                   
The following packages have unmet dependencies:                                                    
 ffmpeg : Depends: libavcodec58 (= 8:4.3.6-0+deb11u1+rpt2)                                         
          Depends: libavfilter7 (= 8:4.3.6-0+deb11u1+rpt2)                                         
 libavdevice58 : Depends: libavcodec58 (= 8:4.3.6-0+deb11u1+rpt2)                                  
                 Depends: libavfilter7 (= 8:4.3.6-0+deb11u1+rpt2)                                  
 libavformat58 : Depends: libavcodec58 (= 8:4.3.6-0+deb11u1+rpt2)                                  
                 Depends: libsrt1.4-gnutls (>= 1.4.2) but it is not installable

```

---

<div class="post-metadata">

**Author:** ![WarHawk](https://dietpi.com/forum/user_avatar/dietpi.com/warhawk/32/21_2.png) [@WarHawk](https://dietpi.com/forum/u/WarHawk)\
**Post date:** [12 July 2023 03:13 UTC](https://dietpi.com/forum/t/octoprint-mjpg-streamer-ffmpeg-error/17295/2 "2023-07-12T03:13:19Z")

</div>

Truthfully…the absolute best way to run octoprint is in a docker container…I have it running like a boss on my [AtomicPI](https://www.digital-loggers.com/api_faqs.html) running my Anet A8 3d printer (of which I need to print more)

This way it’s a self contained instance, and doesn’t rely upon the OS’s installed packages…if it can’t pull ffmpeg due some sort of dependency failure…the docker package will already have it installed

> **[GitHub - OctoPrint/octoprint-docker: The dockerized snappy web interface for...](https://github.com/OctoPrint/octoprint-docker)**
>
> The dockerized snappy web interface for your 3D printer! - GitHub - OctoPrint/octoprint-docker: The dockerized snappy web interface for your 3D printer!

Heck I even installed octoprint on an old cellphone I had, used the USB-OTG port to run it (it was on a easythreed X1) using [octo4a](https://github.com/feelfreelinux/octo4a)

---

<div class="post-metadata">

**Author:** ![Joulinar](https://dietpi.com/forum/user_avatar/dietpi.com/joulinar/32/57_2.png) [@Joulinar](https://dietpi.com/forum/u/Joulinar)\
**Post date:** [12 July 2023 07:05 UTC](https://dietpi.com/forum/t/octoprint-mjpg-streamer-ffmpeg-error/17295/3 "2023-07-12T07:05:55Z")

</div>

> [@Miguelpt](#):
>
> `ffmpeg`

Yes, there is a known challenge for `ffmpeg`. This might be a workaround for time being. [The following packages have been kept back: ffmpeg - #28 by Joulinar](https://dietpi.com/forum/t/the-following-packages-have-been-kept-back-ffmpeg/17234/28)

---

<div class="post-metadata">

**Author:** ![Miguelpt](https://dietpi.com/forum/letter_avatar_proxy/v4/letter/m/76d3ee/32.png) [@Miguelpt](https://dietpi.com/forum/u/Miguelpt)\
**Post date:** [12 July 2023 22:18 UTC](https://dietpi.com/forum/t/octoprint-mjpg-streamer-ffmpeg-error/17295/4 "2023-07-12T22:18:21Z")

</div>

Thank you for the feedback

My linux capabilities are still very low, i tried docker recently but i had a lot of problems running nextcloud when i tried to change the database location.

I will give it another try with octoprint.

Thanks again
