InvestorsHub Logo
Post# of 434
Next 10
Followers 19
Posts 4455
Boards Moderated 0
Alias Born 03/27/2001

Re: None

Wednesday, 01/31/2007 4:33:44 PM

Wednesday, January 31, 2007 4:33:44 PM

Post# of 434
Server Side Flash Video Encoding
48 posts | 19.01.2007 | Return to List | RSS Feed

Kan (14.11.2005):

Does anyone know it is possible to encode flv video files in batch server-side (linux server) from other formats? (.mov, .avi, .wmv, .mpg) A php API would be particularily great!

JeroenW (15.11.2005):

Not that I know of. there is only the expensive ON2 SDK for flash video. And that only works for windows. that is what the guys at Youtube.com use.

Ryan (06.12.2005):

I am doing this on my site http://www.audiri.com/ There is a program called ffmpeg which comes with most linux distributions, it works great except it doesn't convert from wmv, so there is a patch you can get email me at admin@audiri.com

JP (22.12.2005):

Hey Ryan -
I tried emailing you but I got no response. I need some more info on that WMV patch for ffmpeg. You can email me or post here (jpatten |at| wi.rr.com

Thanks

Gavin (25.12.2005):

that is what the guys at Youtube.com use.



Are you sure??

@ JP: do you know more about ffmpeg, or do you WANT to know? It's a bit unclear. I'm struggling with the same thing. Ffmpeg won't convert wmv3 (or mov), though it is listed in it's supported formats.

JP (26.12.2005):

I've gotten some WMVs to convert but I havent checked their version. I have searched around regarding WMV9 and ffmpeg and the word is that MS is supposed to be releasing WMV9 as an open standard and when it is, ffmpeg will support it.

Gavin (26.12.2005):

Yes, it will convert wmv, but only wmv1 & wmv2. Not 3 unfortunately.

@ Jeroen: Actually, On2 just released the Linux version of the engine. I may be switching to that because ffmpeg just isn't working for me.

Steven Gong (22.02.2006):

ffmpeg can't encode rmvb either...

JeroenW (23.02.2006):

@Gavin: might be the smartest choice. I don't see ffmpeg keeping up with all the different formats there are at present.

eyecatcher00;) (16.04.2006):

:|i want ur help.plz tell me how to do the same thing that youtube had done.i need it using php


Greg Cohen (25.04.2006):

Actually you can do later versions of ./wmv with this hack to ffmpeg

http://www.richardgoodwin.com/wp/2006/02/15/building-ffmpeg-to-support-windows-media-files/

cyburdine (06.07.2006):

or you could use mencoder which encodes flvs from wmv3 right out of the box.

good times.

chas (07.07.2006):

might help if u give link to mencoder

Gavin (10.07.2006):

Hmm, does mencoder do serverside encoding? I can't really tell from what I've read.

Soeren (06.08.2006):

mencoder can of course be used for serverside encoding.. however it doesn't support on2 vp6 encoding currently (as does ffmpeg etc.) .. frown

so there's nothing out there besides the expensive on2 sdk that allows command line vp6 flv encoding

MF (13.08.2006):

There is a video to FLV SDK available here:
http://blue-pacific.com/products/turbinevideosdk/

It is a lot cheaper than On2's.

Cheers!

Mat (14.08.2006):

What's best practise for storing the files once they've been encoded? Should they be stored in a DB as binary data (blobs) or should they be stored on the file system? What do sites like Flickr and youtube do?

Thanks

Mat

Soeren (15.08.2006):

@MF although turbine is cheaper it seems it doesn't support the on2 vp6 codec so you're stuck with the older "spark" codec - the on2 sdk is the only one supporting vp6 currently afaik

@Mat can't speak for flickr and/or youtube but i'd say it's better practice to store large amounts of binary data like encoded videos in the file system and not in the DB itself!

Mat (15.08.2006):

Thanks. I'm been doing some research and it seems like that is the consensus. Store the files in the file system with a reference to them in the DB. If anyone else has a good case for storing the files as binary data in a DB I'd be interested to hear it.

Thanks for getting back to me.

Mat


Mat (15.08.2006):

By the way, has anyone got any opinions on Sorensen squeeze? It looks pretty good and integrates with On2 VP6.

http://www.sorensonmedia.com/solutions/prod/mx_win.php

Mat

Jake (22.08.2006):

A good reason to store your movies in a BLOB in a database is for security. In other words, you can restrict access only to users who have permission to view them.

You could use HTTP authentication to protect movies from unathorized access, but http is much more difficutl to work with than simply serve-side scripting/database permissions.

My 2 cents.

Another Ryan (29.08.2006):

Or you could keep the movie in a folder not on the web and access it through, say, a php script that checks permissions.

Mikey (08.09.2006):

Im interested in an upload and convert scvript..

