--------------------------------------------------------------------------------------------------------------- INITIALIZING VIDBOT, v1.6.0... --------------------------------------------------------------------------------------------------------------- [05:36:33.542] Vidbot :: start() [05:36:33.542] Vidbot :: _next(), _stepIndex:0 of 4 [05:36:33.543] index :: _onStepStarted_vidbot(), step: 1 [05:36:33.544] Vidbot :: step[0], label:Initializing Core [05:36:33.557] index :: _onStepProgress_vidbot(), percent: 20 [05:36:33.557] Vidbot :: _parse() [05:36:33.559] index :: _onStepProgress_vidbot(), percent: 40 [05:36:33.559] Vidbot :: _validate() [05:36:33.560] index :: _onStepProgress_vidbot(), percent: 60 [05:36:33.560] Vidbot :: _fonts() [05:36:33.560] FabricFontManager :: add(), id: SourceSansPro-Bold [05:36:33.560] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Bold.ttf [05:36:33.568] FabricFontManager :: add(), id: SourceSansPro-Light [05:36:33.569] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Light.ttf [05:36:33.569] FabricFontManager :: add(), id: DINOT-Bold [05:36:33.570] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Bold.otf [05:36:33.570] FabricFontManager :: add(), id: DINOT-Light [05:36:33.570] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Light.otf [05:36:33.571] FabricFontManager :: add(), id: TradeGothicLTStd-Regular [05:36:33.571] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Regular.otf [05:36:33.572] FabricFontManager :: add(), id: TradeGothicLTStd-Bold [05:36:33.572] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Bold.otf [05:36:33.573] index :: _onStepProgress_vidbot(), percent: 80 [05:36:33.573] Vidbot :: _clips() [05:36:33.574] StreamManager :: add(), id:audio_vo, type:audio [05:36:33.574] AudioClip[audio_vo] :: constructor() [05:36:33.575] InputStream[audio_vo] :: constructor() [05:36:33.575] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'audio_vo', clipId: null } [05:36:33.577] StreamManager :: add(), id:bg_music, type:audio [05:36:33.578] AudioClip[bg_music] :: constructor() [05:36:33.578] InputStream[bg_music] :: constructor() [05:36:33.578] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'bg_music', clipId: null } [05:36:33.578] StreamManager :: add(), id:simplefadedisplay, type:canvas [05:36:33.578] CanvasStream[canvas_183477555382] :: constructor() [05:36:33.579] InputStream[canvas_183477555382] :: constructor() [05:36:33.661] KenBurnsSlideshow[simplefadedisplay] :: constructor() [05:36:33.662] Overlay[simplefadedisplay] :: constructor() [05:36:33.662] CanvasClip[simplefadedisplay] :: constructor() [05:36:33.662] Clip[simplefadedisplay] :: constructor() [05:36:33.662] clip:"simplefadedisplay" added to stream:"canvas_183477555382" [05:36:33.662] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_183477555382', clipId: 'simplefadedisplay' } [05:36:33.663] StreamManager :: add(), id:caption, type:canvas [05:36:33.663] RenCaption[caption] :: constructor() [05:36:33.663] Ren[caption] :: constructor() [05:36:33.663] Overlay[caption] :: constructor() [05:36:33.663] CanvasClip[caption] :: constructor() [05:36:33.663] Clip[caption] :: constructor() [05:36:33.663] clip:"caption" added to stream:"canvas_183477555382" [05:36:33.663] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_183477555382', clipId: 'caption' } [05:36:33.663] all added... [05:36:33.663] Vidbot :: _next(), _stepIndex:1 of 4 [05:36:33.664] index :: _onStepCompleted_vidbot(), step: 1 [05:36:33.664] index :: _onStepStarted_vidbot(), step: 2 [05:36:33.664] Vidbot :: step[1], label:Initializing Input Streams [05:36:33.665] StreamManager :: init() [05:36:33.665] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'audio_vo', progress: 0.3333333333333333 } [05:36:33.665] index :: _onStepProgress_vidbot(), percent: 33 [05:36:33.665] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'bg_music', progress: 0.6666666666666666 } [05:36:33.666] index :: _onStepProgress_vidbot(), percent: 67 [05:36:33.666] CanvasStream[canvas_183477555382] :: _init(), BEGIN [05:36:33.666] i:0, c.id:simplefadedisplay [05:36:33.667] KenBurnsSlideshow[simplefadedisplay] :: _init(), BEGIN [05:36:33.667] KenBurnsSlideshow[simplefadedisplay] :: _validate() [05:36:33.667] KenBurnsSlideshow[undefined] :: _validateAnim() [05:36:33.668] KenBurnsSlideshow[undefined] :: _validateTheme() [05:36:33.669] i:1, c.id:caption [05:36:33.669] RenCaption[caption] :: _init() [05:36:33.670] RenCaption[caption] :: _validate() [05:36:33.671] KenBurnsSlideshow[simplefadedisplay] :: _build() [05:36:33.677] AnimatedImageFrame[aif] :: constructor() [05:36:33.678] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.678] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_1.jpg [05:36:33.691] RenCaption[caption] :: _build() [05:36:33.708] Overlay[caption] :: _animate() [05:36:33.711] CanvasStream[caption] :: _init(), p.then() [05:36:33.753] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.756] AnimatedImageFrame[aif] :: _init(), END [05:36:33.757] AnimatedImageFrame[aif] :: constructor() [05:36:33.758] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.758] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_2.jpg [05:36:33.779] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.781] AnimatedImageFrame[aif] :: _init(), END [05:36:33.781] AnimatedImageFrame[aif] :: constructor() [05:36:33.781] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.782] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_3.jpg [05:36:33.803] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.804] AnimatedImageFrame[aif] :: _init(), END [05:36:33.805] AnimatedImageFrame[aif] :: constructor() [05:36:33.805] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.805] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_4.jpg [05:36:33.824] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.825] AnimatedImageFrame[aif] :: _init(), END [05:36:33.826] AnimatedImageFrame[aif] :: constructor() [05:36:33.826] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.826] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_5.jpg [05:36:33.842] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.843] AnimatedImageFrame[aif] :: _init(), END [05:36:33.844] AnimatedImageFrame[aif] :: constructor() [05:36:33.844] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.844] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_6.jpg [05:36:33.863] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.864] AnimatedImageFrame[aif] :: _init(), END [05:36:33.865] AnimatedImageFrame[aif] :: constructor() [05:36:33.865] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.865] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_7.jpg [05:36:33.882] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.884] AnimatedImageFrame[aif] :: _init(), END [05:36:33.884] AnimatedImageFrame[aif] :: constructor() [05:36:33.884] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.884] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_8.jpg [05:36:33.903] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.905] AnimatedImageFrame[aif] :: _init(), END [05:36:33.905] AnimatedImageFrame[aif] :: constructor() [05:36:33.905] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.905] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_9.jpg [05:36:33.924] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.925] AnimatedImageFrame[aif] :: _init(), END [05:36:33.926] AnimatedImageFrame[aif] :: constructor() [05:36:33.926] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.926] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_10.jpg [05:36:33.943] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.944] AnimatedImageFrame[aif] :: _init(), END [05:36:33.945] AnimatedImageFrame[aif] :: constructor() [05:36:33.945] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.945] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_11.jpg [05:36:33.963] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.964] AnimatedImageFrame[aif] :: _init(), END [05:36:33.965] AnimatedImageFrame[aif] :: constructor() [05:36:33.965] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.965] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_12.jpg [05:36:33.986] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:33.988] AnimatedImageFrame[aif] :: _init(), END [05:36:33.988] AnimatedImageFrame[aif] :: constructor() [05:36:33.988] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:33.988] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_13.jpg [05:36:34.008] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:34.009] AnimatedImageFrame[aif] :: _init(), END [05:36:34.010] AnimatedImageFrame[aif] :: constructor() [05:36:34.010] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:34.010] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_14.jpg [05:36:34.028] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:34.030] AnimatedImageFrame[aif] :: _init(), END [05:36:34.030] AnimatedImageFrame[aif] :: constructor() [05:36:34.030] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:34.030] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_15.jpg [05:36:34.049] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:34.050] AnimatedImageFrame[aif] :: _init(), END [05:36:34.051] AnimatedImageFrame[aif] :: constructor() [05:36:34.051] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:34.051] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_16.jpg [05:36:34.071] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:34.073] AnimatedImageFrame[aif] :: _init(), END [05:36:34.073] AnimatedImageFrame[aif] :: constructor() [05:36:34.073] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:34.073] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_17.jpg [05:36:34.093] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:34.094] AnimatedImageFrame[aif] :: _init(), END [05:36:34.095] AnimatedImageFrame[aif] :: constructor() [05:36:34.095] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:34.095] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_18.jpg [05:36:34.114] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:34.115] AnimatedImageFrame[aif] :: _init(), END [05:36:34.116] AnimatedImageFrame[aif] :: constructor() [05:36:34.116] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:34.116] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_19.jpg [05:36:34.141] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:34.142] AnimatedImageFrame[aif] :: _init(), END [05:36:34.143] AnimatedImageFrame[aif] :: constructor() [05:36:34.143] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:34.143] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_20.jpg [05:36:34.163] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:34.165] AnimatedImageFrame[aif] :: _init(), END [05:36:34.165] AnimatedImageFrame[aif] :: constructor() [05:36:34.165] AnimatedImageFrame[aif] :: _init(), BEGIN [05:36:34.165] CanvasClip :: LoadImageWithPromise(), src: 13AB07B4-6F7A-D032-31DE-FB7D932E996B_1.jpg [05:36:34.188] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:36:34.189] AnimatedImageFrame[aif] :: _init(), END [05:36:34.189] Overlay[simplefadedisplay] :: _animate() [05:36:34.190] KenBurnsSlideshow[simplefadedisplay] :: _init(), END [05:36:34.190] CanvasStream[simplefadedisplay] :: _init(), p.then() [05:36:34.190] CanvasStream[canvas_183477555382] :: _init(), promise.all.then() [05:36:34.192] CanvasStream[canvas_183477555382] :: _init(), END [05:36:34.193] StreamMangaer :: init(), stream[canvas_183477555382].then() [05:36:34.193] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'canvas_183477555382', progress: 1 } [05:36:34.193] index :: _onStepProgress_vidbot(), percent: 100 [05:36:34.193] StreamManager :: init(), promise.all.then... [05:36:34.193] Vidbot :: StreamMgr.on( 'INITED' ) [05:36:34.193] Vidbot :: _next(), _stepIndex:2 of 4 [05:36:34.194] index :: _onStepCompleted_vidbot(), step: 2 [05:36:34.194] index :: _onStepStarted_vidbot(), step: 3 [05:36:34.194] Vidbot :: step[2], label:Rendering Canvas Streams [05:36:34.194] Vidbot :: StreamMgr.on( 'RENDER_STARTED' ), data: undefined [05:36:34.194] StreamManager :: render() [05:36:34.195] CanvasStream[canvas_183477555382] :: render() [05:36:34.227] index :: _onStepProgress_vidbot(), percent: 0 [05:36:51.488] index :: _onStepProgress_vidbot(), percent: 5 [05:37:10.894] index :: _onStepProgress_vidbot(), percent: 10 [05:37:29.733] index :: _onStepProgress_vidbot(), percent: 15 [05:37:45.314] index :: _onStepProgress_vidbot(), percent: 20 [05:37:59.515] index :: _onStepProgress_vidbot(), percent: 25 [05:38:16.915] index :: _onStepProgress_vidbot(), percent: 30 [05:38:33.340] index :: _onStepProgress_vidbot(), percent: 35 [05:38:52.102] index :: _onStepProgress_vidbot(), percent: 40 [05:39:09.970] index :: _onStepProgress_vidbot(), percent: 45 [05:39:22.155] index :: _onStepProgress_vidbot(), percent: 50 [05:39:40.959] index :: _onStepProgress_vidbot(), percent: 55 [05:40:03.271] index :: _onStepProgress_vidbot(), percent: 60 [05:40:21.897] index :: _onStepProgress_vidbot(), percent: 65 [05:40:39.830] index :: _onStepProgress_vidbot(), percent: 70 [05:40:59.267] index :: _onStepProgress_vidbot(), percent: 75 [05:41:19.077] index :: _onStepProgress_vidbot(), percent: 80 [05:41:38.772] index :: _onStepProgress_vidbot(), percent: 85 [05:42:00.457] index :: _onStepProgress_vidbot(), percent: 90 [05:42:22.044] index :: _onStepProgress_vidbot(), percent: 95 [05:42:42.610] index :: _onStepProgress_vidbot(), percent: 100 [05:42:44.343] StreamManager :: render(), Promise.all.then... [05:42:44.343] Vidbot :: StreamMgr.on( 'RENDER_COMPLETED' ), data: undefined [05:42:44.344] Vidbot :: _next(), _stepIndex:3 of 4 [05:42:44.344] index :: _onStepCompleted_vidbot(), step: 3 [05:42:44.345] index :: _onStepStarted_vidbot(), step: 4 [05:42:44.346] Vidbot :: step[3], label:Encoding Media [05:42:44.348] CanvasFilters :: Overlay() [05:42:44.348] AudioStream[audio_vo] :: inputOptions() [05:42:44.349] AudioFilters :: Volume() [05:42:44.349] filter: [2:a]volume=1[2_vol] [05:42:44.349] AudioFilters :: Delay() [05:42:44.349] filter: [2_vol]adelay=0|0[2_del] [05:42:44.349] AudioStream[bg_music] :: inputOptions() [05:42:44.349] AudioFilters :: Volume() [05:42:44.349] filter: [3:a]volume=0.25[3_vol] [05:42:44.349] AudioFilters :: FadeOut() [05:42:44.349] filter: [3_vol]afade=t=out:st=61.71:d=1[3_fadeout] [05:42:44.349] AudioFilters :: Delay() [05:42:44.350] filter: [3_fadeout]adelay=0|0[3_del] [05:42:44.350] AudioFilters :: Mix() [05:42:44.350] filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [05:42:44.350] mixed filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [05:42:44.352] hang.time: 60 [05:42:44.477] Vidbot :: ffmpeg.on( 'start' ) [05:42:44.477] ffmpeg -f lavfi -i color=c=000000:s=640x360:r=30:duration=61.71 -r 30 -i ./tmp/canvas_183477555382_%05d.png -to 00:01:01.710 -i file:///var/www/html/c [05:42:44.477] lients/10231/audio/13AB07B4-6F7A-D032-31DE-FB7D932E996B.mp3 -to 00:01:01.710 -i file:///var/app/video_pre_processor/assets/vidbot/_files/audio/Orchest [05:42:44.478] ra-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=o [05:42:44.478] ut:st=61.71: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 - [05:42:44.478] map [a_out] -map [1_out] -preset veryfast -crf 18 -movflags frag_keyframe+empty_moov -pix_fmt yuv420p /var/www/html/clients/10231/video/13AB07B4-6F7A- [05:42:44.478] D032-31DE-FB7D932E996B.mp4 [05:42:44.739] index :: _onStepProgress_vidbot(), percent: -3366145612 [05:42:45.089] index :: _onStepProgress_vidbot(), percent: 1 [05:42:46.606] index :: _onStepProgress_vidbot(), percent: 6 [05:42:48.139] index :: _onStepProgress_vidbot(), percent: 11 [05:42:49.647] index :: _onStepProgress_vidbot(), percent: 15 [05:42:50.655] index :: _onStepProgress_vidbot(), percent: 20 [05:42:52.190] index :: _onStepProgress_vidbot(), percent: 25 [05:42:53.693] index :: _onStepProgress_vidbot(), percent: 31 [05:42:54.711] index :: _onStepProgress_vidbot(), percent: 35 [05:42:56.229] index :: _onStepProgress_vidbot(), percent: 41 [05:42:57.232] index :: _onStepProgress_vidbot(), percent: 45 [05:42:58.738] index :: _onStepProgress_vidbot(), percent: 52 [05:42:59.246] index :: _onStepProgress_vidbot(), percent: 55 [05:43:00.243] index :: _onStepProgress_vidbot(), percent: 60 [05:43:01.254] index :: _onStepProgress_vidbot(), percent: 66 [05:43:02.266] index :: _onStepProgress_vidbot(), percent: 71 [05:43:03.286] index :: _onStepProgress_vidbot(), percent: 77 [05:43:03.787] index :: _onStepProgress_vidbot(), percent: 80 [05:43:04.797] index :: _onStepProgress_vidbot(), percent: 86 [05:43:05.803] index :: _onStepProgress_vidbot(), percent: 92 [05:43:06.314] index :: _onStepProgress_vidbot(), percent: 95 [05:43:07.476] index :: _onStepProgress_vidbot(), percent: 100 [05:43:07.570] Vidbot :: ffmpeg.on( 'end' ), Done! [05:43:07.571] StreamManager :: dispose() [05:43:07.571] CanvasStream[canvas_183477555382] :: dispose() [05:43:07.576] Vidbot :: fflog.on( 'finish' ) [05:43:07.576] fflog.path: /var/www/html/clients/10231/video/13AB07B4-6F7A-D032-31DE-FB7D932E996B.mp4.fflog [05:43:07.576] Vidbot :: _next(), _stepIndex:4 of 4 [05:43:07.576] index :: _onStepCompleted_vidbot(), step: 4 [05:43:07.577] index :: _onComplete_vidbot(), data: { stepTime: 0, appTime: 394.054, output: '/var/www/html/clients/10231/video/13AB07B4-6F7A-D032-31DE-FB7D932E996B.mp4', duration: 61.71 } --------------------------------------------------------------------------------------------------------------- Output File : /var/app/video_pre_processor/jobs/postp//var/www/html/clients/10231/video/13AB07B4-6F7A-D032-31DE-FB7D932E996B.mp4 Media Duration : 00:01:01.710 Generation Time : 00:06:34.053 ---------------------------------------------------------------------------------------------------------------