By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
428,742 Members | 1,570 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 428,742 IT Pros & Developers. It's quick & easy.

how to convert a video file in .flv format in php for linux hosting

P: n/a
hey good morning ......

how to convert a video file in .flv format in php for linux
hosting......is there any package whis provide this facility .
Can i use ffmpeg for linux hosting project..........
plz help me..
thanks & regards
Prabhat
Sep 4 '08 #1
Share this Question
Share on Google+
5 Replies


P: n/a
On Sep 4, 12:04*am, sonu <prabhat4e...@gmail.comwrote:
hey good morning ......

how to convert a video file in .flv format in php for linux
hosting......is there any package whis provide this facility .
Can i use ffmpeg for linux hosting project..........
plz help me..

A flv is just 1 file of the flv/swf format. You also need the swf
file. The flv(flash video) file contains only video data. The swf file
is a container file that contains the player controls, and perhaps
logos, text etc. A flv was never intended to be a stand alone video
format. However people often download one from the web. To play it,
flv players have been developed, or video format converters are used
to convert the flv to something else such as wmv.

First you need a flv/swf encoder. The full flash official suites are
very expensive. If you are interested in videos only, there are flv/
swf converters you can buy for around US$60. I use the Flash Video MX
converter from Moyea Software. This company has recently updated their
software and renamed it, so you will have to read the details at their
website at http://www.flash-video-mx.com/ if you are interested. You
normally start with a high resolution video file such as mpg one and
use that as input to the flv/swf encoder. You can make many
adjustments for both the video and audio and build a player in many
ways. The output is a flv and a swf file. On my older unit you can
also input a lone flv file and use that to encode a flv/swf (you must
select to view all files in the drop down for selecting a lone flv as
the input file). These 2 files are both uploaded to a directory on the
server that will have a web page containing the video. The swf only is
entered into the source code for the page. When it is called, it
internally links to the flv and starts it downloading to the temporary
cache of the browser.

There are several ways to embed a flv/swf on a web page, some of which
will not validate. An example of what I use is below:

<h3>FATTY ARBUCKLE 1917 - THE BUTCHER BOY</h3>
<div style="text-align:center;z-index:2">
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,29,0" width="400" height="300" >
<param name="movie" value="Fatty.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<![endif]-->
<!--[if !IE]<-->
<object type="application/x-shockwave-flash" data="Fatty.swf"
width="400" height="300">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<!--><![endif]-->
</div>

An ActiveX object is used for the IE path and an ordinary object is
used for other browsers that do not support ActiveX. Actually an
ordinary object can be used for IE, but a long video will not start
streaming until download is comlete for IE if you do so. There are
methods other than this also sometimes used to overcome this problem.
Microsoft conditional comments are used to direct to the ActiveX or
ordinary object.

Well as you see, we have not mentioned php at all to this point. I
guess it is remotely possible one could write their own program to
encode a flv/swf file using php rather than using a commercial
program, but one most likely would better use C++ or some other
language. The task would require very detailed knowledge of the flv/
swf format and likely great skill in programming. I do sometimes use
php when I offer a choice of several video formats. You select the
format desired and php writes html just for the format selected and
does not download a lot of extra code for other formats.

I am using a Unix/Linux/Apache server, but I doubt if the type of
server will matter for putting a flv/swf on a page on your site.
Sep 4 '08 #2

P: n/a
hi thanks buddy
but do know abt any package of file or pear package of file to convert
a video file to .flv in php
which i can easlity upload to my linux hosting..
and yeh
thans for all ur support
have a nice day dear cwdjrxyz

cwdjrxyz wrote:
On Sep 4, 12:04´┐Żam, sonu <prabhat4e...@gmail.comwrote:
hey good morning ......

how to convert a video file in .flv format in php for linux
hosting......is there any package whis provide this facility .
Can i use ffmpeg for linux hosting project..........
plz help me..


A flv is just 1 file of the flv/swf format. You also need the swf
file. The flv(flash video) file contains only video data. The swf file
is a container file that contains the player controls, and perhaps
logos, text etc. A flv was never intended to be a stand alone video
format. However people often download one from the web. To play it,
flv players have been developed, or video format converters are used
to convert the flv to something else such as wmv.

