hello,

but the user will have to wait anyway until the file is processed, no
matter what approach you take. i think what you are doing now is fine.
it may even be better because this way the wait time might be shorter
compared to the cron job that migh ttake a while to get to the file.

konstantin

On Mar 7, 5:47 pm, "Henrik Lied" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I'm creating a video upload feature for a social network. The uploaded
> video gets converted to Flash Video (flv) using mencoder.
>
> I need some input on how to convert the video. As it is now, I'm just
> converting the file directly after the original file is saved (via
> os.system). The problem with this (I think) is that it won't be good
> in the long run, since the user has to wait until the video is
> processed by mencoder.
>
> So I've been thinking about a queue-system. How I should do this I'm
> not sure about. I was thinking about adding an extra field to the
> model (encoded = models.BooleanField), and setup a python script which
> returns all the non-encoded entries. This script then executes the
> os.system()-command, and sets encoded to True.
> I guess I'd have to setup a simple crontab that would run this script
> every 10-20 minute.
>
> Do you have another idea? I've read about os.fork - would that be
> ideal for my problem?
>
> I welcome every input, so please - don't be shy! :-)


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to