Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FFmpeg cannot edit existing files in-place. #62

Open
kryzpee opened this issue Jan 6, 2022 · 2 comments
Open

FFmpeg cannot edit existing files in-place. #62

kryzpee opened this issue Jan 6, 2022 · 2 comments

Comments

@kryzpee
Copy link

kryzpee commented Jan 6, 2022

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
Copy link

Any update plz?

@ultramango
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants