Giter VIP home page Giter VIP logo

Comments (3)

wsmzjzz avatar wsmzjzz commented on June 20, 2024

I got the same error. Have you solved it by now?

from openface.

brmarkus avatar brmarkus commented on June 20, 2024

@lefkothea1 @wsmzjzz any comments on how you have installed OpenFace?
Natively, or e.g. under WSL/WSL2?

Have you installed OpenCV on your own, was it already installed before?
Have you installed FFMPEG on your own, was it already installed before?

Can you check the video elementary-stream's codecs? It might be an "exotic" codec but your system misses the corresponding decoder libraries (or the underlying SoC/GPU isn't supported, too old, too new)?

from openface.

wsmzjzz avatar wsmzjzz commented on June 20, 2024

Thank you for your reply @brmarkus

I'm using Ubuntu 20.04.3 LTS in a docker on a server with an Nvidia A10 GPU.

I have installed ffmpeg before installing OpenFace/OpenCV. And OpenCV was not installed before.

I installed OpenFace following the instructions in the wiki page, bash ./download_models.sh followed by sudo bash ./install.sh. And there was no error.

And when I tried to run FeatureExtraction, I got:

$ ./build/bin/FeatureExtraction -f ~/vids/test1.mp4 
Could not find the HAAR face detector location
Reading the landmark detector/tracker from: ./build/bin/model/main_ceclm_general.txt
Reading the landmark detector module from: ./build/bin/model/cen_general.txt
Reading the PDM module from: ./build/bin/model/pdms/In-the-wild_aligned_PDM_68.txt....Done
Reading the Triangulations module from: ./build/bin/model/tris_68.txt....Done
Reading the intensity CEN patch experts from: ./build/bin/model/patch_experts/cen_patches_0.25_of.dat....Done
Reading the intensity CEN patch experts from: ./build/bin/model/patch_experts/cen_patches_0.35_of.dat....Done
Reading the intensity CEN patch experts from: ./build/bin/model/patch_experts/cen_patches_0.50_of.dat....Done
Reading the intensity CEN patch experts from: ./build/bin/model/patch_experts/cen_patches_1.00_of.dat....Done
Reading part based module....left_eye_28
Reading the landmark detector/tracker from: ./build/bin/model/model_eye/main_clnf_synth_left.txt
Reading the landmark detector module from: ./build/bin/model/model_eye/clnf_left_synth.txt
Reading the PDM module from: ./build/bin/model/model_eye/pdms/pdm_28_l_eye_3D_closed.txt....Done
Reading the intensity CCNF patch experts from: ./build/bin/model/model_eye/patch_experts/left_ccnf_patches_1.00_synth_lid_.txt....Done
Reading the intensity CCNF patch experts from: ./build/bin/model/model_eye/patch_experts/left_ccnf_patches_1.50_synth_lid_.txt....Done
Could not find the HAAR face detector location
Done
Reading part based module....right_eye_28
Reading the landmark detector/tracker from: ./build/bin/model/model_eye/main_clnf_synth_right.txt
Reading the landmark detector module from: ./build/bin/model/model_eye/clnf_right_synth.txt
Reading the PDM module from: ./build/bin/model/model_eye/pdms/pdm_28_eye_3D_closed.txt....Done
Reading the intensity CCNF patch experts from: ./build/bin/model/model_eye/patch_experts/ccnf_patches_1.00_synth_lid_.txt....Done
Reading the intensity CCNF patch experts from: ./build/bin/model/model_eye/patch_experts/ccnf_patches_1.50_synth_lid_.txt....Done
Could not find the HAAR face detector location
Done
Reading the landmark validation module....Done
Reading the AU analysis module from: ./build/bin/AU_predictors/main_dynamic_svms.txt
Reading the AU predictors from: ./build/bin/AU_predictors/AU_all_best.txt... Done
Reading the PDM from: ./build/bin/AU_predictors/In-the-wild_aligned_PDM_68.txt... Done
Reading the triangulation from:./build/bin/AU_predictors/tris_68_full.txt... Done
Attempting to read from file: /home/work/vids/test1.mp4
VIDIOC_REQBUFS: Inappropriate ioctl for device
Failed to open the video file at location: /home/work/vids/test1.mp4

Here's the output from ffmpeg

$ ffmpeg -i test1.mp4 
ffmpeg version 4.2.7-0ubuntu0.1 Copyright (c) 2000-2022 the FFmpeg developers
  built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.1)
  configuration: --prefix=/usr --extra-version=0ubuntu0.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-nvenc --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'test1.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42mp41
    creation_time   : 2022-12-05T12:24:33.000000Z
  Duration: 00:00:04.65, start: 0.000000, bitrate: 10375 kb/s
    Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 10142 kb/s, 60 fps, 60 tbr, 60k tbn, 120 tbc (default)
    Metadata:
      creation_time   : 2022-12-05T12:24:33.000000Z
      handler_name    : ?Mainconcept Video Media Handler
      encoder         : AVC Coding
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 317 kb/s (default)
    Metadata:
      creation_time   : 2022-12-05T12:24:33.000000Z
      handler_name    : #Mainconcept MP4 Sound Media Handler

I am new to this project and I do not have too much knowledge about codecs. So any help would be appreciated.

from openface.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.