@michael_ting/node-red-mp4-to-mp3
v1.0.1
Published
A Node-RED node to convert MP4 video files to MP3 audio files.
Downloads
2
Readme
Node-RED MP4 to MP3 Node
This Node-RED node converts an MP4 video file to an MP3 audio file.
Installation
Run the following command in your Node-RED user directory (typically ~/.node-red
):
npm install @michael_ting/node-red-mp4-to-mp3
Usage
- Drag the mp4-to-mp3 node into your flow.
- Configure the node with the path to the MP4 file, the output directory, and the output file name.
- Deploy the flow.
- Inject a message to trigger the conversion.
Node Properties
- Video Path: Path to the MP4 file.
- Output Directory: Directory to save the MP3 file.
- Output File Name: Name of the output MP3 file.
Example
Here is an example of how to use the node:
[
{
"id": "n1",
"type": "inject",
"name": "",
"topic": "",
"payload": "",
"payloadType": "date",
"repeat": "",
"crontab": "",
"once": false,
"onceDelay": 0.1,
"x": 150,
"y": 100,
"wires": [["n2"]]
},
{
"id": "n2",
"type": "mp4-to-mp3",
"name": "",
"videoPath": "/path/to/video.mp4",
"outputDir": "/path/to/output",
"outputFileName": "output.mp3",
"x": 350,
"y": 100,
"wires": [["n3"]]
},
{
"id": "n3",
"type": "debug",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "payload",
"x": 550,
"y": 100,
"wires": []
}
]