Skip to content
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

[question] Unable to open the video #1291

Open
trojanGoat opened this issue Feb 21, 2021 · 15 comments
Open

[question] Unable to open the video #1291

trojanGoat opened this issue Feb 21, 2021 · 15 comments

Comments

@trojanGoat
Copy link

Description
Keyframe selection not working in Ubuntu.

I'm using footage from GoPro Hero 9 .MP4 file
I've also tried dnx and prores codecs and they don't work either.
Meshroom log reports: "Unable to open the video"

Using the same footage, it will work in windows.

To Reproduce
Steps to reproduce the behavior:

  1. drag .MP4 into images panel, keyframe selection node will get auto generated
  2. compute the keyframe selection node
  3. check the log

[11:12:41.285857][fatal] Unable to open the video : /Volumes/scratch2/a_HDR_inventory/bronte_creek_pp_house/0_source/photogrammetry_source/GX010850_prores.mov

@trojanGoat trojanGoat added the bug for actual bugs (unsure? use type:question) label Feb 21, 2021
@natowi
Copy link
Member

natowi commented Feb 21, 2021

Did you download the Linux version from Releases or from another source (maybe it was not built with opencv)?
I think I read about a similar issue some time ago, but can´t remember the details...

Edit: #1215

@natowi natowi added the linux label Feb 21, 2021
@trojanGoat
Copy link
Author

The version I have is the downloadable one from the home page
https://alicevision.org/#meshroom

@natowi
Copy link
Member

natowi commented Feb 26, 2021

[11:12:41.285857][fatal] Unable to open the video : /Volumes/scratch2/a_HDR_inventory/bronte_creek_pp_house/0_source/photogrammetry_source/GX010850_prores.mov note the file extension is .mov and not .mp4

btw the new release is now available.

@natowi natowi changed the title [bug] [question] Unable to open the video Feb 26, 2021
@natowi natowi added type:question and removed bug for actual bugs (unsure? use type:question) labels Feb 26, 2021
@isolin
Copy link

isolin commented Mar 1, 2021

