Good morning,
The record not started correctly and i cant figure why. I need help please.
OPENVIDU LOGS:
openvidu-server_1 | [INFO] 2020-11-24 22:00:18,623 [http-nio-0.0.0.0-5443-exec-3] io.openvidu.server.rest.SessionRestController - REST API: POST /openvidu/api/sessions {customSessionId=Sala46361, recordingMode=ALWAYS, defaultOutputMode=COMPOSED, defaultRecordingLayout=CUSTOM, defaultCustomLayout=conf/}
openvidu-server_1 | [INFO] 2020-11-24 22:04:43,684 [Thread-8] io.openvidu.server.recording.service.RecordingService - New recording id (Sala46361) and final name (Sala46361)
openvidu-server_1 | [INFO] 2020-11-24 22:04:43,684 [Thread-8] io.openvidu.server.recording.service.ComposedRecordingService - Starting composed (video + audio) recording Sala46361 of session Sala46361
openvidu-server_1 | [INFO] 2020-11-24 22:04:43,684 [Thread-8] io.openvidu.server.recording.service.ComposedRecordingService - {“id”:“Sala46361”,“object”:“recording”,“name”:“Sala46361”,“outputMode”:“COMPOSED”,“resolution”:“1920x1080”,“recordingLayout”:“CUSTOM”,“customLayout”:“conf/”,“sessionId”:“Sala46361”,“createdAt”:1606255483684,“size”:0,“duration”:0.0,“url”:null,“hasAudio”:true,“hasVideo”:true,“status”:“started”}
openvidu-server_1 | [INFO] 2020-11-24 22:04:43,684 [Thread-8] io.openvidu.server.recording.service.ComposedRecordingService - Recorder connecting to url https://OPENVIDUAPP:SECRET@site.com/openvidu/layouts/conf/index.html?sessionId=Sala46361&secret=SECRET
openvidu-server_1 | [ERROR] 2020-11-24 22:04:58,975 [Thread-8] io.openvidu.server.recording.service.ComposedRecordingService - Recorder container failed generating video file (is empty) for session Sala46361
openvidu-server_1 | [ERROR] 2020-11-24 22:04:58,976 [Thread-8] io.openvidu.server.recording.service.RecordingService - Recording start failed for session Sala46361: Couldn’t initialize recording container. Error: Recorder container failed generating video file (is empty). Code: 703
openvidu-server_1 | [INFO] 2020-11-24 22:04:59,001 [Thread-8] io.openvidu.server.recording.service.RecordingService - Sealed recording metadata file at /opt/openvidu/recordings/ToProcess/Sala46361/.recording.Sala46361 with status [failed]
openvidu-server_1 | [INFO] 2020-11-24 22:04:59,001 [Thread-8] io.openvidu.server.recording.service.ComposedRecordingService - Stopping composed (video + audio) recording Sala46361 of session Sala46361. Reason: null
.recording.Sala46361 log
{“id”:“Sala46361”,“object”:“recording”,“name”:“Sala46361”,“outputMode”:“COMPOSED”,“resolution”:“1920x1080”,“recordingLayout”:“CUSTOM”,“customLayout”:“conf/”,“sessionId”:“Sala46361”,“createdAt”:1606255483684,“size”:0,“duration”:0.0,“url”:“https://site.com/openvidu/recordings/Sala46361/Sala46361.mp4",“hasAudio”:true,“hasVideo”:true,“status”:"failed”}
Sala46361-container.log
==== Loaded Environment Variables =======================
VIDEO_ID=Sala46361
DEBUG_MODE=true
HOSTNAME=ip-172-31-45-114
VIDEO_NAME=Sala46361
PWD=/
VIDEO_FORMAT=mp4
HOME=/root
URL=https://OPENVIDUAPP:SECRET@site.com/openvidu/layouts/conf/index.html?sessionId=Sala46361&secret=SECRET
RESOLUTION=1920x1080
SHLVL=2
ONLY_VIDEO=false
RECORDING_JSON={“id”:“Sala46361”,“object”:“recording”,“name”:“Sala46361”,“outputMode”:“COMPOSED”,“resolution”:“1920x1080”,“recordingLayout”:“CUSTOM”,“customLayout”:“conf/”,“sessionId”:“Sala46361”,“createdAt”:1606255483684,“size”:0,“duration”:0.0,“url”:null,“hasAudio”:true,“hasVideo”:true,“status”:“started”}
WIDTH=1920
FRAMERATE=30
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
HEIGHT=1080
_=/usr/bin/env
W: [pulseaudio] main.c: This program is not intended to be run as root (unless --system is specified).
Display in use -> :
ffmpeg version 4.2.4-1ubuntu0.1 Copyright © 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
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
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, alsa, from ‘pulse’:
Duration: N/A, start: 1606255486.085879, bitrate: 1536 kb/s
Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[x11grab @ 0x55cb2fd95e40] Cannot open display :, error 5.
:: Input/output error
jq: error (at :1): Cannot iterate over null (null)
jq: error (at :1): Cannot iterate over null (null)
jq: error (at :1): null (null) cannot be parsed as a number
jq: error (at :1): null (null) cannot be parsed as a number
jq: error: syntax error, unexpected ‘|’ (Unix shell quoting issues?) at , line 1:
.hasAudio=false | .hasVideo=false | .duration= | .size= | .status=“failed”
jq: 1 compile error
ffmpeg version 4.2.4-1ubuntu0.1 Copyright © 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
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
Invalid duration specification for ss: -i
CPU usage is very low.
Thanks in advance.