What I want is for only me (ADMIN) to upload a video via a page in my sites admin.. and for it encode into .fla and store the newly created .fla in the directory where flash player gets its .fla from and then for the script to delete the original file that was just encoded.

all I have to do then is add the file to my playlist... or the script could do that too...

Anyone know of any scripts like this?

My host runs linux so I beleive it should have this ffmpeg installed... if not my hosts are very good and Im sure I could have it installed.

Where do I start?

I dont want to have to sit and encode then upload..

Mikey (08.09.2006):

I meant FLV not FLA sorry my bad

karlitos (08.09.2006):

that might be possible using some command like list files, and you point it to your files directory so he grabs each flv file and place it in the playlist, but i dont know how to do it.

sidd (12.09.2006):



sidd (12.09.2006):



video (19.09.2006):



reconbot (19.09.2006):

1) make sure ffmpeg is up and running and it works (play with it on the command line)
2) learn how to escape your input to shell commands (in php http://us3.php.net/exec)
3) write a script that scans a directory for your incoming movie files, encodes them and saves them to a different directory.
4) access control can be implemented by having all your movie files outside of your web directory and have a script (in php http://us3.php.net/manual/en/function.readfile.php ) process user permissions, output the proper headers (may not be needed) and then output the flv.
*NOTE* take care about what files this script will output, you don't want someone easily exploiting it to read your passwords or email or something.

5) setup the flash player to call the script with whatever filename, the script will check permissions, the filename and then output the file to the flash player and it will play.

Good luck!

Martins (19.09.2006):

Please i want to stream Video with flash_flv_player at my website, www.nigerianfolks.com , i would you to check it out and see if you could help me configure the player which is already installed at my host addres and upload a file which i will provide as the first video.
I am new in this field and i need all the help i can get and am willing to pay a lil bit or post your banner in my website.
Please do mail back to let me know how you feel about it.

Martins ...Owner www.nigerianfolks.com

Varun (18.11.2006):

Read This one,
http://www.jeroenwijering.com/?item=FLV_Video_Compression

Antaes (28.11.2006):

Check http://www.effectmatrix.com/total-video-converter/

Should be worth of it !!

jdq (05.12.2006):

Is it possible to use ffmpeg and create not flv's but swf's?

(or a way to easily convert the flv's to swf's on the server?)

Michael Janich (07.12.2006):

No, ffmpeg (or another tool) does not create
SWF files directly. If that would be the case,
you would not need this player at all.

My conversion script is (just in case that is
of someones interest):

ffmpeg -i /tmp/video-inputfile.xxx -y -ar 44100 -ab 64 -f flv -s 320x240 /usr/share/tomcat5/webapps/ROOT/outputXXX.flv

irene (18.12.2006):

@michael
can you give me some guide on how you do it in flash? what i need is an swf that asks for a video to be uploaded and that uploaded video will then be converted to flv and then saved to flash media server. please.. a tutorial or something.. tnx!

wess (03.01.2007):

I have a working php version of video uploading using ffmpeg to handle the conversion. Its still a work in progress. If you are interested in trying it out just email. Or if you want to help me turn it into an opensource project, I am always up for coding for the opensource world.

My email is: wcope(a)noisewater(dot)net.

Take care,
Wess

wess (04.01.2007):

As promised I have created a little package for doing this. www.wattz.net for the latest release. This is beta, so there will be more to come. This is just the beginning, I am currently working on thumbnail functionality and such. All the info should be there, if you have any questions or would like to help out, please email me.

Thanks,
Wess

JeroenW (05.01.2007):

Great work wess!

wess (05.01.2007):

Im going to continue to develop it too, version .2 will be done early next week, hopefully it will have thumbnail functionality to it.

JeroenW (06.01.2007):

Great! I suppose you use the FFMPEG-PHP library for that? Automated thumbnailing is a nice, bandwidth and time-saving feature.

FreakyHase (07.01.2007):

Hey

I get this :

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /path/to/my/website/test/classes/video.class.php on line 11


michael (07.01.2007):

Is there a consensus on the best way to do serverside encoding to flash on a windows platform (2000 server). Our site has been using the MS toolkit and converting various formats to .wmv files for a number of years but with flash taking over web video, we want to switch to flash. The only thing I can find is the very expensive on2 flix engine and not so cheap blue pacific terbine. Are there any other alternatives? Thanks for any suggestions.

Rohan Pinto (08.01.2007):

I'm using mencoder and flvtool2, to convert videos on the serverside (*nix). Give it a shot, It works pretty well, except for the fact that it hogs my CPU. (my site is http://konkan.tv)

If you know of any betetr linux flv encoding tools, do let me know.

wess (10.01.2007):

Rohan, can you please send me an email, Im having some issues with Mencoder and flvtool2, wondering if you could help me out. I would like to add that to my php class so it will convert wmv.

