-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
(FeatureExtraction:27300): GStreamer-PBUtils-CRITICAL **: 02:56:06.922: gst_missing_encoder_message_new: assertion 'gst_caps_is_fixed (encode_caps)' failed #1093
Comments
i run on almalinux 9 and my open cv: |
How have you installed OpenFace? Are you able to playback the video file "../samples/multi_face.avi" on your system using gstreamer manually (just to check if the video-file is correct and complete, sometimes it contains HTML-text when downloading went wrong)? |
install.sh which only for ubuntu i can not run it on centos 8,9 same as almalinux (upgrade from centos 7) so i try many way but still has some issue with openface, pls help more |
Looks like a gstreamer problem on your system, and especially with encoding (recording), maybe a missing codec library (and/or incompatible GPU). Are you able to playback the video file manually (gstreamer, VLC, any media-player)? Can you try to specify another output codec via command line parameter Like
|
there are steps i try to install openface on linux 9: sudo yum install gstreamer1 gstreamer1-plugins-base gstreamer1-plugins-good gstreamer1-plugins-bad gstreamer1-plugins-ugly gstreamer1-libav gstreamer1-devel export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH sudo yum install meson ninja-build Tải GStreamer corecd /usr/local/src Build và cài đặt bằng meson và ninjameson build Plugins cơ bảncd /usr/local/src Build và cài đặtmeson build export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig:$PKG_CONFIG_PATH pkg-config --modversion gstreamer-video-1.0 git clone https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad.git pkg-config --modversion gstreamer-1.0 wget https://github.com/opencv/opencv/archive/4.1.0.zip git clone https://github.com/TadasBaltrusaitis/OpenFace.git cmake -D CMAKE_C_COMPILER=/usr/local/bin/gcc -D CMAKE_CXX_COMPILER=/usr/local/bin/g++ -D CMAKE_BUILD_TYPE=RELEASE .. |
yeah i can run these cli on my linux 9, as log bellow: (/home/SyncTalk/venv) [root@aiclip-dfl build]# ./bin/FeatureExtraction -f ../samples/multi_face.avi -oc MPEG (FeatureExtraction:61855): GStreamer-CRITICAL **: 04:05:14.962: gst_query_set_position: assertion 'format == g_value_get_enum (gst_structure_id_get_value (s, GST_QUARK (FORMAT)))' failed (FeatureExtraction:61855): GStreamer-PBUtils-CRITICAL **: 04:05:15.430: gst_missing_encoder_message_new: assertion 'gst_caps_is_fixed (encode_caps)' failed (FeatureExtraction:61855): GStreamer-CRITICAL **: 04:05:15.430: gst_element_post_message: assertion 'message != NULL' failed (FeatureExtraction:61905): GStreamer-CRITICAL **: 04:05:45.922: gst_query_set_position: assertion 'format == g_value_get_enum (gst_structure_id_get_value (s, GST_QUARK (FORMAT)))' failed (FeatureExtraction:61905): GStreamer-PBUtils-CRITICAL **: 04:05:46.416: gst_missing_encoder_message_new: assertion 'gst_caps_is_fixed (encode_caps)' failed (FeatureExtraction:61905): GStreamer-CRITICAL **: 04:05:46.416: gst_element_post_message: assertion 'message != NULL' failed (FeatureExtraction:61957): GStreamer-CRITICAL **: 04:06:14.857: gst_query_set_position: assertion 'format == g_value_get_enum (gst_structure_id_get_value (s, GST_QUARK (FORMAT)))' failed (FeatureExtraction:61957): GStreamer-PBUtils-CRITICAL **: 04:06:15.344: gst_missing_encoder_message_new: assertion 'gst_caps_is_fixed (encode_caps)' failed (FeatureExtraction:61957): GStreamer-CRITICAL **: 04:06:15.344: gst_element_post_message: assertion 'message != NULL' failed |
although log inform GStreamer-CRITICAL but still complete process: |
when i run:
i got: (FeatureExtraction:62011): GStreamer-CRITICAL **: 04:10:26.709: gst_query_set_position: assertion 'format == g_value_get_enum (gst_structure_id_get_value (s, GST_QUARK (FORMAT)))' failed (FeatureExtraction:62011): GStreamer-PBUtils-CRITICAL **: 04:10:27.183: gst_missing_encoder_message_new: assertion 'gst_caps_is_fixed (encode_caps)' failed (FeatureExtraction:62011): GStreamer-CRITICAL **: 04:10:27.183: gst_element_post_message: assertion 'message != NULL' failed |
hmm, ok, so the application is working? |
The table looks good. Have a closer look into "https://github.com/TadasBaltrusaitis/OpenFace/wiki/Output-Format" to study the columns and values and meanings. |
[root@aiclip-dfl gst-plugins-bad]# ./bin/FeatureExtraction -f ../samples/multi_face.avi
-bash: ./bin/FeatureExtraction: No such file or directory
[root@aiclip-dfl gst-plugins-bad]# cd /root/OpenFace/build
[root@aiclip-dfl build]# ./bin/FeatureExtraction -f ../samples/multi_face.avi
Could not find the HAAR face detector location
Reading the landmark detector/tracker from: ./bin/model/main_ceclm_general.txt
Reading the landmark detector module from: ./bin/model/cen_general.txt
Reading the PDM module from: ./bin/model/pdms/In-the-wild_aligned_PDM_68.txt....Done
Reading the Triangulations module from: ./bin/model/tris_68.txt....Done
Reading the intensity CEN patch experts from: ./bin/model/patch_experts/cen_patches_0.25_of.dat....Done
Reading the intensity CEN patch experts from: ./bin/model/patch_experts/cen_patches_0.35_of.dat....Done
Reading the intensity CEN patch experts from: ./bin/model/patch_experts/cen_patches_0.50_of.dat....Done
Reading the intensity CEN patch experts from: ./bin/model/patch_experts/cen_patches_1.00_of.dat....Done
Reading part based module....left_eye_28
Reading the landmark detector/tracker from: ./bin/model/model_eye/main_clnf_synth_left.txt
Reading the landmark detector module from: ./bin/model/model_eye/clnf_left_synth.txt
Reading the PDM module from: ./bin/model/model_eye/pdms/pdm_28_l_eye_3D_closed.txt....Done
Reading the intensity CCNF patch experts from: ./bin/model/model_eye/patch_experts/left_ccnf_patches_1.00_synth_lid_.txt....Done
Reading the intensity CCNF patch experts from: ./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: ./bin/model/model_eye/main_clnf_synth_right.txt
Reading the landmark detector module from: ./bin/model/model_eye/clnf_right_synth.txt
Reading the PDM module from: ./bin/model/model_eye/pdms/pdm_28_eye_3D_closed.txt....Done
Reading the intensity CCNF patch experts from: ./bin/model/model_eye/patch_experts/ccnf_patches_1.00_synth_lid_.txt....Done
Reading the intensity CCNF patch experts from: ./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: ./bin/AU_predictors/main_dynamic_svms.txt
Reading the AU predictors from: ./bin/AU_predictors/AU_all_best.txt... Done
Reading the PDM from: ./bin/AU_predictors/In-the-wild_aligned_PDM_68.txt... Done
Reading the triangulation from:./bin/AU_predictors/tris_68_full.txt... Done
Attempting to read from file: ../samples/multi_face.avi
(FeatureExtraction:27300): GStreamer-CRITICAL **: 02:56:06.551: gst_query_set_position: assertion 'format == g_value_get_enum (gst_structure_id_get_value (s, GST_QUARK (FORMAT)))' failed
Device or file opened
Starting tracking
Reading the MTCNN face detector from: ./bin/model/mtcnn_detector/MTCNN_detector.txt
Reading the PNet module from: ./bin/model/mtcnn_detector/PNet.dat
Reading the RNet module from: ./bin/model/mtcnn_detector/RNet.dat
Reading the ONet module from: ./bin/model/mtcnn_detector/ONet.dat
(FeatureExtraction:27300): GStreamer-PBUtils-CRITICAL **: 02:56:06.922: gst_missing_encoder_message_new: assertion 'gst_caps_is_fixed (encode_caps)' failed
(FeatureExtraction:27300): GStreamer-CRITICAL **: 02:56:06.925: gst_element_post_message: assertion 'message != NULL' failed
0% 10% 20% 30% 40% 50% 60% 70% 80% 90% 100%
Closing output recorder
Closing input reader
Closed successfully
Postprocessing the Action Unit predictions
The text was updated successfully, but these errors were encountered: