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

Video -> Flash

P: n/a
There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.

Anyone have any experience with this?

--
Sandman[.net]
Dec 21 '06 #1
Share this Question
Share on Google+
12 Replies


P: n/a
Sandman wrote:
There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.

Anyone have any experience with this?
ffmpeg
--
I don't care who your father is. As long as I am fishing here, you will
refrain from walking those waters

Dec 21 '06 #2

P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Dec 2006 09:54:24 +0100,
Sandman <mr@sandman.netwrote:
There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.

Anyone have any experience with this?
No experience, but a quick google showed <http://www.swftools.org/as a
possibility.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFilIbd90bcYOAWPYRAtO3AJ9R+p9TotaEhn/sb8Wxb5sAWQG9JgCgrJ9i
+ONjfGe6x5Yi6sq6nt2+qUo=
=XRkO
-----END PGP SIGNATURE-----

--
Jim Richardson http://www.eskimo.com/~warlock
I've noticed that when a new policy mentions me by name,
it's never a good thing.
Dec 21 '06 #3

P: n/a
Jim Richardson <wa*****@eskimo.comdid eloquently scribble:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On Thu, 21 Dec 2006 09:54:24 +0100,
Sandman <mr@sandman.netwrote:
>There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.

Anyone have any experience with this?
No experience, but a quick google showed <http://www.swftools.org/as a
possibility.
There's also a way to capture VNC sessions and convert them to flash video.
So you can record all activities on a desktop for demonstration purposes.
--
__________________________________________________ ____________________________
| sp****@freenet.co.uk | |
|Andrew Halliwell BSc(hons)| "ARSE! GERLS!! DRINK! DRINK! DRINK!!!" |
| in | "THAT WOULD BE AN ECUMENICAL MATTER!...FECK!!!! |
| Computer Science | - Father Jack in "Father Ted" |
------------------------------------------------------------------------------
Dec 21 '06 #4

P: n/a
In article <r9************@dragon.myth>,
Jim Richardson <wa*****@eskimo.comwrote:
There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.

Anyone have any experience with this?

No experience, but a quick google showed <http://www.swftools.org/as a
possibility.
Yeah, I saw that one too. Only problem is that it seems to support
only AVI to SWF, and I was looking for <any video formatto FLV.

But thanks anyway

--
Sandman[.net]
Dec 21 '06 #5

P: n/a
In article <em*************@news.t-online.com>,
Peter Köhlmann <pe*************@t-online.dewrote:
Sandman wrote:
There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.

Anyone have any experience with this?

ffmpeg
Hey, thanks!

I always figured ffmpeg only did, you know, mpeg. It seems it supports
a wide variety of formats. While it does seem to lack support for some
QuickTime formats, it seems to at least support standard mp4, h.264
and such.

But, it didn't seem to support AVI or DivX... hmmm, or did I miss it?

And, some on-topic linux stuff:
~apt-get install ffmpeg
(...)
The following packages will be REMOVED:
base-config initrd-tools kernel-image-2.6.8-1-386
kernel-image-2.6.8-2-686-smp
(...)

If I would install it, it would actually *remove* my kernel? Yeah,
that's uhm... great. :)

--
Sandman[.net]
Dec 21 '06 #6

P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Dec 2006 11:30:44 +0100,
Sandman <mr@sandman.netwrote:
In article <r9************@dragon.myth>,
Jim Richardson <wa*****@eskimo.comwrote:
There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.

Anyone have any experience with this?

No experience, but a quick google showed <http://www.swftools.org/as a
possibility.

Yeah, I saw that one too. Only problem is that it seems to support
only AVI to SWF, and I was looking for <any video formatto FLV.

But thanks anyway

use mencoder to convert pretty much anything to avi.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFirNed90bcYOAWPYRAsAiAKC6ekRT5h8DuAw/72fFj7vB9bKHDwCfUewA
KOYu3QH7nGIV2hw84XUn6Vk=
=29/Z
-----END PGP SIGNATURE-----

--
Jim Richardson http://www.eskimo.com/~warlock
"I worry that the person who thought up Muzak may be thinking up
something else."
--Lily Tomlin
Dec 21 '06 #7

P: n/a
On Thu, 21 Dec 2006 09:54:24 +0100, Sandman wrote:
There are some Mac tools to convert pretty much any given video source
to a Flash video file (.flv) but I'm wondering if there is any way to
do it using a Linux platform tying in to a PHP web system? I.e. I'd
like to have video files submitted by users which are then
auto-converted to .flv files.

Anyone have any experience with this?
A million of them.
Now figure out how to make them work like you want.
Dec 21 '06 #8

P: n/a
In article <uj************@dragon.myth>,
Jim Richardson <wa*****@eskimo.comwrote:
Yeah, I saw that one too. Only problem is that it seems to support
only AVI to SWF, and I was looking for <any video formatto FLV.

But thanks anyway

use mencoder to convert pretty much anything to avi.
Riiight, but building a two-step encoding solution, just to end up
with a format I didn't want in the first step? (SWF instead of FLV)

Thanks anyway :)

--
Sandman[.net]
Dec 21 '06 #9

P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Dec 2006 18:56:32 +0100,
Sandman <mr@sandman.netwrote:
In article <uj************@dragon.myth>,
Jim Richardson <wa*****@eskimo.comwrote:
Yeah, I saw that one too. Only problem is that it seems to support
only AVI to SWF, and I was looking for <any video formatto FLV.

