Tracking-with-darkflow icon indicating copy to clipboard operation
Tracking-with-darkflow copied to clipboard

AVAssetWriter status: Cannot create file

Open edrdos101 opened this issue 6 years ago • 3 comments

When using a .mp4 file format with run.py I get the following error:

OpenCV: FFMPEG: tag 0x44495658/'XVID' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)'
OpenCV: FFMPEG: fallback to use tag 0x7634706d/'mp4v'
2019-02-11 15:50:23.099 Python[53789:715434] AVF: AVAssetWriter status: Cannot create file

And later the final ValueError: not enough values to unpack (expected 3, got 2) which I assume is just the result of opencv not being able to read the files I'm passing to it

What are the limitations on compatible video formats? (p.s. I tried .avi and .mov too)

edrdos101 avatar Feb 11 '19 15:02 edrdos101

I have that same issue, anyone?

wenredo avatar Apr 10 '19 17:04 wenredo

Using .avi format instead of mp4 makes this (OpenCV: FFMPEG: tag 0x44495658/'XVID' is not supported with codec id 12 and format 'mp4 / MP4 (MPEG-4 Part 14)') go away, but it still shows AVF: "AVAssetWriter status: Cannot create file".

If anyone knows how to solve this, do help!

AniOjha avatar Apr 13 '19 22:04 AniOjha

I had the same issue and what worked for me was to make sure all the directories of the destination path already exist. The format warning still appears but the files are being created.

simonvalerioneumeyer avatar Mar 18 '22 20:03 simonvalerioneumeyer