ultramango / gear360pano

Simple script to create equirectangular panorama by stitching images from Samsung Gear 360
MIT License
226 stars 55 forks source link

FFmpeg cannot edit existing files in-place. #62

Open kryzpee opened 2 years ago

kryzpee commented 2 years ago

Hey there!

I'm under Windows and unfortunately at the end where the script want to attach the audio stream I always get the following error:

Output c:\360\360_0108_pano.mp4 same as Input #0 - exiting FFmpeg cannot edit existing files in-place.

Any hints?

Thanks in advance! Kryz

amalnaami commented 2 years ago

Any update plz?

ultramango commented 2 years ago

Hi,

Sorry, but I'm not actively maintain this project anymore. I'll add myself a task to have a look in more depth or even refresh the project.

What you can try:

  1. Add a delay before attaching the audio stream - perhaps the file is still open by an "old" ffmpeg process and "new" one cannot write.
  2. (workaround) Before attaching the audio stream - make a copy and let the further processes operate on the copy of the file, not the original one.
  3. (workaround) Get the PID of "old" ffmpeg and forcibly close it before attaching the audio stream.

L.