But thanks anyway

use mencoder to convert pretty much anything to avi.

Riiight, but building a two-step encoding solution, just to end up
with a format I didn't want in the first step? (SWF instead of FLV)

Thanks anyway :)
dunno what the diff is between swf and flv, can't help there.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFit17d90bcYOAWPYRAtwVAJ9E+tFmrxsEQGrSa7ZdwF FtGcEzigCgrTAp
DPZg7HgalQE3vFVyoXi1CLk=
=aNbr
-----END PGP SIGNATURE-----

--
Jim Richardson http://www.eskimo.com/~warlock
You know you're in trouble when the Russians are adding safety features
to your design.
Maciej Cegłowski on Buran, the Space Shuttle clone
Dec 21 '06 #10

P: n/a
In article <r4************@dragon.myth>,
Jim Richardson <wa*****@eskimo.comwrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Dec 2006 18:56:32 +0100,
Sandman <mr@sandman.netwrote:
In article <uj************@dragon.myth>,
Jim Richardson <wa*****@eskimo.comwrote:
Yeah, I saw that one too. Only problem is that it seems to support
only AVI to SWF, and I was looking for <any video formatto FLV.

But thanks anyway

use mencoder to convert pretty much anything to avi.
Riiight, but building a two-step encoding solution, just to end up
with a format I didn't want in the first step? (SWF instead of FLV)

Thanks anyway :)

dunno what the diff is between swf and flv, can't help there.
SWF is the flash file loaded by the browser. FLV is a video file
either streamed by a Adobe Media Server or progressively loaded from a
web server to a SWF "client". I.e. it's not a file format that any
browser can play. The browser loads the Flash plugin to play the SWF
file, which in turn fetches the FLV file and displays in the SWF file,
which may or may not have controls to control the video.


--
Sandman[.net]
Dec 21 '06 #11

P: n/a
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

["Followup-To:" header set to comp.os.linux.advocacy.]
On Thu, 21 Dec 2006 22:54:25 +0100,
Sandman <mr@sandman.netwrote:
In article <r4************@dragon.myth>,
Jim Richardson <wa*****@eskimo.comwrote:
>-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Thu, 21 Dec 2006 18:56:32 +0100,
Sandman <mr@sandman.netwrote:
In article <uj************@dragon.myth>,
Jim Richardson <wa*****@eskimo.comwrote:

Yeah, I saw that one too. Only problem is that it seems to support
only AVI to SWF, and I was looking for <any video formatto FLV.

But thanks anyway

use mencoder to convert pretty much anything to avi.

Riiight, but building a two-step encoding solution, just to end up
with a format I didn't want in the first step? (SWF instead of FLV)

Thanks anyway :)

dunno what the diff is between swf and flv, can't help there.

SWF is the flash file loaded by the browser. FLV is a video file
either streamed by a Adobe Media Server or progressively loaded from a
web server to a SWF "client". I.e. it's not a file format that any
browser can play. The browser loads the Flash plugin to play the SWF
file, which in turn fetches the FLV file and displays in the SWF file,
which may or may not have controls to control the video.

Ah, mencoder is what you need.

Example from <http://www.entropyfarm.org/software/tricks/>
<quote>

# Creating a flash video (.flv) file for web streaming

* From a video source

mencoder inputfile -ffourcc FLV1 -of lavf -ovc lavc -lavcopts
vcodec=flv:acodec=mp3:abitrate=56 -srate 22050 -o outputfile

* From a sequence of images

mencoder mf://*.png -mf w=360:h=240:fps=12:type=png -of lavf
- -ffourcc FLV1 -ovc lavc -lavcopts vcodec=flv:acodec=mp3:abitrate=56
- -srate 22050 -o outputfile

Obviously, replace the width, height, and frames per second above
with the w/h/fps of your video. If you're using jpegs, use '*.jpeg' and
'type=jpeg' instead of png above. If you don't have any audio, use this:

mencoder mf://*.png -mf w=360:h=240:fps=12:type=png -of lavf
- -ffourcc FLV1 -ovc lavc -lavcopts vcodec=flv -o outputfile

</quote>

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)

iD8DBQFFizRcd90bcYOAWPYRAgweAKDJc49SNbCpeS0SjiAk+x eqyGOSKACeN6yP
C35P096EZwZILCRvwSY6OH0=
=RPh7
-----END PGP SIGNATURE-----

--
Jim Richardson http://www.eskimo.com/~warlock
Don't get mad, get Linux
Dec 22 '06 #12

P: n/a
Sandman schrieb:
But, it didn't seem to support AVI or DivX... hmmm, or did I miss it?
Well... It should support it - you may need additional libs (xvid?)
~apt-get install ffmpeg
(...)
The following packages will be REMOVED:
base-config initrd-tools kernel-image-2.6.8-1-386
kernel-image-2.6.8-2-686-smp
(...)

If I would install it, it would actually *remove* my kernel? Yeah,
that's uhm... great. :)
Strange... Maybe a bug in your additional sources? My default-sarge
doesnt touch my kernel. But you should also think about compiling ffmpeg
yourself since the debian-version does (afaik) not contain all formats.
Dec 25 '06 #13

This discussion thread is closed

Replies have been disabled for this discussion.