--------------------------------------------------------------------------------------------------------------- INITIALIZING VIDBOT, v1.7.0... --------------------------------------------------------------------------------------------------------------- [22:14:18.882] Vidbot :: start() [22:14:18.883] Vidbot :: _next(), _stepIndex:0 of 4 [22:14:18.883] index :: _onStepStarted_vidbot(), step: 1 [22:14:18.884] Vidbot :: step[0], label:Initializing Core [22:14:18.892] index :: _onStepProgress_vidbot(), percent: 20 [22:14:18.892] Vidbot :: _parse() [22:14:18.893] index :: _onStepProgress_vidbot(), percent: 40 [22:14:18.893] Vidbot :: _validate() [22:14:18.894] index :: _onStepProgress_vidbot(), percent: 60 [22:14:18.894] Vidbot :: _fonts() [22:14:18.895] FabricFontManager :: add(), id: SourceSansPro-Bold [22:14:18.895] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Bold.ttf [22:14:18.903] FabricFontManager :: add(), id: SourceSansPro-Light [22:14:18.903] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Light.ttf [22:14:18.903] FabricFontManager :: add(), id: DINOT-Bold [22:14:18.904] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Bold.otf [22:14:18.904] FabricFontManager :: add(), id: DINOT-Light [22:14:18.904] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Light.otf [22:14:18.905] FabricFontManager :: add(), id: TradeGothicLTStd-Regular [22:14:18.905] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Regular.otf [22:14:18.906] FabricFontManager :: add(), id: TradeGothicLTStd-Bold [22:14:18.906] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Bold.otf [22:14:18.907] index :: _onStepProgress_vidbot(), percent: 80 [22:14:18.907] Vidbot :: _clips() [22:14:18.908] StreamManager :: add(), id:audio_vo, type:audio [22:14:18.908] AudioClip[audio_vo] :: constructor() [22:14:18.908] InputStream[audio_vo] :: constructor() [22:14:18.908] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'audio_vo', clipId: null } [22:14:18.911] StreamManager :: add(), id:bg_music, type:audio [22:14:18.911] AudioClip[bg_music] :: constructor() [22:14:18.911] InputStream[bg_music] :: constructor() [22:14:18.911] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'bg_music', clipId: null } [22:14:18.911] StreamManager :: add(), id:simplefadedisplay, type:canvas [22:14:18.912] CanvasStream[canvas_940610901048] :: constructor() [22:14:18.912] InputStream[canvas_940610901048] :: constructor() [22:14:18.987] KenBurnsSlideshow[simplefadedisplay] :: constructor() [22:14:18.987] Overlay[simplefadedisplay] :: constructor() [22:14:18.988] CanvasClip[simplefadedisplay] :: constructor() [22:14:18.988] Clip[simplefadedisplay] :: constructor() [22:14:18.988] clip:"simplefadedisplay" added to stream:"canvas_940610901048" [22:14:18.988] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_940610901048', clipId: 'simplefadedisplay' } [22:14:18.988] StreamManager :: add(), id:caption, type:canvas [22:14:18.988] RenCaption[caption] :: constructor() [22:14:18.988] Ren[caption] :: constructor() [22:14:18.989] Overlay[caption] :: constructor() [22:14:18.989] CanvasClip[caption] :: constructor() [22:14:18.989] Clip[caption] :: constructor() [22:14:18.989] clip:"caption" added to stream:"canvas_940610901048" [22:14:18.989] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_940610901048', clipId: 'caption' } [22:14:18.989] all added... [22:14:18.989] Vidbot :: _next(), _stepIndex:1 of 4 [22:14:18.989] index :: _onStepCompleted_vidbot(), step: 1 [22:14:18.989] index :: _onStepStarted_vidbot(), step: 2 [22:14:18.990] Vidbot :: step[1], label:Initializing Input Streams [22:14:18.990] StreamManager :: init() [22:14:18.990] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'audio_vo', progress: 0.3333333333333333 } [22:14:18.991] index :: _onStepProgress_vidbot(), percent: 33 [22:14:18.991] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'bg_music', progress: 0.6666666666666666 } [22:14:18.991] index :: _onStepProgress_vidbot(), percent: 67 [22:14:18.991] CanvasStream[canvas_940610901048] :: _init(), BEGIN [22:14:18.991] i:0, c.id:simplefadedisplay [22:14:18.992] KenBurnsSlideshow[simplefadedisplay] :: _init(), BEGIN [22:14:18.992] KenBurnsSlideshow[simplefadedisplay] :: _validate() [22:14:18.992] KenBurnsSlideshow[undefined] :: _validateAnim() [22:14:18.993] KenBurnsSlideshow[undefined] :: _validateTheme() [22:14:18.994] i:1, c.id:caption [22:14:18.994] RenCaption[caption] :: _init() [22:14:18.994] RenCaption[caption] :: _validate() [22:14:18.996] KenBurnsSlideshow[simplefadedisplay] :: _build() [22:14:19.001] AnimatedImageFrame[aif] :: constructor() [22:14:19.002] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.002] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_1.jpg [22:14:19.014] RenCaption[caption] :: _build() [22:14:19.030] Overlay[caption] :: _animate() [22:14:19.033] CanvasStream[caption] :: _init(), p.then() [22:14:19.046] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.048] AnimatedImageFrame[aif] :: _init(), END [22:14:19.049] AnimatedImageFrame[aif] :: constructor() [22:14:19.050] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.050] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_2.jpg [22:14:19.060] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.061] AnimatedImageFrame[aif] :: _init(), END [22:14:19.062] AnimatedImageFrame[aif] :: constructor() [22:14:19.062] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.062] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_3.jpg [22:14:19.071] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.072] AnimatedImageFrame[aif] :: _init(), END [22:14:19.072] AnimatedImageFrame[aif] :: constructor() [22:14:19.072] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.072] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_4.jpg [22:14:19.081] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.082] AnimatedImageFrame[aif] :: _init(), END [22:14:19.083] AnimatedImageFrame[aif] :: constructor() [22:14:19.083] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.083] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_1.jpg [22:14:19.092] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.093] AnimatedImageFrame[aif] :: _init(), END [22:14:19.093] AnimatedImageFrame[aif] :: constructor() [22:14:19.093] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.093] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_2.jpg [22:14:19.102] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.103] AnimatedImageFrame[aif] :: _init(), END [22:14:19.103] AnimatedImageFrame[aif] :: constructor() [22:14:19.103] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.103] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_3.jpg [22:14:19.112] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.113] AnimatedImageFrame[aif] :: _init(), END [22:14:19.113] AnimatedImageFrame[aif] :: constructor() [22:14:19.113] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.113] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_4.jpg [22:14:19.123] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.124] AnimatedImageFrame[aif] :: _init(), END [22:14:19.124] AnimatedImageFrame[aif] :: constructor() [22:14:19.124] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.125] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_1.jpg [22:14:19.134] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.135] AnimatedImageFrame[aif] :: _init(), END [22:14:19.135] AnimatedImageFrame[aif] :: constructor() [22:14:19.135] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.135] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_2.jpg [22:14:19.144] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.145] AnimatedImageFrame[aif] :: _init(), END [22:14:19.146] AnimatedImageFrame[aif] :: constructor() [22:14:19.146] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.146] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_3.jpg [22:14:19.155] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.156] AnimatedImageFrame[aif] :: _init(), END [22:14:19.156] AnimatedImageFrame[aif] :: constructor() [22:14:19.156] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.156] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_4.jpg [22:14:19.165] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.166] AnimatedImageFrame[aif] :: _init(), END [22:14:19.166] AnimatedImageFrame[aif] :: constructor() [22:14:19.166] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.166] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_1.jpg [22:14:19.176] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.176] AnimatedImageFrame[aif] :: _init(), END [22:14:19.177] AnimatedImageFrame[aif] :: constructor() [22:14:19.177] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.177] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_2.jpg [22:14:19.185] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.186] AnimatedImageFrame[aif] :: _init(), END [22:14:19.186] AnimatedImageFrame[aif] :: constructor() [22:14:19.187] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.187] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_3.jpg [22:14:19.195] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.196] AnimatedImageFrame[aif] :: _init(), END [22:14:19.196] AnimatedImageFrame[aif] :: constructor() [22:14:19.196] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.196] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_4.jpg [22:14:19.205] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.205] AnimatedImageFrame[aif] :: _init(), END [22:14:19.206] AnimatedImageFrame[aif] :: constructor() [22:14:19.206] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.206] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_1.jpg [22:14:19.215] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.215] AnimatedImageFrame[aif] :: _init(), END [22:14:19.216] AnimatedImageFrame[aif] :: constructor() [22:14:19.216] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.216] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_2.jpg [22:14:19.224] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.225] AnimatedImageFrame[aif] :: _init(), END [22:14:19.226] AnimatedImageFrame[aif] :: constructor() [22:14:19.226] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.226] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_3.jpg [22:14:19.238] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.238] AnimatedImageFrame[aif] :: _init(), END [22:14:19.239] AnimatedImageFrame[aif] :: constructor() [22:14:19.239] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.239] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_4.jpg [22:14:19.247] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.248] AnimatedImageFrame[aif] :: _init(), END [22:14:19.248] AnimatedImageFrame[aif] :: constructor() [22:14:19.248] AnimatedImageFrame[aif] :: _init(), BEGIN [22:14:19.248] CanvasClip :: LoadImageWithPromise(), src: 9431187E-3CB7-A38B-041D-31B6FF6F40B0_1.jpg [22:14:19.256] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [22:14:19.257] AnimatedImageFrame[aif] :: _init(), END [22:14:19.257] Overlay[simplefadedisplay] :: _animate() [22:14:19.258] KenBurnsSlideshow[simplefadedisplay] :: _init(), END [22:14:19.258] CanvasStream[simplefadedisplay] :: _init(), p.then() [22:14:19.258] CanvasStream[canvas_940610901048] :: _init(), promise.all.then() [22:14:19.260] CanvasStream[canvas_940610901048] :: _init(), END [22:14:19.260] StreamMangaer :: init(), stream[canvas_940610901048].then() [22:14:19.260] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'canvas_940610901048', progress: 1 } [22:14:19.261] index :: _onStepProgress_vidbot(), percent: 100 [22:14:19.261] StreamManager :: init(), promise.all.then... [22:14:19.261] Vidbot :: StreamMgr.on( 'INITED' ) [22:14:19.261] Vidbot :: _next(), _stepIndex:2 of 4 [22:14:19.261] index :: _onStepCompleted_vidbot(), step: 2 [22:14:19.261] index :: _onStepStarted_vidbot(), step: 3 [22:14:19.261] Vidbot :: step[2], label:Rendering Canvas Streams [22:14:19.262] Vidbot :: StreamMgr.on( 'RENDER_STARTED' ), data: undefined [22:14:19.262] StreamManager :: render() [22:14:19.262] CanvasStream[canvas_940610901048] :: render() [22:14:19.293] index :: _onStepProgress_vidbot(), percent: 0 [22:14:27.491] index :: _onStepProgress_vidbot(), percent: 5 [22:14:36.606] index :: _onStepProgress_vidbot(), percent: 10 [22:14:46.309] index :: _onStepProgress_vidbot(), percent: 15 [22:14:56.055] index :: _onStepProgress_vidbot(), percent: 20 [22:15:05.915] index :: _onStepProgress_vidbot(), percent: 25 [22:15:15.474] index :: _onStepProgress_vidbot(), percent: 30 [22:15:25.406] index :: _onStepProgress_vidbot(), percent: 35 [22:15:35.639] index :: _onStepProgress_vidbot(), percent: 40 [22:15:45.009] index :: _onStepProgress_vidbot(), percent: 45 [22:15:54.551] index :: _onStepProgress_vidbot(), percent: 50 [22:16:03.964] index :: _onStepProgress_vidbot(), percent: 55 [22:16:13.677] index :: _onStepProgress_vidbot(), percent: 60 [22:16:23.173] index :: _onStepProgress_vidbot(), percent: 65 [22:16:32.734] index :: _onStepProgress_vidbot(), percent: 70 [22:16:42.697] index :: _onStepProgress_vidbot(), percent: 75 [22:16:51.689] index :: _onStepProgress_vidbot(), percent: 80 [22:17:02.304] index :: _onStepProgress_vidbot(), percent: 85 [22:17:12.673] index :: _onStepProgress_vidbot(), percent: 90 [22:17:21.983] index :: _onStepProgress_vidbot(), percent: 95 [22:17:31.369] index :: _onStepProgress_vidbot(), percent: 100 [22:17:32.178] StreamManager :: render(), Promise.all.then... [22:17:32.179] Vidbot :: StreamMgr.on( 'RENDER_COMPLETED' ), data: undefined [22:17:32.179] Vidbot :: _next(), _stepIndex:3 of 4 [22:17:32.179] index :: _onStepCompleted_vidbot(), step: 3 [22:17:32.180] index :: _onStepStarted_vidbot(), step: 4 [22:17:32.180] Vidbot :: step[3], label:Encoding Media [22:17:32.183] CanvasFilters :: Overlay() [22:17:32.183] AudioStream[audio_vo] :: inputOptions() [22:17:32.184] AudioFilters :: Volume() [22:17:32.184] filter: [2:a]volume=1[2_vol] [22:17:32.184] AudioFilters :: Delay() [22:17:32.184] filter: [2_vol]adelay=0|0[2_del] [22:17:32.184] AudioStream[bg_music] :: inputOptions() [22:17:32.184] AudioFilters :: Volume() [22:17:32.184] filter: [3:a]volume=0.25[3_vol] [22:17:32.184] AudioFilters :: FadeOut() [22:17:32.184] filter: [3_vol]afade=t=out:st=62.2:d=1[3_fadeout] [22:17:32.184] AudioFilters :: Delay() [22:17:32.185] filter: [3_fadeout]adelay=0|0[3_del] [22:17:32.185] AudioFilters :: Mix() [22:17:32.185] filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [22:17:32.185] mixed filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [22:17:32.187] hang.time: 60 [22:17:32.278] Vidbot :: ffmpeg.on( 'start' ) [22:17:32.278] ffmpeg -f lavfi -i color=c=000000:s=640x360:r=30:duration=62.2 -r 30 -i ./tmp/canvas_940610901048_%05d.png -to 00:01:02.200 -i file:///var/www/html/cl [22:17:32.279] ients/10231/audio/9431187E-3CB7-A38B-041D-31B6FF6F40B0.mp3 -to 00:01:02.200 -i file:///var/app/video_pre_processor/assets/vidbot/_files/audio/RF8_EDM_ [22:17:32.279] 1.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= [22:17:32.279] 62.2: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 [a_ [22:17:32.279] out] -map [1_out] -preset veryfast -crf 18 -movflags frag_keyframe+empty_moov -pix_fmt yuv420p /var/www/html/clients/10231/video/9431187E-3CB7-A38B-04 [22:17:32.279] 1D-31B6FF6F40B0.mp4 [22:17:32.426] index :: _onStepProgress_vidbot(), percent: -3339627745 [22:17:32.851] index :: _onStepProgress_vidbot(), percent: 1 [22:17:33.873] index :: _onStepProgress_vidbot(), percent: 6 [22:17:34.877] index :: _onStepProgress_vidbot(), percent: 11 [22:17:35.884] index :: _onStepProgress_vidbot(), percent: 16 [22:17:36.894] index :: _onStepProgress_vidbot(), percent: 22 [22:17:37.395] index :: _onStepProgress_vidbot(), percent: 25 [22:17:38.401] index :: _onStepProgress_vidbot(), percent: 31 [22:17:39.417] index :: _onStepProgress_vidbot(), percent: 36 [22:17:40.430] index :: _onStepProgress_vidbot(), percent: 41 [22:17:41.440] index :: _onStepProgress_vidbot(), percent: 47 [22:17:41.942] index :: _onStepProgress_vidbot(), percent: 50 [22:17:42.948] index :: _onStepProgress_vidbot(), percent: 56 [22:17:43.961] index :: _onStepProgress_vidbot(), percent: 62 [22:17:44.468] index :: _onStepProgress_vidbot(), percent: 65 [22:17:45.471] index :: _onStepProgress_vidbot(), percent: 70 [22:17:46.486] index :: _onStepProgress_vidbot(), percent: 76 [22:17:47.499] index :: _onStepProgress_vidbot(), percent: 82 [22:17:48.002] index :: _onStepProgress_vidbot(), percent: 86 [22:17:49.005] index :: _onStepProgress_vidbot(), percent: 92 [22:17:49.505] index :: _onStepProgress_vidbot(), percent: 96 [22:17:50.047] index :: _onStepProgress_vidbot(), percent: 100 [22:17:50.075] Vidbot :: ffmpeg.on( 'end' ), Done! [22:17:50.076] StreamManager :: dispose() [22:17:50.076] CanvasStream[canvas_940610901048] :: dispose() [22:17:50.081] Vidbot :: fflog.on( 'finish' ) [22:17:50.081] fflog.path: /var/www/html/clients/10231/video/9431187E-3CB7-A38B-041D-31B6FF6F40B0.mp4.fflog [22:17:50.081] Vidbot :: _next(), _stepIndex:4 of 4 [22:17:50.081] index :: _onStepCompleted_vidbot(), step: 4 [22:17:50.082] index :: _onComplete_vidbot(), data: { stepTime: 0, appTime: 211.217, output: '/var/www/html/clients/10231/video/9431187E-3CB7-A38B-041D-31B6FF6F40B0.mp4', duration: 62.2 } --------------------------------------------------------------------------------------------------------------- Output File : /var/app/video_pre_processor/jobs/postp//var/www/html/clients/10231/video/9431187E-3CB7-A38B-041D-31B6FF6F40B0.mp4 Media Duration : 00:01:02.200 Generation Time : 00:03:31.217 ---------------------------------------------------------------------------------------------------------------