I hope I'm formatting this correctly...
@Colin
Here is an example flow:
[
{
"id": "f2bcc0b64ed87080",
"type": "tab",
"label": "Flow 1",
"disabled": false,
"info": "",
"env": []
},
{
"id": "788bfcaf2568089c",
"type": "debug",
"z": "f2bcc0b64ed87080",
"name": "debug 1",
"active": true,
"tosidebar": true,
"console": true,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 610,
"y": 140,
"wires": []
},
{
"id": "bda4b032f8bafcdc",
"type": "exec",
"z": "f2bcc0b64ed87080",
"command": "",
"addpay": "payload",
"append": "",
"useSpawn": "true",
"timer": "",
"winHide": false,
"oldrc": false,
"name": "",
"x": 450,
"y": 180,
"wires": [
[
"788bfcaf2568089c"
],
[
"52d1681823e0de46"
],
[
"a5101ca670bc7487"
]
]
},
{
"id": "52d1681823e0de46",
"type": "debug",
"z": "f2bcc0b64ed87080",
"name": "debug 2",
"active": true,
"tosidebar": true,
"console": true,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 610,
"y": 180,
"wires": []
},
{
"id": "a5101ca670bc7487",
"type": "debug",
"z": "f2bcc0b64ed87080",
"name": "debug 3",
"active": true,
"tosidebar": true,
"console": true,
"tostatus": false,
"complete": "payload",
"targetType": "msg",
"statusVal": "",
"statusType": "auto",
"x": 610,
"y": 220,
"wires": []
},
{
"id": "ebac652b0732894b",
"type": "inject",
"z": "f2bcc0b64ed87080",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "vlc /home/pi/Desktop/Squirrel.mp4",
"payloadType": "str",
"x": 310,
"y": 180,
"wires": [
[
"bda4b032f8bafcdc"
]
]
},
{
"id": "19b5bf46199322a6",
"type": "inject",
"z": "f2bcc0b64ed87080",
"name": "",
"props": [
{
"p": "payload"
},
{
"p": "topic",
"vt": "str"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "vlc",
"payloadType": "str",
"x": 310,
"y": 140,
"wires": [
[
"bda4b032f8bafcdc"
]
]
},
{
"id": "0bc4bf6a40458f7f",
"type": "inject",
"z": "f2bcc0b64ed87080",
"name": "",
"props": [
{
"p": "payload"
}
],
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"topic": "",
"payload": "vlc -vv --logfile=/home/pi/temp/vlclog.txt",
"payloadType": "str",
"x": 310,
"y": 220,
"wires": [
[
"bda4b032f8bafcdc"
]
]
}
]
Here is the output of "vlc" by itself:
2 Aug 11:04:29 - [info] [debug:debug 2]
[01636918] vlcpulse audio output error: PulseAudio server connection failure: Connection refused
2 Aug 11:04:29 - [info] [debug:debug 2]
[01671c40] dbus interface error: Failed to connect to the D-Bus session daemon: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
[01671c40] main interface error: no suitable interface module
[015b7b98] main libvlc error:
2 Aug 11:04:29 - [info] [debug:debug 2]
interface "dbus,none" initialization failed
[0165c100] lua interface error: password not configured
[0165c100] lua interface: Please specify the password in the preferences.
[0165c100] main interface error: no suitable interface module
2 Aug 11:04:29 - [info] [debug:debug 2]
[015b7b98] main libvlc error: interface "telnet,none" initialization failed
2 Aug 11:04:29 - [info] [debug:debug 2]
[01671c40] [http] lua interface: Lua HTTP interface
[01621210] main interface error: no suitable interface module
[015b7b98] main libvlc error: interface "globalhotkeys,none" initialization failed
[015b7b98] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
2 Aug 11:04:29 - [info] [debug:debug 2]
[01671c40] [http] main interface error: socket bind error: Address already in use
[01671c40] [http] main interface error: socket bind error: Address already in use
[01671c40] [http] main interface error: cannot create socket(s) for HTTP host
[01671c40] [http] lua interface error: Error loading script /usr/lib/arm-linux-gnueabihf/vlc/lua/intf/http.luac: lua/intf/http.lua:338: Failed to create HTTP host
2 Aug 11:04:30 - [info] [debug:debug 2]
error: XDG_RUNTIME_DIR not set in the environment.
2 Aug 11:04:30 - [info] [debug:debug 2] [01621210]
2 Aug 11:04:30 - [info] [debug:debug 2] skins2 interface error:
2 Aug 11:04:30 - [info] [debug:debug 2] cannot initialize OSFactory
2 Aug 11:04:30 - [info] [debug:debug 2]
2 Aug 11:04:30 - [info] [debug:debug 2]
[016357c0] main playlist: playlist is empty
2 Aug 11:04:30 - [info] [debug:debug 2]
[01621210] [cli] lua interface: Listening on host "*console".
2 Aug 11:04:30 - [info] [debug:debug 1]
VLC media player 3.0.17.4 Vetinari
Command Line Interface initialized. Type `help' for help.
And this is what I get when I try to play a local video file, this error message loops over and over:
2 Aug 11:08:16 - [info] [debug:debug 2]
[b0e49770] mmal_codec filter error: Failed to alloc CMA buf: fmt=Z420, size=3133440