I have a question for ffmpeg. (Python, Django linked)

Asked 2 years ago, Updated 2 years ago, 99 views

I have a question about ffmpeg and Python linkage.

ffmpeg is usually run in the command window, for example, file conversion

'ffmpeg -i video.mp4 out1.avi'

The command saves out1.avi to the root path.

But is there a way to put this out1.avi file in a variable with a command like subprocess?

(I want to use url to save it to a designated place, but I'm using s3, so I'm using url to save it There are difficulties. I would appreciate it if you could let me know if there is a way to save it in s3 right away through url!)

ffmpeg python django

2022-09-21 11:33

1 Answers

I've never done anything like this with Python, but I've done something similar with PHP. Typically, this is the next step.

Please note that there is no procedure for to get back the parameter value or command output used when executing the command.

+ Uploading a local file from Python to the S3 bucket seems to be done by putting a package called boto3 and boiling it for 3 minutes. https://zzdd1558.tistory.com/218


2022-09-21 11:33

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.