I changed your flow so that ffmpeg is also piping out jpegs and for the ffmpeg node to have the additional outputs for stderr for logging and pipe:3 for the jpegs:
[{"id":"2f15f30e7d6375cf","type":"ui_mp4frag","z":"fa3972195becffe0","name":"","group":"f4f1a14b.1adf4","order":5,"width":6,"height":4,"readyPoster":"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAyAAAAJYCAMAAACtqHJCAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAA2hpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wTU09Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9tbS8iIHhtbG5zOnN0UmVmPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvc1R5cGUvUmVzb3VyY2VSZWYjIiB4bWxuczp4bXA9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC8iIHhtcE1NOk9yaWdpbmFsRG9jdW1lbnRJRD0ieG1wLmRpZDowMzgwMTE3NDA3MjA2ODExODIyQUIzREQ3RTA0MDAyNCIgeG1wTU06RG9jdW1lbnRJRD0ieG1wLmRpZDpGRkU5MkM4RDJCNTkxMUVCQjJCOTg0MEQ0QThCQ0YyQyIgeG1wTU06SW5zdGFuY2VJRD0ieG1wLmlpZDpGRkU5MkM4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ength\":10,\"manifestLoadingTimeOut\":1000,\"manifestLoadingMaxRetry\":10,\"manifestLoadingRetryDelay\":500}","autoplay":"true","unload":"true","threshold":"0.1","controls":"true","muted":"true","players":["mp4","socket.io","hls.js","hls"],"x":1050,"y":340,"wires":[[]]},{"id":"a34c078afaaefa7b","type":"ui_button","z":"fa3972195becffe0","name":"","group":"f4f1a14b.1adf4","order":3,"width":1,"height":1,"passthru":true,"label":"Start","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"{\"command\":\"start\",\"path\":\"/usr/bin/ffmpeg\",\"args\":[\"-rtsp_transport\",\"tcp\",\"-i\",\"RTSPCAM\",\"-an\",\"-c:v\",\"copy\",\"-f\",\"mp4\",\"-movflags\",\"+frag_keyframe+empty_moov+default_base_moof\",\"pipe:1\",\"-f\",\"image2pipe\",\"-c\",\"mjpeg\",\"-vf\",\"fps=fps=1\",\"pipe:3\"]}","payloadType":"str","topic":"","topicType":"str","x":70,"y":360,"wires":[["42b2b9eb4dcfb5e2"]]},{"id":"42b2b9eb4dcfb5e2","type":"function","z":"fa3972195becffe0","name":"payload2action","func":"let camRtsp = flow.get(\"CamRtsp\") || \"empty\";\nif(camRtsp === \"empty\") return null;\nmsg.action = msg.payload.replace('RTSPCAM', camRtsp);\nreturn msg;\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":240,"y":380,"wires":[["3c25376d85e16edf"]]},{"id":"3c25376d85e16edf","type":"json","z":"fa3972195becffe0","name":"","property":"action","action":"","pretty":false,"x":410,"y":380,"wires":[["42fa576378de8a47","b33eddc5f34f30a6"]]},{"id":"42fa576378de8a47","type":"ffmpeg","z":"fa3972195becffe0","name":"","outputs":4,"cmdPath":"","cmdArgs":"[]","cmdOutputs":3,"killSignal":"SIGTERM","x":560,"y":380,"wires":[["fdf3bd95eeeef59b","ed2eaed3bfac4eb5"],["fdf3bd95eeeef59b"],["53f6815be1d3e5f8"],["ed2eaed3bfac4eb5"]]},{"id":"b33eddc5f34f30a6","type":"debug","z":"fa3972195becffe0","name":"debug 11","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":560,"y":320,"wires":[]},{"id":"fdf3bd95eeeef59b","type":"mp4frag","z":"fa3972195becffe0","name":"","outputs":2,"basePath":"id","serveHttp":"false","serveIo":"false","hlsPlaylistSize":"10","hlsPlaylistExtra":"5","bufferPool":"","autoStart":"false","preBuffer":"1","timeLimit":"100000","repeated":"false","statusData":"playlist","x":800,"y":340,"wires":[["2f15f30e7d6375cf"],[]]},{"id":"eed1db24ba892682","type":"ui_button","z":"fa3972195becffe0","name":"","group":"f4f1a14b.1adf4","order":2,"width":1,"height":1,"passthru":true,"label":"Stop","tooltip":"","color":"","bgcolor":"","className":"","icon":"","payload":"{\"command\":\"stop\"}","payloadType":"str","topic":"","topicType":"str","x":70,"y":400,"wires":[["42b2b9eb4dcfb5e2"]]},{"id":"0bb20da4724fc761","type":"comment","z":"fa3972195becffe0","name":"Stream","info":"","x":230,"y":320,"wires":[]},{"id":"ed2eaed3bfac4eb5","type":"link out","z":"fa3972195becffe0","name":"link out 1","mode":"link","links":["b872c290665bb7ea"],"x":755,"y":460,"wires":[]},{"id":"473e5c96ff36a39a","type":"comment","z":"fa3972195becffe0","name":"--> Motion detect","info":"","x":880,"y":460,"wires":[]},{"id":"6ff8ef6231cc11d4","type":"comment","z":"fa3972195becffe0","name":"--> Motion detect","info":"","x":140,"y":520,"wires":[]},{"id":"cdc9257fbef26aac","type":"pipe2jpeg","z":"fa3972195becffe0","name":"","basePath":"id","serveHttp":"true","bufferType":"concat","x":280,"y":580,"wires":[["dbfd170cde805e61"],["91c95e7dfeccebb3","362e0af1034c3664","c03f539f01cf0c3f"]]},{"id":"b872c290665bb7ea","type":"link in","z":"fa3972195becffe0","name":"link in 1","links":["ed2eaed3bfac4eb5"],"x":105,"y":580,"wires":[["cdc9257fbef26aac"]]},{"id":"dbfd170cde805e61","type":"debug","z":"fa3972195becffe0","name":"debug 17","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":480,"y":520,"wires":[]},{"id":"91c95e7dfeccebb3","type":"debug","z":"fa3972195becffe0","name":"debug 18","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":500,"y":620,"wires":[]},{"id":"362e0af1034c3664","type":"debug","z":"fa3972195becffe0","name":"debug 19","active":false,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":800,"y":640,"wires":[]},{"id":"c03f539f01cf0c3f","type":"image","z":"fa3972195becffe0","name":"","width":160,"data":"payload","dataType":"msg","thumbnail":false,"active":true,"pass":false,"outputs":0,"x":800,"y":520,"wires":[]},{"id":"53f6815be1d3e5f8","type":"debug","z":"fa3972195becffe0","name":"stderr","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":770,"y":400,"wires":[]},{"id":"f4f1a14b.1adf4","type":"ui_group","name":"Cellier","tab":"9f7f7c23.5626d8","order":2,"disp":true,"width":"6","collapse":true,"className":""},{"id":"9f7f7c23.5626d8","type":"ui_tab","name":"Webcams","icon":"videocam","order":1,"disabled":false,"hidden":false}]
I will give you the friendly warning that creating jpegs from mp4 will require ffmpeg to decode the input and encode the output (transcoding) which could lead to a high cpu load if you try to create very large jpegs W x H or use a high FPS. Depending on what system you are on, there may be hardware acceleration decoders for the mp4 video that can reduce your load. But first, try the updated flow and report back if you can.
I will share with you my flow so you may have an alternative example:
[{"id":"a35ac355eeef7d5e","type":"subflow","name":"pid, status","info":"","category":"","in":[{"x":80,"y":100,"wires":[{"id":"f762eec6.4fbfc"}]}],"out":[{"x":280,"y":100,"wires":[{"id":"f762eec6.4fbfc","port":1}]},{"x":280,"y":160,"wires":[{"id":"f762eec6.4fbfc","port":2}]}],"env":[],"meta":{},"color":"#DDAA99","status":{"x":280,"y":40,"wires":[{"id":"f762eec6.4fbfc","port":0}]}},{"id":"f762eec6.4fbfc","type":"function","z":"a35ac355eeef7d5e","name":"","func":"const { payload = {} } = msg;\n\nconst { status, pid } = payload;\n\nif (pid && status) {\n\n const color = status === 'spawn' ? 'green' : 'red';\n\n const text = `pid: ${pid}, status: ${status}`;\n\n return [ { payload: { fill: color, shape: 'dot', text } }, { payload: pid }, { payload: status } ];\n\n}\n\nreturn;","outputs":3,"noerr":0,"initialize":"","finalize":"","libs":[],"x":175,"y":100,"wires":[[],[],[]],"l":false},{"id":"7abea2a.3635c5c","type":"subflow","name":"auto restart","info":"","category":"","in":[{"x":80,"y":100,"wires":[{"id":"71100764.d230a8"}]}],"out":[{"x":480,"y":160,"wires":[{"id":"f51055b5.29d948","port":0}]}],"env":[{"name":"DELAY","type":"num","value":"5000"}],"meta":{},"color":"#DDAA99","status":{"x":280,"y":40,"wires":[{"id":"71100764.d230a8","port":0}]}},{"id":"f51055b5.29d948","type":"delay","z":"7abea2a.3635c5c","name":"delay","pauseType":"delayv","timeout":"1","timeoutUnits":"milliseconds","rate":"1","nbRateUnits":"1","rateUnits":"second","randomFirst":"1","randomLast":"5","randomUnits":"seconds","drop":false,"allowrate":false,"outputs":1,"x":375,"y":160,"wires":[[]],"l":false},{"id":"71100764.d230a8","type":"function","z":"7abea2a.3635c5c","name":"","func":"const { payload = {} } = msg;\n\nconst { status, code, signal, killed, pid } = payload;\n\nif (status === 'close' && killed === false) {\n\n const restart_count = context.get('restart_count') + 1;\n\n context.set('restart_count', restart_count);\n\n return [ { payload: { fill: 'green', text: `${restart_count}: ${new Date().toString()}` } }, { action: { command: 'start' } } ];\n\n}\n\nreturn;","outputs":2,"noerr":0,"initialize":"context.set('restart_count', 0);","finalize":"context.set('restart_count', undefined);","libs":[],"x":175,"y":100,"wires":[[],["d15a2631489c4819"]],"l":false},{"id":"d15a2631489c4819","type":"change","z":"7abea2a.3635c5c","name":"","rules":[{"t":"set","p":"delay","pt":"msg","to":"DELAY","tot":"env"}],"action":"","property":"","from":"","to":"","reg":false,"x":275,"y":160,"wires":[["f51055b5.29d948"]],"l":false},{"id":"1a29fa75.ef7866","type":"subflow","name":"progress","info":"","category":"","in":[{"x":80,"y":100,"wires":[{"id":"1370adb2.08e592"}]}],"out":[{"x":280,"y":100,"wires":[{"id":"1370adb2.08e592","port":1}]},{"x":280,"y":160,"wires":[{"id":"1370adb2.08e592","port":2}]}],"env":[],"meta":{},"color":"#DDAA99","status":{"x":280,"y":40,"wires":[{"id":"1370adb2.08e592","port":0}]}},{"id":"1370adb2.08e592","type":"function","z":"1a29fa75.ef7866","name":"","func":"const props = msg.payload.toString().split('\\n').slice(0, -1);\n\n/*if (props[props.length-1] !== 'progress=continue') {\n node.warn(props);\n}*/\n\nconst progress = {};\n\nprops.forEach(item => {\n\n const [name, value] = item.split('=');\n\n if (name && value) {\n\n progress[name] = value;\n\n }\n\n});\n\nconst fps = progress['fps'] || '0';\n\nconst bitrate = progress['bitrate'] || '0';\n\nconst kbps = bitrate.replace('kbits/s', '');\n\nconst color = progress['progress'] === 'continue' ? 'green' : 'red';\n\nconst text = `fps: ${fps}, kbps: ${kbps}`;\n\nreturn [ { payload: { fill: color, shape: 'dot', text } }, { payload: fps }, { payload: kbps } ];","outputs":3,"noerr":0,"initialize":"","finalize":"","libs":[],"x":175,"y":100,"wires":[[],[],[]],"l":false},{"id":"32d61e0f.0490b2","type":"subflow","name":"stderr","info":"","category":"","in":[{"x":80,"y":100,"wires":[{"id":"211d46bf.a79c7a"}]}],"out":[],"env":[],"color":"#DDAA99","status":{"x":280,"y":40,"wires":[{"id":"211d46bf.a79c7a","port":0}]}},{"id":"211d46bf.a79c7a","type":"function","z":"32d61e0f.0490b2","name":"","func":"const stderr = msg.payload.toString().split('\\n');\n\nreturn [ { payload: { fill: 'red', text: `${new Date().toString()}` } }, { stderr } ];","outputs":2,"noerr":0,"initialize":"","finalize":"","libs":[],"x":175,"y":100,"wires":[[],["c6e5408.f19c4c"]],"l":false},{"id":"c6e5408.f19c4c","type":"debug","z":"32d61e0f.0490b2","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"stderr","targetType":"msg","statusVal":"","statusType":"auto","x":275,"y":160,"wires":[],"l":false},{"id":"23160170.77800e","type":"subflow","name":"top","info":"","category":"","in":[{"x":80,"y":100,"wires":[{"id":"98a41609.d8efc8"}]}],"out":[{"x":480,"y":100,"wires":[{"id":"bc97fbbe.cb9318","port":1}]},{"x":480,"y":160,"wires":[{"id":"bc97fbbe.cb9318","port":2}]}],"env":[],"meta":{},"color":"#DDAA99","status":{"x":480,"y":40,"wires":[{"id":"bc97fbbe.cb9318","port":0}]}},{"id":"e4f2412d.1b609","type":"exec","z":"23160170.77800e","command":"top -b -d 5 -p","addpay":"payload","append":"","useSpawn":"true","timer":"","winHide":false,"oldrc":false,"name":"","x":275,"y":100,"wires":[["bc97fbbe.cb9318"],[],[]],"l":false,"info":"# minimize top's output in batch mode\n\nrun top in interactive mode (dont use -b)\n\nopen column configuration menu (f) and toggle values\n\nquit (q) menu\n\nconfigure display using (l, t, m) to remove extra\n\nsave configuration (shift + w)\n\nquit (q) top\n\nrun top in batch mode (top -b) to see the changes"},{"id":"bc97fbbe.cb9318","type":"function","z":"23160170.77800e","name":"","func":"const { payload } = msg;\n\nif (typeof payload === 'string') {\n\n const lines = payload.toString().trim().split(/[\\n]+/);\n\n if (lines.length >= 2) {\n\n const labels = lines[lines.length - 2].trim().split(/[\\s]+/);\n\n const values = lines[lines.length - 1].trim().split(/[\\s]+/);\n\n const data = {};\n\n for (let i = 0; i < labels.length; ++i) {\n\n data[labels[i]] = values[i] || '0.0';\n\n }\n\n const cpu = data['%CPU'];\n\n const mem = data['%MEM'];\n\n const text = `%CPU ${cpu}, %MEM ${mem}`;\n\n return [ { payload: { fill: 'green', shape: 'dot', text } }, { payload: cpu }, { payload: mem } ];\n\n }\n\n}\n\nreturn { payload: {} };","outputs":3,"noerr":0,"initialize":"","finalize":"","libs":[],"x":375,"y":100,"wires":[[],[],[]],"l":false},{"id":"98a41609.d8efc8","type":"function","z":"23160170.77800e","name":"","func":"const { payload = {} } = msg;\n\nconst { status, pid } = payload;\n\nconst timeout = context.get('timeout');\n\nclearTimeout(timeout);\n\nif (status === 'spawn') {\n\n const timeout = setTimeout(() => {\n\n node.send({ payload: pid });\n\n node.done();\n\n }, 100);\n\n context.set('timeout', timeout);\n\n return;\n\n}\n\nif (status === 'close') {\n\n return { payload: 'kill', kill: 'SIGTERM' };\n\n}","outputs":1,"noerr":0,"initialize":"// Code added here will be run once\n// whenever the node is deployed.\n\ncontext.set('timeout', undefined);","finalize":"// Code added here will be run when the\n// node is being stopped or re-deployed.\n\nconst timeout = context.get('timeout');\n\nclearTimeout(timeout);\n\ncontext.set('timeout', undefined);","libs":[],"x":175,"y":100,"wires":[["e4f2412d.1b609"]],"l":false},{"id":"cef91974e6aec9b2","type":"ffmpeg","z":"e9e026a8d50f5a31","name":"","outputs":5,"cmdPath":"","cmdArgs":"[\"-hide_banner\",\"-loglevel\",\"+level+fatal\",\"-nostats\",\"-hwaccel\",\"auto\",\"-c:v\",\"h264_v4l2m2m\",\"-stimeout\",\"20000000\",\"-rtsp_transport\",\"tcp\",\"-i\",\"SECRET\",\"-an\",\"-c:v\",\"copy\",\"-f\",\"mp4\",\"-movflags\",\"+frag_keyframe+empty_moov+default_base_moof\",\"-metadata\",\"title=front porch sub\",\"pipe:1\",\"-progress\",\"pipe:3\",\"-f\",\"image2pipe\",\"-c\",\"mjpeg\",\"-vf\",\"fps=fps=1\",\"pipe:4\"]","cmdOutputs":4,"killSignal":"SIGTERM","credentials":{},"x":530,"y":200,"wires":[["f16c156f0e8ec5c4","bb9a2e6c.2db89","79409137.c0d95","d329a272aced2adc","0490bbb215d50fad"],["f16c156f0e8ec5c4"],["e4c47f5e.f0dc2"],["8d29fa98.4602d8"],["0490bbb215d50fad"]],"info":" \"-vf\",\n \"fps=fps=1/2\",\n\n \"-c:v\",\n \"h264_v4l2m2m\",\n\n ,scale=400:225\n\n\n\n ```\n [\n \"-use_wallclock_as_timestamps\",\n \"1\",\n \"-fflags\",\n \"+igndts+genpts\",\n \"-loglevel\",\n \"+level+warning\",\n \"-nostats\",\n \"-hwaccel\",\n \"auto\",\n \"-c:v\",\n \"h264_v4l2m2m\",\n \"-stimeout\",\n \"20000000\",\n \"-rtsp_transport\",\n \"tcp\",\n \"-i\",\n \"SECRET\",\n \"-reset_timestamps\",\n \"1\",\n \"-muxdelay\",\n \"0.1\",\n \"-an\",\n \"-c:v\",\n \"copy\",\n \"-f\",\n \"mp4\",\n \"-movflags\",\n \"+frag_keyframe+empty_moov+default_base_moof\",\n \"-min_frag_duration\",\n \"500000\",\n \"-metadata\",\n \"title=front porch sub\",\n \"-reset_timestamps\",\n \"1\",\n \"-vsync\",\n \"1\",\n \"pipe:1\",\n \"-progress\",\n \"pipe:3\",\n \"-f\",\n \"image2pipe\",\n \"-c\",\n \"mjpeg\",\n \"-vf\",\n \"fps=fps=1\",\n \"pipe:4\"\n]\n ```\n\n [\n \"-loglevel\",\n \"+level+warning\",\n \"-nostats\",\n \"-hwaccel\",\n \"auto\",\n \"-c:v\",\n \"h264_v4l2m2m\",\n \"-stimeout\",\n \"20000000\",\n \"-rtsp_transport\",\n \"tcp\",\n \"-i\",\n \"SECRET\",\n \"-an\",\n \"-c:v\",\n \"copy\",\n \"-f\",\n \"mp4\",\n \"-movflags\",\n \"+frag_every_frame+empty_moov+default_base_moof\",\n \"-min_frag_duration\",\n \"500000\",\n \"-metadata\",\n \"title=front porch sub\",\n \"pipe:1\",\n \"-progress\",\n \"pipe:3\",\n \"-f\",\n \"image2pipe\",\n \"-c\",\n \"mjpeg\",\n \"-vf\",\n \"fps=fps=1\",\n \"pipe:4\"\n]"},{"id":"f16c156f0e8ec5c4","type":"mp4frag","z":"e9e026a8d50f5a31","name":"","outputs":2,"basePath":"front_porch_sub","serveHttp":"true","serveIo":"true","hlsPlaylistSize":4,"hlsPlaylistExtra":"1","bufferPool":"1","autoStart":"false","preBuffer":"0","timeLimit":"-1","repeated":"false","statusData":"all","x":870,"y":240,"wires":[["a26397f514f25a8e"],[]]},{"id":"bb9a2e6c.2db89","type":"subflow:23160170.77800e","z":"e9e026a8d50f5a31","name":"","x":810,"y":160,"wires":[["677b5a6a.68b384"],["3bec46dc.4c5eea"]]},{"id":"e4c47f5e.f0dc2","type":"subflow:32d61e0f.0490b2","z":"e9e026a8d50f5a31","name":"","x":810,"y":320,"wires":[]},{"id":"8d29fa98.4602d8","type":"subflow:1a29fa75.ef7866","z":"e9e026a8d50f5a31","name":"","env":[],"x":820,"y":400,"wires":[["859f94c6.1ed7c8"],["e5dbe5ba.2d8618"]]},{"id":"ef080de0.cfe68","type":"inject","z":"e9e026a8d50f5a31","name":"start","props":[{"p":"action","v":"{\"command\":\"start\"}","vt":"json"}],"repeat":"","crontab":"","once":true,"onceDelay":"5","topic":"","payloadType":"str","x":90,"y":100,"wires":[["4e8f1861.d92608","cef91974e6aec9b2"]]},{"id":"79409137.c0d95","type":"subflow:7abea2a.3635c5c","z":"e9e026a8d50f5a31","name":"","env":[],"x":290,"y":100,"wires":[["4e8f1861.d92608","cef91974e6aec9b2"]]},{"id":"b69b4a33.ef4b98","type":"inject","z":"e9e026a8d50f5a31","name":"restart","props":[{"p":"action","v":"{\"command\":\"restart\"}","vt":"json"}],"repeat":"","crontab":"","once":false,"onceDelay":"1","topic":"","payloadType":"str","x":90,"y":160,"wires":[["4e8f1861.d92608","cef91974e6aec9b2"]]},{"id":"275da6fe.763e0a","type":"inject","z":"e9e026a8d50f5a31","name":"stop","props":[{"p":"action","v":"{\"command\":\"stop\"}","vt":"json"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","x":90,"y":220,"wires":[["cef91974e6aec9b2"]]},{"id":"d329a272aced2adc","type":"subflow:a35ac355eeef7d5e","z":"e9e026a8d50f5a31","name":"","x":830,"y":80,"wires":[["22c956c0.422b5a"],["e3f1fa6c.d05f98"]]},{"id":"0490bbb215d50fad","type":"pipe2jpeg","z":"e9e026a8d50f5a31","name":"","basePath":"front_porch_sub","serveHttp":"true","bufferType":"array","x":880,"y":480,"wires":[["e2b703830e838751"],[]]}]
Also, don't forget to check the included examples. If you are like me, you may not know that the section exists (i found out after using node-red for quite a long time, oops).