https://github.com/cmalf/audio-video-transcoder
Simple Script NodeJs To Convert Audio or Video with `ffmpeg`
https://github.com/cmalf/audio-video-transcoder
audio converter ffmpeg media nodejs transcoder video
Last synced: 9 months ago
JSON representation
Simple Script NodeJs To Convert Audio or Video with `ffmpeg`
- Host: GitHub
- URL: https://github.com/cmalf/audio-video-transcoder
- Owner: cmalf
- Created: 2024-10-16T01:51:39.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-10-16T02:29:42.000Z (over 1 year ago)
- Last Synced: 2025-04-08T17:53:25.077Z (12 months ago)
- Topics: audio, converter, ffmpeg, media, nodejs, transcoder, video
- Language: JavaScript
- Homepage:
- Size: 2.98 MB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Audio-Video-Converter
Simple Script NodeJs To Converts Audio or Video witH `ffmpeg`
## About
This script can converts Audio/Video Format to another Format,
- supportedFormats
```JavaScript
const supportedFormats = {
"Video Formats": ["MP4", "AVI", "MKV", "MOV", "WMV", "FLV", "3GP", "WEBM", "MPEG", "VOB", "DAT", "TS"],
"Audio Formats": ["MP3", "WAV", "AAC", "OGG", "FLAC", "AC3", "WMA"],
};
```
### Example
- VIDEO
- MP4 To AVI
- MP4 To WEBM
- etc.
- AUDIO
- MP3 To AAC
- etc
- Video To Audio
- MP4 To MP3
- etc.
## HOW TO USE
### Install `ffmpeg` First
* MacOS with Brew
```bash
brew install ffmpeg
```
* Installing FFmpeg on Linux
1\. **Update Package Lists:**
- Ensure your package lists are up-to-date:
Bash
```
sudo apt update # For Debian-based distros (Ubuntu, Mint, etc.)
sudo dnf update # For Fedora-based distros
sudo pacman -Syu # For Arch-based distros
```
2\. **Install FFmpeg:**
- Use your distribution's package manager to install FFmpeg:
Bash
```
sudo apt install ffmpeg # For Debian-based distros
sudo dnf install ffmpeg # For Fedora-based distros
sudo pacman -S ffmpeg # For Arch-based distros
```
3\. **Verify Installation:**
- Check the FFmpeg version:
Bash
```
ffmpeg -version
```
- If installed correctly, you'll see the FFmpeg version information.
### Download the Script with git
```bash
git clone https://github.com/caturmahdialfurqon/Audio-Video-Converter.git
```
* Install Requirements/Dependensis NodeJs
```bash
npm install readline child_process
```
* Run the Script