Answer the question
In order to leave comments, you need to log in
How to send the output of ffmpeg to memory instead of a file and then store the result in a Django FileField?
In the project I'm currently working on, I need to manipulate the uploaded files using FFMPEG.
There are 4 FileField fields in the model (in reality it is different, but this example can also be explained):
file1 = models.FileField(...)
file2= models.FileField(...)
file3 = models.FileField(...)
out_file = models.FileField(...)
Answer the question
In order to leave comments, you need to log in
if you have tmp on ssd, then everything is fine, there is no point in bothering.
If you want to experiment, make a ramdrive:
from root
# mkdir /mnt/ramdisk
# mount -t tmpfs -o size=512m tmpfs /mnt/ramdisk
# cd /ramdisk
# df -h .
Filesystem Size Used Avail Use% Mounted on
tmpfs 512M 0 512M 0% /ramdisk
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question