@michael_ting/node-red-mp4-to-mp3 1.0.0

A Node-RED node to convert MP4 video files to MP3 audio files.

npm install @michael_ting/node-red-mp4-to-mp3

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

  1. Drag the mp4-to-mp3 node into your flow.
  2. Configure the node with the path to the MP4 file, the output directory, and the output file name.
  3. Deploy the flow.
  4. 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": []
    }
]

Node Info

Version: 1.0.0
Updated 8 months, 1 week ago
License: MIT
Rating: 5.0 1

Categories

Actions

Rate:

Downloads

5 in the last week

Nodes

  • mp4-to-mp3

Keywords

  • node-red
  • mp4
  • mp3
  • ffmpeg

Maintainers