Open qyot27 opened 4 years ago
Could you help me with libffms2.so.2? Should I build it (dependencies?) or a simple file upload is enough?
It's not that hard to compile, probably even easier than on Windows. Assuming you already have ffmpeg libs installed in the system, it's just something like
./configure
NPROC=$(nproc)
make -j${NPROC}
or so.
Thanks
git clone git://github.com/qyot27/ffms2_cplugin.git
cd ffms2_cplugin
git checkout c_plugin
./configure
make -j$(nproc)
make install
result:
./configure
checking whether linking with FFmpeg or Libav...
unable to link against Libav
make: *** [GNUmakefile:106: config.mak] Error 1
djatom@atomch-server:~/ffms2_cplugin$ ./configure --enable-avisynth
avisynth support is invalid under non-MinGW environments
checking whether linking with FFmpeg or Libav...
avisynth: no
avisynth-gcc: no
avxsynth: no
vapoursynth: no
debug: no
gprof: no
PIC: no
shared: no
optlevel: 2
You can run 'make' now.
Apparently we can't build from c_plugin branch atm. @qyot27 should provide updated build scripts to do so.
you need use the patches_plusvp9av1
branch
checking whether linking with FFmpeg or Libav...
avisynth-c: no
avisynth-cpp: yes
avxsynth: no
vapoursynth: yes
debug: no
gprof: no
PIC: yes
shared: yes
optlevel: 2
No luck on patches_plusvp9av1 either: Libav problem, which I cannot solve with my present knowledge
./configure --enable-avisynth-c
avisynth support is invalid under non-MinGW environments
checking whether linking with FFmpeg or Libav...
unable to link against Libav
./configure --enable-avisynth-cpp
checking whether linking with FFmpeg or Libav...
unable to link against Libav
djatom@atomch-server:~/ffms2_cplugin$ ./configure --enable-avisynth-cpp --enable-shared --enable-pic
checking whether linking with FFmpeg or Libav...
avisynth-c: no
avisynth-cpp: yes
avxsynth: no
vapoursynth: no
debug: no
gprof: no
PIC: yes
shared: yes
optlevel: 2
You can run 'make' now.
djatom@atomch-server:~/ffms2_cplugin$ make
CXX src/core/audiosource.o
...
CXX libffms2.so.2
CXX src/index/ffmsindex.o
AR libffms2.a
RANLIB libffms2.a
CXX ffmsindex
So I just tried to encode FFVideoSource (mp4 file) without prefetch and it works.
libav is not dead project?
@pinterf you can try to compile ffmpeg locally
git clone https://github.com/qyot27/FFmpeg.git
cd ./FFmpeg
git checkout avsplus_linux
./configure --enable-gpl --enable-version3 --disable-doc --disable-stripping --enable-avisynth
make -j$(nproc)
sudo make install
That way ffmpeg libs will be available for configuring and compilation.
Prefetch is also works.
The error is specifically audio-related, and seems isolated in FFMS2 itself, since FFAudioSource works, as does FFVideoSource, and using AudioDub to pair them works. The atrack parameter in the FFmpegSource2 function in the C++ plugin does not.
Ubuntu 19.10 64-bit Core i5-9400, 16GB RAM
Script:
Segfaults. If I comment out the FFMS2 invocation and enable ColorbarsHD, it works, even with all the other filters enabled as well. From the backtrace, it looks as if it might have to do with the Prefetcher: