The Galicaster Project is an open initiative to provide flexible, state-of-the-art solutions for recording educational multimedia contents like lectures and conferences
[track3]
name = Noise
device = audiotest
location = default
file = sound.mp3
flavor = presenter
pattern = pink-noise
frequency = 440
volume = 0.3
player = True
vumeter = True
amplification = 1.0
active = True
the error message we get whenever we make videos of 50 minutes and upward. Although the environment above shows high definition variables, this message was found on standard definition recordings of longer than 60 minutes as well. Also, the message is only found whenever the ingestion is set to immediately, and not when set to nightly. It seems as though the problem comes in when the Capture Agent is “preparing the preview” for the next recording.
We battled for quite a while and in the end found the following work-around.
In the file /usr/share/galicaster/galicaster/galicaster/recorder/recorder.py we added the following lines of code:
def _on_eos(self, bus, msg):
logger.info('eos')
time.sleep(30)
logger.info('30s Sleep Done')
self.stop_preview() # FIXME pipeline set to NULL twice (bf and in the function)
This seemed to stop the message from appearing on all the standard definition recordings, even those ones of 1 hour and 50 minutes. On the high definition setting though, it still appears if the ingestion is set to immediately. If we switch the ingestion setting to nightly, the message disappears, and the Capture Agent keeps on working.
Furthermore, although this message pops up, it seems as though on some occasions, the Capture agent will still record an upcoming scheduled recording. It keeps the red “Error” status up top, and the user interface becomes unusable.
What can be done about this, to give it a permanent fix?
Galicaster Resource Buffer error:
Hardware: • Intel(R) Core(TM) i3-3220 CPU @ 3.30GHz • 4 Gig DDR3 1600 Mhz • Logitech C920 Webcam • Epiphan VGA2USB LR • WDC WD5000AAKX-6 500 Gig Sata
Environment Settings on the capture agents: • Scheduled Recordings
Profile Setting: [data] name = C920_HD+Epi+Line
[track1] name = C920 Webcam videocrop-left = 0 caps = image/jpeg,framerate=15/1,width=1280,height=720 device = v4l2 location = /dev/c920_webcam file = camera.avi active = True path = /home/capture/Repository/attach flavor = presenter videocrop-right = 0
[track2] drivertype = v4l2 name = Epiphan vga2usb active = True location = /dev/epiphan file = screen.avi device = epiphan path = /home/capture/Repository/attach flavor = presentation
Settings in conf-dist.ini
[basic] admin = True profile = default stopdialog = True quit = True shutdown = False
[repository] foldertemplate = gc{hostname}{year}-{month}-{day}T{hour}h{minute}m{second}
[logger] path = /var/log/galicaster/galicaster.log level = DEBUG rotate = True use_syslog = True
; MATTERHORN COMMUNICATION [ingest] active = True visible_tracks = False legacy = False ;For MH 1.2 and 1.3 compatibility manual = immediately ;Possible values: none, immediately, nightly scheduled = immediately ;Possible values: none, immediately, nightly host = ourhostname username = user password = password workflow = full workflow-parameters = trimHold:False;captionHold:False;archiveOp:False;videoPreview:True multiple-ingest = False
[heartbeat] short = 10 long = 60 night = 18:00
[sidebyside] layout = sbs ;Side by side layout. Possible values: pip-screen, pip-camera
; OVERLAPPONG AND RECORDINGS OPTIONS [allows] manual = True start = False stop = False pause = True overlap = False
; PLUGINS [plugins] nocursor = False noaudiodialog = True screensaver = False cleanstale = True forcedurationrec = False shortcuts = True checkrepo = True rest = False pushpic = False
[screensaver] inactivity = 120
[cleanstale] maxarchivaldays = 30
[forcedurationrec] duration = 240
[audio] min = -70 keep_closed = False
[rest] host = 0.0.0.0 port = 8080
;MEDIA MANAGER APPEARENCE [color] classic = false none = #FFF0AA ;yellow nightly = #AEFFAE ; light green pending = #AEFFAE ; light green processing = #FFAE00 ; orange done = #88FF88 ; green failed = #FFAEAE ;red
;DEFAULT PROFILE [screen] left = Bars right = Static
;DEFAULT PROFILE [screen] left = Bars right = Static
[track1] name = Bars pattern = 0 caps = video/x-raw-yuv,framerate=25/1,width=640,height=480 color1 = 4294967295 color2 = 4278190080 location = default file = CAMERA.avi device = videotest flavor = presenter active = True
[track2] name = Static device = videotest location = default file = SCREEN.avi flavor = presentation caps = video/x-raw-yuv,framerate=25/1,width=640,height=480 pattern = 1 color1 = 4294967295 color2 = 4278190080 active = True
[track3] name = Noise device = audiotest location = default file = sound.mp3 flavor = presenter pattern = pink-noise frequency = 440 volume = 0.3 player = True vumeter = True amplification = 1.0 active = True
the error message we get whenever we make videos of 50 minutes and upward. Although the environment above shows high definition variables, this message was found on standard definition recordings of longer than 60 minutes as well. Also, the message is only found whenever the ingestion is set to immediately, and not when set to nightly. It seems as though the problem comes in when the Capture Agent is “preparing the preview” for the next recording.
We battled for quite a while and in the end found the following work-around. In the file /usr/share/galicaster/galicaster/galicaster/recorder/recorder.py we added the following lines of code:
def _on_eos(self, bus, msg): logger.info('eos') time.sleep(30) logger.info('30s Sleep Done') self.stop_preview() # FIXME pipeline set to NULL twice (bf and in the function)
This seemed to stop the message from appearing on all the standard definition recordings, even those ones of 1 hour and 50 minutes. On the high definition setting though, it still appears if the ingestion is set to immediately. If we switch the ingestion setting to nightly, the message disappears, and the Capture Agent keeps on working.
Furthermore, although this message pops up, it seems as though on some occasions, the Capture agent will still record an upcoming scheduled recording. It keeps the red “Error” status up top, and the user interface becomes unusable.
What can be done about this, to give it a permanent fix?