--------------------------------------------------------------------------------------------------------------- INITIALIZING VIDBOT, v1.6.0... --------------------------------------------------------------------------------------------------------------- [03:16:21.811] Vidbot :: start() [03:16:21.812] Vidbot :: _next(), _stepIndex:0 of 4 [03:16:21.812] index :: _onStepStarted_vidbot(), step: 1 [03:16:21.813] Vidbot :: step[0], label:Initializing Core [03:16:21.821] index :: _onStepProgress_vidbot(), percent: 20 [03:16:21.821] Vidbot :: _parse() [03:16:21.822] index :: _onStepProgress_vidbot(), percent: 40 [03:16:21.823] Vidbot :: _validate() [03:16:21.823] index :: _onStepProgress_vidbot(), percent: 60 [03:16:21.824] Vidbot :: _fonts() [03:16:21.824] FabricFontManager :: add(), id: SourceSansPro-Bold [03:16:21.824] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Bold.ttf [03:16:21.832] FabricFontManager :: add(), id: SourceSansPro-Light [03:16:21.832] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Light.ttf [03:16:21.833] FabricFontManager :: add(), id: DINOT-Bold [03:16:21.833] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Bold.otf [03:16:21.833] FabricFontManager :: add(), id: DINOT-Light [03:16:21.834] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Light.otf [03:16:21.834] FabricFontManager :: add(), id: TradeGothicLTStd-Regular [03:16:21.834] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Regular.otf [03:16:21.835] FabricFontManager :: add(), id: TradeGothicLTStd-Bold [03:16:21.835] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Bold.otf [03:16:21.836] index :: _onStepProgress_vidbot(), percent: 80 [03:16:21.836] Vidbot :: _clips() [03:16:21.837] StreamManager :: add(), id:audio_vo, type:audio [03:16:21.837] AudioClip[audio_vo] :: constructor() [03:16:21.837] InputStream[audio_vo] :: constructor() [03:16:21.837] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'audio_vo', clipId: null } [03:16:21.840] StreamManager :: add(), id:bg_music, type:audio [03:16:21.840] AudioClip[bg_music] :: constructor() [03:16:21.840] InputStream[bg_music] :: constructor() [03:16:21.840] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'bg_music', clipId: null } [03:16:21.841] StreamManager :: add(), id:simplefadedisplay, type:canvas [03:16:21.841] CanvasStream[canvas_1492342636512] :: constructor() [03:16:21.841] InputStream[canvas_1492342636512] :: constructor() [03:16:21.917] KenBurnsSlideshow[simplefadedisplay] :: constructor() [03:16:21.917] Overlay[simplefadedisplay] :: constructor() [03:16:21.917] CanvasClip[simplefadedisplay] :: constructor() [03:16:21.917] Clip[simplefadedisplay] :: constructor() [03:16:21.917] clip:"simplefadedisplay" added to stream:"canvas_1492342636512" [03:16:21.917] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_1492342636512', clipId: 'simplefadedisplay' } [03:16:21.918] StreamManager :: add(), id:caption, type:canvas [03:16:21.918] RenCaption[caption] :: constructor() [03:16:21.918] Ren[caption] :: constructor() [03:16:21.918] Overlay[caption] :: constructor() [03:16:21.918] CanvasClip[caption] :: constructor() [03:16:21.918] Clip[caption] :: constructor() [03:16:21.918] clip:"caption" added to stream:"canvas_1492342636512" [03:16:21.918] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_1492342636512', clipId: 'caption' } [03:16:21.918] all added... [03:16:21.918] Vidbot :: _next(), _stepIndex:1 of 4 [03:16:21.919] index :: _onStepCompleted_vidbot(), step: 1 [03:16:21.919] index :: _onStepStarted_vidbot(), step: 2 [03:16:21.919] Vidbot :: step[1], label:Initializing Input Streams [03:16:21.920] StreamManager :: init() [03:16:21.920] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'audio_vo', progress: 0.3333333333333333 } [03:16:21.920] index :: _onStepProgress_vidbot(), percent: 33 [03:16:21.920] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'bg_music', progress: 0.6666666666666666 } [03:16:21.920] index :: _onStepProgress_vidbot(), percent: 67 [03:16:21.921] CanvasStream[canvas_1492342636512] :: _init(), BEGIN [03:16:21.921] i:0, c.id:simplefadedisplay [03:16:21.921] KenBurnsSlideshow[simplefadedisplay] :: _init(), BEGIN [03:16:21.922] KenBurnsSlideshow[simplefadedisplay] :: _validate() [03:16:21.922] KenBurnsSlideshow[undefined] :: _validateAnim() [03:16:21.922] KenBurnsSlideshow[undefined] :: _validateTheme() [03:16:21.923] i:1, c.id:caption [03:16:21.924] RenCaption[caption] :: _init() [03:16:21.924] RenCaption[caption] :: _validate() [03:16:21.925] KenBurnsSlideshow[simplefadedisplay] :: _build() [03:16:21.930] AnimatedImageFrame[aif] :: constructor() [03:16:21.931] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:21.932] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_1.jpg [03:16:21.943] RenCaption[caption] :: _build() [03:16:21.958] Overlay[caption] :: _animate() [03:16:21.961] CanvasStream[caption] :: _init(), p.then() [03:16:21.983] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:21.986] AnimatedImageFrame[aif] :: _init(), END [03:16:21.987] AnimatedImageFrame[aif] :: constructor() [03:16:21.987] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:21.987] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_2.jpg [03:16:22.006] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.007] AnimatedImageFrame[aif] :: _init(), END [03:16:22.008] AnimatedImageFrame[aif] :: constructor() [03:16:22.008] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.008] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_3.jpg [03:16:22.025] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.026] AnimatedImageFrame[aif] :: _init(), END [03:16:22.027] AnimatedImageFrame[aif] :: constructor() [03:16:22.027] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.027] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_4.jpg [03:16:22.042] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.043] AnimatedImageFrame[aif] :: _init(), END [03:16:22.044] AnimatedImageFrame[aif] :: constructor() [03:16:22.044] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.045] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_5.jpg [03:16:22.060] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.060] AnimatedImageFrame[aif] :: _init(), END [03:16:22.061] AnimatedImageFrame[aif] :: constructor() [03:16:22.061] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.061] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_6.jpg [03:16:22.079] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.080] AnimatedImageFrame[aif] :: _init(), END [03:16:22.080] AnimatedImageFrame[aif] :: constructor() [03:16:22.080] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.080] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_7.jpg [03:16:22.098] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.098] AnimatedImageFrame[aif] :: _init(), END [03:16:22.099] AnimatedImageFrame[aif] :: constructor() [03:16:22.099] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.099] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_8.jpg [03:16:22.114] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.115] AnimatedImageFrame[aif] :: _init(), END [03:16:22.115] AnimatedImageFrame[aif] :: constructor() [03:16:22.115] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.115] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_9.jpg [03:16:22.132] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.132] AnimatedImageFrame[aif] :: _init(), END [03:16:22.133] AnimatedImageFrame[aif] :: constructor() [03:16:22.133] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.133] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_10.jpg [03:16:22.150] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.151] AnimatedImageFrame[aif] :: _init(), END [03:16:22.151] AnimatedImageFrame[aif] :: constructor() [03:16:22.151] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.151] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_11.jpg [03:16:22.167] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.167] AnimatedImageFrame[aif] :: _init(), END [03:16:22.168] AnimatedImageFrame[aif] :: constructor() [03:16:22.168] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.168] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_12.jpg [03:16:22.190] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.191] AnimatedImageFrame[aif] :: _init(), END [03:16:22.192] AnimatedImageFrame[aif] :: constructor() [03:16:22.192] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.192] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_13.jpg [03:16:22.209] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.210] AnimatedImageFrame[aif] :: _init(), END [03:16:22.210] AnimatedImageFrame[aif] :: constructor() [03:16:22.210] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.210] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_14.jpg [03:16:22.226] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.227] AnimatedImageFrame[aif] :: _init(), END [03:16:22.228] AnimatedImageFrame[aif] :: constructor() [03:16:22.228] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.228] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_15.jpg [03:16:22.244] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.244] AnimatedImageFrame[aif] :: _init(), END [03:16:22.245] AnimatedImageFrame[aif] :: constructor() [03:16:22.245] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.245] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_16.jpg [03:16:22.261] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.262] AnimatedImageFrame[aif] :: _init(), END [03:16:22.262] AnimatedImageFrame[aif] :: constructor() [03:16:22.262] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.262] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_17.jpg [03:16:22.279] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.280] AnimatedImageFrame[aif] :: _init(), END [03:16:22.280] AnimatedImageFrame[aif] :: constructor() [03:16:22.280] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.280] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_18.jpg [03:16:22.298] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.299] AnimatedImageFrame[aif] :: _init(), END [03:16:22.299] AnimatedImageFrame[aif] :: constructor() [03:16:22.299] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.299] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_19.jpg [03:16:22.319] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.319] AnimatedImageFrame[aif] :: _init(), END [03:16:22.320] AnimatedImageFrame[aif] :: constructor() [03:16:22.320] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.320] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_20.jpg [03:16:22.333] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.334] AnimatedImageFrame[aif] :: _init(), END [03:16:22.334] AnimatedImageFrame[aif] :: constructor() [03:16:22.335] AnimatedImageFrame[aif] :: _init(), BEGIN [03:16:22.335] CanvasClip :: LoadImageWithPromise(), src: C14C065A-8B48-7E95-2124-B71EFDE7A1E7_1.jpg [03:16:22.351] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [03:16:22.352] AnimatedImageFrame[aif] :: _init(), END [03:16:22.352] Overlay[simplefadedisplay] :: _animate() [03:16:22.353] KenBurnsSlideshow[simplefadedisplay] :: _init(), END [03:16:22.353] CanvasStream[simplefadedisplay] :: _init(), p.then() [03:16:22.353] CanvasStream[canvas_1492342636512] :: _init(), promise.all.then() [03:16:22.355] CanvasStream[canvas_1492342636512] :: _init(), END [03:16:22.355] StreamMangaer :: init(), stream[canvas_1492342636512].then() [03:16:22.356] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'canvas_1492342636512', progress: 1 } [03:16:22.356] index :: _onStepProgress_vidbot(), percent: 100 [03:16:22.356] StreamManager :: init(), promise.all.then... [03:16:22.356] Vidbot :: StreamMgr.on( 'INITED' ) [03:16:22.356] Vidbot :: _next(), _stepIndex:2 of 4 [03:16:22.356] index :: _onStepCompleted_vidbot(), step: 2 [03:16:22.356] index :: _onStepStarted_vidbot(), step: 3 [03:16:22.357] Vidbot :: step[2], label:Rendering Canvas Streams [03:16:22.357] Vidbot :: StreamMgr.on( 'RENDER_STARTED' ), data: undefined [03:16:22.357] StreamManager :: render() [03:16:22.358] CanvasStream[canvas_1492342636512] :: render() [03:16:22.396] index :: _onStepProgress_vidbot(), percent: 0 [03:16:38.602] index :: _onStepProgress_vidbot(), percent: 5 [03:16:58.444] index :: _onStepProgress_vidbot(), percent: 10 [03:17:17.071] index :: _onStepProgress_vidbot(), percent: 15 [03:17:31.456] index :: _onStepProgress_vidbot(), percent: 20 [03:17:46.719] index :: _onStepProgress_vidbot(), percent: 25 [03:18:04.565] index :: _onStepProgress_vidbot(), percent: 30 [03:18:22.581] index :: _onStepProgress_vidbot(), percent: 35 [03:18:39.551] index :: _onStepProgress_vidbot(), percent: 40 [03:18:57.410] index :: _onStepProgress_vidbot(), percent: 45 [03:19:14.758] index :: _onStepProgress_vidbot(), percent: 50 [03:19:29.852] index :: _onStepProgress_vidbot(), percent: 55 [03:19:45.468] index :: _onStepProgress_vidbot(), percent: 60 [03:20:05.098] index :: _onStepProgress_vidbot(), percent: 65 [03:20:20.687] index :: _onStepProgress_vidbot(), percent: 70 [03:20:36.935] index :: _onStepProgress_vidbot(), percent: 75 [03:20:53.751] index :: _onStepProgress_vidbot(), percent: 80 [03:21:12.965] index :: _onStepProgress_vidbot(), percent: 85 [03:21:32.753] index :: _onStepProgress_vidbot(), percent: 90 [03:21:51.152] index :: _onStepProgress_vidbot(), percent: 95 [03:22:07.169] index :: _onStepProgress_vidbot(), percent: 100 [03:22:09.261] StreamManager :: render(), Promise.all.then... [03:22:09.261] Vidbot :: StreamMgr.on( 'RENDER_COMPLETED' ), data: undefined [03:22:09.261] Vidbot :: _next(), _stepIndex:3 of 4 [03:22:09.262] index :: _onStepCompleted_vidbot(), step: 3 [03:22:09.262] index :: _onStepStarted_vidbot(), step: 4 [03:22:09.263] Vidbot :: step[3], label:Encoding Media [03:22:09.266] CanvasFilters :: Overlay() [03:22:09.267] AudioStream[audio_vo] :: inputOptions() [03:22:09.267] AudioFilters :: Volume() [03:22:09.267] filter: [2:a]volume=1[2_vol] [03:22:09.267] AudioFilters :: Delay() [03:22:09.267] filter: [2_vol]adelay=0|0[2_del] [03:22:09.267] AudioStream[bg_music] :: inputOptions() [03:22:09.267] AudioFilters :: Volume() [03:22:09.267] filter: [3:a]volume=0.25[3_vol] [03:22:09.268] AudioFilters :: FadeOut() [03:22:09.268] filter: [3_vol]afade=t=out:st=60.55:d=1[3_fadeout] [03:22:09.268] AudioFilters :: Delay() [03:22:09.268] filter: [3_fadeout]adelay=0|0[3_del] [03:22:09.268] AudioFilters :: Mix() [03:22:09.268] filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [03:22:09.268] mixed filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [03:22:09.271] hang.time: 60 [03:22:09.391] Vidbot :: ffmpeg.on( 'start' ) [03:22:09.392] ffmpeg -f lavfi -i color=c=000000:s=640x360:r=30:duration=60.55 -r 30 -i ./tmp/canvas_1492342636512_%05d.png -to 00:01:00.549 -i file:///var/www/html/ [03:22:09.392] clients/10231/audio/C14C065A-8B48-7E95-2124-B71EFDE7A1E7.mp3 -to 00:01:00.549 -i file:///var/app/video_pre_processor/assets/vidbot/_files/audio/Orches [03:22:09.392] tra-3_30.mp3 -y -filter_complex [0:v][1:v]overlay=x=0:y=0[1_out];[2:a]volume=1[2_vol];[2_vol]adelay=0|0[2_del];[3:a]volume=0.25[3_vol];[3_vol]afade=t= [03:22:09.392] out:st=60.55:d=1[3_fadeout];[3_fadeout]adelay=0|0[3_del];[2_del][3_del]amix=inputs=2:duration=longest[a_out] -acodec aac -vcodec libx264 -r 30 -f mp4 [03:22:09.392] -map [a_out] -map [1_out] -preset veryfast -crf 18 -movflags frag_keyframe+empty_moov -pix_fmt yuv420p /var/www/html/clients/10231/video/C14C065A-8B48 [03:22:09.392] -7E95-2124-B71EFDE7A1E7.mp4 [03:22:09.626] index :: _onStepProgress_vidbot(), percent: -3430633290 [03:22:09.987] index :: _onStepProgress_vidbot(), percent: 1 [03:22:11.006] index :: _onStepProgress_vidbot(), percent: 6 [03:22:12.011] index :: _onStepProgress_vidbot(), percent: 11 [03:22:13.009] index :: _onStepProgress_vidbot(), percent: 15 [03:22:14.525] index :: _onStepProgress_vidbot(), percent: 22 [03:22:15.543] index :: _onStepProgress_vidbot(), percent: 27 [03:22:16.549] index :: _onStepProgress_vidbot(), percent: 31 [03:22:17.565] index :: _onStepProgress_vidbot(), percent: 36 [03:22:18.569] index :: _onStepProgress_vidbot(), percent: 41 [03:22:19.580] index :: _onStepProgress_vidbot(), percent: 47 [03:22:20.083] index :: _onStepProgress_vidbot(), percent: 50 [03:22:21.601] index :: _onStepProgress_vidbot(), percent: 57 [03:22:22.603] index :: _onStepProgress_vidbot(), percent: 62 [03:22:23.616] index :: _onStepProgress_vidbot(), percent: 67 [03:22:24.118] index :: _onStepProgress_vidbot(), percent: 70 [03:22:25.135] index :: _onStepProgress_vidbot(), percent: 75 [03:22:26.145] index :: _onStepProgress_vidbot(), percent: 81 [03:22:27.165] index :: _onStepProgress_vidbot(), percent: 87 [03:22:28.179] index :: _onStepProgress_vidbot(), percent: 92 [03:22:28.684] index :: _onStepProgress_vidbot(), percent: 95 [03:22:29.751] index :: _onStepProgress_vidbot(), percent: 100 [03:22:29.797] Vidbot :: ffmpeg.on( 'end' ), Done! [03:22:29.798] StreamManager :: dispose() [03:22:29.798] CanvasStream[canvas_1492342636512] :: dispose() [03:22:29.803] Vidbot :: fflog.on( 'finish' ) [03:22:29.803] fflog.path: /var/www/html/clients/10231/video/C14C065A-8B48-7E95-2124-B71EFDE7A1E7.mp4.fflog [03:22:29.804] Vidbot :: _next(), _stepIndex:4 of 4 [03:22:29.804] index :: _onStepCompleted_vidbot(), step: 4 [03:22:29.804] index :: _onComplete_vidbot(), data: { stepTime: 0, appTime: 368.011, output: '/var/www/html/clients/10231/video/C14C065A-8B48-7E95-2124-B71EFDE7A1E7.mp4', duration: 60.55 } --------------------------------------------------------------------------------------------------------------- Output File : /var/app/video_pre_processor/jobs/postp//var/www/html/clients/10231/video/C14C065A-8B48-7E95-2124-B71EFDE7A1E7.mp4 Media Duration : 00:01:00.549 Generation Time : 00:06:08.011 ---------------------------------------------------------------------------------------------------------------