--------------------------------------------------------------------------------------------------------------- INITIALIZING VIDBOT, v1.7.1... --------------------------------------------------------------------------------------------------------------- [12:08:32.028] Vidbot :: start() [12:08:32.028] Vidbot :: _next(), _stepIndex:0 of 4 [12:08:32.029] index :: _onStepStarted_vidbot(), step: 1 [12:08:32.030] Vidbot :: step[0], label:Initializing Core [12:08:32.038] index :: _onStepProgress_vidbot(), percent: 20 [12:08:32.038] Vidbot :: _parse() [12:08:32.039] index :: _onStepProgress_vidbot(), percent: 40 [12:08:32.040] Vidbot :: _validate() [12:08:32.040] index :: _onStepProgress_vidbot(), percent: 60 [12:08:32.040] Vidbot :: _fonts() [12:08:32.041] FabricFontManager :: add(), id: SourceSansPro-Bold [12:08:32.041] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Bold.ttf [12:08:32.049] FabricFontManager :: add(), id: SourceSansPro-Light [12:08:32.049] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Light.ttf [12:08:32.050] FabricFontManager :: add(), id: DINOT-Bold [12:08:32.050] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Bold.otf [12:08:32.050] FabricFontManager :: add(), id: DINOT-Light [12:08:32.051] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Light.otf [12:08:32.051] FabricFontManager :: add(), id: TradeGothicLTStd-Regular [12:08:32.051] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Regular.otf [12:08:32.052] FabricFontManager :: add(), id: TradeGothicLTStd-Bold [12:08:32.052] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Bold.otf [12:08:32.053] index :: _onStepProgress_vidbot(), percent: 80 [12:08:32.053] Vidbot :: _clips() [12:08:32.054] StreamManager :: add(), id:audio_vo, type:audio [12:08:32.054] AudioClip[audio_vo] :: constructor() [12:08:32.054] InputStream[audio_vo] :: constructor() [12:08:32.054] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'audio_vo', clipId: null } [12:08:32.057] StreamManager :: add(), id:bg_music, type:audio [12:08:32.057] AudioClip[bg_music] :: constructor() [12:08:32.057] InputStream[bg_music] :: constructor() [12:08:32.057] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'bg_music', clipId: null } [12:08:32.057] StreamManager :: add(), id:simplefadedisplay, type:canvas [12:08:32.058] CanvasStream[canvas_730313769706] :: constructor() [12:08:32.058] InputStream[canvas_730313769706] :: constructor() [12:08:32.133] KenBurnsSlideshow[simplefadedisplay] :: constructor() [12:08:32.133] Overlay[simplefadedisplay] :: constructor() [12:08:32.133] CanvasClip[simplefadedisplay] :: constructor() [12:08:32.134] Clip[simplefadedisplay] :: constructor() [12:08:32.134] clip:"simplefadedisplay" added to stream:"canvas_730313769706" [12:08:32.134] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_730313769706', clipId: 'simplefadedisplay' } [12:08:32.134] StreamManager :: add(), id:caption, type:canvas [12:08:32.134] RenCaption[caption] :: constructor() [12:08:32.134] Ren[caption] :: constructor() [12:08:32.134] Overlay[caption] :: constructor() [12:08:32.134] CanvasClip[caption] :: constructor() [12:08:32.134] Clip[caption] :: constructor() [12:08:32.135] clip:"caption" added to stream:"canvas_730313769706" [12:08:32.135] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_730313769706', clipId: 'caption' } [12:08:32.135] StreamManager :: add(), id:options, type:canvas [12:08:32.135] RenOptions[options] :: constructor() [12:08:32.135] Ren[options] :: constructor() [12:08:32.135] Overlay[options] :: constructor() [12:08:32.135] CanvasClip[options] :: constructor() [12:08:32.135] Clip[options] :: constructor() [12:08:32.135] clip:"options" added to stream:"canvas_730313769706" [12:08:32.135] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_730313769706', clipId: 'options' } [12:08:32.135] all added... [12:08:32.136] Vidbot :: _next(), _stepIndex:1 of 4 [12:08:32.136] index :: _onStepCompleted_vidbot(), step: 1 [12:08:32.136] index :: _onStepStarted_vidbot(), step: 2 [12:08:32.136] Vidbot :: step[1], label:Initializing Input Streams [12:08:32.137] StreamManager :: init() [12:08:32.137] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'audio_vo', progress: 0.3333333333333333 } [12:08:32.137] index :: _onStepProgress_vidbot(), percent: 33 [12:08:32.137] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'bg_music', progress: 0.6666666666666666 } [12:08:32.137] index :: _onStepProgress_vidbot(), percent: 67 [12:08:32.138] CanvasStream[canvas_730313769706] :: _init(), BEGIN [12:08:32.138] i:0, c.id:simplefadedisplay [12:08:32.138] KenBurnsSlideshow[simplefadedisplay] :: _init(), BEGIN [12:08:32.138] KenBurnsSlideshow[simplefadedisplay] :: _validate() [12:08:32.139] KenBurnsSlideshow[undefined] :: _validateAnim() [12:08:32.139] KenBurnsSlideshow[undefined] :: _validateTheme() [12:08:32.140] i:1, c.id:caption [12:08:32.140] RenCaption[caption] :: _init() [12:08:32.141] RenCaption[caption] :: _validate() [12:08:32.142] i:2, c.id:options [12:08:32.142] RenPrice[options] :: _init() [12:08:32.142] RenOptions[options] :: _validate() [12:08:32.144] KenBurnsSlideshow[simplefadedisplay] :: _build() [12:08:32.149] AnimatedImageFrame[aif] :: constructor() [12:08:32.150] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.150] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_1.jpg [12:08:32.161] RenCaption[caption] :: _build() [12:08:32.175] RenOptions[options] :: _assets() [12:08:32.176] CanvasClip :: LoadSVGFromStringWithPromise() [12:08:32.203] CanvasClip :: LoadSVGFromString(), loaded [12:08:32.205] Overlay[caption] :: _animate() [12:08:32.208] RenOptions[options] :: _build() [12:08:32.418] CanvasStream[caption] :: _init(), p.then() [12:08:32.419] RenOptions[options] :: _animate() [12:08:32.419] Overlay[options] :: _animate() [12:08:32.420] CanvasStream[options] :: _init(), p.then() [12:08:32.477] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.481] AnimatedImageFrame[aif] :: _init(), END [12:08:32.482] AnimatedImageFrame[aif] :: constructor() [12:08:32.482] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.482] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_2.jpg [12:08:32.524] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.525] AnimatedImageFrame[aif] :: _init(), END [12:08:32.526] AnimatedImageFrame[aif] :: constructor() [12:08:32.526] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.526] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_3.jpg [12:08:32.566] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.567] AnimatedImageFrame[aif] :: _init(), END [12:08:32.568] AnimatedImageFrame[aif] :: constructor() [12:08:32.568] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.568] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_4.jpg [12:08:32.608] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.609] AnimatedImageFrame[aif] :: _init(), END [12:08:32.609] AnimatedImageFrame[aif] :: constructor() [12:08:32.609] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.609] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_5.jpg [12:08:32.667] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.668] AnimatedImageFrame[aif] :: _init(), END [12:08:32.669] AnimatedImageFrame[aif] :: constructor() [12:08:32.669] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.669] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_6.jpg [12:08:32.707] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.708] AnimatedImageFrame[aif] :: _init(), END [12:08:32.709] AnimatedImageFrame[aif] :: constructor() [12:08:32.709] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.709] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_7.jpg [12:08:32.765] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.766] AnimatedImageFrame[aif] :: _init(), END [12:08:32.767] AnimatedImageFrame[aif] :: constructor() [12:08:32.767] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.767] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_8.jpg [12:08:32.805] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.806] AnimatedImageFrame[aif] :: _init(), END [12:08:32.806] AnimatedImageFrame[aif] :: constructor() [12:08:32.806] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.806] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_9.jpg [12:08:32.842] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.843] AnimatedImageFrame[aif] :: _init(), END [12:08:32.843] AnimatedImageFrame[aif] :: constructor() [12:08:32.843] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.843] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_10.jpg [12:08:32.877] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.878] AnimatedImageFrame[aif] :: _init(), END [12:08:32.878] AnimatedImageFrame[aif] :: constructor() [12:08:32.878] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.878] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_11.jpg [12:08:32.910] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.910] AnimatedImageFrame[aif] :: _init(), END [12:08:32.911] AnimatedImageFrame[aif] :: constructor() [12:08:32.911] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.911] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_12.jpg [12:08:32.941] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.942] AnimatedImageFrame[aif] :: _init(), END [12:08:32.942] AnimatedImageFrame[aif] :: constructor() [12:08:32.943] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.943] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_13.jpg [12:08:32.978] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:32.979] AnimatedImageFrame[aif] :: _init(), END [12:08:32.980] AnimatedImageFrame[aif] :: constructor() [12:08:32.980] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:32.980] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_14.jpg [12:08:33.015] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:33.016] AnimatedImageFrame[aif] :: _init(), END [12:08:33.016] AnimatedImageFrame[aif] :: constructor() [12:08:33.016] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:33.016] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_15.jpg [12:08:33.053] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:33.054] AnimatedImageFrame[aif] :: _init(), END [12:08:33.055] AnimatedImageFrame[aif] :: constructor() [12:08:33.055] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:33.055] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_16.jpg [12:08:33.104] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:33.105] AnimatedImageFrame[aif] :: _init(), END [12:08:33.105] AnimatedImageFrame[aif] :: constructor() [12:08:33.105] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:33.106] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_17.jpg [12:08:33.139] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:33.139] AnimatedImageFrame[aif] :: _init(), END [12:08:33.140] AnimatedImageFrame[aif] :: constructor() [12:08:33.140] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:33.140] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_18.jpg [12:08:33.181] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:33.182] AnimatedImageFrame[aif] :: _init(), END [12:08:33.182] AnimatedImageFrame[aif] :: constructor() [12:08:33.182] AnimatedImageFrame[aif] :: _init(), BEGIN [12:08:33.182] CanvasClip :: LoadImageWithPromise(), src: A0E75E76-C92E-E8BA-B033-602708FAA464_19.jpg [12:08:33.219] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [12:08:33.221] AnimatedImageFrame[aif] :: _init(), END [12:08:33.221] Overlay[simplefadedisplay] :: _animate() [12:08:33.222] KenBurnsSlideshow[simplefadedisplay] :: _init(), END [12:08:33.222] CanvasStream[simplefadedisplay] :: _init(), p.then() [12:08:33.222] CanvasStream[canvas_730313769706] :: _init(), promise.all.then() [12:08:33.224] CanvasStream[canvas_730313769706] :: _init(), END [12:08:33.224] StreamMangaer :: init(), stream[canvas_730313769706].then() [12:08:33.225] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'canvas_730313769706', progress: 1 } [12:08:33.225] index :: _onStepProgress_vidbot(), percent: 100 [12:08:33.225] StreamManager :: init(), promise.all.then... [12:08:33.225] Vidbot :: StreamMgr.on( 'INITED' ) [12:08:33.225] Vidbot :: _next(), _stepIndex:2 of 4 [12:08:33.225] index :: _onStepCompleted_vidbot(), step: 2 [12:08:33.225] index :: _onStepStarted_vidbot(), step: 3 [12:08:33.226] Vidbot :: step[2], label:Rendering Canvas Streams [12:08:33.226] Vidbot :: StreamMgr.on( 'RENDER_STARTED' ), data: undefined [12:08:33.226] StreamManager :: render() [12:08:33.227] CanvasStream[canvas_730313769706] :: render() [12:08:33.286] index :: _onStepProgress_vidbot(), percent: 0 [12:09:09.680] index :: _onStepProgress_vidbot(), percent: 5 [12:09:50.215] index :: _onStepProgress_vidbot(), percent: 10 [12:10:29.704] index :: _onStepProgress_vidbot(), percent: 15 [12:11:08.805] index :: _onStepProgress_vidbot(), percent: 20 [12:11:48.207] index :: _onStepProgress_vidbot(), percent: 25 [12:12:29.388] index :: _onStepProgress_vidbot(), percent: 30 [12:13:04.502] index :: _onStepProgress_vidbot(), percent: 35 [12:13:39.600] index :: _onStepProgress_vidbot(), percent: 40 [12:14:13.247] index :: _onStepProgress_vidbot(), percent: 45 [12:14:50.259] index :: _onStepProgress_vidbot(), percent: 50 [12:15:27.980] index :: _onStepProgress_vidbot(), percent: 55 [12:16:05.129] index :: _onStepProgress_vidbot(), percent: 60 [12:16:41.793] index :: _onStepProgress_vidbot(), percent: 65 [12:17:18.582] index :: _onStepProgress_vidbot(), percent: 70 [12:17:54.181] index :: _onStepProgress_vidbot(), percent: 75 [12:18:33.392] index :: _onStepProgress_vidbot(), percent: 80 [12:19:09.976] index :: _onStepProgress_vidbot(), percent: 85 [12:19:45.833] index :: _onStepProgress_vidbot(), percent: 90 [12:20:26.123] index :: _onStepProgress_vidbot(), percent: 95 [12:21:06.142] index :: _onStepProgress_vidbot(), percent: 100 [12:21:09.542] StreamManager :: render(), Promise.all.then... [12:21:09.543] Vidbot :: StreamMgr.on( 'RENDER_COMPLETED' ), data: undefined [12:21:09.543] Vidbot :: _next(), _stepIndex:3 of 4 [12:21:09.543] index :: _onStepCompleted_vidbot(), step: 3 [12:21:09.544] index :: _onStepStarted_vidbot(), step: 4 [12:21:09.545] Vidbot :: step[3], label:Encoding Media [12:21:09.547] CanvasFilters :: Overlay() [12:21:09.548] AudioStream[audio_vo] :: inputOptions() [12:21:09.548] AudioFilters :: Volume() [12:21:09.548] filter: [2:a]volume=1[2_vol] [12:21:09.548] AudioFilters :: Delay() [12:21:09.549] filter: [2_vol]adelay=0|0[2_del] [12:21:09.549] AudioStream[bg_music] :: inputOptions() [12:21:09.549] AudioFilters :: Volume() [12:21:09.549] filter: [3:a]volume=0.25[3_vol] [12:21:09.549] AudioFilters :: FadeOut() [12:21:09.549] filter: [3_vol]afade=t=out:st=57:d=1[3_fadeout] [12:21:09.549] AudioFilters :: Delay() [12:21:09.549] filter: [3_fadeout]adelay=0|0[3_del] [12:21:09.549] AudioFilters :: Mix() [12:21:09.550] filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [12:21:09.550] mixed filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [12:21:09.552] hang.time: 60 [12:21:09.694] Vidbot :: ffmpeg.on( 'start' ) [12:21:09.694] ffmpeg -f lavfi -i color=c=000000:s=960x540:r=30:duration=57 -r 30 -i ./tmp/canvas_730313769706_%05d.png -to 00:00:57.000 -i file:///var/www/html/clie [12:21:09.694] nts/19742/audio/A0E75E76-C92E-E8BA-B033-602708FAA464.mp3 -to 00:00:57.000 -i file:///var/app/video_pre_processor/assets/vidbot/_files/audio/RF3_Easy_L [12:21:09.695] istening.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= [12:21:09.695] out:st=57: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 -ma [12:21:09.695] p [a_out] -map [1_out] -preset veryfast -crf 18 -movflags frag_keyframe+empty_moov -pix_fmt yuv420p /var/www/html/clients/19742/video/A0E75E76-C92E-E8 [12:21:09.695] BA-B033-602708FAA464.mp4 [12:21:09.935] index :: _onStepProgress_vidbot(), percent: -3644295539 [12:21:10.323] index :: _onStepProgress_vidbot(), percent: 1 [12:21:11.341] index :: _onStepProgress_vidbot(), percent: 5 [12:21:12.868] index :: _onStepProgress_vidbot(), percent: 11 [12:21:13.876] index :: _onStepProgress_vidbot(), percent: 16 [12:21:14.883] index :: _onStepProgress_vidbot(), percent: 20 [12:21:16.408] index :: _onStepProgress_vidbot(), percent: 26 [12:21:17.428] index :: _onStepProgress_vidbot(), percent: 30 [12:21:18.931] index :: _onStepProgress_vidbot(), percent: 37 [12:21:19.935] index :: _onStepProgress_vidbot(), percent: 43 [12:21:20.435] index :: _onStepProgress_vidbot(), percent: 46 [12:21:21.441] index :: _onStepProgress_vidbot(), percent: 52 [12:21:21.944] index :: _onStepProgress_vidbot(), percent: 55 [12:21:22.947] index :: _onStepProgress_vidbot(), percent: 62 [12:21:23.471] index :: _onStepProgress_vidbot(), percent: 65 [12:21:24.483] index :: _onStepProgress_vidbot(), percent: 70 [12:21:25.487] index :: _onStepProgress_vidbot(), percent: 75 [12:21:26.494] index :: _onStepProgress_vidbot(), percent: 80 [12:21:27.492] index :: _onStepProgress_vidbot(), percent: 86 [12:21:28.511] index :: _onStepProgress_vidbot(), percent: 91 [12:21:29.508] index :: _onStepProgress_vidbot(), percent: 97 [12:21:30.001] index :: _onStepProgress_vidbot(), percent: 100 [12:21:30.046] Vidbot :: ffmpeg.on( 'end' ), Done! [12:21:30.046] StreamManager :: dispose() [12:21:30.047] CanvasStream[canvas_730313769706] :: dispose() [12:21:30.051] Vidbot :: fflog.on( 'finish' ) [12:21:30.052] fflog.path: /var/www/html/clients/19742/video/A0E75E76-C92E-E8BA-B033-602708FAA464.mp4.fflog [12:21:30.052] Vidbot :: _next(), _stepIndex:4 of 4 [12:21:30.052] index :: _onStepCompleted_vidbot(), step: 4 [12:21:30.052] index :: _onComplete_vidbot(), data: { stepTime: 0, appTime: 778.042, output: '/var/www/html/clients/19742/video/A0E75E76-C92E-E8BA-B033-602708FAA464.mp4', duration: 57 } --------------------------------------------------------------------------------------------------------------- Output File : /var/app/video_pre_processor/jobs/postp//var/www/html/clients/19742/video/A0E75E76-C92E-E8BA-B033-602708FAA464.mp4 Media Duration : 00:00:57.000 Generation Time : 00:12:58.042 ---------------------------------------------------------------------------------------------------------------