Video record issue

wyvasi

Member
Good day!
We started recording a stream that was ~40 minutes but on unpublish it only returned first 90 seconds. Do you have any idea why would this happen or how to debug video recordings.
 

Max

Administrator
Staff member
Good day.
This is a known Chrome bug, but fix is not released yet. So we fixed the issue at WCS side, please update to the latest build 5.2.1181.
The recordings which are already been saved with previous build may be fixed by ffmpeg
Code:
ffmpeg -i stream_bad.mp4 stream_fixed.mp4
 

wyvasi

Member
Hello, it happens again and again. We are using version 1181 and we keep getting shorter video than what it supposed to be. We got recently a video of 14 minutes intead of 1 hour and ffmpeg -i Input.mp4 Output.mp4 doesn't fix anything.
How can I track video recording errors?
It seems like after 14 minutes the video recording stopped as i see when the last time the video file was modified on machine.
 

Max

Administrator
Staff member
Hello

Error resistance during recording has been improved in 5.2.1236 version
Releases
Recording docs

Before this improvement recording was failed upon first corrupted frame.
For now it should be recorded with some errors anyway.

You can also search in flashphoner.log for such strings as "record", or "exception", or "CommonFileRecorderThread".
Example of error log:
Code:
3:44:18,583 ERROR onFileRecorderThread - CommonFileRecorderThread-2 Error while feeding writer FileRecorder{audioCodec=speex/16000 /1 /0 [], videoConfig=VideoConfig{codec='H264', codecObj=H264/90000 /1 /0 [A packetization-mode:1, A profile-level-id:640028], timeBase=AVRational{numerator=1, denominator=90000}, width=1920, height=1080, profile=66, level=40, extradata=[0, 0, 0, 1, 103, 66, -64, 40, -107, -96, 30, 0, -119, -7, 112, 17, 0, 0, 3, 3, -24, 0, 0, -61, 80, -124, 0, 0, 0, 1, 104, -50, 60, -128], packetizationMode=0, bitrate=0, quality=0, resample=false, encoderPriority='null', gopSize=null, fps=null, preset='null'}, currentFilePath='/usr/local/FlashphonerWebCallServer/records/webinar-3331894-main-f2572b24-fc1c-4e2c-8304-162b6140685a.mp4'}

java.lang.NullPointerException

13:44:18,584 ERROR         MediaSession - CommonFileRecorderThread-2 Stop recording due to exception

java.lang.NullPointerException
 
Top