--------------------------------------------------------------------------------------------------------------- INITIALIZING VIDBOT, v1.7.0... --------------------------------------------------------------------------------------------------------------- [14:12:08.466] Vidbot :: start() [14:12:08.467] Vidbot :: _next(), _stepIndex:0 of 4 [14:12:08.467] index :: _onStepStarted_vidbot(), step: 1 [14:12:08.469] Vidbot :: step[0], label:Initializing Core [14:12:08.476] index :: _onStepProgress_vidbot(), percent: 20 [14:12:08.477] Vidbot :: _parse() [14:12:08.478] index :: _onStepProgress_vidbot(), percent: 40 [14:12:08.478] Vidbot :: _validate() [14:12:08.479] index :: _onStepProgress_vidbot(), percent: 60 [14:12:08.479] Vidbot :: _fonts() [14:12:08.480] FabricFontManager :: add(), id: SourceSansPro-Bold [14:12:08.480] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Bold.ttf [14:12:08.488] FabricFontManager :: add(), id: SourceSansPro-Light [14:12:08.488] src: /var/app/Vidbot-V2/assets/fonts/SourceSansPro/SourceSansPro-Light.ttf [14:12:08.489] FabricFontManager :: add(), id: DINOT-Bold [14:12:08.489] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Bold.otf [14:12:08.490] FabricFontManager :: add(), id: DINOT-Light [14:12:08.490] src: /var/app/Vidbot-V2/assets/fonts/DINOT/DINOT-Light.otf [14:12:08.491] FabricFontManager :: add(), id: TradeGothicLTStd-Regular [14:12:08.491] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Regular.otf [14:12:08.492] FabricFontManager :: add(), id: TradeGothicLTStd-Bold [14:12:08.492] src: /var/app/Vidbot-V2/assets/fonts/TradeGothicCond/TradeGothicLTStd-Bold.otf [14:12:08.493] index :: _onStepProgress_vidbot(), percent: 80 [14:12:08.493] Vidbot :: _clips() [14:12:08.494] StreamManager :: add(), id:audio_vo, type:audio [14:12:08.494] AudioClip[audio_vo] :: constructor() [14:12:08.494] InputStream[audio_vo] :: constructor() [14:12:08.494] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'audio_vo', clipId: null } [14:12:08.497] StreamManager :: add(), id:bg_music, type:audio [14:12:08.497] AudioClip[bg_music] :: constructor() [14:12:08.497] InputStream[bg_music] :: constructor() [14:12:08.497] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'bg_music', clipId: null } [14:12:08.497] StreamManager :: add(), id:simplefadedisplay, type:canvas [14:12:08.498] CanvasStream[canvas_1392945874055] :: constructor() [14:12:08.498] InputStream[canvas_1392945874055] :: constructor() [14:12:08.572] KenBurnsSlideshow[simplefadedisplay] :: constructor() [14:12:08.573] Overlay[simplefadedisplay] :: constructor() [14:12:08.573] CanvasClip[simplefadedisplay] :: constructor() [14:12:08.573] Clip[simplefadedisplay] :: constructor() [14:12:08.573] clip:"simplefadedisplay" added to stream:"canvas_1392945874055" [14:12:08.573] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_1392945874055', clipId: 'simplefadedisplay' } [14:12:08.573] StreamManager :: add(), id:caption, type:canvas [14:12:08.573] RenCaption[caption] :: constructor() [14:12:08.574] Ren[caption] :: constructor() [14:12:08.574] Overlay[caption] :: constructor() [14:12:08.574] CanvasClip[caption] :: constructor() [14:12:08.574] Clip[caption] :: constructor() [14:12:08.574] clip:"caption" added to stream:"canvas_1392945874055" [14:12:08.574] Vidbot :: StreamMgr.on( 'ADDED' ), data: { streamID: 'canvas_1392945874055', clipId: 'caption' } [14:12:08.574] all added... [14:12:08.574] Vidbot :: _next(), _stepIndex:1 of 4 [14:12:08.574] index :: _onStepCompleted_vidbot(), step: 1 [14:12:08.575] index :: _onStepStarted_vidbot(), step: 2 [14:12:08.575] Vidbot :: step[1], label:Initializing Input Streams [14:12:08.575] StreamManager :: init() [14:12:08.575] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'audio_vo', progress: 0.3333333333333333 } [14:12:08.576] index :: _onStepProgress_vidbot(), percent: 33 [14:12:08.576] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'bg_music', progress: 0.6666666666666666 } [14:12:08.576] index :: _onStepProgress_vidbot(), percent: 67 [14:12:08.576] CanvasStream[canvas_1392945874055] :: _init(), BEGIN [14:12:08.576] i:0, c.id:simplefadedisplay [14:12:08.577] KenBurnsSlideshow[simplefadedisplay] :: _init(), BEGIN [14:12:08.577] KenBurnsSlideshow[simplefadedisplay] :: _validate() [14:12:08.577] KenBurnsSlideshow[undefined] :: _validateAnim() [14:12:08.578] KenBurnsSlideshow[undefined] :: _validateTheme() [14:12:08.579] i:1, c.id:caption [14:12:08.579] RenCaption[caption] :: _init() [14:12:08.579] RenCaption[caption] :: _validate() [14:12:08.580] KenBurnsSlideshow[simplefadedisplay] :: _build() [14:12:08.586] AnimatedImageFrame[aif] :: constructor() [14:12:08.587] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.587] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_1.jpg [14:12:08.598] RenCaption[caption] :: _build() [14:12:08.613] Overlay[caption] :: _animate() [14:12:08.616] CanvasStream[caption] :: _init(), p.then() [14:12:08.637] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.640] AnimatedImageFrame[aif] :: _init(), END [14:12:08.641] AnimatedImageFrame[aif] :: constructor() [14:12:08.641] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.641] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_2.jpg [14:12:08.662] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.663] AnimatedImageFrame[aif] :: _init(), END [14:12:08.664] AnimatedImageFrame[aif] :: constructor() [14:12:08.665] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.665] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_3.jpg [14:12:08.682] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.682] AnimatedImageFrame[aif] :: _init(), END [14:12:08.683] AnimatedImageFrame[aif] :: constructor() [14:12:08.683] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.683] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_4.jpg [14:12:08.700] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.701] AnimatedImageFrame[aif] :: _init(), END [14:12:08.701] AnimatedImageFrame[aif] :: constructor() [14:12:08.701] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.702] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_5.jpg [14:12:08.718] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.719] AnimatedImageFrame[aif] :: _init(), END [14:12:08.720] AnimatedImageFrame[aif] :: constructor() [14:12:08.720] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.720] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_6.jpg [14:12:08.737] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.738] AnimatedImageFrame[aif] :: _init(), END [14:12:08.738] AnimatedImageFrame[aif] :: constructor() [14:12:08.738] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.739] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_7.jpg [14:12:08.755] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.756] AnimatedImageFrame[aif] :: _init(), END [14:12:08.756] AnimatedImageFrame[aif] :: constructor() [14:12:08.756] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.756] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_8.jpg [14:12:08.792] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.793] AnimatedImageFrame[aif] :: _init(), END [14:12:08.794] AnimatedImageFrame[aif] :: constructor() [14:12:08.794] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.794] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_9.jpg [14:12:08.812] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.813] AnimatedImageFrame[aif] :: _init(), END [14:12:08.814] AnimatedImageFrame[aif] :: constructor() [14:12:08.814] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.814] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_10.jpg [14:12:08.831] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.832] AnimatedImageFrame[aif] :: _init(), END [14:12:08.832] AnimatedImageFrame[aif] :: constructor() [14:12:08.833] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.833] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_11.jpg [14:12:08.851] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.852] AnimatedImageFrame[aif] :: _init(), END [14:12:08.852] AnimatedImageFrame[aif] :: constructor() [14:12:08.853] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.853] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_12.jpg [14:12:08.873] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.874] AnimatedImageFrame[aif] :: _init(), END [14:12:08.874] AnimatedImageFrame[aif] :: constructor() [14:12:08.874] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.875] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_13.jpg [14:12:08.894] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.895] AnimatedImageFrame[aif] :: _init(), END [14:12:08.895] AnimatedImageFrame[aif] :: constructor() [14:12:08.896] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.896] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_14.jpg [14:12:08.912] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.913] AnimatedImageFrame[aif] :: _init(), END [14:12:08.914] AnimatedImageFrame[aif] :: constructor() [14:12:08.914] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.914] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_15.jpg [14:12:08.939] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.940] AnimatedImageFrame[aif] :: _init(), END [14:12:08.941] AnimatedImageFrame[aif] :: constructor() [14:12:08.941] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.941] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_16.jpg [14:12:08.960] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.961] AnimatedImageFrame[aif] :: _init(), END [14:12:08.961] AnimatedImageFrame[aif] :: constructor() [14:12:08.961] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.961] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_17.jpg [14:12:08.979] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.980] AnimatedImageFrame[aif] :: _init(), END [14:12:08.980] AnimatedImageFrame[aif] :: constructor() [14:12:08.980] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.981] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_18.jpg [14:12:08.996] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:08.997] AnimatedImageFrame[aif] :: _init(), END [14:12:08.997] AnimatedImageFrame[aif] :: constructor() [14:12:08.998] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:08.998] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_19.jpg [14:12:09.018] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:09.019] AnimatedImageFrame[aif] :: _init(), END [14:12:09.019] AnimatedImageFrame[aif] :: constructor() [14:12:09.019] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:09.019] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_20.jpg [14:12:09.035] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:09.036] AnimatedImageFrame[aif] :: _init(), END [14:12:09.037] AnimatedImageFrame[aif] :: constructor() [14:12:09.037] AnimatedImageFrame[aif] :: _init(), BEGIN [14:12:09.037] CanvasClip :: LoadImageWithPromise(), src: AA8AF2DE-93CC-038B-0DF7-F6077D03465F_1.jpg [14:12:09.053] CanvasClip :: LoadImageWithPromise(), loaded, isError: false [14:12:09.054] AnimatedImageFrame[aif] :: _init(), END [14:12:09.054] Overlay[simplefadedisplay] :: _animate() [14:12:09.055] KenBurnsSlideshow[simplefadedisplay] :: _init(), END [14:12:09.055] CanvasStream[simplefadedisplay] :: _init(), p.then() [14:12:09.055] CanvasStream[canvas_1392945874055] :: _init(), promise.all.then() [14:12:09.057] CanvasStream[canvas_1392945874055] :: _init(), END [14:12:09.057] StreamMangaer :: init(), stream[canvas_1392945874055].then() [14:12:09.057] Vidbot :: StreamMgr.on( 'STREAM_INITED' ), data: { streamID: 'canvas_1392945874055', progress: 1 } [14:12:09.057] index :: _onStepProgress_vidbot(), percent: 100 [14:12:09.058] StreamManager :: init(), promise.all.then... [14:12:09.058] Vidbot :: StreamMgr.on( 'INITED' ) [14:12:09.058] Vidbot :: _next(), _stepIndex:2 of 4 [14:12:09.058] index :: _onStepCompleted_vidbot(), step: 2 [14:12:09.058] index :: _onStepStarted_vidbot(), step: 3 [14:12:09.058] Vidbot :: step[2], label:Rendering Canvas Streams [14:12:09.059] Vidbot :: StreamMgr.on( 'RENDER_STARTED' ), data: undefined [14:12:09.059] StreamManager :: render() [14:12:09.059] CanvasStream[canvas_1392945874055] :: render() [14:12:09.089] index :: _onStepProgress_vidbot(), percent: 0 [14:12:23.705] index :: _onStepProgress_vidbot(), percent: 5 [14:12:41.565] index :: _onStepProgress_vidbot(), percent: 10 [14:13:00.029] index :: _onStepProgress_vidbot(), percent: 15 [14:13:18.237] index :: _onStepProgress_vidbot(), percent: 20 [14:13:37.263] index :: _onStepProgress_vidbot(), percent: 25 [14:13:55.430] index :: _onStepProgress_vidbot(), percent: 30 [14:14:15.019] index :: _onStepProgress_vidbot(), percent: 35 [14:14:37.271] index :: _onStepProgress_vidbot(), percent: 40 [14:14:59.499] index :: _onStepProgress_vidbot(), percent: 45 [14:15:20.633] index :: _onStepProgress_vidbot(), percent: 50 [14:15:42.043] index :: _onStepProgress_vidbot(), percent: 55 [14:16:03.133] index :: _onStepProgress_vidbot(), percent: 60 [14:16:24.411] index :: _onStepProgress_vidbot(), percent: 65 [14:16:46.507] index :: _onStepProgress_vidbot(), percent: 70 [14:17:08.574] index :: _onStepProgress_vidbot(), percent: 75 [14:17:31.141] index :: _onStepProgress_vidbot(), percent: 80 [14:17:53.447] index :: _onStepProgress_vidbot(), percent: 85 [14:18:16.433] index :: _onStepProgress_vidbot(), percent: 90 [14:18:40.420] index :: _onStepProgress_vidbot(), percent: 95 [14:19:02.453] index :: _onStepProgress_vidbot(), percent: 100 [14:19:03.977] StreamManager :: render(), Promise.all.then... [14:19:03.978] Vidbot :: StreamMgr.on( 'RENDER_COMPLETED' ), data: undefined [14:19:03.978] Vidbot :: _next(), _stepIndex:3 of 4 [14:19:03.978] index :: _onStepCompleted_vidbot(), step: 3 [14:19:03.979] index :: _onStepStarted_vidbot(), step: 4 [14:19:03.980] Vidbot :: step[3], label:Encoding Media [14:19:03.983] CanvasFilters :: Overlay() [14:19:03.983] AudioStream[audio_vo] :: inputOptions() [14:19:03.983] AudioFilters :: Volume() [14:19:03.984] filter: [2:a]volume=1[2_vol] [14:19:03.984] AudioFilters :: Delay() [14:19:03.984] filter: [2_vol]adelay=0|0[2_del] [14:19:03.984] AudioStream[bg_music] :: inputOptions() [14:19:03.984] AudioFilters :: Volume() [14:19:03.984] filter: [3:a]volume=0.25[3_vol] [14:19:03.984] AudioFilters :: FadeOut() [14:19:03.984] filter: [3_vol]afade=t=out:st=61.53:d=1[3_fadeout] [14:19:03.985] AudioFilters :: Delay() [14:19:03.985] filter: [3_fadeout]adelay=0|0[3_del] [14:19:03.985] AudioFilters :: Mix() [14:19:03.985] filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [14:19:03.985] mixed filter: [2_del][3_del]amix=inputs=2:duration=longest[a_out] [14:19:03.987] hang.time: 60 [14:19:04.117] Vidbot :: ffmpeg.on( 'start' ) [14:19:04.118] ffmpeg -f lavfi -i color=c=000000:s=640x360:r=30:duration=61.53 -r 30 -i ./tmp/canvas_1392945874055_%05d.png -to 00:01:01.530 -i file:///var/www/html/ [14:19:04.118] clients/17039/audio/AA8AF2DE-93CC-038B-0DF7-F6077D03465F.mp3 -to 00:01:01.530 -i file:///var/app/video_pre_processor/assets/vidbot/_files/audio/Orches [14:19:04.118] tra-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= [14:19:04.118] out:st=61.53: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 [14:19:04.118] -map [a_out] -map [1_out] -preset veryfast -crf 18 -movflags frag_keyframe+empty_moov -pix_fmt yuv420p /var/www/html/clients/17039/video/AA8AF2DE-93CC [14:19:04.118] -038B-0DF7-F6077D03465F.mp4 [14:19:04.269] index :: _onStepProgress_vidbot(), percent: -3375992942 [14:19:04.712] index :: _onStepProgress_vidbot(), percent: 2 [14:19:05.214] index :: _onStepProgress_vidbot(), percent: 6 [14:19:06.215] index :: _onStepProgress_vidbot(), percent: 12 [14:19:06.730] index :: _onStepProgress_vidbot(), percent: 15 [14:19:07.731] index :: _onStepProgress_vidbot(), percent: 21 [14:19:08.751] index :: _onStepProgress_vidbot(), percent: 29 [14:19:09.252] index :: _onStepProgress_vidbot(), percent: 32 [14:19:09.753] index :: _onStepProgress_vidbot(), percent: 36 [14:19:10.257] index :: _onStepProgress_vidbot(), percent: 40 [14:19:11.267] index :: _onStepProgress_vidbot(), percent: 46 [14:19:11.775] index :: _onStepProgress_vidbot(), percent: 50 [14:19:12.786] index :: _onStepProgress_vidbot(), percent: 57 [14:19:13.286] index :: _onStepProgress_vidbot(), percent: 61 [14:19:13.786] index :: _onStepProgress_vidbot(), percent: 65 [14:19:14.290] index :: _onStepProgress_vidbot(), percent: 70 [14:19:15.301] index :: _onStepProgress_vidbot(), percent: 77 [14:19:15.804] index :: _onStepProgress_vidbot(), percent: 81 [14:19:16.309] index :: _onStepProgress_vidbot(), percent: 86 [14:19:16.809] index :: _onStepProgress_vidbot(), percent: 90 [14:19:17.310] index :: _onStepProgress_vidbot(), percent: 95 [14:19:17.818] index :: _onStepProgress_vidbot(), percent: 100 [14:19:17.838] Vidbot :: ffmpeg.on( 'end' ), Done! [14:19:17.838] StreamManager :: dispose() [14:19:17.839] CanvasStream[canvas_1392945874055] :: dispose() [14:19:17.844] Vidbot :: fflog.on( 'finish' ) [14:19:17.844] fflog.path: /var/www/html/clients/17039/video/AA8AF2DE-93CC-038B-0DF7-F6077D03465F.mp4.fflog [14:19:17.844] Vidbot :: _next(), _stepIndex:4 of 4 [14:19:17.844] index :: _onStepCompleted_vidbot(), step: 4 [14:19:17.845] index :: _onComplete_vidbot(), data: { stepTime: 0.001, appTime: 429.397, output: '/var/www/html/clients/17039/video/AA8AF2DE-93CC-038B-0DF7-F6077D03465F.mp4', duration: 61.53 } --------------------------------------------------------------------------------------------------------------- Output File : /var/app/video_pre_processor/jobs/postp//var/www/html/clients/17039/video/AA8AF2DE-93CC-038B-0DF7-F6077D03465F.mp4 Media Duration : 00:01:01.530 Generation Time : 00:07:09.396 ---------------------------------------------------------------------------------------------------------------