WyattBlue / auto-editor

Auto-Editor: Efficient media analysis and rendering
https://auto-editor.com
The Unlicense
2.81k stars 411 forks source link

DaVinci Resolve export gets "The clip was not found" when source file is from a Sony camera #366

Closed mckayc closed 11 months ago

mckayc commented 1 year ago

Bug description

If I run auto-editor with a Sony (Sony a6500 camera specifically) mp4 file, the resulting XML file when importing to DaVinci Resolve results in "The clip was not found" error. If I first add the clip to the media pool, right click on the clip, go to clip properties and set the Timecode to 00:00:00:00 then I can import just fine. I have attached a gif so you can see the exact issue.

2023-08-13 -- 22 40 17 - Resolve_25jufzZbG6

What's your platform?

Platform: Windows 10 amd64
FFmpeg Version: N-110322-g0c25da5a28-g1440bf15e2+1
FFmpeg Path: C:\Python311\Lib\site-packages\ae_ffmpeg\Windows\ffmpeg.exe
Auto-Editor Version: 23w32a

What properties does your input video have?

Comments

I feel like this is specific to files from Sony cameras. If I transcode the mp4 file to another mp4 file and run auto-editor and import to DaVinci Resolve everything works as expected. So this may not in fact be a bug but something odd with Sony files. I totally get that this is pretty specific and may not even be a bug but thought I would list it here with the workaround.

Just want to say thanks for creating auto-editor. I use this multiple times a day and it is a lifesaver! I have actually tried a handful of commercial software similar to this and prefer this over those options. Because this is CLI I was able to write a Powershell script to automate my preferred settings and I can literally open and run this app on my video files in less than 5 seconds. Keep up the great work!

WyattBlue commented 1 year ago

I'll look into it this Thursday.

WyattBlue commented 1 year ago

I think switching the fcp7 backend to the fcp11 should solve this indirectly as well as #368.

Try installing from master to see if this fixes the issue

pip uninstall auto-editor
pip install git+https://github.com/WyattBlue/auto-editor.git
mckayc commented 1 year ago

Thanks. I just updated to 23w33a-dev (23.33.1) but I am still experiencing the same issue.

Changing the time on the clip attribute still functions as a workaround.

2023-08-21 -- 06 08 36 - Resolve_P9EZwrKOqp

2023-08-21 -- 06 11 27 - Resolve_K1XuMB2AHN

Tendaliu commented 1 year ago

If the Timecode of the media doesn't start at 00:00:00:00 this error would occur

SuperNova74-K commented 1 year ago

Hello @mckayc , @Tendaliu @WyattBlue , I re-solved :) this issue by editing the video's path in the XML file by changing the back-slashes to forward slashes

For example the file path <pathurl> for me was:

<pathurl>C:\Users\walid\Videos\Departments\IS\TheVid.m4v</pathurl>

And I was getting the error so I switched it to :

<pathurl>C:/Users/walid/Videos/Departments/IS/TheVid.m4v</pathurl>

And it worked like a charm so you might want to edit this in the output.py as I'm currently a bit too busy to do it myself, if you don't have time I will try to do it next Saturday.

Try it and tell me if it worked for you :)

virtualflo commented 11 months ago

I have the same problem here with a video recorded with the new Blackmagic Camera app. My pathurl got the correct forward slashes and I first add the clip to the media pool, right click on the clip, go to clip properties and set the Timecode to 00:00:00:00 then I can import just fine like @mckayc