Flex VideoDisplay Record/Save to disk/server - apache-flex

I have been searching and cannot find a solution yet.
I want to also add cuepoints to a live recording video as it is incoming.
I have a live feed incoming from a VideoDisplay object in my Flex Air app, and I would like to be able to record the video/audio of this and save it to disk and/or upload to server.
Is this possible? If so, would it be possible to add CuePoints to the video as it is being streamed live? Right now I am just trying to record a live stream from my VideoDisplay.
Any help is appreciated...
Thanks
-K

You should check out this cool utility class that can encode FLV directly to disk from an Air application. I think it does sound as well. I'm not sure if it does CuePoints, but it's open source so you could always just add that functionality in :)

Have a look at the responses to this post. There are some solutions to try out. You will need a streaming server like Red5 or something else.
I will try and look for the code that adds cue points on the fly, have it somewhere.
How do I record video to a local disk in AIR?
Also look at this post, which answers some of your questions:
http://www.zeropointnine.com/blog/updated-flv-encoder-alchem/

Related

Uploading large files in IIS Asp.net [duplicate]

I've done a good bit of research to find an upload component for .NET that I can use to upload large files, has a progress bar, and can resume the upload of large files. I've come across some components like AjaxUploader, SlickUpload, and PowUpload, to name a few. Each of these options cost money and only PowUpload does the resumable upload, but it does it with a java applet. I'm willing to pay for a component that does those things well, but if I could write it myself that would be best.
I have two questions:
Is it possible to resume a file upload on the client without using flash/java/Silverlight?
Does anyone have some code or a link to an article that explains how to write a .NET HTTPHandler that will allow streaming upload and an ajax progress bar?
Thank you,
Austin
[Edit]
I realized I do need to be able to do resumable file uploads for my project, any suggestions for components that can do that?
1) Is it possible to resume a file upload on the client without using flash/java/Silverlight?
No. The actual HTTP protocol itself does not support resume of partial uploads, so even if you did use flash or silverlight, you'd still need to use something else like FTP on the server.
I've "solved" this problem in the past by writing a custom client application in C# which broke the file down into small chunks (2meg), transmitted those separately, and then the server combines them all back together.
2) Does anyone have some code or a link to an article that explains how to write a .NET HTTPHandler that will allow streaming upload and an ajax progress bar?
While this doesn't solve the 'resume' problem, I've used SWFUpload on the client side and it worked brilliantly. It provides a smart file browser (where you can prompt the user for only jpeg files, etc) and upload progress tracking, all without needing to modify your server at all.
It's not possible to resume an upload using standard HTML file input control, because the whole file gets submitted with the HTTP request.
I've used NeatUpload in the past, which gives you a progress bar. It's under an LGPL license, so you don't need to pay for it and it's open source.
Nothing more to add about the resume problem.
I used (and keep on using) telerik radUpload and I am quite satisfied with it
(it can even be used in medium trust mode which was quite important for me). The only problem I had (and was not able to fix) is to upload files bigger than 2GB...
SlickUpload is pretty solid and a lot of big companies use it from what the site says.
This is probably too late for your project, but POW Upload have now implemented auto resume upload in their new version. We're about to implement it on our site.

I need an MP3 player

I know a lot of people have asked this question, but I still will take my chance because I haven't received a substantial answer yet. I need an easy and reliable player. I need the MP3 to be useable from the code behind. Most of the players I found ether have it embedding on the page or as a fixed file of some other sort.
I do not think that you are going to find it.
The problem is that the code behind executes on the server, but for the user to hear the music the mp3 player must be on the client.
You could try a streaming solution using a silverlight player.

Can I read and write text file using AS3?

I want to make a registration page with Flex. The data will be stored to text file. is it possible?
please help, thanks in advance.
Flex, in fact, it can read and write text files, but remember that is a client-side language, you can read and write but in the client, not in server, and you need Flash Player Version 10.0 or higher. If you need to write in the server, that as i see you need it, you need a server-language and use a remote object/webservice/httpservice or something like that to transfer the data that you want to store and let the server side make the text file.
Another alternative is use Air, but it is desktop based, not web.
Hope this helps you a bit.
If you're using Adobe AIR, then you can read and write files on the user's machine using the File class.
If you are doing something browser based, then you can write files on the user's client machine using FileReference.save, but it will require user interaction to save the file. If you have limited data, you may be able to store it as a Shared Object. You can use File.browse to get a hook to a file. It requires user interaction, though.
If you need to store data on a server, then Flex cannot help you, but most server side software that I'm aware of should be able to create and read text files on the server. Flex will need to trigger a remote service to do so using RemoteObject, WebService, or HTTPService.
Yes, as long as the file is on a web server.
With that said, it's overkill to create only a registration page in Flex. You'd be better off using html/javascript.

Flex converting videos on fly?

I ask google about this,but didn't find anything usefull.
Is there a way to creat web app in flex that will convert video to flv,after that video is uploaded to the server?Can this be done with flex,if can,do I still need to install ffmpeg on server?
Tnx for response.
You should convert server side anyway. This will allow you to validate the upload.
I agree with the other post that you probably should perform the conversion server side. Since you don't have a great grasp of the difference between container formats and video formats yet, creating custom client side code might get difficult since you're going to have to get a little closer to the metal.
Given that, there are some people who are doing conversion on the fly client side for certain video formats to FLV within the flash client. MKVLoader is a pretty nifty project where they use the new appendBytes(bytes) method that is now available as of Flash 10.1 on the NetStream object to convert MKV to FLV in the client. This is a really cool trick, but you'll run into problems as soon as you want to support another format.
ffmpeg supports so many formats, it would be silly not to use it. Since you mention that the video will get to your server anyway, you might as well convert it on the server before storing it.

Encrypted Video Playback Adobe AIR (Flex)

Suppose you have an encrypted video file and the associated AES key. Is it possible to play that video in a flex AIR application without saving the decrypted version of the file? How?
If you do go the DRM route, I believe the Flash Media server supports all this.
Yes, you can.
The easiest way would be to use flash access or flash media server as others have suggested.
The hard way is to create everything yourself using NetStream and the appendBytes method. With appendBytes the data for the video can come from anywhere in any form and it is up to you to put it into the correct form to be played.
Take a look at this question on appendBytes:
In AS3 while using NetStream for video playback how do I seek when I use appendBytes
If you are protecting content, being adobe, I suspect that AIR will have some form of DRM api that you can use.
This returns alot of data about protecting videos in Flash/AIR and other adobe products.

Resources