django - Django Video Encoding package not converting videos
问题描述
hey guys I am trying to make the django-video-encoding package work with my code, but it doesn't seem to be converting the videos. I have followed exactly as per the documentation. Can someone help with checking the code I have if I missed anything??
This is the link to the package: https://github.com/escaped/django-video-encoding Can anyone tell me where I went wrong? I couldn't see any tutorials or much info regarding this package but it seems like its the only one there.
I have given the path to ffmpeg like this (am not sure whether its the right way to provide path). this is in settings.
VIDEO_ENCODING_FFMPEG_PATH = "c:\\ffmpeg\\bin\\ffmpeg.exe"
in my signals.py I have this.
@receiver(post_save, sender=VideoPost)
def convert_video(sender, instance, **kwargs):
enqueue(tasks.convert_all_videos, instance._meta.app_label, instance._meta.model_name, instance.pk)
print('Done converting!')
and this prints after I upload a video, but the conversion does not happen.
解决方案
I tried to recreate but everything seems smooth to me. I didn't point the ffmpeg
location though as I set it up in the PATH instead. Try to to set the ffmpeg
as global(system) variable instead.
推荐阅读
- c# - 无法创建跨平台 ARCore 会话 (ErrorInvalidArgument)。GoogleARCoreInternal.ARCoreIOSLifecycleManager:EnableSession()
- javascript - 使用(引导)HTML 和纯 Javascript 创建待办事项列表
- c - 为什么 for 循环终止但其中的 memcpy 复制相同的子字符串?
- laravel - 在laravel中使用数组过滤集合
- c# - 我的 for 循环正在减慢我的计时器。怎么修?
- numpy - 对图像列表执行平均减法?
- c++ - 自然算术 C++ 总是返回 1
- java - 在 Try Catch 中从 Scanner 将整数解析为字符串
- java - xpath在java中不起作用
- javascript - 反应:如何过滤道具中的对象数组