First you need a flv/swf encoder. The full flash official suites are
very expensive. If you are interested in videos only, there are flv/
swf converters you can buy for around US$60. I use the Flash Video MX
converter from Moyea Software. This company has recently updated their
software and renamed it, so you will have to read the details at their
website at http://www.flash-video-mx.com/ if you are interested. You
normally start with a high resolution video file such as mpg one and
use that as input to the flv/swf encoder. You can make many
adjustments for both the video and audio and build a player in many
ways. The output is a flv and a swf file. On my older unit you can
also input a lone flv file and use that to encode a flv/swf (you must
select to view all files in the drop down for selecting a lone flv as
the input file). These 2 files are both uploaded to a directory on the
server that will have a web page containing the video. The swf only is
entered into the source code for the page. When it is called, it
internally links to the flv and starts it downloading to the temporary
cache of the browser.

There are several ways to embed a flv/swf on a web page, some of which
will not validate. An example of what I use is below:

<h3>FATTY ARBUCKLE 1917 - THE BUTCHER BOY</h3>
<div style="text-align:center;z-index:2">
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,29,0" width="400" height="300" >
<param name="movie" value="Fatty.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<![endif]-->
<!--[if !IE]<-->
<object type="application/x-shockwave-flash" data="Fatty.swf"
width="400" height="300">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<!--><![endif]-->
</div>

An ActiveX object is used for the IE path and an ordinary object is
used for other browsers that do not support ActiveX. Actually an
ordinary object can be used for IE, but a long video will not start
streaming until download is comlete for IE if you do so. There are
methods other than this also sometimes used to overcome this problem.
Microsoft conditional comments are used to direct to the ActiveX or
ordinary object.

Well as you see, we have not mentioned php at all to this point. I
guess it is remotely possible one could write their own program to
encode a flv/swf file using php rather than using a commercial
program, but one most likely would better use C++ or some other
language. The task would require very detailed knowledge of the flv/
swf format and likely great skill in programming. I do sometimes use
php when I offer a choice of several video formats. You select the
format desired and php writes html just for the format selected and
does not download a lot of extra code for other formats.

I am using a Unix/Linux/Apache server, but I doubt if the type of
server will matter for putting a flv/swf on a page on your site.
Sep 4 '08 #3

P: n/a
On Sep 4, 3:09*am, sonu <prabhat4e...@gmail.comwrote:
hi thanks buddy
but do know abt any package of file or pear package of file to convert
a video file to .flv in php
No, I have not heard of such packages to convert a video file to flv
in php. Sorry.
which i can easlity upload to my linux hosting..
and yeh
thans for all ur support
have a nice day dear cwdjrxyz
cwdjrxyz wrote:
On Sep 4, 12:04 am, sonu <prabhat4e...@gmail.comwrote:
hey good morning ......
how to convert a video file in .flv format in php for linux
hosting......is there any package whis provide this facility .
Can i use ffmpeg for linux hosting project..........
plz help me..
A flv is just 1 file of the flv/swf format. You also need the swf
file. The flv(flash video) file contains only video data. The swf file
is a container file that contains the player controls, and perhaps
logos, text etc. A flv was never intended to be a stand alone video
format. However people often download one from the web. To play it,
flv players have been developed, or video format converters are used
to convert the flv to something else such as wmv.
First you need a flv/swf encoder. The full flash official suites are
very expensive. If you are interested in videos only, there are flv/
swf converters you can buy for around US$60. I use the Flash Video MX
converter from Moyea Software. This company has recently updated their
software and renamed it, so you will have to read the details at their
website athttp://www.flash-video-mx.com/if you are interested. You
normally start with a high resolution video file such as mpg one and
use that as input to the flv/swf encoder. You can make many
adjustments for both the video and audio and build a player in many
ways. The output is a flv and a swf file. On my older unit you can
also input a lone flv file and use that to encode a flv/swf (you must
select to view all files in the drop down for selecting a lone flv as
the input file). These 2 files are both uploaded to a directory on the
server that will have a web page containing the video. The swf only is
entered into the source code for the page. When it is called, it
internally links to the flv and starts it downloading to the temporary
cache of the browser.
There are several ways to embed a flv/swf on a web page, some of which
will not validate. An example of what I use is below:
<h3>FATTY ARBUCKLE 1917 - THE BUTCHER BOY</h3>
<div style="text-align:center;z-index:2">
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,29,0" width="400" height="300" >
<param name="movie" value="Fatty.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<![endif]-->
<!--[if !IE]<-->
<object type="application/x-shockwave-flash" data="Fatty.swf"
width="400" height="300">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<!--><![endif]-->
</div>
An ActiveX object is used for the IE path and an ordinary object is
used for other browsers that do not support ActiveX. Actually an
ordinary object can be used for IE, but a long video will not start
streaming until download is comlete for IE if you do so. There are
methods other than this also sometimes used to overcome this problem.
Microsoft conditional comments are used to direct to the ActiveX or
ordinary object.
Well as you see, we have not mentioned php at all to this point. I
guess it is remotely possible one could write their own program to
encode a flv/swf file using php rather than using a commercial
program, but one most likely would better use C++ or some other
language. The task would require very detailed knowledge of the flv/
swf format and likely great skill in programming. I do sometimes use
php when I offer a choice of several video formats. You select the
format desired and php writes html just for the format selected and
does not download a lot of extra code for other formats.
I am using a Unix/Linux/Apache server, but I doubt if the type of
server will matter for putting a flv/swf on a page on your site.

