obendidi / Tracking-with-darkflow

Real-time people Multitracker using YOLO v2 and deep_sort with tensorflow
GNU General Public License v3.0
523 stars 174 forks source link

AVAssetWriter status: Cannot create file #96

Open edrdos101 opened 5 years ago

edrdos101 commented 5 years ago

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)

wenredo commented 5 years ago

I have that same issue, anyone?

AniOjha commented 5 years ago

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!

simonvalerioneumeyer commented 2 years ago

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.