Am 18.11.2021 um 08:52 schrieb Maxim Solodovnik:
On Wed, 17 Nov 2021 at 15:50, Tom Meierjürgen <tomca...@web.de> wrote:
Am 17.11.2021 um 07:44 schrieb Maxim Solodovnik:
please don't forget to CC user@ list :)
Sorry, pushed the wrong Button in Thunderbid accidentally ;-)
On Wed, 17 Nov 2021 at 00:41, Tom Meierjürgen <tomca...@web.de>
wrote:
Am 16.11.2021 um 16:23 schrieb Maxim Solodovnik:
Hello Tom,
According to the log you have provided
None room streams were recorded
the first successful command is just "silence"
Blind guess: you don't have external "data directory"
so your docker volume mapping is broken
this dockerized KMS writing files inside docker, and they
are not available for OM :)))
Ok, sounds logical... but which directory inside the docker
image has to be mapped to a directory on the om-server then?
I followed the different instuctions for the om-releases and
tried /opt/om_data, /opt/omdata and
/opt/openmeetinghs/webapps/openmeetings/data to be mapped to
/opt/openmeetings/webapps/openmeetings/data and the Audiopart
(*.wav files) are landing there,but not the *.webm
files...that was the irritation i got about that thought...
Here is the good example:
https://markmail.org/message/ulnnmir2voseqkmm (you can search
archives for DATA_DIR :))
It works now :-) Should be written down somewhere in the
installationinstructions that the " Environment='JAVA_OPTS=- ...'
" options inside the openmeetings.service startup-script ( at
least in case of ubuntu version 20.04 but i guess all ubuntus use
this for starting) should get the additional Parameter
"-DDATA_DIR=/opt/openmeetings/webapps/openmeetings/data" as in
case of a pure external Directory sox seems to miss its *.wav
Files, so there would be a similar error other way around as then
not the *.webm files where missing but the *.wav file component
for getting the resulting *.mp4 files from the recording as a
result ;-)
Well I would recommend to do something like
```
mkdir /opt/omdata
chown chown -R nobody:nogroup /opt/omdata
cp -r ${OM_HOME}/webapps/openmeetings/data/* /opt/omdata
```
this way DATA_DIR will be external folder
and the upgrade will be easier :)))
please propose where correct instructions should be added :)
- https://openmeetings.apache.org/installation.html
- https://openmeetings.apache.org/Upgrade.html
- openmeetings.service script as comments :)))
Guess it would be best placed at "Tips&Tricks" in the lower section of
the installation-instructionpage including the command to start kms
dockerized..
startscript including location where to put:
/etc/systemd/system/openmeetings.service
##############################################
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
##############################################
# /etc/systemd/system/openmeetings.service
# sudo systemctl daemon-reload
# sudo systemctl restart openmeetings
[Unit]
Description=Apache OpenMeetings server
After=network.target
[Service]
Type=forking
Environment=JAVA_HOME=/usr/lib/jvm/java-11-openjdk-amd64
Environment=CATALINA_PID=/var/run/openmeetings/openmeetings.pid
WorkingDirectory=/opt/openmeetings
Environment=CATALINA_HOME=/opt/openmeetings
Environment=CATALINA_BASE=/opt/openmeetings
Environment='JDK_JAVA_OPTIONS=--add-modules java.se --add-exports
java.base/jdk.internal.ref=ALL-UNNAMED --add-opens
java.base/java.lang=ALL-UNNAMED --add-opens
java.base/java.nio=ALL-UNNAMED --add-opens
java.base/sun.nio.ch=ALL-UNNAMED --add-opens
java.management/sun.management=ALL-UNNAMED --add-opens
jdk.management/com.sun.management.internal=ALL-UNNAMED'
Environment='CATALINA_OPTS=-Xms1G -Xmx4G -server -XX:+UseParallelGC'
Environment='JAVA_OPTS=-Djava.awt.headless=true
-Djava.security.egd=file:/dev/./urandom
-DDATA_DIR=/opt/openmeetings/webapps/openmeetings/data'
ExecStart=/opt/openmeetings/bin/startup.sh
ExecStop=/opt/openmeetings/bin/shutdown.sh
User=nobody
Group=nogroup
UMask=0000
RestartSec=10
Restart=always
TasksMax=infinity
[Install]
WantedBy=multi-user.target
###############################################
Commandline to get kms in Docker with according DATA_DIR:
docker run -d --memory 1024M --mount
type=bind,src=/opt/openmeetings/webapps/openmeetings/data,dst=/opt/openmeetings/webapps/openmeetings/data
--cpus 1.5 --restart unless-stopped --network bridge --publish
0.0.0.0:8888:8888 --restart unless-stopped --name kms
kurento/kurento-media-server:latest
--cpus and --memory PArameters are set to be sure that kms doen´t eat up
all resources as there is also a apache httpd running on these nodes
with a php-based cms, the Galera Database Cluster and a GlusterFS for
the Datafiles instead of a single nfs-Server somewhere else (and that
are the reasons why i use a IPSEC/GRE Tunnel for connecting the nodes to
each other, just to protect the data between the nodes) ;-)
All i have to figure out now for my small 2 node cluster is why
the switch to another room on the other node still results in
seeing only my own stream but not the opponents (tested with 2
computers here in my lan and 2 others from another lan at same
time,after switch every computer has only its own streams
visible+hearable)...
Do you have TURN server?
Is it configured properly?
For sure i have one turnserver per node running ;-)
Heres my turnserver config stripped down to all lines without the
commented lines and personal information replaced by placeholders which
tells the kind of content, maybe i have forgoten something in there?
/etc/turnserver.conf :
######################Start#####################
listening-port=3478
listening-ip=$Docker-Bridge_Interface-IP$
listening-ip=$External-Node-IP$
listening-ip=$Internal-own-IPSEC/GRE-Tunnel-IP$
relay-ip=$Internal_own_IPSEC/GRE-Tunnel-IP$
min-port=49152
max-port=65535
fingerprint
use-auth-secret
static-auth-secret=$Same_secret_as_in_OM_Kurento-configurationpart_of_openmeetings.properties$
server-name=$Nameresolutionadress_of_the_node$
realm=$Domainame_as_Realm$
stale-nonce=0
log-file=/var/log/turnserver/turn.log
syslog
allowed-peer-ip=$Internal_other_nodes_IPSEC/GRE_Tunnel-IP$
allowed-peer-ip=$External_other_nodes_IP$
pidfile="/var/run/turnserver.pid"
###########################End################
when i put "lt-cred-mech" additionally in there as mentioned somewhere
in the mailinglist before, my coturn won´t start up and in the logs it
tells me to use either lt-cred-mech or use stat-auth but not both at the
same time...
Hope this helps locating the reasons for my Node-switching problem with
the streams...
kind regards,
Tom
Thanks for the Help,
Tom
The docker Image used is the latest release:
kurento/kurento-media-server:latest
thanks for reply,
Tom
On Tue, 16 Nov 2021 at 22:07, Tom Meierjürgen
<tomca...@web.de> wrote:
Hi,
i recognized that, between one of the updates from 6.0
to 6.2.0 there seems to have changed something for the
Screen-Recording/Video-Recording option.
Meanwhile just the Audiopart was saved to the disk but
the video-component is missing so that ffmpeg runs in an
error:
Es gab Fehler beim Verarbeiten der Aufzeichnung.
Aufnahme nicht gefunden
Rückgabewert Nachrichten
0 process: generateSampleAudio command: /usr/bin/sox
/opt/openmeetings/webapps/openmeetings/public/one_second.wav
/opt/openmeetings/webapps/openmeetings/data/streams/13/rec_23_beb15ca8-6a07-4495-8efe-19d19efa7a16_FINAL_WAVE.wav
pad 0 17.896 exception: null error: exitValue: 0
optional: false out:
1 process: generate MP4 command: /usr/local/bin/ffmpeg
-y -itsoffset 00:00:01.352 -i
/opt/openmeetings/webapps/openmeetings/data/streams/13/rec_23_beb15ca8-6a07-4495-8efe-19d19efa7a16.webm
-i
/opt/openmeetings/webapps/openmeetings/data/streams/13/rec_23_beb15ca8-6a07-4495-8efe-19d19efa7a16_FINAL_WAVE.wav
-c:v h264 -crf 24 -vsync 0 -pix_fmt yuv420p -preset
medium -profile:v baseline -level 3.0 -movflags
faststart -c:a aac -ar 22050 -b:a 32k -vf
pad=ceil(iw/2)*2:ceil(ih/2)*2
/opt/openmeetings/webapps/openmeetings/data/streams/hibernate/8a68ea7f-9e40-4692-b6a9-f912c6a66a74.mp4exception:
null error: ffmpeg version 4.2.4-1ubuntu0.1 Copyright
(c) 2000-2020 the FFmpeg developers built with gcc 9
(Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr
--extra-version=1ubuntu0.1 --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64
--enable-gpl --disable-stripping --enable-avresample
--disable-filter=resample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libcdio --enable-libcodec2
--enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme
--enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librsvg --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx265 --enable-libxml2
--enable-libxvid --enable-libzmq --enable-libzvbi
--enable-lv2 --enable-omx --enable-openal
--enable-opencl --enable-opengl --enable-sdl2
--enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-nvenc --enable-chromaprint --enable-frei0r
--enable-libx264 --enable-shared WARNING: library
configuration mismatch avcodec configuration:
--prefix=/usr --extra-version=1ubuntu0.1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64
--enable-gpl --disable-stripping --enable-avresample
--disable-filter=resample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libcdio --enable-libcodec2
--enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme
--enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librsvg --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx265 --enable-libxml2
--enable-libxvid --enable-libzmq --enable-libzvbi
--enable-lv2 --enable-omx --enable-openal
--enable-opencl --enable-opengl --enable-sdl2
--enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-nvenc --enable-chromaprint --enable-frei0r
--enable-libx264 --enable-shared --enable-version3
--disable-doc --disable-programs --enable-libaribb24
--enable-liblensfun --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libtesseract
--enable-libvo_amrwbenc libavutil 56. 31.100 / 56.
31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat
58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58.
8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4.
0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100
/ 55. 5.100
/opt/openmeetings/webapps/openmeetings/data/streams/13/rec_23_beb15ca8-6a07-4495-8efe-19d19efa7a16.webm:
No such file or directory exitValue: 1 optional: false out:
1 process: generate preview PNG ::
8a68ea7f-9e40-4692-b6a9-f912c6a66a74 command:
/usr/local/bin/ffmpeg -y -i
/opt/openmeetings/webapps/openmeetings/data/streams/hibernate/8a68ea7f-9e40-4692-b6a9-f912c6a66a74.mp4
-vf thumbnail,scale=640:-1 -frames:v 1
/opt/openmeetings/webapps/openmeetings/data/streams/hibernate/8a68ea7f-9e40-4692-b6a9-f912c6a66a74.pngexception:
null error: ffmpeg version 4.2.4-1ubuntu0.1 Copyright
(c) 2000-2020 the FFmpeg developers built with gcc 9
(Ubuntu 9.3.0-10ubuntu2) configuration: --prefix=/usr
--extra-version=1ubuntu0.1 --toolchain=hardened
--libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64
--enable-gpl --disable-stripping --enable-avresample
--disable-filter=resample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libcdio --enable-libcodec2
--enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme
--enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librsvg --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx265 --enable-libxml2
--enable-libxvid --enable-libzmq --enable-libzvbi
--enable-lv2 --enable-omx --enable-openal
--enable-opencl --enable-opengl --enable-sdl2
--enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-nvenc --enable-chromaprint --enable-frei0r
--enable-libx264 --enable-shared WARNING: library
configuration mismatch avcodec configuration:
--prefix=/usr --extra-version=1ubuntu0.1
--toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu
--incdir=/usr/include/x86_64-linux-gnu --arch=amd64
--enable-gpl --disable-stripping --enable-avresample
--disable-filter=resample --enable-avisynth
--enable-gnutls --enable-ladspa --enable-libaom
--enable-libass --enable-libbluray --enable-libbs2b
--enable-libcaca --enable-libcdio --enable-libcodec2
--enable-libflite --enable-libfontconfig
--enable-libfreetype --enable-libfribidi --enable-libgme
--enable-libgsm --enable-libjack --enable-libmp3lame
--enable-libmysofa --enable-libopenjpeg
--enable-libopenmpt --enable-libopus --enable-libpulse
--enable-librsvg --enable-librubberband
--enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libspeex --enable-libssh --enable-libtheora
--enable-libtwolame --enable-libvidstab
--enable-libvorbis --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx265 --enable-libxml2
--enable-libxvid --enable-libzmq --enable-libzvbi
--enable-lv2 --enable-omx --enable-openal
--enable-opencl --enable-opengl --enable-sdl2
--enable-libdc1394 --enable-libdrm --enable-libiec61883
--enable-nvenc --enable-chromaprint --enable-frei0r
--enable-libx264 --enable-shared --enable-version3
--disable-doc --disable-programs --enable-libaribb24
--enable-liblensfun --enable-libopencore_amrnb
--enable-libopencore_amrwb --enable-libtesseract
--enable-libvo_amrwbenc libavutil 56. 31.100 / 56.
31.100 libavcodec 58. 54.100 / 58. 54.100 libavformat
58. 29.100 / 58. 29.100 libavdevice 58. 8.100 / 58.
8.100 libavfilter 7. 57.100 / 7. 57.100 libavresample 4.
0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 5.100
libswresample 3. 5.100 / 3. 5.100 libpostproc 55. 5.100
/ 55. 5.100
/opt/openmeetings/webapps/openmeetings/data/streams/hibernate/8a68ea7f-9e40-4692-b6a9-f912c6a66a74.mp4:
No such file or directory exitValue: 1 optional: false out:
Whats going on that OM doesn´t give the Videopart of the
Recording to the correct place?
Same Problem on an updated 6.1.0 and in 6.2.0 ... maybe
there has to be another mount-option for kms needed? Or
another Version of ffmpeg instead of the ubuntu 20.04
default version + libavcodec-extra package needed?
Just searching for reasons and solutions what to change
to get it working again...directory rights definitely
lowerd for testing purposes but this wasn´t leading to a
solution up to now and so im actually stucked a bit with
that problem..
Thnx for reply,
Tom
--
Best regards,
Maxim
--
Best regards,
Maxim
--
Best regards,
Maxim