alicevision / Meshroom

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

[bug] Cannot use video frames as input #2005

Open mcDandy opened 1 year ago

mcDandy commented 1 year ago

Describe the bug Unable to use video frames as input

To Reproduce Steps to reproduce the behavior:

  1. Add KeyframeSelection node to your project
  2. set media path to video file
  3. compute the node
  4. See error

I also tried to use ffmpeg, but it says, that images are corrupted (ffmpeg -i inputfile %05d.jpg)

Expected behavior Being able to use video as inputs Screenshots If applicable, add screenshots to help explain your problem.

Log

[2023-05-08 22:56:58.063448] [0x00005390] [trace]   Embedded OCIO configuration file: 'D:\Users\Daniel Martinek\Documents\Meshroom-2023.1.0\aliceVision/share/aliceVision/config.ocio' found.
Program called with the following parameters:
 * brands =  = [] (default)
 * csvFilename = "scores.csv" (default)
 * exportFlowVisualisation = 0
 * exportScores = 0
 * exportSelectedFrames = 0 (default)
 * flowCellSize = 90
 * flowVisualisationOnly = 0
 * maxCoresAvailable =  Unknown Type "unsigned int" (default)
 * maxFrameStep =  Unknown Type "unsigned int" (default)
 * maxMemoryAvailable = 18446744073709551615 (default)
 * maxNbOutFrames =  Unknown Type "unsigned int"
 * mediaPaths =  = [D:/Users/Daniel Martinek/Resilio Sync/DCIM/Camera/Nová složka/PXL_20230508_200952501.mp4]
 * minFrameStep =  Unknown Type "unsigned int" (default)
 * minNbOutFrames =  Unknown Type "unsigned int"
 * mmFocals =  Unknown Type "class std::vector<float,class std::allocator<float> >" (default)
 * models =  = [] (default)
 * outputExtension = "jpg"
 * outputFolder = "D:/Users/Daniel Martinek/Resilio Sync/DCIM/Camera/Nová složka/MeshroomCache/KeyframeSelection/09085bdcdf243c08c3f081e62f49f6f58ae3feff"
 * pxDisplacement = 10
 * renameKeyframes = 0
 * rescaledWidthFlow = 720
 * rescaledWidthSharpness = 720
 * sensorDbPath = "D:\Users\Daniel Martinek\Documents\Meshroom-2023.1.0\aliceVision\share\aliceVision\cameraSensors.db"
 * sharpnessWindowSize = 200
 * skipSelection = 0
 * skipSharpnessComputation = 0
 * storageDataType =  Unknown Type "enum aliceVision::image::EStorageDataType" (default)
 * useSmartSelection = 1
 * verboseLevel = "info"

Hardware :
        Detected core count : 12
        OpenMP will use 12 cores
        Detected available memory : 1919 Mo

[22:56:58.075981][info] Single camera
[22:56:58.075981][info] Camera: D:/Users/Daniel Martinek/Resilio Sync/DCIM/Camera/Nová složka/PXL_20230508_200952501.mp4
         - brand:
         - model:
         - focal (mm): 0
[ERROR:0@0.056] global cap.cpp:185 cv::VideoCapture::open VIDEOIO(FFMPEG): raised unknown C++ exception!

[22:57:02.072097][info] Finished processing frame 1/1902
...

[00:06:39.055252][info] Finished processing frame 1902/1902
[00:06:39.292082][info] Selecting frame with ID 24
[00:06:39.292082][info] Selecting frame with ID 118
[00:06:39.292082][info] Selecting frame with ID 180
...
[00:06:39.295597][info] Selecting frame with ID 1897
[00:06:39.295597][info] Finished selecting all the keyframes! 64/1902 frames have been selected.
[ERROR:0@4178.148] global cap.cpp:185 cv::VideoCapture::open VIDEOIO(FFMPEG): raised unknown C++ exception!

Desktop (please complete the following and other pertinent information):

Additional context Video shot on pixel 6 pro in 4k

auger1 commented 1 year ago

miss the Exif information