Without the full info i asked for and answers to the questions i asked i can only offer this example.
Hope it helps, it should create an options array for node-red-dashboard, containing only mp4 file names.
[{"id":"0c6a37e001738edf","type":"inject","z":"d1395164b4eec73e","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"[\"Defaultvideo.mp4\",\"HDTV pattern.jpg\",\"hummingbird.mp4\",\"PostVideo.mp4\",\"Prevideo.mp4\"]","payloadType":"json","x":230,"y":5600,"wires":[["a881122d87f140df"]]},{"id":"a881122d87f140df","type":"change","z":"d1395164b4eec73e","name":"","rules":[{"t":"set","p":"options","pt":"msg","to":"$$.payload[$substring($, -4) = \".mp4\"].{$:$}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":420,"y":5600,"wires":[["48856e2089e8c664","4ff46e05d0f1a28c"]]},{"id":"48856e2089e8c664","type":"debug","z":"d1395164b4eec73e","name":"debug 2","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":600,"y":5600,"wires":[]},{"id":"4ff46e05d0f1a28c","type":"ui_dropdown","z":"d1395164b4eec73e","name":"","label":"","tooltip":"","place":"Select option","group":"2d4fe667.28f8ba","order":1,"width":0,"height":0,"passthru":true,"multiple":false,"options":[{"label":"","value":"","type":"str"}],"payload":"","topic":"topic","topicType":"msg","className":"","x":540,"y":5640,"wires":[[]]},{"id":"2d4fe667.28f8ba","type":"ui_group","name":"Demo","tab":"0ca01f1e15e69b4d","order":2,"disp":true,"width":"18","collapse":false,"className":""},{"id":"0ca01f1e15e69b4d","type":"ui_tab","name":"demo","icon":"dashboard","disabled":false,"hidden":false}]
How to import/export a flow