Forum

Author Topic: Import Video  (Read 4486 times)

luisSeyfer

  • Newbie
  • *
  • Posts: 11
    • View Profile
Import Video
« on: April 15, 2024, 05:10:34 PM »
Hello,
I recently updated from MS 2.0.0 to 2.1.1. Standard Version.
When I try importing video it gets stuck at some point. It is not freezing but the import does not continue middle of the process. I cannot remember having this problem with the former version ever. I tried to start MS from bash to gather any message regarding this. Unfortunately there is no output at all.
Hardware is an older Lenovo Gaming Laptop (i7, GTX 1070) Kubuntu 22.04 + eGPU (GTX 3060 Ti)
Please tell me If you need more information.

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15276
    • View Profile
Re: Import Video
« Reply #1 on: April 15, 2024, 05:21:52 PM »
Hello luisSeyfer,

Do you observe such problem with any video file? Can you share any example of the video file which import freezes in the middle of the operation and also send the log corresponding to the video import operation with the screenshot of the Import Video dialog (with the parameters used) to support@agisoft.com?
Best regards,
Alexey Pasumansky,
Agisoft LLC

luisSeyfer

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Import Video
« Reply #2 on: April 16, 2024, 12:11:16 AM »
Here is a log:

Quote
2024-04-15 22:51:28 Importing video...
2024-04-15 22:51:28 ************************************************************ saved 60 frames in 403.809 sec
2024-04-15 22:58:12 Error: Aborted by user

I also attached a screenshot. It simply stops working at some point. In this case at frame 60.
I waited 6 minutes before I canceled.

It does not happen with all video files. So far I am unable to see a pattern.

« Last Edit: April 16, 2024, 12:13:40 AM by luisSeyfer »

luisSeyfer

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Import Video
« Reply #3 on: April 16, 2024, 10:50:07 AM »
...and 2 video files: https://e.pcloud.link/publink/show?code=kZWz39Z7tjVrOtszEjbDTkEle8CLzE3Dt6X

Ofen_b_DJI_0167.MP4 is the example above

Alexey Pasumansky

  • Agisoft Technical Support
  • Hero Member
  • *****
  • Posts: 15276
    • View Profile
Re: Import Video
« Reply #4 on: April 18, 2024, 05:36:56 PM »
Hello luisSeyfer,

Thank you for sharing the sample files.

It seems that the problem is caused by pulseaudio package. For example, described in the following discussion thread: https://gitlab.freedesktop.org/gstreamer/gstreamer/-/issues/1477

For a fix we can suggest to add GST_PLUGIN_FEATURE_RANK=pulsesink:NONE line to metashape.sh script, so that it look as following:

Code: [Select]
#!/bin/sh
appname=`basename "$0" | sed s,\.sh$,,`
dirname=`dirname "$0"`
tmp="${dirname#?}"
if [ "${dirname%$tmp}" != "/" ]; then
dirname=$PWD/$dirname
fi
TCL_LIBRARY=$dirname/python/lib/tcl8.6
TK_LIBRARY=$dirname/python/lib/tk8.6
export TCL_LIBRARY
export TK_LIBRARY
LD_LIBRARY_PATH=$dirname/lib:$dirname/python/lib:$LD_LIBRARY_PATH
export LD_LIBRARY_PATH
GST_PLUGIN_FEATURE_RANK=pulsesink:NONE
export GST_PLUGIN_FEATURE_RANK
"$dirname/$appname" "$@"

It should fix the video import issue. Some warning messages could appear in the Console pane during the video import process, but you can ignore them.
Best regards,
Alexey Pasumansky,
Agisoft LLC

luisSeyfer

  • Newbie
  • *
  • Posts: 11
    • View Profile
Re: Import Video
« Reply #5 on: April 19, 2024, 05:21:09 PM »
Tank you very much!