Sep 4 '08 #4

P: n/a
On Sep 4, 2:22*pm, cwdjrxyz <spamtr...@cwdjr.infowrote:
On Sep 4, 3:09*am, sonu <prabhat4e...@gmail.comwrote:
hi thanks buddy
but do know abt any package of file or pear package of file to convert
a video file to .flv in php

No, I have not heard of such packages to convert a video file to flv
in php. Sorry.
which i can easlity upload to my linux hosting..
and yeh
thans for all ur support
have a nice day dear cwdjrxyz
cwdjrxyz wrote:
On Sep 4, 12:04 am, sonu <prabhat4e...@gmail.comwrote:
hey good morning ......
how to convert a video file in .flv format in php for linux
hosting......is there any package whis provide this facility .
Can i use ffmpeg for linux hosting project..........
plz help me..
A flv is just 1 file of the flv/swf format. You also need the swf
file. The flv(flash video) file contains only video data. The swf file
is a container file that contains the player controls, and perhaps
logos, text etc. A flv was never intended to be a stand alone video
format. However people often download one from the web. To play it,
flv players have been developed, or video format converters are used
to convert the flv to something else such as wmv.
First you need a flv/swf encoder. The full flash official suites are
very expensive. If you are interested in videos only, there are flv/
swf converters you can buy for around US$60. I use the Flash Video MX
converter from Moyea Software. This company has recently updated their
software and renamed it, so you will have to read the details at their
website athttp://www.flash-video-mx.com/ifyou are interested. You
normally start with a high resolution video file such as mpg one and
use that as input to the flv/swf encoder. You can make many
adjustments for both the video and audio and build a player in many
ways. The output is a flv and a swf file. On my older unit you can
also input a lone flv file and use that to encode a flv/swf (you must
select to view all files in the drop down for selecting a lone flv as
the input file). These 2 files are both uploaded to a directory on the
server that will have a web page containing the video. The swf only is
entered into the source code for the page. When it is called, it
internally links to the flv and starts it downloading to the temporary
cache of the browser.
There are several ways to embed a flv/swf on a web page, some of which
will not validate. An example of what I use is below:
<h3>FATTY ARBUCKLE 1917 - THE BUTCHER BOY</h3>
<div style="text-align:center;z-index:2">
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,29,0" width="400" height="300" >
<param name="movie" value="Fatty.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<![endif]-->
<!--[if !IE]<-->
<object type="application/x-shockwave-flash" data="Fatty.swf"
width="400" height="300">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<!--><![endif]-->
</div>
An ActiveX object is used for the IE path and an ordinary object is
used for other browsers that do not support ActiveX. Actually an
ordinary object can be used for IE, but a long video will not start
streaming until download is comlete for IE if you do so. There are
methods other than this also sometimes used to overcome this problem.
Microsoft conditional comments are used to direct to the ActiveX or
ordinary object.
Well as you see, we have not mentioned php at all to this point. I
guess it is remotely possible one could write their own program to
encode a flv/swf file using php rather than using a commercial
program, but one most likely would better use C++ or some other
language. The task would require very detailed knowledge of the flv/
swf format and likely great skill in programming. I do sometimes use
php when I offer a choice of several video formats. You select the
format desired and php writes html just for the format selected and
does not download a lot of extra code for other formats.
I am using a Unix/Linux/Apache server, but I doubt if the type of
server will matter for putting a flv/swf on a page on your site.

