Connecting Tech Pros Worldwide Forums | Help | Site Map

Regd:Video Converter Programming

Ch3ru5
Guest
 
Posts: n/a
#1: Aug 9 '06
Hi,
I want to write an avi to flv converter in php but i am a complete
newbie to it.

I would like to know the basic flow of entire process of how a
converter code is written
(ie. the basic algorithm ) .

Example: "You first create an flv stream , then compress the avi code ,
then copy that code into the flv stream created ."

The above flow may or may not be correct but what i want to know is
this flow .

Any good tutorials or resources where i can learn the basics.

Thank You,
Raja.


placid
Guest
 
Posts: n/a
#2: Aug 9 '06

re: Regd:Video Converter Programming



Ch3ru5 wrote:
Quote:
Hi,
I want to write an avi to flv converter in php but i am a complete
newbie to it.
>
I would like to know the basic flow of entire process of how a
converter code is written
(ie. the basic algorithm ) .
>
Example: "You first create an flv stream , then compress the avi code ,
then copy that code into the flv stream created ."
>
The above flow may or may not be correct but what i want to know is
this flow .
>
Any good tutorials or resources where i can learn the basics.
>
via a Google search for "python video convert" i found the following

http://pymedia.org/

Cheers

Grant Edwards
Guest
 
Posts: n/a
#3: Aug 9 '06

re: Regd:Video Converter Programming


On 2006-08-09, placid <Bulkan@gmail.comwrote:
Quote:
Quote:
>I want to write an avi to flv converter in php but i am a complete
>newbie to it.
Quote:
via a Google search for "python video convert" i found the following
>
http://pymedia.org/
Except he wants to write it in PHP.

Not sure why he's asking us about it here in c.l.python.

--
Grant Edwards grante Yow! Like I always
at say -- nothing can beat
visi.com the BRATWURST here in
DUSSELDORF!!
placid
Guest
 
Posts: n/a
#4: Aug 9 '06

re: Regd:Video Converter Programming



Grant Edwards wrote:
Quote:
On 2006-08-09, placid <Bulkan@gmail.comwrote:
>
Quote:
Quote:
I want to write an avi to flv converter in php but i am a complete
newbie to it.
>
Quote:
via a Google search for "python video convert" i found the following

http://pymedia.org/
>
Except he wants to write it in PHP.
>
Not sure why he's asking us about it here in c.l.python.

well if i see a post on comp.lang.python, then i assume its related to
python and thats what my brain did!

Ch3ru5
Guest
 
Posts: n/a
#5: Aug 10 '06

re: Regd:Video Converter Programming


HI,
Thanks all for replies . I am sorry for a confusion of the question .
But what i wanted to know is in general in any programming language ,
how you go about writing a video converter .

The basic flow of code . that's it . I will look into the resources in
a particular language of my choice later .
I am not clear as to how to proceed in any language .



placid wrote:
Quote:
Grant Edwards wrote:
Quote:
On 2006-08-09, placid <Bulkan@gmail.comwrote:
Quote:
>I want to write an avi to flv converter in php but i am a complete
>newbie to it.
Quote:
via a Google search for "python video convert" i found the following
>
http://pymedia.org/
Except he wants to write it in PHP.

Not sure why he's asking us about it here in c.l.python.
>
>
well if i see a post on comp.lang.python, then i assume its related to
python and thats what my brain did!
Tim Roberts
Guest
 
Posts: n/a
#6: Aug 12 '06

re: Regd:Video Converter Programming


"Ch3ru5" <muppadivya@gmail.comwrote:
Quote:
>
Thanks all for replies . I am sorry for a confusion of the question .
>But what i wanted to know is in general in any programming language ,
>how you go about writing a video converter .
The problem is that converting between video formats requires LOTS of
manipulation of bitfields: pull 3 bits from here, pull 6 bits from here,
insert 9 bits there. That kind of manipulation is easier in some languages
than in others.

For example, it makes sense in C and C++. It can be done in Python,
although not as efficiently. It would be difficult in PHP.
Quote:
>The basic flow of code . that's it . I will look into the resources in
>a particular language of my choice later .
The basic flow depends on what formats you are converting between. To to
MPEG-to-AVI, for instance, you would normally go through the whole MPEG
decompression process to get to a series of bitmaps, then go through the
whole AVI compression process to get a movie.

If you are on Windows, you almost certainly want to use DirectShow to do
this job. There is a DirectShow interface for Python.
--
- Tim Roberts, timr@probo.com
Providenza & Boekelheide, Inc.
Closed Thread