Janus Post Processing tool: Error no destination file , mjr file is empty

200 views
Skip to first unread message

Eran Braun

unread,
Feb 9, 2022, 5:23:40 AM2/9/22
to meetecho-janus
so we have a setup with janus as webrtc server that sends every feed to an rtsp server to record and also janus records the same feed as well,  
recently for some reason we started to see some failure with the janus recording as it is not uploading and we saw that even tho the rtsp recording is fine the mjr file is empty.
it happens pretty randomly and without any specific reason. 
is there any way to debug or resolve the issue? 

Alessandro Toppi

unread,
Feb 9, 2022, 5:54:48 AM2/9/22
to meetecho-janus
Inspect the logs, maybe it is an issue with the destination path (e.g. permissions) ?

Eran Braun

unread,
Feb 9, 2022, 7:26:27 AM2/9/22
to meetecho-janus

Hi actions i took to investigate,
From janus side i checked the logs and saw that other than the fact that the file is extremely small no other issue is seen.
From my own side i took one of the mjr files that errored out and tried manually to use the tool and got that the files are empty.
we know that the live session itself was fine and we know that the we recorded it with rtsp successfully.
the destination is correct as it is a robust destination for all recordings.
permissions should not be an issue as janus is running as root atm  

Alessandro Toppi

unread,
Feb 10, 2022, 8:03:51 AM2/10/22
to meetecho-janus
- Have you tried a recent janus commit ?
- Which plugin are you using?
- What are you recording? A publisher WebRTC feed (eg coming from browser) or some other thing ?

Eran Braun

unread,
Feb 14, 2022, 3:49:20 AM2/14/22
to meetecho-janus
Hi we are currently using Janus version 0.11.4, the plugin is video room and the recording is the publishers feed directly , for every room we have 1 publisher with at least a video feed of vp8 or h264.
1. ill try to update the janus version
2. Are you aware of any way that can affect the recording file creation? for example could it be a bad disconnect or something browser related to WebRTC implementation?

Alessandro Toppi

unread,
Feb 14, 2022, 6:22:12 AM2/14/22
to meetecho-janus
Inspecting the code I can several ways Janus could skip saving of incoming video packets.
1) are you using video simulcasting ?
2) if not and if you can 100% exclude errors or warnings in the logs, then the packet should be discarded during one of these checks (taken from v0.11.4) https://github.com/meetecho/janus-gateway/blob/v0.11.4/record.c#L280-L294
Try to add some log messages and recompile janus to check if that is the case

Lorenzo Miniero

unread,
Feb 14, 2022, 7:10:38 AM2/14/22
to meetecho-janus
Or even better, try 0.11.8 first, and then add log messages and recompile :-)

L.

Eran Braun

unread,
Feb 14, 2022, 7:33:36 AM2/14/22
to meetecho-janus
Ok thank you ill try it , test it and get back to you with the results

Oleksandr Bedzir

unread,
Jun 20, 2022, 8:02:37 AM6/20/22
to meetecho-janus
We updated Janus to 0.12.0, but problem still persist. We also are going to add additional logs and update you.

Sarbajit Bhattacharjee

unread,
Dec 28, 2022, 7:14:36 AM12/28/22
to meetecho-janus
If it is not solved already, please check if you are calling recordplayHandler.hangup() after stopping the recording. this creates proper mjr files. in the demo apps, it is given. I ignored it at first and faced same issue.  
Reply all
Reply to author
Forward
0 new messages