its okk dude........
thanks for all ur support
Sep 4 '08 #5

P: n/a
On Sep 4, 11:26*am, sonu <prabhat4e...@gmail.comwrote:
On Sep 4, 2:22*pm, cwdjrxyz <spamtr...@cwdjr.infowrote:
On Sep 4, 3:09*am, sonu <prabhat4e...@gmail.comwrote:
hi thanks buddy
but do know abt any package of file or pear package of file to convert
a video file to .flv in php
No, I have not heard of such packages to convert a video file to flv
in php. Sorry.
which i can easlity upload to my linux hosting..
and yeh
thans for all ur support
have a nice day dear cwdjrxyz
cwdjrxyz wrote:
On Sep 4, 12:04 am, sonu <prabhat4e...@gmail.comwrote:
hey good morning ......
how to convert a video file in .flv format in php for linux
hosting......is there any package whis provide this facility .
Can i use ffmpeg for linux hosting project..........
plz help me..
A flv is just 1 file of the flv/swf format. You also need the swf
file. The flv(flash video) file contains only video data. The swf file
is a container file that contains the player controls, and perhaps
logos, text etc. A flv was never intended to be a stand alone video
format. However people often download one from the web. To play it,
flv players have been developed, or video format converters are used
to convert the flv to something else such as wmv.
First you need a flv/swf encoder. The full flash official suites are
very expensive. If you are interested in videos only, there are flv/
swf converters you can buy for around US$60. I use the Flash Video MX
converter from Moyea Software. This company has recently updated their
software and renamed it, so you will have to read the details at their
website athttp://www.flash-video-mx.com/ifyouare interested. You
normally start with a high resolution video file such as mpg one and
use that as input to the flv/swf encoder. You can make many
adjustments for both the video and audio and build a player in many
ways. The output is a flv and a swf file. On my older unit you can
also input a lone flv file and use that to encode a flv/swf (you must
select to view all files in the drop down for selecting a lone flv as
the input file). These 2 files are both uploaded to a directory on the
server that will have a web page containing the video. The swf onlyis
entered into the source code for the page. When it is called, it
internally links to the flv and starts it downloading to the temporary
cache of the browser.
There are several ways to embed a flv/swf on a web page, some of which
will not validate. An example of what I use is below:
<h3>FATTY ARBUCKLE 1917 - THE BUTCHER BOY</h3>
<div style="text-align:center;z-index:2">
<!--[if IE]>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"
codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/
swflash.cab#version=6,0,29,0" width="400" height="300" >
<param name="movie" value="Fatty.swf">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<![endif]-->
<!--[if !IE]<-->
<object type="application/x-shockwave-flash" data="Fatty.swf"
width="400" height="300">
<param name="quality" value="high">
<param name="bgcolor" value="#000000">
<param name="autoplay" value="false">
<param name="loop" value="false">
<param name="wmode" value="transparent">
</object>
<!--><![endif]-->
</div>
An ActiveX object is used for the IE path and an ordinary object is
used for other browsers that do not support ActiveX. Actually an
ordinary object can be used for IE, but a long video will not start
streaming until download is comlete for IE if you do so. There are
methods other than this also sometimes used to overcome this problem.
Microsoft conditional comments are used to direct to the ActiveX or
ordinary object.
Well as you see, we have not mentioned php at all to this point. I
guess it is remotely possible one could write their own program to
encode a flv/swf file using php rather than using a commercial
program, but one most likely would better use C++ or some other
language. The task would require very detailed knowledge of the flv/
swf format and likely great skill in programming. I do sometimes use
php when I offer a choice of several video formats. You select the
format desired and php writes html just for the format selected and
does not download a lot of extra code for other formats.
I am using a Unix/Linux/Apache server, but I doubt if the type of
server will matter for putting a flv/swf on a page on your site.

its okk dude........
thanks for all ur support
Use ffmpeg
Sep 4 '08 #6

This discussion thread is closed

Replies have been disabled for this discussion.