472,102 Members | 2,009 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,102 software developers and data experts.

Regd:Video Converter Programming

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.

Aug 9 '06 #1
5 2460

Ch3ru5 wrote:
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

Aug 9 '06 #2
On 2006-08-09, placid <Bu****@gmail.comwrote:
>I want to write an avi to flv converter in php but i am a complete
newbie to it.
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!!
Aug 9 '06 #3

Grant Edwards wrote:
On 2006-08-09, placid <Bu****@gmail.comwrote:
I want to write an avi to flv converter in php but i am a complete
newbie to it.
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!

Aug 9 '06 #4
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:
Grant Edwards wrote:
On 2006-08-09, placid <Bu****@gmail.comwrote:
>I want to write an avi to flv converter in php but i am a complete
>newbie to it.
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!
Aug 10 '06 #5
"Ch3ru5" <mu********@gmail.comwrote:
>
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.
>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, ti**@probo.com
Providenza & Boekelheide, Inc.
Aug 12 '06 #6

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.