Hi there!
I'm trying to create a video uploading service (just to learn). The
system is mostly based on Django, but the question I'm looking an
answer for is more related to Python.
So, the user gets to upload a video file. This can either be a mpg,
avi or mp4-file. When the file is saved to its location, I want to
convert it to FLA (Flash Video). I'm currently using Mplayers
Mencoder, and this works great. The Mencoder is retrieved through
running os.system("menc oder variables here")
The problem with this is that the user has to wait until the movie is
done encoding until he can go around with his business. I don't look
upon this as ideal.
So - I want to spawn a new system process. I need some good pointers
on how to do this right.
Any input? :-)
Thanks a lot in advance! 4 3116
I've tried os.spawnv and os.spawn, but these give no error and no
result.
Henrik Lied skreiv:
Hi there!
I'm trying to create a video uploading service (just to learn). The
system is mostly based on Django, but the question I'm looking an
answer for is more related to Python.
So, the user gets to upload a video file. This can either be a mpg,
avi or mp4-file. When the file is saved to its location, I want to
convert it to FLA (Flash Video). I'm currently using Mplayers
Mencoder, and this works great. The Mencoder is retrieved through
running os.system("menc oder variables here")
The problem with this is that the user has to wait until the movie is
done encoding until he can go around with his business. I don't look
upon this as ideal.
So - I want to spawn a new system process. I need some good pointers
on how to do this right.
Any input? :-)
Thanks a lot in advance!
On 12 Mar 2007 16:13:51 -0700, Henrik Lied <he********@gma il.comwrote:
>I'm trying to create a video uploading service (just to learn). The system is mostly based on Django, but the question I'm looking an answer for is more related to Python.
En Tue, 13 Mar 2007 06:57:33 -0300, rishi pathak
<ma************ *@gmail.comescr ibió:
You can do something like this:
pid = os.fork()
I don't think it's a good idea, the running process is Django, not a
script.
To the OP: I think the question *is* a Django question. You could launch
the external process, finish the current request and redirect to another
location; in that page you set a refresh to itself, and show the current
status "somehow" depending on how your external process can report its
progress. The details on how to do that, or even if that way is a good
approach at all, depend on Django.
--
Gabriel Genellina
I use ffmpeg instead of mencoder, calling it using os.popen(). You can
also use the "commands" module, but I prefer the first one.
Bye,
Massimo This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: serge calderara |
last post by:
Dear all,
I have an application which is suppose to start another executable process.
As soon as that process is running, I need to retrive its handle. The
problem of the particular process I am starting is that it has a welcome
window first which gets displayed and then the real windows after a while,in
other words it means that the...
|
by: Jørn A. |
last post by:
I'm working on a web based user interface for a job scheduling system
(running scripts).
The system is using a non-windows scheduler software, but it's installed and
running as a windows service. The service is running with the credentials of
a specified domain user, and all processes kicked off by the scheduler
service runs with these...
|
by: calderara serge |
last post by:
Dear All,
I am building an application with VB.Net that is starting an external
process from my application code by using the process object.
The problem I get is that the application that I need to start from my
code can takes some times to be really in full real mode. In other
words, my main application should continue its next code...
|
by: My SQL |
last post by:
Hi
Can I trigger an external program to run when a new record is added to
the mysql table?
The external program is in C and instead of scanning the table
continuously for new insertions, it will be better if an external
program could be triggered.
Any suggestions?
|
by: David Van D |
last post by:
Hi there,
A few weeks until I begin my journey towards a degree in Computer
Science at Canterbury University in New Zealand,
Anyway the course tutors are going to be teaching us JAVA wth bluej and
I was wondering if anyone here would be able to give me some tips for
young players such as myself, for learning the language.
Is this the...
| |
by: mikelujan |
last post by:
Hi,
Our application starts an external application using System.Diagnostics.Process class and the Start() method, as per code snippet below.
This application run as a Windows service, and must start several instances of the same application, like multiple Windows Calculators for instance. We are experiencing difficulties starting...
|
by: Stefan Weber |
last post by:
Hi,
I'm trying to access the JavaScript code contained in a <scripttag
via its "text" attribute. This works well, if the code is embedded in
the HTML page. However, when the code is in an external file with the
"src" attribute, it does not work anymore.
Does anybody have an idea if there is any way (be it clean and simple
or as a...
|
by: tim |
last post by:
Hi all,
I want to execute a VB application from a ASP page (not .Net). Want I want
to do is
that I write some parameters to a database and then start the external
application that will pickup these parameters and run in the background. I
looked for a sample but I can't find any. Who can help me.
Many thanks
Tim
|
by: tundal45 |
last post by:
Hey Guys,
I am trying to automate the process of loading data in our oracle server. As a part of that process, I am working on a perl script that loads external tables from data files. What I am seeing is that I get following error when I select from external table created using script.
ORA-29913: error in executing ODCIEXTTABLEOPEN callout...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
| |
by: tracyyun |
last post by:
Dear forum friends,
With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
|
by: conductexam |
last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in...
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...
| | |