Meshroom icon indicating copy to clipboard operation
Meshroom copied to clipboard

[bug] Cannot use video frames as input

Open mcDandy opened this issue 2 years ago • 2 comments

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:[email protected]] 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:[email protected]] global cap.cpp:185 cv::VideoCapture::open VIDEOIO(FFMPEG): raised unknown C++ exception!

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

  • OS: Windows 11
  • Python version embedded (I have 3.9 installed)
  • Qt/PySide version: embedded (unknown)
  • Meshroom version: release
    • Binary version (if applicable) 2023.1
    • Commit reference (if applicable) [e.g. 08ddbe2]

Additional context Video shot on pixel 6 pro in 4k

mcDandy avatar May 09 '23 06:05 mcDandy

miss the Exif information

auger1 avatar Jun 13 '23 07:06 auger1

I had the same problem and i'm pretty sure it's because you have non ascii characters in your path

ragekit avatar Aug 11 '25 21:08 ragekit