Janus PPREC failures / file writing issues

114 views
Skip to first unread message

Sots Ts

unread,
Feb 17, 2021, 2:26:27 PM2/17/21
to meetecho-janus
Hello,

Does anyone have experience with the following pprec error:

[ERR] [postprocessing/pp-webm.c:janus_pp_webm_create:161] Error opening file for output (-2)
[ERR] [postprocessing/janus-pp-rec.c:main:1027] Error creating .webm file...

It is likely due to Janus video.mjr recordings not being closed right, when user connections have interruptions during recordings/publishing (we see "ERR_PROXY_CONNECTION_FAILED" in the Chrome dev tools console during these incidents).


Any help is appreciated- we are desperately looking to:
a.  Restore/Salvage these .mjr recordings- have pprec overcome this! 
b.  Better understand how to overcome the file issue from happening 


Thanks very much!

Franklin




Kaplan

unread,
Feb 22, 2021, 1:38:49 PM2/22/21
to meetecho-janus
did you check that you have the right file / directory permissions to write the output file?

Sots Ts

unread,
Feb 24, 2021, 5:34:43 PM2/24/21
to meetecho-janus
Kaplan, thanks for the idea.

I don't think it's a perms issue (user has perms to the file & dir).

Running pprec actually kicks off the effort, and then seems to fail when a certain part of the file is hit:
[WARN] Lost a packet here? (got seq 38030 after 38028, time ~16008s)
[WARN] Lost a packet here? (got seq 38032 after 38030, time ~16008s)
[WARN] Lost a packet here? (got seq 38034 after 38032, time ~16008s)
[WARN] Lost a packet here? (got seq 38036 after 38034, time ~16008s)
[WARN] Lost a packet here? (got seq 38038 after 38036, time ~16008s)
[WARN] Lost a packet here? (got seq 38040 after 38038, time ~16008s)
[WARN] Lost a packet here? (got seq 38042 after 38040, time ~16008s)
[WARN] Lost a packet here? (got seq 38044 after 38042, time ~16008s)
[WARN] Lost a packet here? (got seq 38046 after 38044, time ~16008s)
[WARN] Lost a packet here? (got seq 38048 after 38046, time ~16009s)
[WARN] Lost a packet here? (got seq 38050 after 38048, time ~16009s)
  -- 1920x1080 (fps [1,1663380] ~ 90000)
[libvpx @ 0x559282b3a4a0] v1.7.0
[ERR] [postprocessing/pp-webm.c:janus_pp_webm_create:161] Error opening file for output (-2)
[ERR] [postprocessing/janus-pp-rec.c:main:1027] Error creating .webm file...


I think the video.mjr just never got closed right because of some network interruption or other Janus issue.

Any other thoughts from anyone?

Thanks! 

Lorenzo Miniero

unread,
Feb 25, 2021, 4:08:36 AM2/25/21
to meetecho-janus
"Error opening file for output" has nothing to do with how complete a mjr file may be or not, it's an "avio_open" error. Check the libavformat documentation on what may cause that.

L.

Reply all
Reply to author
Forward
0 new messages