fluent-ffmpeg / node-fluent-ffmpeg

A fluent API to FFMPEG (http://www.ffmpeg.org)
MIT License
7.85k stars 874 forks source link

converting image to video not working #596

Open panand1992 opened 8 years ago

panand1992 commented 8 years ago

I am trying to run the one of the example in the examples folder image2video.js and every time it fails with

Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

I have ffmpeg and ffprobe added to my path. FFmpeg details are below

ffmpeg version 3.0.2 Copyright (c) 2000-2016 the FFmpeg developers built with Apple LLVM version 7.3.0 (clang-703.0.29) configuration: --prefix=/usr/local/Cellar/ffmpeg/3.0.2 --enable-shared --enable-pthreads --enable-gpl --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-opencl --enable-libx264 --enable-libmp3lame --enable-libxvid --enable-vda libavutil 55. 17.103 / 55. 17.103 libavcodec 57. 24.102 / 57. 24.102 libavformat 57. 25.100 / 57. 25.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 31.100 / 6. 31.100 libavresample 3. 0. 0 / 3. 0. 0 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100

Please tell me if I am doing anything wrong .

abhikmitra commented 8 years ago

+1 facing the same problem

pirmax commented 8 years ago

+1 Same problem :/

njoyard commented 7 years ago

Yeah the examples are sometimes outdated unfortunately. You should determine what ffmpeg command line you want to run and then use the docs to convert it to a fluent-ffmpeg call.