[FIXED]Cannot open file recording

Hi Everyone

I was a success to create a recording in jitsi. I try download the file, but the file recording cannot play in VLC. What should I do?

I try to check with ffmpeg and the results is

ffmpeg -i edgypineapplesstinkcuriously_2020-01-09-05-57-33.mp4

ffmpeg version 4.1.4 Copyright © 2000-2019 the FFmpeg developers
built with Apple LLVM version 10.0.1 (clang-1001.0.46.4)
configuration: --prefix=/usr/local/Cellar/ffmpeg/4.1.4 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags=’-I/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.1.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/adoptopenjdk-12.0.1.jdk/Contents/Home/include/darwin’ --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-videotoolbox --disable-libjack --disable-indev=jack --enable-libaom --enable-libsoxr
libavutil 56. 22.100 / 56. 22.100
libavcodec 58. 35.100 / 58. 35.100
libavformat 58. 20.100 / 58. 20.100
libavdevice 58. 5.100 / 58. 5.100
libavfilter 7. 40.101 / 7. 40.101
libavresample 4. 0. 0 / 4. 0. 0
libswscale 5. 3.100 / 5. 3.100
libswresample 3. 3.100 / 3. 3.100
libpostproc 55. 3.100 / 55. 3.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x7f9860800000] moov atom not found
edgypineapplesstinkcuriously_2020-01-09-05-57-33.mp4: Invalid data found when processing input

Jibri Log

2020-01-09 06:49:56.939 INFO: [45] org.jitsi.jibri.selenium.JibriSelenium.onSeleniumStateChange() Transitioning from state Starting up to Running
2020-01-09 06:49:56.940 INFO: [45] org.jitsi.jibri.service.impl.FileRecordingJibriService.invoke() Selenium joined the call, starting the capturer
2020-01-09 06:49:56.983 INFO: [45] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.launch() Starting ffmpeg with command ffmpeg -y -v info -f x11grab -draw_mouse 0 -r 30 -s 1280x720 -thread_queue_size 4096 -i :0.0+0,0 -f alsa -thread_queue_size 4096 -i plug:cloop -acodec aac -strict -2 -ar 44100 -c:v libx264 -preset veryfast -profile:v main -level 3.1 -pix_fmt yuv420p -r 30 -crf 25 -g 60 -tune zerolatency -f mp4 /home/ubuntu/recordings/lgemoiroxjabxpyj/insyaallah_2020-01-09-06-49-54.mp4 ([ffmpeg, -y, -v, info, -f, x11grab, -draw_mouse, 0, -r, 30, -s, 1280x720, -thread_queue_size, 4096, -i, :0.0+0,0, -f, alsa, -thread_queue_size, 4096, -i, plug:cloop, -acodec, aac, -strict, -2, -ar, 44100, -c:v, libx264, -preset, veryfast, -profile:v, main, -level, 3.1, -pix_fmt, yuv420p, -r, 30, -crf, 25, -g, 60, -tune, zerolatency, -f, mp4, /home/ubuntu/recordings/lgemoiroxjabxpyj/insyaallah_2020-01-09-06-49-54.mp4])
2020-01-09 06:49:58.538 INFO: [49] org.jitsi.jibri.capture.ffmpeg.FfmpegCapturer.onFfmpegStateMachineStateChange() Ffmpeg capturer transitioning from state Starting up to Running
2020-01-09 06:49:58.539 INFO: [49] org.jitsi.jibri.service.impl.FileRecordingJibriService.onServiceStateChange() File recording service transitioning from state Starting up to Running
2020-01-09 06:49:58.540 INFO: [49] org.jitsi.jibri.api.xmpp.XmppApi.invoke() Current service started up successfully, sending on iq
2020-01-09 06:50:12.014 INFO: [46] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {audio={download=35, upload=0}, download=557, upload=0, video={download=522, upload=0}}, all clients muted? false
2020-01-09 06:50:26.969 INFO: [46] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {audio={download=40, upload=0}, download=696, upload=0, video={download=656, upload=0}}, all clients muted? false
2020-01-09 06:50:41.982 INFO: [46] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {audio={download=44, upload=0}, download=750, upload=0, video={download=706, upload=0}}, all clients muted? false
2020-01-09 06:50:56.984 INFO: [46] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {audio={download=42, upload=0}, download=716, upload=0, video={download=674, upload=0}}, all clients muted? false
2020-01-09 06:51:11.992 INFO: [46] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {audio={download=38, upload=0}, download=339, upload=0, video={download=301, upload=0}}, all clients muted? false
2020-01-09 06:51:26.988 INFO: [46] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {audio={download=42, upload=0}, download=364, upload=0, video={download=322, upload=0}}, all clients muted? false
2020-01-09 06:51:41.970 INFO: [46] org.jitsi.jibri.selenium.JibriSelenium.run() Jibri client receive bitrates: {audio={download=42, upload=0}, download=381, upload=0, video={download=339, upload=0}}, all clients muted? false

