alicevision / Meshroom

3D Reconstruction Software
http://alicevision.org
Other
11.23k stars 1.09k forks source link

Trying to import video but nothing happens #1621

Open Beep6581 opened 2 years ago

Beep6581 commented 2 years ago

I'm using Meshroom-2021.1.0-linux-cuda10.tar.gz and trying to perform photogrammetry from video. The manual does not explain how to do this, so I'm trying to figure out the procedure from the scant info in issue #232.

I click File > New Pipeline > Photogrammetry.

Then I click File > Import Images and select a straight-out-of-camera (Samsung S9) MP4 in HEVC format, and an MP4 converted to H.264 using ffmpeg. In both cases nothing happens. No hint whether it worked or not. The console shows only this:

WARNING:root:importFilesDialog fileUrls: file:///home/morgan/Downloads/20220208_102828.mp4
WARNING:root:importFilesDialog fileUrls: file:///home/morgan/Downloads/h264.mp4

The "Images" panel has a picture icon and a camera icon at the bottom, both show 0: screenshot_20220208_114026

ffprobe on the videos:

ffprobe h264.mp4 2>&1 | grep Stream
  Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 14143 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
ffprobe 20220208_102828.mp4 2>&1 | grep Stream
  Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 1920x1080, 8001 kb/s, SAR 1:1 DAR 16:9, 30 fps, 30 tbr, 90k tbn, 90k tbc (default)

So I don't know, did it fail? If so, why? Maybe H.264 and H.265 are unsupported - who knows? That's why I opened issue #1619.

If importing failed, there should be verbose feedback - a popup or an entry in a log. If it succeeded, I should see something somewhere too. And the manual should describe the process of importing video.

Beep6581 commented 2 years ago

https://github.com/alicevision/meshroom/issues/232#issuecomment-579230462 mentions that dragging-and-dropping should be supported in 2021.1.0, so I tried it.

When I drag-and-drop, a new "KeyframeSelection" node appears, and a popup informing me of the fact. screenshot_20220208_115248

So dragging-and-dropping seems to have worked, or at least something happened, while when using File > Import Images nothing happens.

natowi commented 2 years ago

When I remember correctly, only drag and drop support was implemented.

At the moment, the node does not smoothly integrate in the graph. When we no longer need workarounds like manually reimporting the extracted images, video support will be better integrated in the gui than it is now. Having a video option in the import menu would set expectations that can not be meet at the moment.

Beep6581 commented 2 years ago

I understand, but it's undocumented and unintuitive that drag-and-drop of videos should work while File > Import Images does not. It would help if either that was explicitly documented, or if File > Import Images supported videos the same way drag-and-drop does.

stale[bot] commented 2 years ago

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.

furbrain commented 3 months ago

There are issues reading videos under linux: see https://github.com/alicevision/Meshroom/issues/2285#issuecomment-2285901754