damianociarla / node-ffmpeg

ffmpeg module for nodejs
MIT License
600 stars 140 forks source link

Potentially unhandled rejection | FFMPEG throws a unsupported format Error message #51

Closed AsP3X closed 2 years ago

AsP3X commented 6 years ago

I've created a script to convert a mp4 in a webm file but i got an error message that is not related to the script it self because the script works fine on my ubuntu desktop pc with node js installed.

But the script throws an error message in my project and testing docker container. The docker container is running on the latest version of ubuntu for docker.

DESKTOP Nodejs version: 9.11.1 npm version: 6.2.0

DOCKER CONTAINER Nodejs version 10.7.0 (Also tried on the same version gave me the same result) npm version 6.2.0

Install command for all programs: apt-get update && apt-get upgrade && apt-get install -y curl git nano htop && apt-get install -y gnupg2 && curl -sL https://deb.nodesource.com/setup_10.x | bash - && apt-get install -y nodejs && npm install npm -g

Script: Bitbucket / converter script

ERROR Message: Potentially unhandled rejection [1] {"code":104,"msg":"The format \"$s\" is not supported by the version of ffmpeg webm"} (WARNING: non-Error used)

AsP3X commented 6 years ago

Project Tree:

Mainfolder /
- converter.js
- /src/
- - movie.mp4
olaferlandsen commented 5 years ago

same here, when using h264 + aac

olaferlandsen commented 5 years ago

Well, I change node-ffmpeg for node-fluent-ffmpeg

ChrisCates commented 5 years ago

Got the same issue. Not sure how this repository is even usable.

zahra-ove commented 2 years ago

I'd have same problem, the reason for me was because FFMPEG was not installed on the server. for example for ubuntu server, the ffmpeg can install by sudo apt-get install ffmpeg.