Same for me :( I tried several videos with Ubuntu 18.04 when the 2020.1 release came out. I gave up and wrote my own external script for frame extraction based on sharpness and optical flow.

@natowi
Copy link
Member

natowi commented Mar 1, 2021

@isolin Sorry, I don´t know why it did not work for you, i don´t have a linux environment at the moment to test this. TrojanGoats problem could have potentially been cause by the wrong file extension (unsupported codecs could also be a cause), but there have been a few reports of problems on linux in general (#1215 , #955) but nothing pointing to a bug so far (more likely to unsupported video file types/codecs/naming conventions). Could you share your script to provide an alternative for other users like you facing the same problem?

@isolin
Copy link

isolin commented Mar 2, 2021

I think I would be quite ashamed to publish it in the current state :) it's really messy and slow. But I will see what I can do.

@xzhub
Copy link

xzhub commented Apr 6, 2021

I tried the v2021 version, it's still the same error: "Unable to open the video"
Should users install opencv manually?

@stale
Copy link

stale bot commented Aug 6, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale for issues that becomes stale (no solution) label Aug 6, 2021
@stale
Copy link

stale bot commented Aug 18, 2021

This issue is closed due to inactivity. Feel free to re-open if new information is available.

@stale stale bot closed this as completed Aug 18, 2021
@Baasje85
Copy link

stat("/home/mio/Downloads/DJI_0019.MP4", {st_mode=S_IFREG|0755, st_size=3759987582, ...}) = 0
stat("/home/mio/Downloads/Meshroom-2021.1.0-av2.4.0-centos7-cuda10.2/aliceVision/lib/libopencv_videoio_ffmpeg*.so", 0x7fff0cce00b0) = -1 ENOENT (Bestand of map bestaat niet)
openat(AT_FDCWD, "/home/mio/Downloads/Meshroom-2021.1.0-av2.4.0-centos7-cuda10.2/aliceVision/lib", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 10
newfstatat(10, "", {st_mode=S_IFDIR|0755, st_size=12288, ...}, AT_EMPTY_PATH) = 0
getdents64(10, 0x2be84a0 /* 188 entries */, 32768) = 8760

...

stat("/home/mio/Downloads/Meshroom-2021.1.0-av2.4.0-centos7-cuda10.2/aliceVision/lib/libopencv_videoio_gstreamer*.so", 0x7fff0cce00b0) = -1 ENOENT (Bestand of map bestaat niet)
openat(AT_FDCWD, "/home/mio/Downloads/Meshroom-2021.1.0-av2.4.0-centos7-cuda10.2/aliceVision/lib", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 10
newfstatat(10, "", {st_mode=S_IFDIR|0755, st_size=12288, ...}, AT_EMPTY_PATH) = 0
getdents64(10, 0x2be84a0 /* 188 entries */, 32768) = 8760

...

stat("/home/mio/Downloads/Meshroom-2021.1.0-av2.4.0-centos7-cuda10.2/aliceVision/lib/libopencv_videoio_intel_mfx*.so", 0x7fff0cce00b0) = -1 ENOENT (Bestand of map bestaat niet)
openat(AT_FDCWD, "/home/mio/Downloads/Meshroom-2021.1.0-av2.4.0-centos7-cuda10.2/aliceVision/lib", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 10
newfstatat(10, "", {st_mode=S_IFDIR|0755, st_size=12288, ...}, AT_EMPTY_PATH) = 0
getdents64(10, 0x2be84a0 /* 188 entries */, 32768) = 8760

...

stat("/home/mio/Downloads/Meshroom-2021.1.0-av2.4.0-centos7-cuda10.2/aliceVision/lib/libopencv_videoio_msmf*.so", 0x7fff0cce00b0) = -1 ENOENT (Bestand of map bestaat niet)
openat(AT_FDCWD, "/home/mio/Downloads/Meshroom-2021.1.0-av2.4.0-centos7-cuda10.2/aliceVision/lib", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = 10
newfstatat(10, "", {st_mode=S_IFDIR|0755, st_size=12288, ...}, AT_EMPTY_PATH) = 0
getdents64(10, 0x2be84a0 /* 188 entries */, 32768) = 8760

@maximumsomething
Copy link

I still have this problem in 2024 with the version of Meshroom downloaded from the website.

@maximumsomething
Copy link

The bot closed this but it is still an issue. Can someone re-open it?

@natowi natowi removed the stale for issues that becomes stale (no solution) label Feb 10, 2024
@natowi natowi reopened this Feb 10, 2024
@arnolde
Copy link
Sponsor

arnolde commented Jun 20, 2024

Same problem with 2023.3.0 on Ubuntu 22.04.
File is in /tmp/video.mp4 and chmod 777, plays fine on the machine when doubleclicked, H.264 video format from cellphone (Oneplus Nord), only message is "Unable to open the video." - no details :-( please at least add more info to the error message to explain the reason!

EDIT: Made a new video with my Sony Alpha 57 camera, also H.264 format, same problem.

@arnolde
Copy link
Sponsor

arnolde commented Jun 21, 2024

I find it frustrating that this issue is marked "question" and the linked one #1215 is marked "bug" but closed. Neither issue solves the problem. Please reopen one of them as a bug, since the problem has persisted now for years. Surely there are more people out there that would like to use video (and the automatic feature to extract good frames from video) and use Linux?

@KevinDepedri
Copy link

KevinDepedri commented Jun 25, 2024

I have the same problem on Meshroom 2023.3.0 and Ubuntu 22.04.2 LTS:
[warning] Unable to open the video : /data/DEMO.mp4
[fatal] Unable to open the video : /data/DEMO.mp4

The video is H.264 and it plays fine using the video player. I have also tried to convert it to MPEG-4 and MPEG-2 but the same error is reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants