--------------------------------------------------------------------------------------------------------------- INITIALIZING VIDBOT, v1.6.0... --------------------------------------------------------------------------------------------------------------- [05:03:20.928] Vidbot :: start() [05:03:20.929] Vidbot :: _next(), _stepIndex:0 of 4 [05:03:20.929] index :: _onStepStarted_vidbot(), step: 1 [05:03:20.931] Vidbot :: step[0], label:Initializing Core [05:03:20.940] index :: _onStepProgress_vidbot(), percent: 20 [05:03:20.940] Vidbot :: _parse() [05:03:20.941] index :: _onStepProgress_vidbot(), percent: 40 [05:03:20.941] Vidbot :: _validate() [05:03:20.942] index :: _onStepProgress_vidbot(), percent: 60 [05:03:20.943] Vidbot :: _fonts() [05:03:20.943] FabricFontManager :: add(), id: SourceSansPro-Bold [05:03:20.943] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Bold.ttf [05:03:20.952] FabricFontManager :: add(), id: SourceSansPro-Light [05:03:20.952] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Light.ttf [05:03:20.953] FabricFontManager :: add(), id: DINOT-Bold [05:03:20.953] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Bold.otf [05:03:20.954] FabricFontManager :: add(), id: DINOT-Light [05:03:20.954] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Light.otf [05:03:20.955] FabricFontManager :: add(), id: TradeGothicLTStd-Regular [05:03:20.955] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Regular.otf [05:03:20.956] FabricFontManager :: add(), id: TradeGothicLTStd-Bold [05:03:20.956] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Bold.otf [05:03:20.957] index :: _onStepProgress_vidbot(), percent: 80 [05:03:20.958] Vidbot :: _clips() [05:03:20.958] StreamManager :: add(), id:audio_vo, type:audio [05:03:20.959] AudioClip[audio_vo] :: constructor() [05:03:20.959] InputStream[audio_vo] :: constructor() [05:03:20.960] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'audio_vo', clipId: null } [05:03:20.963] StreamManager :: add(), id:bg_music, type:audio [05:03:20.963] AudioClip[bg_music] :: constructor() [05:03:20.963] InputStream[bg_music] :: constructor() [05:03:20.963] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'bg_music', clipId: null } [05:03:20.963] StreamManager :: add(), id:simplefadedisplay, type:canvas [05:03:20.964] CanvasStream[canvas_1389749762726] :: constructor() [05:03:20.964] InputStream[canvas_1389749762726] :: constructor() [05:03:21.057] KenBurnsSlideshow[simplefadedisplay] :: constructor() [05:03:21.057] Overlay[simplefadedisplay] :: constructor() [05:03:21.058] CanvasClip[simplefadedisplay] :: constructor() [05:03:21.058] Clip[simplefadedisplay] :: constructor() [05:03:21.058] clip:"simplefadedisplay" added to stream:"canvas_1389749762726" [05:03:21.058] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_1389749762726', clipId: 'simplefadedisplay' } [05:03:21.058] StreamManager :: add(), id:caption, type:canvas [05:03:21.058] RenCaption[caption] :: constructor() [05:03:21.059] Ren[caption] :: constructor() [05:03:21.059] Overlay[caption] :: constructor() [05:03:21.059] CanvasClip[caption] :: constructor() [05:03:21.059] Clip[caption] :: constructor() [05:03:21.059] clip:"caption" added to stream:"canvas_1389749762726" [05:03:21.059] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_1389749762726', clipId: 'caption' } [05:03:21.059] all added... [05:03:21.059] Vidbot :: _next(), _stepIndex:1 of 4 [05:03:21.059] index :: _onStepCompleted_vidbot(), step: 1 [05:03:21.060] index :: _onStepStarted_vidbot(), step: 2 [05:03:21.060] Vidbot :: step[1], label:Initializing Input Streams [05:03:21.061] StreamManager :: init() [05:03:21.061] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'audio_vo', progress: 0.3333333333333333 } [05:03:21.061] index :: _onStepProgress_vidbot(), percent: 33 [05:03:21.061] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'bg_music', progress: 0.6666666666666666 } [05:03:21.061] index :: _onStepProgress_vidbot(), percent: 67 [05:03:21.062] CanvasStream[canvas_1389749762726] :: _init(), BEGIN [05:03:21.062] i:0, c.id:simplefadedisplay [05:03:21.062] KenBurnsSlideshow[simplefadedisplay] :: _init(), BEGIN [05:03:21.063] KenBurnsSlideshow[simplefadedisplay] :: _validate() [05:03:21.063] KenBurnsSlideshow[undefined] :: _validateAnim() [05:03:21.064] KenBurnsSlideshow[undefined] :: _validateTheme() [05:03:21.065] i:1, c.id:caption [05:03:21.065] RenCaption[caption] :: _init() [05:03:21.065] RenCaption[caption] :: _validate() [05:03:21.067] KenBurnsSlideshow[simplefadedisplay] :: _build() [05:03:21.073] AnimatedImageFrame[aif] :: constructor() [05:03:21.075] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.075] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_1.jpg [05:03:21.088] RenCaption[caption] :: _build() [05:03:21.106] Overlay[caption] :: _animate() [05:03:21.109] CanvasStream[caption] :: _init(), p.then() [05:03:21.132] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.134] AnimatedImageFrame[aif] :: _init(), END [05:03:21.136] AnimatedImageFrame[aif] :: constructor() [05:03:21.136] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.136] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_2.jpg [05:03:21.156] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.157] AnimatedImageFrame[aif] :: _init(), END [05:03:21.157] AnimatedImageFrame[aif] :: constructor() [05:03:21.158] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.158] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_3.jpg [05:03:21.175] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.176] AnimatedImageFrame[aif] :: _init(), END [05:03:21.177] AnimatedImageFrame[aif] :: constructor() [05:03:21.177] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.177] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_4.jpg [05:03:21.194] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.195] AnimatedImageFrame[aif] :: _init(), END [05:03:21.195] AnimatedImageFrame[aif] :: constructor() [05:03:21.196] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.196] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_5.jpg [05:03:21.212] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.212] AnimatedImageFrame[aif] :: _init(), END [05:03:21.213] AnimatedImageFrame[aif] :: constructor() [05:03:21.213] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.213] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_6.jpg [05:03:21.231] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.232] AnimatedImageFrame[aif] :: _init(), END [05:03:21.232] AnimatedImageFrame[aif] :: constructor() [05:03:21.232] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.233] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_7.jpg [05:03:21.251] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.252] AnimatedImageFrame[aif] :: _init(), END [05:03:21.252] AnimatedImageFrame[aif] :: constructor() [05:03:21.253] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.253] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_8.jpg [05:03:21.271] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.272] AnimatedImageFrame[aif] :: _init(), END [05:03:21.272] AnimatedImageFrame[aif] :: constructor() [05:03:21.272] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.272] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_9.jpg [05:03:21.290] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.291] AnimatedImageFrame[aif] :: _init(), END [05:03:21.292] AnimatedImageFrame[aif] :: constructor() [05:03:21.292] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.292] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_10.jpg [05:03:21.311] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.312] AnimatedImageFrame[aif] :: _init(), END [05:03:21.313] AnimatedImageFrame[aif] :: constructor() [05:03:21.313] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.313] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_11.jpg [05:03:21.331] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.332] AnimatedImageFrame[aif] :: _init(), END [05:03:21.332] AnimatedImageFrame[aif] :: constructor() [05:03:21.333] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.333] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_12.jpg [05:03:21.350] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.351] AnimatedImageFrame[aif] :: _init(), END [05:03:21.351] AnimatedImageFrame[aif] :: constructor() [05:03:21.351] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.352] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_13.jpg [05:03:21.370] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.371] AnimatedImageFrame[aif] :: _init(), END [05:03:21.371] AnimatedImageFrame[aif] :: constructor() [05:03:21.372] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.372] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_14.jpg [05:03:21.389] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.390] AnimatedImageFrame[aif] :: _init(), END [05:03:21.390] AnimatedImageFrame[aif] :: constructor() [05:03:21.390] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.390] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_15.jpg [05:03:21.407] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.408] AnimatedImageFrame[aif] :: _init(), END [05:03:21.409] AnimatedImageFrame[aif] :: constructor() [05:03:21.409] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.409] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_16.jpg [05:03:21.426] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.427] AnimatedImageFrame[aif] :: _init(), END [05:03:21.427] AnimatedImageFrame[aif] :: constructor() [05:03:21.427] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.427] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_17.jpg [05:03:21.444] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.445] AnimatedImageFrame[aif] :: _init(), END [05:03:21.446] AnimatedImageFrame[aif] :: constructor() [05:03:21.446] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.446] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_18.jpg [05:03:21.460] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.461] AnimatedImageFrame[aif] :: _init(), END [05:03:21.461] AnimatedImageFrame[aif] :: constructor() [05:03:21.462] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.462] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_19.jpg [05:03:21.482] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.483] AnimatedImageFrame[aif] :: _init(), END [05:03:21.483] AnimatedImageFrame[aif] :: constructor() [05:03:21.484] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.484] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_20.jpg [05:03:21.499] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.500] AnimatedImageFrame[aif] :: _init(), END [05:03:21.500] AnimatedImageFrame[aif] :: constructor() [05:03:21.500] AnimatedImageFrame[aif] :: _init(), BEGIN [05:03:21.500] CanvasClip :: LoadImageWithPromise(), src: 0E7238D5-42A8-99EB-28D2-1AA0524A172D_1.jpg [05:03:21.517] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [05:03:21.518] AnimatedImageFrame[aif] :: _init(), END [05:03:21.518] Overlay[simplefadedisplay] :: _animate() [05:03:21.519] KenBurnsSlideshow[simplefadedisplay] :: _init(), END [05:03:21.519] CanvasStream[simplefadedisplay] :: _init(), p.then() [05:03:21.519] CanvasStream[canvas_1389749762726] :: _init(), promise.all.then() [05:03:21.521] CanvasStream[canvas_1389749762726] :: _init(), END [05:03:21.521] StreamMangaer :: init(), stream[canvas_1389749762726].then() [05:03:21.521] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'canvas_1389749762726', progress: 1 } [05:03:21.521] index :: _onStepProgress_vidbot(), percent: 100 [05:03:21.521] StreamManager :: init(), promise.all.then... [05:03:21.521] Vidbot :: StreamMgr.on( 'INITED' ) [05:03:21.522] Vidbot :: _next(), _stepIndex:2 of 4 [05:03:21.522] index :: _onStepCompleted_vidbot(), step: 2 [05:03:21.522] index :: _onStepStarted_vidbot(), step: 3 [05:03:21.522] Vidbot :: step[2], label:Rendering Canvas Streams [05:03:21.522] Vidbot :: StreamMgr.on( 'RENDER_STARTED' ), data: undefined [05:03:21.523] StreamManager :: render() [05:03:21.523] CanvasStream[canvas_1389749762726] :: render() [05:03:21.554] index :: _onStepProgress_vidbot(), percent: 0 [05:03:35.653] index :: _onStepProgress_vidbot(), percent: 5 [05:03:53.956] index :: _onStepProgress_vidbot(), percent: 10 [05:04:12.078] index :: _onStepProgress_vidbot(), percent: 15 [05:04:27.728] index :: _onStepProgress_vidbot(), percent: 20 [05:04:43.745] index :: _onStepProgress_vidbot(), percent: 25 [05:05:00.365] index :: _onStepProgress_vidbot(), percent: 30 [05:05:17.509] index :: _onStepProgress_vidbot(), percent: 35 [05:05:34.849] index :: _onStepProgress_vidbot(), percent: 40 [05:05:53.400] index :: _onStepProgress_vidbot(), percent: 45 [05:06:10.005] index :: _onStepProgress_vidbot(), percent: 50 [05:06:28.072] index :: _onStepProgress_vidbot(), percent: 55 [05:06:45.608] index :: _onStepProgress_vidbot(), percent: 60 [05:07:03.961] index :: _onStepProgress_vidbot(), percent: 65 [05:07:22.405] index :: _onStepProgress_vidbot(), percent: 70 [05:07:38.322] index :: _onStepProgress_vidbot(), percent: 75 [05:07:55.023] index :: _onStepProgress_vidbot(), percent: 80 [05:08:11.010] index :: _onStepProgress_vidbot(), percent: 85 [05:08:24.224] index :: _onStepProgress_vidbot(), percent: 90 [05:08:41.711] index :: _onStepProgress_vidbot(), percent: 95 [05:08:56.462] index :: _onStepProgress_vidbot(), percent: 100 [05:08:58.383] StreamManager :: render(), Promise.all.then... [05:08:58.384] Vidbot :: StreamMgr.on( 'RENDER_COMPLETED' ), data: undefined [05:08:58.384] Vidbot :: _next(), _stepIndex:3 of 4 [05:08:58.384] index :: _onStepCompleted_vidbot(), step: 3 [05:08:58.385] index :: _onStepStarted_vidbot(), step: 4 [05:08:58.386] Vidbot :: step[3], label:Encoding Media [05:08:58.388] CanvasFilters :: Overlay() [05:08:58.388] AudioStream[audio_vo] :: inputOptions() [05:08:58.389] AudioFilters :: Volume() [05:08:58.389] filter: [2:a]volume=1[2_vol] [05:08:58.389] AudioFilters :: Delay() [05:08:58.389] filter: [2_vol]adelay=0|0[2_del] [05:08:58.389] AudioStream[bg_music] :: inputOptions() [05:08:58.389] AudioFilters :: Volume() [05:08:58.389] filter: [3:a]volume=0.25[3_vol] [05:08:58.389] AudioFilters :: FadeOut() [05:08:58.390] filter: [3_vol]afade=t=out:st=60.29:d=1[3_fadeout] [05:08:58.390] AudioFilters :: Delay() [05:08:58.390] filter: [3_fadeout]adelay=0|0[3_del] [05:08:58.390] AudioFilters :: Mix() [05:08:58.390] filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [05:08:58.390] mixed filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [05:08:58.392] hang.time: 60 [05:08:58.524] Vidbot :: ffmpeg.on( 'start' ) [05:08:58.525] ffmpeg -f lavfi -i color=c=000000:s=640x360:r=30:duration=60.29 -r 30 -i ./tmp/canvas_1389749762726_%05d.png -to 00:01:00.289 -i file:///var/www/html/ [05:08:58.525] clients/10231/audio/0E7238D5-42A8-99EB-28D2-1AA0524A172D.mp3 -to 00:01:00.289 -i file:///var/app/video_pre_processor/assets/vidbot/_files/audio/Concep [05:08:58.525] t7.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=out:st [05:08:58.525] =60.29: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 -map [ [05:08:58.525] a_out] -map [1_out] -preset veryfast -crf 18 -movflags frag_keyframe+empty_moov -pix_fmt yuv420p /var/www/html/clients/10231/video/0E7238D5-42A8-99EB- [05:08:58.525] 28D2-1AA0524A172D.mp4 [05:08:58.723] index :: _onStepProgress_vidbot(), percent: -3445427861 [05:08:59.120] index :: _onStepProgress_vidbot(), percent: 1 [05:09:00.641] index :: _onStepProgress_vidbot(), percent: 6 [05:09:02.156] index :: _onStepProgress_vidbot(), percent: 10 [05:09:03.158] index :: _onStepProgress_vidbot(), percent: 15 [05:09:04.669] index :: _onStepProgress_vidbot(), percent: 21 [05:09:05.681] index :: _onStepProgress_vidbot(), percent: 26 [05:09:06.700] index :: _onStepProgress_vidbot(), percent: 31 [05:09:07.704] index :: _onStepProgress_vidbot(), percent: 35 [05:09:09.207] index :: _onStepProgress_vidbot(), percent: 40 [05:09:10.211] index :: _onStepProgress_vidbot(), percent: 45 [05:09:11.789] index :: _onStepProgress_vidbot(), percent: 51 [05:09:12.789] index :: _onStepProgress_vidbot(), percent: 57 [05:09:13.310] index :: _onStepProgress_vidbot(), percent: 60 [05:09:14.313] index :: _onStepProgress_vidbot(), percent: 66 [05:09:15.320] index :: _onStepProgress_vidbot(), percent: 71 [05:09:16.333] index :: _onStepProgress_vidbot(), percent: 77 [05:09:17.351] index :: _onStepProgress_vidbot(), percent: 82 [05:09:17.858] index :: _onStepProgress_vidbot(), percent: 86 [05:09:18.864] index :: _onStepProgress_vidbot(), percent: 92 [05:09:19.867] index :: _onStepProgress_vidbot(), percent: 98 [05:09:20.308] index :: _onStepProgress_vidbot(), percent: 100 [05:09:20.322] Vidbot :: ffmpeg.on( 'end' ), Done! [05:09:20.323] StreamManager :: dispose() [05:09:20.323] CanvasStream[canvas_1389749762726] :: dispose() [05:09:20.328] Vidbot :: fflog.on( 'finish' ) [05:09:20.328] fflog.path: /var/www/html/clients/10231/video/0E7238D5-42A8-99EB-28D2-1AA0524A172D.mp4.fflog [05:09:20.328] Vidbot :: _next(), _stepIndex:4 of 4 [05:09:20.328] index :: _onStepCompleted_vidbot(), step: 4 [05:09:20.329] index :: _onComplete_vidbot(), data: { stepTime: 0, appTime: 359.421, output: '/var/www/html/clients/10231/video/0E7238D5-42A8-99EB-28D2-1AA0524A172D.mp4', duration: 60.29 } --------------------------------------------------------------------------------------------------------------- Output File : /var/app/video_pre_processor/jobs/postp//var/www/html/clients/10231/video/0E7238D5-42A8-99EB-28D2-1AA0524A172D.mp4 Media Duration : 00:01:00.289 Generation Time : 00:05:59.420 ---------------------------------------------------------------------------------------------------------------