ffmpeg.wasm
ffmpeg.wasm copied to clipboard
when i use image and audio then -filter_complex not work
Describe the bug when i use image and audio then -filter_complex not work
To Reproduce
[
"-loop",
1,
"-t",
3.504,
"-i",
"img_0.jpeg",
"-i",
"audio_0.mp3",
"-loop",
1,
"-t",
3.696,
"-i",
"img_1.jpeg",
"-i",
"audio_1.mp3",
"-filter_complex",
"[0:v][1:a][2:v][3:a]concat=n=2:v=1:a=1 [v][a]",
"-map",
"[v]",
"-map",
"[a]",
"-c:v",
"libx264",
"-c:a",
"aac",
"-shortest",
"-movflags",
"+faststart",
"output.mp4"
]
the error is "FS error"
Expected behavior the output.mp4 can be producted.
Screenshots
Desktop (please complete the following information):
- OS: mac
- Browser chrom
- Version 0.12.10
I got the same problem.
[
"-i",
"input.m3u8",
"-filter_complex",
'"showwavespic=s=525x50"',
"-frames:v",
"1",
"output.png",
]
log
ffmpeg version 5.1.4 Copyright (c) 2000-2023 the FFmpeg developers
built with emcc (Emscripten gcc/clang-like replacement + linker emulating GNU ld) 3.1.40 (5c27e79dd0a9c4e27ef2326841698cdd4f6b5784)
configuration: --target-os=none --arch=x86_32 --enable-cross-compile --disable-asm --disable-stripping --disable-programs --disable-doc --disable-debug --disable-runtime-cpudetect --disable-autodetect --nm=emnm --ar=emar --ranlib=emranlib --cc=emcc --cxx=em++ --objcc=emcc --dep-cc=emcc --extra-cflags='-I/opt/include -O3 -msimd128' --extra-cxxflags='-I/opt/include -O3 -msimd128' --disable-pthreads --disable-w32threads --disable-os2threads --enable-gpl --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libopus --enable-zlib --enable-libwebp --enable-libfreetype --enable-libfribidi --enable-libass --enable-libzimg
libavutil 57. 28.100 / 57. 28.100
libavcodec 59. 37.100 / 59. 37.100
libavformat 59. 27.100 / 59. 27.100
libavdevice 59. 7.100 / 59. 7.100
libavfilter 8. 44.100 / 8. 44.100
libswscale 6. 7.100 / 6. 7.100
libswresample 4. 7.100 / 4. 7.100
libpostproc 56. 6.100 / 56. 6.100
Input #0, mpegts, from 'input.m3u8':
Duration: 00:00:04.00, start: 18.000000, bitrate: 367 kb/s
Program 16727
Stream #0:0[0x22](eng): Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 66 kb/s
Stream #0:1[0x21]: Video: h264 (Constrained Baseline) ([27][0][0][0] / 0x001B), yuv420p(progressive), 224x100 [SAR 1:1 DAR 56:25], 24 fps, 24 tbr, 90k tbn
[AVFilterGraph @ 0xdea5c0] No such filter: '"showwavespic'
Error initializing complex filters.
Invalid argument
Aborted()
I'm likely late, but If you are using the multithreaded build, it has problems with running the filters multithreaded. You can disable it with:
params.push('-filter_threads', '1');
params.push('-filter_complex_threads', '1');