Regards

FIXED. I fix this issue with instance r4.2xlarge in EC2 AWS

I had exactly same issue. Here is the solution.
I was using Ubuntu 18.04 64 bit on AWS EC2 Instance. I installed jitsi-meet first on same instance using this tutorial.
Search jitsi-meet installation on ubuntu 16.04, I can not post two links
There were some issues but this thread is not for those so I am not going to mention those.
Once Conference started successfully, next requirement was to record a conference with audio and video successfully.
I found, I will have to install Jibri to achieve this. Here is the guide from where I installed jibri
Search ''github jitsi/jibri infrastructure'', open first link.
Definitely there were some configuration issues but I resolved them after searching solutions.
This is the good configuration video I followed it closely and solved some Jibri issues.
https://community.jitsi.org/t/installation-instructions-video-recording-w-jitsi-jibri-on-same-server/17343

Now I had this one issue, the video file was getting created but there was no video and no audio. It can not be played in any player. Although size of the video was correct but there were no codecs in the file, neither video, nor audio. I got no error in jicofo or jvb log. ffmpeg log was showing process lines to create mp4 file but there was no error. I got one error in jibri logs
INFO: [64] org.jitsi.jibri.util.JibriSubprocess.ffmpeg.stop() ffmpeg exited with value 137
and when I checked the file using ffmpeg,

ffmpeg -i filename.mp4

I got error

*moov* atom *not* found

Then I found the solution, It was my Java version. I got java 11 on my system

openjdk 11.0.7 2020-04-14
OpenJDK Runtime Environment (build 11.0.7+10-post-Ubuntu-2ubuntu218.04)
OpenJDK 64-Bit Server VM (build 11.0.7+10-post-Ubuntu-2ubuntu218.04, mixed mode, sharing)

I had to downgrade to Java 8. I followed these steps

sudo apt-get install openjdk-8-jdk
sudo apt-get install openjdk-8-jre

Then executed command

sudo update-alternatives --config java

I got this output and, It was asking me to choose java version.

There are 2 choices for the alternative java (providing /usr/bin/java).
  Selection    Path                                            Priority   Status
------------------------------------------------------------
* 0            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      auto mode
  1            /usr/lib/jvm/java-11-openjdk-amd64/bin/java      1111      manual mode
  2            /usr/lib/jvm/java-8-openjdk-amd64/jre/bin/java   1081      manual mode

I entered 2 and then my java was downgraded to java 8

java -version
openjdk version “1.8.0_252”
OpenJDK Runtime Environment (build 1.8.0_252-8u252-b09-1~18.04-b09)
OpenJDK 64-Bit Server VM (build 25.252-b09, mixed mode)
Now I restarted, jitsi videobridge, prosody, jicofo, nginx and jibri
sudo /etc/init.d/jitsi-videobridge2 restart
sudo /etc/init.d/prosody restart
sudo /etc/init.d/jicofo restart
sudo /etc/init.d/nginx restart
sudo service jibri restart
and did the recording again. This time I got audio and video codec in mp4 file and it was playing fine in every player.

I hope this will help to solve recording issue.
Note

  1. Tutorial suggest that there should be two servers for jitsi-meet and jibri setup. It must be better for effciency but because of restriction, I set them every thing in one server and it works fine so if you are not able to solve any error and you think, it may be because of one server that’s not true. Everything can be worked in one system.
  2. If you are thinking it must be Desktop system and it can not be installed on aws or google servers because it needed chrome and it must be need display too, that is not true again, it can be done on aws ec2 instance, if you have followed the tutorial closely, you have already installed x-server and other dependencies.
  3. If you are thinking it must be aws bigger server, some 16/32GB RAM, that is not true again, I have recoded conference on 2 GB server (I gave 4 GB swap space), there may be effcienecy, performance, loading issue but recording file is created fine.
    You may face issue in multiple conferences or single conference with 20-24 people, your browser may be crashed but it gives output, recording file must be created.