So if you get time, please shoot me an email: wcope(a)noisewater(dot)net

Thanx

pangaea (14.01.2007):

As far as I have found, this is the only available way to do integrated server-side encoding for Flash 8 video...

http://www.flashvideosdk.com
(bottom of page)




moe (15.01.2007):

does anyone know of a hosting solution that laready has ffmpeg installed on thei servers?

JeroenW (18.01.2007):

Dreamhost does have this.

vcv (19.01.2007):

vc
===================================================
Adobe's Narayen sees growth in video, mobile
Interview: Adobe's president discusses the importance of providing developers with tools that work across several platforms



By Elizabeth Heichler, IDG News Service

January 30, 2007


With its acquisition of Macromedia in late 2005, Adobe Systems won control of the Flash technology that has become a nearly ubiquitous way of authoring and viewing interactive and multimedia content on the Web. Now, the 25-year-old software company with deep roots in creative applications and an iron grip on electronic documents thanks to its de facto-standard PDF document format, has its eye on development and content presentation across all sorts of platforms and devices.

President and COO Shantanu Narayen recently sat down with a group of IDG journalists to talk about the opportunities that mobile platforms and digital video present for Adobe. Joined by David Mendels, senior vice president of the enterprise and developer solutions business unit, Narayen also described the company's hopes for its multiplatform runtime environment, code-named Apollo, that is designed to run Web applications using Flash, Flex, HTML, JavaScript, Ajax, and PDF and is due for public beta release later this year.

IDG: What are the key areas of growth for Adobe?

Narayen: Clearly, the creative customer is still a very important customer to us, and there what we're trying to do is enable them to create content across print and the Web, but also increasingly video and wireless. We're seeing a tremendous explosion of digital video, which we think is a huge growth area for us. And also wireless because creating content for wireless devices is very hard. So in the next version of our Creative Suite applications, we're going to be looking to dramatically expand how we can help people create content. This year, we're going to be releasing Creative Suite 3, which will be the first generation of applications that combines products like Photoshop and Illustrator from Adobe and Dreamweaver and Flash from Macromedia.

We think Apollo is going to enable a new generation of applications that combines the power of the desktop as well as the interactivity and connectedness of the Internet.

IDG: Tell us more about your plans for the mobile data arena.

Narayen: We work a lot with handset manufacturers and operators. The current offerings we have include Flash Lite on the client. Handset manufacturers or operators can provide a really compelling experience, and people using these phones can browse the Web and get Flash content.

What's even more exciting is that we now have a new service we're offering through operators called FlashCast.... What we've introduced is a new metaphor, a TV-channel-like metaphor, which allows you to have, say, weather or news or sports or specialized channels. You now have the ability to subscribe -- all the data is automatically sent down to your phone. We've introduced FlashCast services in conjunction with [NTT] DoCoMo. This server-based offering, it's more subscription based, [so] it's an ongoing revenue stream, for us as well as for the mobile operator.

Moving forward ... Apollo, the runtime will also be mobile-aware. The benefit to a developer or an enterprise or to an author is you author once, and you have the runtime everywhere, you have the ability to run applications everywhere. So that clearly is why we think that we have the ability to provide all the authoring, all the runtime, and a way to deploy it in a scaleable way in an enterprise.

IDG: How do you see your competitive stance versus Microsoft right now, especially with its Expression Web tool?

Narayen: We certainly compete with Microsoft; however we've competed with them in the past, and I think that's an important thing to also remember. We competed with them in print technology very early on. We competed with them in fonts, we competed with them in imaging for many years. We competed with them on the Web for years,. Dreamweaver versus Frontpage. You know, as it relates to the creative community, we still believe we understand that creative community. And that community wants a heterogeneous environment.

Mendels: The fundamental issue is cross-platform. There's almost no one I talk to who doesn't want to either be heterogeneous and work on Linux or Mac or Windows, or want the option in the future to do that.... If developers want to build things, express themselves heterogeneously across the Web, across devices, you know, that isn't Microsoft's strength. They've got a lot of strengths, but that's not their strength. Their big opportunity is people who have a Microsoft end-to-end environment.

IDG: Adobe has a long history as a software company -- over the years, how have you seen business models in software change?

Narayen: If you think about the company, it's actually changed very dramatically over these 25 years. We started with a completely royalty model. With Postscript, we had HP and IBM and Apple as large customers, and that was the business model, royalty based. And we built a very successful applications business on top of that. And then we moved into the enterprise, and that's license revenue, it's consulting services, etcetera.... So we already today have some very different business models all sort of coexisting in our overall company's financial model, which is clearly very successful and profitable one. Clearly, we see the trend toward both delivery of software through hosted mechanisms and subscriptions and the ability to monetize it differently. Second is the need for us, for a certain set of customers, to not monetize it by charging them for it but through other advertising mechanisms.... It's the spectrum of delivery and business models. Piracy is huge for us in other countries, and that [advertising-supported model] is a way in certain countries to also monetize.

