Insta360Develop / MediaSDK-Cpp

MediaSDK-Cpp is a C++ library to handle stitching, editing of media from Insta360 Cameras.
60 stars 8 forks source link

Saving a sequence of images doesn't work #32

Open VashchukSa opened 1 month ago

VashchukSa commented 1 month ago

Hey. I'm interested in outputting the video as a sequence of images. And this -image_sequence_dir flag is supposed to do exactly that but for some reason it doesn't work. When I run the command it seems like the process is working correctly but I don't get output images at the end and no obvious issues in the terminal output. Any help is appreciated

Here's the command that I used: .\stitcherSDKDemo -inputs "C:\zVideo\VID_20240520_124504_00_001.insv" -image_sequence_dir "C:\zVideo" -stitch_type "optiflow"

And here's the terminal output:

[06-19 18:48:03.686]  12276 2336 I ffmpeg_util.cpp:0057:  ffmpeg init
[06-19 18:48:03.686]  12276 2336 I ffmpeg_util.cpp:0193:  set ffmpeg lovel: WARN
[06-19 18:48:03.686]  12276 2336 I stitcherImp.cpp:0120:  user set  = 0
[06-19 18:48:03.700]  12276 2336 I CudaDevice.cpp:0034:
 CUDA Device Info:
 Name:              NVIDIA GeForce RTX 4060 Laptop GPU
 TotalGlobalMem:    8187M
 SharedMemPerBlock: 48M
 MaxGridSize:       1024
[06-19 18:48:03.700]  12276 2336 I stitcherImp.cpp:0100:  cuda size = 1 current = 0
[06-19 18:48:03.700]  12276 2336 I stitcherImp.cpp:0129:  gpu_count = 1 use gpu no = 0
 start stitch [06-19 18:48:03.700]  12276 2336 I video_stitcherImp.cpp:0085:  check param
[06-19 18:48:03.705]  12276 2336 I stitch_strategy.h:0071:
 CUDA Device Info:
 Name:              NVIDIA GeForce RTX 4060 Laptop GPU
 TotalGlobalMem:    8187M
 SharedMemPerBlock: 48M
 MaxGridSize:       1024
[06-19 18:48:03.791]  12276 2336 I encode_filter.h:0021:  encodec id 27
[06-19 18:48:03.791]  12276 2336 I video_stitcherImp.cpp:0135:  device index = 0
[06-19 18:48:03.791]  12276 2336 I video_stitcherImp.cpp:0150:  set filter
[06-19 18:48:03.791]  12276 2336 I video_stitcherImp.cpp:0179:  set src filter
[06-19 18:48:03.791]  12276 2336 I video_stitcherImp.cpp:0240:  init param
[06-19 18:48:03.791]  12276 2336 I demuxer.cpp:0064:  enable mjpeg demuxer? 1
[06-19 18:48:03.887]  12276 2336 V decode_filter.cpp:0027:  to use hwaccel decoder:h264_cuvid
[06-19 18:48:03.929]  12276 2336 I codec_util.cpp:0438:  init cuda pixel format....
[06-19 18:48:03.935]  12276 2336 W ffmpeg:0000:  h264_cuvid @ 0000024F2896C040 Invalid pkt_timebase, passing timestamps as-is.

[06-19 18:48:03.935]  12276 2336 V decode_filter.cpp:0037:  set decode hw_frame_ctx.
[06-19 18:48:04.590]  12276 2336 I demuxer.cpp:0064:  enable mjpeg demuxer? 1
[06-19 18:48:12.257]  12276 2336 V media_pipe.h:0044:  ~MediaPipe
[06-19 18:48:12.257]  12276 2336 V file_media_src.cpp:0038:  ~FileMediaSrc:C:\zVideo\VID_20240520_124504_00_001.insv
[06-19 18:48:12.257]  12276 2336 V codec_util.cpp:0113:  unref cuvid decode opaque.
[06-19 18:48:12.259]  12276 2336 V file_media_src.cpp:0038:  ~FileMediaSrc:C:\zVideo\VID_20240520_124504_00_001.insv
kanao-contineu commented 1 month ago

Hey, same error. There's a segmentation fault and the process is dumped. Not sure where the problem is