jishnujayakumar / MV-Tractus

A simple tool to extract motion vectors from h264 encoded videos.
108 stars 27 forks source link

ffmpeg no longer working #19

Closed bhatia98 closed 3 years ago

bhatia98 commented 4 years ago

Hi, thanks for the code! Works well to extract motion vectors. However, after installing this, the standard ffmpeg no longer works for me. For instance the command: ffmpeg -start_number 1 -i %04d.png -r 25 output.mp4 which worked without issue before, now gives:

WARNING: library configuration mismatch avutil configuration: --prefix=/opt/dev-tools-sources/ffmpeg/build --bindir=/opt/dev-tools-sources/ffmpeg/bin --enable-gpl --enable-libx264 --enable-static --enable-shared avcodec configuration: --prefix=/opt/dev-tools-sources/ffmpeg/build --bindir=/opt/dev-tools-sources/ffmpeg/bin --enable-gpl --enable-libx264 --enable-static --enable-shared avformat configuration: --prefix=/opt/dev-tools-sources/ffmpeg/build --bindir=/opt/dev-tools-sources/ffmpeg/bin --enable-gpl --enable-libx264 --enable-static --enable-shared avdevice configuration: --prefix=/opt/dev-tools-sources/ffmpeg/build --bindir=/opt/dev-tools-sources/ffmpeg/bin --enable-gpl --enable-libx264 --enable-static --enable-shared swscale configuration: --prefix=/opt/dev-tools-sources/ffmpeg/build --bindir=/opt/dev-tools-sources/ffmpeg/bin --enable-gpl --enable-libx264 --enable-static --enable-shared swresample configuration: --prefix=/opt/dev-tools-sources/ffmpeg/build --bindir=/opt/dev-tools-sources/ffmpeg/bin --enable-gpl --enable-libx264 --enable-static --enable-shared libavutil 56. 31.100 / 56. 58.100 libavcodec 58. 54.100 / 58.100.100 libavformat 58. 29.100 / 58. 51.100 libavdevice 58. 8.100 / 58. 11.101 libavfilter 7. 57.100 / 7. 57.100 libavresample 4. 0. 0 / 4. 0. 0 libswscale 5. 5.100 / 5. 8.100 libswresample 3. 5.100 / 3. 8.100 libpostproc 55. 5.100 / 55. 5.100 Segmentation fault (core dumped)

I am using Ubuntu 20.04. What is going wrong?

jishnujayakumar commented 4 years ago

I didn't encounter such an issue at my end so I am afraid, I can't help. Seems the default ffmpeg lib path is now pointing to /opt/. Can you try removing everything and installing ffmpeg first and then MV-Tractus? Try to change the installation path of ffmpeg to the default one instead of /opt/. /opt/* was only used for test purposes.