Closed kreazyme closed 1 month ago
I tried to import both .MOV and .MP4 file, but nothing difference :(
The same issues in Android 13 Samsung physic device.
I try to run VideoWriter many time but this code was not created this path.
It seem like VideoWriter
's bug
Evidence:
get it. I finally managed to reproduce it. take a look at https://github.com/rainyl/awesome-opencv_dart/tree/main/examples/videoio first please.
I am not very familiar with android development, but I think it's because the permissions.
In the above example, when the destination path dst
was selected manually from external storage (by clicking Save to
), opencv complained that it cant find the path, but if we save to source file's parent directory directly, it worked fine.
The same issues in Android 13 Samsung physic device. I try to run VideoWriter many time but this code was not created this path. It seem like
VideoWriter
's bug
Does the directory cache
exists?
@rainyl In some minutes, I think the error like that. Then, I changed to download Directory, give permission,... but nothing happen.
After that, I try to use cv.imwrite()
to save an image and this working fine. I think the permission and directory has no problem.
Thank for your reply :D and have nice day
@kreazyme thx~
but i still have 2 questions:
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior: I want to save a video to document directory by this code:
I try to use
imwrite
insidevideo1.read()
, the result is perfectly. But when i try to usingoutputVideo.write(frame)
, the video size is zeroExpected behavior Video save correctly
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.