IDG: What might be some applications you could offer in this way?

Narayen: Well, take video. With YouTube, right now people just have the ability to upload a video. Wouldn't it be really cool if we provided something that enabled people to do basic video editing through a hosted service, or image editing through a hosted service, or even run your entire enterprise offerings as a hosted service?

(IDG News Service Senior Writer China Martens and Infoworld Assistant News Editor Paul Roberts joined Heichler in conducting the interview in Boston.)

=============================================
2.0 link0 Jeroen Wijering: Server Side Flash Video Encoding link1 Jeroen Wijering: Server Side Flash Video Encoding en-us 51.45 5.467 some rights reserved (cc) Tue, 23 Jan 2007 18:45:07 -0800 Fri, 19 Jan 2007 00:56:04 -0800 vcv link2 :pvc Fri, 19 Jan 2007 00:56:04 -0800 JeroenW link3 Dreamhost does have this. Thu, 18 Jan 2007 08:05:53 -0800 moe link4 does anyone know of a hosting solution that laready has ffmpeg installed on thei servers? Mon, 15 Jan 2007 05:22:27 -0800 pangaea link5 As far as I have found, this is the only available way to do integrated server-side encoding for Flash 8 video... [url=http://www.flashvideosdk.com>" target="_blank">http://www.flashvideosdk.com]http://www.flashvideosdk.com> (bottom of page) Sun, 14 Jan 2007 19:19:26 -0800 wess link6 Rohan, can you please send me an email, Im having some issues with Mencoder and flvtool2, wondering if you could help me out. I would like to add that to my php class so it will convert wmv. So if you get time, please shoot me an email: wcope(a)noisewater(dot)net Thanx Wed, 10 Jan 2007 06:34:56 -0800 Rohan Pinto link7 I'm using mencoder and flvtool2, to convert videos on the serverside (*nix). Give it a shot, It works pretty well, except for the fact that it hogs my CPU. (my site is link8 If you know of any betetr linux flv encoding tools, do let me know. Mon, 08 Jan 2007 17:25:08 -0800 michael link9 Is there a consensus on the best way to do serverside encoding to flash on a windows platform (2000 server). Our site has been using the MS toolkit and converting various formats to .wmv files for a number of years but with flash taking over web video, we want to switch to flash. The only thing I can find is the very expensive on2 flix engine and not so cheap blue pacific terbine. Are there any other alternatives? Thanks for any suggestions. Sun, 07 Jan 2007 08:39:25 -0800 FreakyHase link10 Hey I get this : Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /path/to/my/website/test/classes/video.class.php on line 11 Sun, 07 Jan 2007 07:32:56 -0800 JeroenW link11 Great! I suppose you use the FFMPEG-PHP library for that? Automated thumbnailing is a nice, bandwidth and time-saving feature. Sat, 06 Jan 2007 05:36:30 -0800 wess link12 Im going to continue to develop it too, version .2 will be done early next week, hopefully it will have thumbnail functionality to it. Fri, 05 Jan 2007 07:38:38 -0800 JeroenW link13 Great work wess! Fri, 05 Jan 2007 05:24:27 -0800 wess link14 As promised I have created a little package for doing this. www.wattz.net for the latest release. This is beta, so there will be more to come. This is just the beginning, I am currently working on thumbnail functionality and such. All the info should be there, if you have any questions or would like to help out, please email me. Thanks, Wess Thu, 04 Jan 2007 12:50:20 -0800 wess link15 I have a working php version of video uploading using ffmpeg to handle the conversion. Its still a work in progress. If you are interested in trying it out just email. Or if you want to help me turn it into an opensource project, I am always up for coding for the opensource world. My email is: wcope(a)noisewater(dot)net. Take care, Wess Wed, 03 Jan 2007 07:47:41 -0800 irene link16 @michael can you give me some guide on how you do it in flash? what i need is an swf that asks for a video to be uploaded and that uploaded video will then be converted to flv and then saved to flash media server. please.. a tutorial or something.. tnx! :$ Mon, 18 Dec 2006 18:38:29 -0800 Michael Janich link17 No, ffmpeg (or another tool) does not create SWF files directly. If that would be the case, you would not need this player at all. My conversion script is (just in case that is of someones interest): ffmpeg -i /tmp/video-inputfile.xxx -y -ar 44100 -ab 64 -f flv -s 320x240 /usr/share/tomcat5/webapps/ROOT/outputXXX.flv Thu, 07 Dec 2006 21:19:57 -0800
http://www.jeroenwijering.com/rss/?thread=152

Join the InvestorsHub Community

Register for free to join our community of investors and share your ideas. You will also get access to streaming quotes, interactive charts, trades, portfolio, live options flow and more tools.