--------------------------------------------------------------------------------------------------------------- INITIALIZING VIDBOT, v1.6.0... --------------------------------------------------------------------------------------------------------------- [02:59:07.400] Vidbot :: start() [02:59:07.401] Vidbot :: _next(), _stepIndex:0 of 4 [02:59:07.401] index :: _onStepStarted_vidbot(), step: 1 [02:59:07.402] Vidbot :: step[0], label:Initializing Core [02:59:07.410] index :: _onStepProgress_vidbot(), percent: 20 [02:59:07.410] Vidbot :: _parse() [02:59:07.411] index :: _onStepProgress_vidbot(), percent: 40 [02:59:07.412] Vidbot :: _validate() [02:59:07.412] index :: _onStepProgress_vidbot(), percent: 60 [02:59:07.412] Vidbot :: _fonts() [02:59:07.413] FabricFontManager :: add(), id: SourceSansPro-Bold [02:59:07.413] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Bold.ttf [02:59:07.421] FabricFontManager :: add(), id: SourceSansPro-Light [02:59:07.421] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Light.ttf [02:59:07.422] FabricFontManager :: add(), id: DINOT-Bold [02:59:07.422] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Bold.otf [02:59:07.423] FabricFontManager :: add(), id: DINOT-Light [02:59:07.423] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Light.otf [02:59:07.424] FabricFontManager :: add(), id: TradeGothicLTStd-Regular [02:59:07.424] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Regular.otf [02:59:07.424] FabricFontManager :: add(), id: TradeGothicLTStd-Bold [02:59:07.424] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Bold.otf [02:59:07.426] index :: _onStepProgress_vidbot(), percent: 80 [02:59:07.426] Vidbot :: _clips() [02:59:07.426] StreamManager :: add(), id:audio_vo, type:audio [02:59:07.427] AudioClip[audio_vo] :: constructor() [02:59:07.427] InputStream[audio_vo] :: constructor() [02:59:07.427] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'audio_vo', clipId: null } [02:59:07.430] StreamManager :: add(), id:bg_music, type:audio [02:59:07.430] AudioClip[bg_music] :: constructor() [02:59:07.430] InputStream[bg_music] :: constructor() [02:59:07.430] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'bg_music', clipId: null } [02:59:07.430] StreamManager :: add(), id:intro, type:video [02:59:07.430] VideoStream[intro] :: constructor() [02:59:07.431] InputStream[intro] :: constructor() [02:59:07.431] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'intro', clipId: null } [02:59:07.431] StreamManager :: add(), id:simplefadedisplay, type:canvas [02:59:07.431] CanvasStream[canvas_1017232463941] :: constructor() [02:59:07.431] InputStream[canvas_1017232463941] :: constructor() [02:59:07.506] KenBurnsSlideshow[simplefadedisplay] :: constructor() [02:59:07.506] Overlay[simplefadedisplay] :: constructor() [02:59:07.506] CanvasClip[simplefadedisplay] :: constructor() [02:59:07.506] Clip[simplefadedisplay] :: constructor() [02:59:07.506] clip:"simplefadedisplay" added to stream:"canvas_1017232463941" [02:59:07.506] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_1017232463941', clipId: 'simplefadedisplay' } [02:59:07.507] StreamManager :: add(), id:caption, type:canvas [02:59:07.507] RenCaption[caption] :: constructor() [02:59:07.507] Ren[caption] :: constructor() [02:59:07.507] Overlay[caption] :: constructor() [02:59:07.507] CanvasClip[caption] :: constructor() [02:59:07.507] Clip[caption] :: constructor() [02:59:07.507] clip:"caption" added to stream:"canvas_1017232463941" [02:59:07.507] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_1017232463941', clipId: 'caption' } [02:59:07.507] StreamManager :: add(), id:outro, type:video [02:59:07.507] VideoStream[outro] :: constructor() [02:59:07.507] InputStream[outro] :: constructor() [02:59:07.508] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'outro', clipId: null } [02:59:07.508] all added... [02:59:07.508] Vidbot :: _next(), _stepIndex:1 of 4 [02:59:07.508] index :: _onStepCompleted_vidbot(), step: 1 [02:59:07.508] index :: _onStepStarted_vidbot(), step: 2 [02:59:07.508] Vidbot :: step[1], label:Initializing Input Streams [02:59:07.509] StreamManager :: init() [02:59:07.509] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'audio_vo', progress: 0.2 } [02:59:07.509] index :: _onStepProgress_vidbot(), percent: 20 [02:59:07.510] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'bg_music', progress: 0.4 } [02:59:07.510] index :: _onStepProgress_vidbot(), percent: 40 [02:59:07.510] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'intro', progress: 0.6 } [02:59:07.510] index :: _onStepProgress_vidbot(), percent: 60 [02:59:07.510] CanvasStream[canvas_1017232463941] :: _init(), BEGIN [02:59:07.510] i:0, c.id:simplefadedisplay [02:59:07.511] KenBurnsSlideshow[simplefadedisplay] :: _init(), BEGIN [02:59:07.511] KenBurnsSlideshow[simplefadedisplay] :: _validate() [02:59:07.512] KenBurnsSlideshow[undefined] :: _validateAnim() [02:59:07.512] KenBurnsSlideshow[undefined] :: _validateTheme() [02:59:07.513] i:1, c.id:caption [02:59:07.513] RenCaption[caption] :: _init() [02:59:07.513] RenCaption[caption] :: _validate() [02:59:07.514] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'outro', progress: 0.8 } [02:59:07.514] index :: _onStepProgress_vidbot(), percent: 80 [02:59:07.515] KenBurnsSlideshow[simplefadedisplay] :: _build() [02:59:07.520] AnimatedImageFrame[aif] :: constructor() [02:59:07.521] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.522] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_1.jpg [02:59:07.533] RenCaption[caption] :: _build() [02:59:07.551] Overlay[caption] :: _animate() [02:59:07.554] CanvasStream[caption] :: _init(), p.then() [02:59:07.572] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.575] AnimatedImageFrame[aif] :: _init(), END [02:59:07.577] AnimatedImageFrame[aif] :: constructor() [02:59:07.577] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.577] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_2.jpg [02:59:07.589] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.591] AnimatedImageFrame[aif] :: _init(), END [02:59:07.591] AnimatedImageFrame[aif] :: constructor() [02:59:07.591] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.591] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_3.jpg [02:59:07.605] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.606] AnimatedImageFrame[aif] :: _init(), END [02:59:07.607] AnimatedImageFrame[aif] :: constructor() [02:59:07.607] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.607] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_4.jpg [02:59:07.616] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.617] AnimatedImageFrame[aif] :: _init(), END [02:59:07.618] AnimatedImageFrame[aif] :: constructor() [02:59:07.618] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.618] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_1.jpg [02:59:07.632] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.633] AnimatedImageFrame[aif] :: _init(), END [02:59:07.633] AnimatedImageFrame[aif] :: constructor() [02:59:07.633] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.633] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_2.jpg [02:59:07.644] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.645] AnimatedImageFrame[aif] :: _init(), END [02:59:07.645] AnimatedImageFrame[aif] :: constructor() [02:59:07.645] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.645] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_3.jpg [02:59:07.658] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.658] AnimatedImageFrame[aif] :: _init(), END [02:59:07.659] AnimatedImageFrame[aif] :: constructor() [02:59:07.659] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.659] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_4.jpg [02:59:07.668] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.669] AnimatedImageFrame[aif] :: _init(), END [02:59:07.669] AnimatedImageFrame[aif] :: constructor() [02:59:07.670] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.670] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_1.jpg [02:59:07.683] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.684] AnimatedImageFrame[aif] :: _init(), END [02:59:07.684] AnimatedImageFrame[aif] :: constructor() [02:59:07.685] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.685] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_2.jpg [02:59:07.710] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.711] AnimatedImageFrame[aif] :: _init(), END [02:59:07.711] AnimatedImageFrame[aif] :: constructor() [02:59:07.711] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.712] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_3.jpg [02:59:07.724] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.725] AnimatedImageFrame[aif] :: _init(), END [02:59:07.725] AnimatedImageFrame[aif] :: constructor() [02:59:07.725] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.725] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_4.jpg [02:59:07.735] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.736] AnimatedImageFrame[aif] :: _init(), END [02:59:07.736] AnimatedImageFrame[aif] :: constructor() [02:59:07.736] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.737] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_1.jpg [02:59:07.751] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.752] AnimatedImageFrame[aif] :: _init(), END [02:59:07.752] AnimatedImageFrame[aif] :: constructor() [02:59:07.753] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.753] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_2.jpg [02:59:07.763] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.764] AnimatedImageFrame[aif] :: _init(), END [02:59:07.764] AnimatedImageFrame[aif] :: constructor() [02:59:07.764] AnimatedImageFrame[aif] :: _init(), BEGIN [02:59:07.764] CanvasClip :: LoadImageWithPromise(), src: 89B7654E-7723-97D5-591E-760054D25049_3.jpg [02:59:07.776] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [02:59:07.777] AnimatedImageFrame[aif] :: _init(), END [02:59:07.777] Overlay[simplefadedisplay] :: _animate() [02:59:07.778] KenBurnsSlideshow[simplefadedisplay] :: _init(), END [02:59:07.778] CanvasStream[simplefadedisplay] :: _init(), p.then() [02:59:07.778] CanvasStream[canvas_1017232463941] :: _init(), promise.all.then() [02:59:07.780] CanvasStream[canvas_1017232463941] :: _init(), END [02:59:07.780] StreamMangaer :: init(), stream[canvas_1017232463941].then() [02:59:07.780] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'canvas_1017232463941', progress: 1 } [02:59:07.780] index :: _onStepProgress_vidbot(), percent: 100 [02:59:07.780] StreamManager :: init(), promise.all.then... [02:59:07.781] Vidbot :: StreamMgr.on( 'INITED' ) [02:59:07.781] Vidbot :: _next(), _stepIndex:2 of 4 [02:59:07.781] index :: _onStepCompleted_vidbot(), step: 2 [02:59:07.781] index :: _onStepStarted_vidbot(), step: 3 [02:59:07.781] Vidbot :: step[2], label:Rendering Canvas Streams [02:59:07.781] Vidbot :: StreamMgr.on( 'RENDER_STARTED' ), data: undefined [02:59:07.782] StreamManager :: render() [02:59:07.782] CanvasStream[canvas_1017232463941] :: render() [02:59:07.812] index :: _onStepProgress_vidbot(), percent: 0 [02:59:10.522] index :: _onStepProgress_vidbot(), percent: 5 [02:59:13.867] index :: _onStepProgress_vidbot(), percent: 10 [02:59:17.249] index :: _onStepProgress_vidbot(), percent: 15 [02:59:20.636] index :: _onStepProgress_vidbot(), percent: 20 [02:59:24.024] index :: _onStepProgress_vidbot(), percent: 25 [02:59:27.640] index :: _onStepProgress_vidbot(), percent: 30 [02:59:31.121] index :: _onStepProgress_vidbot(), percent: 35 [02:59:39.491] index :: _onStepProgress_vidbot(), percent: 40 [02:59:57.090] index :: _onStepProgress_vidbot(), percent: 45 [03:00:09.213] index :: _onStepProgress_vidbot(), percent: 50 [03:00:19.227] index :: _onStepProgress_vidbot(), percent: 55 [03:00:40.019] index :: _onStepProgress_vidbot(), percent: 60 [03:00:53.134] index :: _onStepProgress_vidbot(), percent: 65 [03:01:04.647] index :: _onStepProgress_vidbot(), percent: 70 [03:01:22.948] index :: _onStepProgress_vidbot(), percent: 75 [03:01:38.443] index :: _onStepProgress_vidbot(), percent: 80 [03:01:48.741] index :: _onStepProgress_vidbot(), percent: 85 [03:02:02.692] index :: _onStepProgress_vidbot(), percent: 90 [03:02:17.540] index :: _onStepProgress_vidbot(), percent: 95 [03:02:23.679] index :: _onStepProgress_vidbot(), percent: 100 [03:02:24.016] StreamManager :: render(), Promise.all.then... [03:02:24.016] Vidbot :: StreamMgr.on( 'RENDER_COMPLETED' ), data: undefined [03:02:24.017] Vidbot :: _next(), _stepIndex:3 of 4 [03:02:24.017] index :: _onStepCompleted_vidbot(), step: 3 [03:02:24.017] index :: _onStepStarted_vidbot(), step: 4 [03:02:24.018] Vidbot :: step[3], label:Encoding Media [03:02:24.021] VideoStream[intro] :: inputOptions() [03:02:24.022] VideoFilters :: Scale() [03:02:24.022] VideoFilters :: Overlay() [03:02:24.023] CanvasFilters :: Overlay() [03:02:24.023] VideoStream[outro] :: inputOptions() [03:02:24.023] VideoFilters :: Tpad() [03:02:24.023] VideoFilters :: Scale() [03:02:24.023] VideoFilters :: Overlay() [03:02:24.024] AudioStream[audio_vo] :: inputOptions() [03:02:24.024] AudioFilters :: Volume() [03:02:24.024] filter: [4:a]volume=1[4_vol] [03:02:24.024] AudioFilters :: Delay() [03:02:24.025] filter: [4_vol]adelay=28040|28040[4_del] [03:02:24.025] AudioStream[bg_music] :: inputOptions() [03:02:24.025] AudioFilters :: Volume() [03:02:24.025] filter: [5:a]volume=0.25[5_vol] [03:02:24.025] AudioFilters :: FadeOut() [03:02:24.025] filter: [5_vol]afade=t=out:st=42.36:d=1[5_fadeout] [03:02:24.025] AudioFilters :: Delay() [03:02:24.025] filter: [5_fadeout]adelay=28040|28040[5_del] [03:02:24.025] VideoStream[intro] :: inputOptions() [03:02:24.025] AudioFilters :: Volume() [03:02:24.026] filter: [6:a]volume=1[6_vol] [03:02:24.026] AudioFilters :: Delay() [03:02:24.026] filter: [6_vol]adelay=0|0[6_del] [03:02:24.026] VideoStream[outro] :: inputOptions() [03:02:24.026] AudioFilters :: Volume() [03:02:24.026] filter: [7:a]volume=1[7_vol] [03:02:24.026] AudioFilters :: Delay() [03:02:24.026] filter: [7_vol]adelay=70400|70400[7_del] [03:02:24.026] AudioFilters :: Mix() [03:02:24.026] filter: [4_del][5_del][6_del][7_del]amix=inputs=4:duration=longest[a_out] [03:02:24.026] mixed filter: [4_del][5_del][6_del][7_del]amix=inputs=4:duration=longest[a_out] [03:02:24.029] hang.time: 60 [03:02:24.145] Vidbot :: ffmpeg.on( 'start' ) [03:02:24.145] ffmpeg -f lavfi -i color=c=000000:s=640x360:r=30:duration=76.5 -to 00:00:28.039 -i file:///var/www/html/clients/9064/library/intro.mp4 -r 30 -i ./tmp/ [03:02:24.145] canvas_1017232463941_%05d.png -to 00:00:06.099 -i file:///var/www/html/clients/9064/library/outro.mp4 -to 00:00:42.359 -i file:///var/www/html/clients [03:02:24.145] /9064/audio/89B7654E-7723-97D5-591E-760054D25049.mp3 -to 00:00:42.359 -i file:///var/app/video_pre_processor/assets/vidbot/_files/audio/Concept9.mp3 - [03:02:24.145] to 00:00:28.039 -i file:///var/www/html/clients/9064/library/intro.mp4 -to 00:00:06.099 -i file:///var/www/html/clients/9064/library/outro.mp4 -y -fil [03:02:24.145] ter_complex [1:v]scale=w=640:h=360[1_scaled];[0:v][1_scaled]overlay=x=0:y=0:enable='between(t,0,28.04)'[1_out];[1_out][2:v]overlay=x=0:y=0[2_out];[3:v [03:02:24.145] ]tpad=start_duration=70.35000000000001[3_tpad];[3_tpad]scale=w=640:h=360[3_scaled];[2_out][3_scaled]overlay=x=0:y=0:enable='between(t,70.4,76.5)'[3_ou [03:02:24.145] t];[4:a]volume=1[4_vol];[4_vol]adelay=28040|28040[4_del];[5:a]volume=0.25[5_vol];[5_vol]afade=t=out:st=42.36:d=1[5_fadeout];[5_fadeout]adelay=28040|28 [03:02:24.145] 040[5_del];[6:a]volume=1[6_vol];[6_vol]adelay=0|0[6_del];[7:a]volume=1[7_vol];[7_vol]adelay=70400|70400[7_del];[4_del][5_del][6_del][7_del]amix=inputs [03:02:24.146] =4:duration=longest[a_out] -acodec aac -vcodec libx264 -r 30 -f mp4 -map [a_out] -map [3_out] -preset veryfast -crf 18 -movflags frag_keyframe+empty_m [03:02:24.146] oov -pix_fmt yuv420p /var/www/html/clients/9064/video/89B7654E-7723-97D5-591E-760054D25049.mp4 [03:02:24.487] index :: _onStepProgress_vidbot(), percent: -2715357460 [03:02:24.850] index :: _onStepProgress_vidbot(), percent: 1 [03:02:25.853] index :: _onStepProgress_vidbot(), percent: 5 [03:02:27.360] index :: _onStepProgress_vidbot(), percent: 11 [03:02:28.364] index :: _onStepProgress_vidbot(), percent: 16 [03:02:29.365] index :: _onStepProgress_vidbot(), percent: 21 [03:02:30.371] index :: _onStepProgress_vidbot(), percent: 25 [03:02:31.881] index :: _onStepProgress_vidbot(), percent: 32 [03:02:32.882] index :: _onStepProgress_vidbot(), percent: 35 [03:02:34.384] index :: _onStepProgress_vidbot(), percent: 41 [03:02:35.898] index :: _onStepProgress_vidbot(), percent: 47 [03:02:36.399] index :: _onStepProgress_vidbot(), percent: 50 [03:02:37.922] index :: _onStepProgress_vidbot(), percent: 57 [03:02:38.925] index :: _onStepProgress_vidbot(), percent: 62 [03:02:39.425] index :: _onStepProgress_vidbot(), percent: 65 [03:02:40.942] index :: _onStepProgress_vidbot(), percent: 71 [03:02:41.931] index :: _onStepProgress_vidbot(), percent: 75 [03:02:43.443] index :: _onStepProgress_vidbot(), percent: 81 [03:02:44.945] index :: _onStepProgress_vidbot(), percent: 86 [03:02:45.953] index :: _onStepProgress_vidbot(), percent: 91 [03:02:46.452] index :: _onStepProgress_vidbot(), percent: 96 [03:02:46.684] index :: _onStepProgress_vidbot(), percent: 100 [03:02:46.744] Vidbot :: ffmpeg.on( 'end' ), Done! [03:02:46.744] StreamManager :: dispose() [03:02:46.745] CanvasStream[canvas_1017232463941] :: dispose() [03:02:46.763] Vidbot :: fflog.on( 'finish' ) [03:02:46.763] fflog.path: /var/www/html/clients/9064/video/89B7654E-7723-97D5-591E-760054D25049.mp4.fflog [03:02:46.763] Vidbot :: _next(), _stepIndex:4 of 4 [03:02:46.763] index :: _onStepCompleted_vidbot(), step: 4 [03:02:46.764] index :: _onComplete_vidbot(), data: { stepTime: 0, appTime: 219.381, output: '/var/www/html/clients/9064/video/89B7654E-7723-97D5-591E-760054D25049.mp4', duration: 76.5 } --------------------------------------------------------------------------------------------------------------- Output File : /var/app/video_pre_processor/jobs/postp//var/www/html/clients/9064/video/89B7654E-7723-97D5-591E-760054D25049.mp4 Media Duration : 00:01:16.500 Generation Time : 00:03:39.381 ---------------------------------------------------------------------------------------------------------------