--------------------------------------------------------------------------------------------------------------- INITIALIZING VIDBOT, v1.7.0... --------------------------------------------------------------------------------------------------------------- [08:35:27.658] Vidbot :: start() [08:35:27.658] Vidbot :: _next(), _stepIndex:0 of 4 [08:35:27.659] index :: _onStepStarted_vidbot(), step: 1 [08:35:27.660] Vidbot :: step[0], label:Initializing Core [08:35:27.672] index :: _onStepProgress_vidbot(), percent: 20 [08:35:27.673] Vidbot :: _parse() [08:35:27.674] index :: _onStepProgress_vidbot(), percent: 40 [08:35:27.674] Vidbot :: _validate() [08:35:27.675] index :: _onStepProgress_vidbot(), percent: 60 [08:35:27.675] Vidbot :: _fonts() [08:35:27.676] FabricFontManager :: add(), id: SourceSansPro-Bold [08:35:27.676] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Bold.ttf [08:35:27.686] FabricFontManager :: add(), id: SourceSansPro-Light [08:35:27.686] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Light.ttf [08:35:27.687] FabricFontManager :: add(), id: DINOT-Bold [08:35:27.687] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Bold.otf [08:35:27.688] FabricFontManager :: add(), id: DINOT-Light [08:35:27.688] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Light.otf [08:35:27.689] FabricFontManager :: add(), id: TradeGothicLTStd-Regular [08:35:27.689] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Regular.otf [08:35:27.690] FabricFontManager :: add(), id: TradeGothicLTStd-Bold [08:35:27.690] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Bold.otf [08:35:27.691] index :: _onStepProgress_vidbot(), percent: 80 [08:35:27.692] Vidbot :: _clips() [08:35:27.692] StreamManager :: add(), id:audio_vo, type:audio [08:35:27.693] AudioClip[audio_vo] :: constructor() [08:35:27.693] InputStream[audio_vo] :: constructor() [08:35:27.693] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'audio_vo', clipId: null } [08:35:27.696] StreamManager :: add(), id:bg_music, type:audio [08:35:27.696] AudioClip[bg_music] :: constructor() [08:35:27.696] InputStream[bg_music] :: constructor() [08:35:27.697] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'bg_music', clipId: null } [08:35:27.697] StreamManager :: add(), id:intro, type:video [08:35:27.697] VideoStream[intro] :: constructor() [08:35:27.697] InputStream[intro] :: constructor() [08:35:27.697] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'intro', clipId: null } [08:35:27.697] StreamManager :: add(), id:simplefadedisplay, type:canvas [08:35:27.698] CanvasStream[canvas_806342937969] :: constructor() [08:35:27.698] InputStream[canvas_806342937969] :: constructor() [08:35:27.782] KenBurnsSlideshow[simplefadedisplay] :: constructor() [08:35:27.782] Overlay[simplefadedisplay] :: constructor() [08:35:27.782] CanvasClip[simplefadedisplay] :: constructor() [08:35:27.782] Clip[simplefadedisplay] :: constructor() [08:35:27.782] clip:"simplefadedisplay" added to stream:"canvas_806342937969" [08:35:27.783] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_806342937969', clipId: 'simplefadedisplay' } [08:35:27.783] StreamManager :: add(), id:caption, type:canvas [08:35:27.783] RenCaption[caption] :: constructor() [08:35:27.783] Ren[caption] :: constructor() [08:35:27.783] Overlay[caption] :: constructor() [08:35:27.783] CanvasClip[caption] :: constructor() [08:35:27.783] Clip[caption] :: constructor() [08:35:27.783] clip:"caption" added to stream:"canvas_806342937969" [08:35:27.783] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_806342937969', clipId: 'caption' } [08:35:27.784] StreamManager :: add(), id:outro, type:video [08:35:27.784] VideoStream[outro] :: constructor() [08:35:27.784] InputStream[outro] :: constructor() [08:35:27.784] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'outro', clipId: null } [08:35:27.784] all added... [08:35:27.784] Vidbot :: _next(), _stepIndex:1 of 4 [08:35:27.784] index :: _onStepCompleted_vidbot(), step: 1 [08:35:27.784] index :: _onStepStarted_vidbot(), step: 2 [08:35:27.785] Vidbot :: step[1], label:Initializing Input Streams [08:35:27.785] StreamManager :: init() [08:35:27.785] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'audio_vo', progress: 0.2 } [08:35:27.786] index :: _onStepProgress_vidbot(), percent: 20 [08:35:27.786] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'bg_music', progress: 0.4 } [08:35:27.786] index :: _onStepProgress_vidbot(), percent: 40 [08:35:27.786] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'intro', progress: 0.6 } [08:35:27.786] index :: _onStepProgress_vidbot(), percent: 60 [08:35:27.787] CanvasStream[canvas_806342937969] :: _init(), BEGIN [08:35:27.787] i:0, c.id:simplefadedisplay [08:35:27.787] KenBurnsSlideshow[simplefadedisplay] :: _init(), BEGIN [08:35:27.787] KenBurnsSlideshow[simplefadedisplay] :: _validate() [08:35:27.788] KenBurnsSlideshow[undefined] :: _validateAnim() [08:35:27.788] KenBurnsSlideshow[undefined] :: _validateTheme() [08:35:27.790] i:1, c.id:caption [08:35:27.790] RenCaption[caption] :: _init() [08:35:27.790] RenCaption[caption] :: _validate() [08:35:27.791] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'outro', progress: 0.8 } [08:35:27.791] index :: _onStepProgress_vidbot(), percent: 80 [08:35:27.792] KenBurnsSlideshow[simplefadedisplay] :: _build() [08:35:27.798] AnimatedImageFrame[aif] :: constructor() [08:35:27.799] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:27.799] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_1.jpg [08:35:27.812] RenCaption[caption] :: _build() [08:35:27.830] Overlay[caption] :: _animate() [08:35:27.833] CanvasStream[caption] :: _init(), p.then() [08:35:27.871] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:27.874] AnimatedImageFrame[aif] :: _init(), END [08:35:27.876] AnimatedImageFrame[aif] :: constructor() [08:35:27.876] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:27.876] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_2.jpg [08:35:27.906] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:27.907] AnimatedImageFrame[aif] :: _init(), END [08:35:27.908] AnimatedImageFrame[aif] :: constructor() [08:35:27.908] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:27.908] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_3.jpg [08:35:27.938] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:27.939] AnimatedImageFrame[aif] :: _init(), END [08:35:27.939] AnimatedImageFrame[aif] :: constructor() [08:35:27.940] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:27.940] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_4.jpg [08:35:27.967] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:27.969] AnimatedImageFrame[aif] :: _init(), END [08:35:27.969] AnimatedImageFrame[aif] :: constructor() [08:35:27.969] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:27.969] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_1.jpg [08:35:28.000] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.001] AnimatedImageFrame[aif] :: _init(), END [08:35:28.002] AnimatedImageFrame[aif] :: constructor() [08:35:28.002] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.002] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_2.jpg [08:35:28.033] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.034] AnimatedImageFrame[aif] :: _init(), END [08:35:28.035] AnimatedImageFrame[aif] :: constructor() [08:35:28.035] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.035] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_3.jpg [08:35:28.065] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.066] AnimatedImageFrame[aif] :: _init(), END [08:35:28.067] AnimatedImageFrame[aif] :: constructor() [08:35:28.067] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.067] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_4.jpg [08:35:28.100] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.101] AnimatedImageFrame[aif] :: _init(), END [08:35:28.102] AnimatedImageFrame[aif] :: constructor() [08:35:28.102] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.102] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_1.jpg [08:35:28.152] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.153] AnimatedImageFrame[aif] :: _init(), END [08:35:28.154] AnimatedImageFrame[aif] :: constructor() [08:35:28.154] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.154] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_2.jpg [08:35:28.196] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.198] AnimatedImageFrame[aif] :: _init(), END [08:35:28.199] AnimatedImageFrame[aif] :: constructor() [08:35:28.199] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.199] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_3.jpg [08:35:28.243] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.244] AnimatedImageFrame[aif] :: _init(), END [08:35:28.245] AnimatedImageFrame[aif] :: constructor() [08:35:28.245] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.245] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_4.jpg [08:35:28.290] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.291] AnimatedImageFrame[aif] :: _init(), END [08:35:28.292] AnimatedImageFrame[aif] :: constructor() [08:35:28.292] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.292] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_1.jpg [08:35:28.339] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.340] AnimatedImageFrame[aif] :: _init(), END [08:35:28.341] AnimatedImageFrame[aif] :: constructor() [08:35:28.341] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.341] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_2.jpg [08:35:28.384] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.385] AnimatedImageFrame[aif] :: _init(), END [08:35:28.386] AnimatedImageFrame[aif] :: constructor() [08:35:28.386] AnimatedImageFrame[aif] :: _init(), BEGIN [08:35:28.386] CanvasClip :: LoadImageWithPromise(), src: 36DC8324-9439-9044-A777-B594326C0032_3.jpg [08:35:28.440] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [08:35:28.441] AnimatedImageFrame[aif] :: _init(), END [08:35:28.442] Overlay[simplefadedisplay] :: _animate() [08:35:28.442] KenBurnsSlideshow[simplefadedisplay] :: _init(), END [08:35:28.442] CanvasStream[simplefadedisplay] :: _init(), p.then() [08:35:28.443] CanvasStream[canvas_806342937969] :: _init(), promise.all.then() [08:35:28.445] CanvasStream[canvas_806342937969] :: _init(), END [08:35:28.445] StreamMangaer :: init(), stream[canvas_806342937969].then() [08:35:28.445] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'canvas_806342937969', progress: 1 } [08:35:28.445] index :: _onStepProgress_vidbot(), percent: 100 [08:35:28.445] StreamManager :: init(), promise.all.then... [08:35:28.445] Vidbot :: StreamMgr.on( 'INITED' ) [08:35:28.446] Vidbot :: _next(), _stepIndex:2 of 4 [08:35:28.446] index :: _onStepCompleted_vidbot(), step: 2 [08:35:28.446] index :: _onStepStarted_vidbot(), step: 3 [08:35:28.446] Vidbot :: step[2], label:Rendering Canvas Streams [08:35:28.447] Vidbot :: StreamMgr.on( 'RENDER_STARTED' ), data: undefined [08:35:28.447] StreamManager :: render() [08:35:28.447] CanvasStream[canvas_806342937969] :: render() [08:35:28.521] index :: _onStepProgress_vidbot(), percent: 0 [08:35:33.004] index :: _onStepProgress_vidbot(), percent: 5 [08:35:37.824] index :: _onStepProgress_vidbot(), percent: 10 [08:35:54.666] index :: _onStepProgress_vidbot(), percent: 15 [08:36:19.982] index :: _onStepProgress_vidbot(), percent: 20 [08:36:46.410] index :: _onStepProgress_vidbot(), percent: 25 [08:37:14.137] index :: _onStepProgress_vidbot(), percent: 30 [08:37:39.883] index :: _onStepProgress_vidbot(), percent: 35 [08:38:05.066] index :: _onStepProgress_vidbot(), percent: 40 [08:38:30.720] index :: _onStepProgress_vidbot(), percent: 45 [08:38:55.764] index :: _onStepProgress_vidbot(), percent: 50 [08:39:22.158] index :: _onStepProgress_vidbot(), percent: 55 [08:39:49.051] index :: _onStepProgress_vidbot(), percent: 60 [08:40:15.906] index :: _onStepProgress_vidbot(), percent: 65 [08:40:44.078] index :: _onStepProgress_vidbot(), percent: 70 [08:41:13.405] index :: _onStepProgress_vidbot(), percent: 75 [08:41:40.651] index :: _onStepProgress_vidbot(), percent: 80 [08:42:07.483] index :: _onStepProgress_vidbot(), percent: 85 [08:42:33.765] index :: _onStepProgress_vidbot(), percent: 90 [08:43:02.327] index :: _onStepProgress_vidbot(), percent: 95 [08:43:15.308] index :: _onStepProgress_vidbot(), percent: 100 [08:43:15.798] StreamManager :: render(), Promise.all.then... [08:43:15.799] Vidbot :: StreamMgr.on( 'RENDER_COMPLETED' ), data: undefined [08:43:15.799] Vidbot :: _next(), _stepIndex:3 of 4 [08:43:15.799] index :: _onStepCompleted_vidbot(), step: 3 [08:43:15.800] index :: _onStepStarted_vidbot(), step: 4 [08:43:15.801] Vidbot :: step[3], label:Encoding Media [08:43:15.803] VideoStream[intro] :: inputOptions() [08:43:15.804] VideoFilters :: Scale() [08:43:15.804] VideoFilters :: Overlay() [08:43:15.805] CanvasFilters :: Overlay() [08:43:15.805] VideoStream[outro] :: inputOptions() [08:43:15.805] VideoFilters :: Tpad() [08:43:15.805] VideoFilters :: Scale() [08:43:15.805] VideoFilters :: Overlay() [08:43:15.806] AudioStream[audio_vo] :: inputOptions() [08:43:15.806] AudioFilters :: Volume() [08:43:15.806] filter: [4:a]volume=1[4_vol] [08:43:15.806] AudioFilters :: Delay() [08:43:15.806] filter: [4_vol]adelay=6070|6070[4_del] [08:43:15.806] AudioStream[bg_music] :: inputOptions() [08:43:15.807] AudioFilters :: Volume() [08:43:15.807] filter: [5:a]volume=0.25[5_vol] [08:43:15.807] AudioFilters :: FadeOut() [08:43:15.807] filter: [5_vol]afade=t=out:st=43.56:d=1[5_fadeout] [08:43:15.807] AudioFilters :: Delay() [08:43:15.807] filter: [5_fadeout]adelay=6070|6070[5_del] [08:43:15.807] VideoStream[intro] :: inputOptions() [08:43:15.807] AudioFilters :: Volume() [08:43:15.807] filter: [6:a]volume=1[6_vol] [08:43:15.807] AudioFilters :: Delay() [08:43:15.807] filter: [6_vol]adelay=0|0[6_del] [08:43:15.808] VideoStream[outro] :: inputOptions() [08:43:15.808] AudioFilters :: Volume() [08:43:15.808] filter: [7:a]volume=1[7_vol] [08:43:15.808] AudioFilters :: Delay() [08:43:15.808] filter: [7_vol]adelay=49630|49630[7_del] [08:43:15.808] AudioFilters :: Mix() [08:43:15.808] filter: [4_del][5_del][6_del][7_del]amix=inputs=4:duration=longest[a_out] [08:43:15.808] mixed filter: [4_del][5_del][6_del][7_del]amix=inputs=4:duration=longest[a_out] [08:43:15.811] hang.time: 60 [08:43:15.944] Vidbot :: ffmpeg.on( 'start' ) [08:43:15.945] ffmpeg -f lavfi -i color=c=000000:s=960x540:r=30:duration=54.64 -to 00:00:06.070 -i file:///var/www/html/clients/6073/library/960_intro.mp4 -r 30 -i . [08:43:15.945] /tmp/canvas_806342937969_%05d.png -to 00:00:05.009 -i file:///var/www/html/clients/6073/library/960_outro.mp4 -to 00:00:43.560 -i file:///var/www/html [08:43:15.945] /clients/6073/audio/36DC8324-9439-9044-A777-B594326C0032.mp3 -to 00:00:43.560 -i file:///var/app/video_pre_processor/assets/vidbot/_files/audio/RF7_Ro [08:43:15.945] ck_Country.mp3 -to 00:00:06.070 -i file:///var/www/html/clients/6073/library/960_intro.mp4 -to 00:00:05.009 -i file:///var/www/html/clients/6073/libra [08:43:15.945] ry/960_outro.mp4 -y -filter_complex [1:v]scale=w=960:h=540[1_scaled];[0:v][1_scaled]overlay=x=0:y=0:enable='between(t,0,6.07)'[1_out];[1_out][2:v]over [08:43:15.945] lay=x=0:y=0[2_out];[3:v]tpad=start_duration=49.580000000000005[3_tpad];[3_tpad]scale=w=960:h=540[3_scaled];[2_out][3_scaled]overlay=x=0:y=0:enable='be [08:43:15.945] tween(t,49.63,54.64)'[3_out];[4:a]volume=1[4_vol];[4_vol]adelay=6070|6070[4_del];[5:a]volume=0.25[5_vol];[5_vol]afade=t=out:st=43.56:d=1[5_fadeout];[5 [08:43:15.945] _fadeout]adelay=6070|6070[5_del];[6:a]volume=1[6_vol];[6_vol]adelay=0|0[6_del];[7:a]volume=1[7_vol];[7_vol]adelay=49630|49630[7_del];[4_del][5_del][6_ [08:43:15.945] del][7_del]amix=inputs=4:duration=longest[a_out] -acodec aac -vcodec libx264 -r 30 -f mp4 -map [a_out] -map [3_out] -preset veryfast -crf 18 -movflags [08:43:15.945] frag_keyframe+empty_moov -pix_fmt yuv420p /var/www/html/clients/6073/video/36DC8324-9439-9044-A777-B594326C0032.mp4 [08:43:16.325] index :: _onStepProgress_vidbot(), percent: -3801699226 [08:43:16.739] index :: _onStepProgress_vidbot(), percent: 1 [08:43:17.745] index :: _onStepProgress_vidbot(), percent: 5 [08:43:19.261] index :: _onStepProgress_vidbot(), percent: 11 [08:43:20.269] index :: _onStepProgress_vidbot(), percent: 15 [08:43:21.804] index :: _onStepProgress_vidbot(), percent: 21 [08:43:23.320] index :: _onStepProgress_vidbot(), percent: 26 [08:43:24.834] index :: _onStepProgress_vidbot(), percent: 31 [08:43:25.849] index :: _onStepProgress_vidbot(), percent: 35 [08:43:27.387] index :: _onStepProgress_vidbot(), percent: 40 [08:43:28.902] index :: _onStepProgress_vidbot(), percent: 46 [08:43:29.907] index :: _onStepProgress_vidbot(), percent: 50 [08:43:31.428] index :: _onStepProgress_vidbot(), percent: 56 [08:43:32.435] index :: _onStepProgress_vidbot(), percent: 60 [08:43:33.952] index :: _onStepProgress_vidbot(), percent: 66 [08:43:34.954] index :: _onStepProgress_vidbot(), percent: 70 [08:43:35.963] index :: _onStepProgress_vidbot(), percent: 75 [08:43:37.468] index :: _onStepProgress_vidbot(), percent: 81 [08:43:38.498] index :: _onStepProgress_vidbot(), percent: 86 [08:43:39.528] index :: _onStepProgress_vidbot(), percent: 90 [08:43:41.062] index :: _onStepProgress_vidbot(), percent: 97 [08:43:41.606] index :: _onStepProgress_vidbot(), percent: 100 [08:43:41.680] Vidbot :: ffmpeg.on( 'end' ), Done! [08:43:41.680] StreamManager :: dispose() [08:43:41.681] CanvasStream[canvas_806342937969] :: dispose() [08:43:41.704] Vidbot :: fflog.on( 'finish' ) [08:43:41.704] fflog.path: /var/www/html/clients/6073/video/36DC8324-9439-9044-A777-B594326C0032.mp4.fflog [08:43:41.704] Vidbot :: _next(), _stepIndex:4 of 4 [08:43:41.704] index :: _onStepCompleted_vidbot(), step: 4 [08:43:41.705] index :: _onComplete_vidbot(), data: { stepTime: 0, appTime: 494.068, output: '/var/www/html/clients/6073/video/36DC8324-9439-9044-A777-B594326C0032.mp4', duration: 54.64 } --------------------------------------------------------------------------------------------------------------- Output File : /var/app/video_pre_processor/jobs/postp//var/www/html/clients/6073/video/36DC8324-9439-9044-A777-B594326C0032.mp4 Media Duration : 00:00:54.640 Generation Time : 00:08:14.067 ---------------------------------------------------------------------------------------------------------------