Run command motioneye-audio.sh inside docker container

35 views
Skip to first unread message

Piotr Zając

unread,
Mar 12, 2024, 10:49:07 AMMar 12
to motioneye
I have motioneye in docker container and works well mEye 0.43 motion 4.6.0.
Extra Options on_movie_start /etc/motioneye/motioneye-audio.sh start %t %f '%$' does not work. I set chmod 777 for file, all paths correct. I did not find enything in log file exept this: env: can't execute 'bash' : No such file or directory 


StarbaseSSD

unread,
Mar 12, 2024, 11:48:26 AMMar 12
to motioneye
where did you get the motioneye-audio.sh file, may I ask?
 and which docker container are you using?

Piotr Zając

unread,
Mar 12, 2024, 5:35:32 PMMar 12
to motioneye
I forgot I am using alpine docker container. It sems like no bash installed in alpine image but after run command apk update && apk add bash still no lucky

Piotr Zając

unread,
Mar 12, 2024, 5:42:23 PMMar 12
to motioneye
I have motioneye-audio.sh from deadend on git and works well on my rpi without dosker

StarbaseSSD

unread,
Mar 12, 2024, 5:49:58 PMMar 12
to motioneye
Arer you using deadended's docker https://hub.docker.com/repository/docker/deadend/motioneye-audio? or one that you built or got somewhere else?

Piotr Zając

unread,
Mar 13, 2024, 4:19:35 AMMar 13
to motioneye
When I pull docker file from deadend it is old motioneye version based on ubuntu  but works, it looks like dockerfile required some entries for /bash/sh in my alpine. I will compare my docker file with deadend image.

Piotr Zając

unread,
Mar 13, 2024, 7:21:57 AMMar 13
to motioneye
Now bash is working but I have another issue motion.log:

  File "<string>", line 1
    import motioneye.motionctl; print motioneye.motionctl.motion_camera_id_to_camera_id(1)
                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Missing parentheses in call to 'print'. Did you mean print(...)?
grep: /etc/motioneye/camera-.conf: No such file or directory
grep: /etc/motioneye/camera-.conf: No such file or directory
grep: /etc/motioneye/camera-.conf: No such file or directory
ffmpeg version 6.1.1 Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 13.2.1 (Alpine 13.2.1_git20231014) 20231014
  configuration: --prefix=/usr --disable-librtmp --disable-lzma --disable-static --disable-stripping --enable-avfilter --enable-gpl --enable-ladspa --enable-libaom --enabl>
  libavutil      58. 29.100 / 58. 29.100
  libavcodec     60. 31.102 / 60. 31.102
  libavformat    60. 16.100 / 60. 16.100
  libavdevice    60.  3.100 / 60.  3.100
  libavfilter     9. 12.100 /  9. 12.100
  libswscale      7.  5.100 /  7.  5.100
  libswresample   5.  0.100 /  5.  0.100
  libpostproc    57.  3.100 / 57.  3.100
[in#0 @ 0x7f5b771618c0] Error opening input: No such file or directory
Error opening input file .
Error opening input files: No such file or directory

Piotr Zając

unread,
Mar 13, 2024, 7:58:41 AMMar 13
to motioneye
OK I found issue, motioneye-audio script was written for python 2.7, I am using 3.11.6 now the script required some changes, I will try but I am not python expert :-(
Reply all
Reply to author
Forward
0 new messages