remotion-dev / remotion

🎥 Make videos programmatically with React
https://remotion.dev
Other
20.78k stars 1.05k forks source link

Error Configuring complex filters, Invalid Argument #733

Closed AbdulBsit closed 2 years ago

AbdulBsit commented 2 years ago

Bug Report 🐛

While rendering the video on window server it renders the frames but throws error while stitching in ffmpeg, while it works fine locally Logs

.... rest of logs
80 | 12/20/2021, 3:24:13 PM: [Jv--NP_fs] 1300 Frames rendered...
81 | 12/20/2021, 3:24:16 PM: [Jv--NP_fs] 1320 Frames rendered...
82 | 12/20/2021, 3:24:18 PM: [Jv--NP_fs] 1340 Frames rendered...
83 | 12/20/2021, 3:24:22 PM: [Jv--NP_fs] 1360 Frames rendered...
84 |12/20/2021, 3:24:25 PM: [Jv--NP_fs] 1380 Frames rendered...
85 | 12/20/2021, 3:27:26 PM: Command failed with exit code 1: ffmpeg -r 30 -f image2 -s 1080x1920 -start_number 0 -i element-%04d.jpeg -i C:\code\remotion-service\renders\Jv--NP_fs\aa8e7f61e0b002ec67c3678c53ce7201.mp4 -c:v libx264 -crf 18 -pix_fmt yuv420p -b:v 1M -c:a aac -filter_complex_script C:\Users\ADMINI~1\AppData\Local\Temp\2\remotion-complex-filterR4ZEYy\complex-filter.txt -map 0:v -map_metadata -1 -y C:\code\remotion-service\renders\Jv--NP_fs\output.mp4
ffmpeg version 3.2 Copyright (c) 2000-2016 the FFmpeg developers
built with gcc 5.4.0 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-libebur128 --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
libavutil 55. 34.100 / 55. 34.100
libavcodec 57. 64.100 / 57. 64.100
libavformat 57. 56.100 / 57. 56.100
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Input #0
image2
from 'element-%04d.jpeg':
Duration: 00:00:46.00
start: 0.000000
bitrate: N/A
Stream #0:0: Video: mjpeg
yuvj420p(pc
bt470bg/unknown/unknown)
1080x1920 [SAR 1:1 DAR 9:16]
30 fps
30 tbr
30 tbn
30 tbc
Input #1
mov
mp4
m4a
3gp
3g2
mj2
from 'C:\code\remotion-service\renders\Jv--NP_fs\aa8e7f61e0b002ec67c3678c53ce7201.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.45.100
Duration: 00:00:46.06
start: 0.000000
bitrate: 2428 kb/s
Stream #1:0(und): Video: h264 (High) (avc1 / 0x31637661)
yuv420p
1080x1920 [SAR 1:1 DAR 9:16]
2297 kb/s
24 fps
24 tbr
12288 tbn
48 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #1:1(eng): Audio: aac (LC) (mp4a / 0x6134706D)
48000 Hz
stereo
fltp
128 kb/s (default)
Metadata:
handler_name : SoundHandler
[Parsed_adelay_1 @ 0525a6e0] At least one delay >0 must be specified.
[Parsed_adelay_1 @ 0525a6e0] Failed to configure input pad on Parsed_adelay_1
Error configuring complex filters.
Invalid argument
JonnyBurger commented 2 years ago

Hi! Thanks for filing. Looks like you are using FFMPEG version 3.2, while the minimum required is 4.1.

Theoretically you should see a warning in your terminal that says that your FFMPEG version is too low. I will only consider it a bug if that's not the case. To resolve the problem, you need to upgrade your FFMPEG!

Hope that helps!

AbdulBsit commented 2 years ago

Yeah got it!