Flash :: Crop Camera Before Streaming To A NetStream?
Mar 23, 2011
I'm building a very simple publisher for the webcam in Flash. I want to select a camera and send the stream to a RTMP URL, basically:
Camera camera = Camera.getCamera();
NetStream ns = new NetStream(connection);
ns.attachCamera(camera);
ns.publish("stream name");
Now, I know I can set a mode on the camera, like this:
[Code]...
View 1 Replies
Similar Posts:
Jun 4, 2009
Before I buy the Flash Media Server, I would like to know that:
- Is it possible to crop the webcam video (because I need just one part of the whole picture) before streaming from the client's Flash Player to the Media Server? (it would reduce the bandwidth a lot)
- If not, can the player store some parts of video until it is fully streamed with all it's data (30 fps) to the Server? (e.g: client: low bandwidth, I need all frames that the webcam records, real-time doesn't matter if it takes 1 minutes for 20sec video, that would be ok.
View 1 Replies
Jul 10, 2010
I am trying to figure out how to use http dynamic streaming with flash 10.1 but I can't get the basic functions working. What is the syntax for using appendbytes with a video file?
package com.player {
import flash.display.Stage;
import flash.net.NetConnection;
[code]......
View 1 Replies
Dec 26, 2010
I notice that, when I pause the video, the event "NetStream.Buffer.Flush" is triggered. And according to the language reference: "Data has finished streaming, and the remaining buffer will be emptied.", I have to re-buffer it, right? However, also according to the reference, it shouldn't stop buffering:
Starting with Flash Player 9.0.115.0, Flash Player no longer clears the buffer when NetStream.pause() is called. This behavior is called "smart pause". Before Flash Player 9.0.115.0, Flash Player waited for the buffer to fill up before resuming playback, which often caused a delay.
I'm using Flash Professional to do the debugging, and the traced version number is: MAC 10,0,22,91, and it appears for both FMS4 and red5.
View 1 Replies
Mar 2, 2010
How i can use IP Camera with FMS for live video streaming.
View 2 Replies
Oct 14, 2010
When stop streaming, i close NetStream, close NetConnection, clear video, and remove any event listoner on camera. After these actions, the camera is still in used.
View 2 Replies
Jul 29, 2010
I can stream live 1 Axis IP camera with FME 2.5. How can I stream multiple IP cameras with FME 2.5?.
View 3 Replies
Mar 14, 2011
I have a stream going through flash media server and its working. I have a simple flash app that is viewing the stream.I need to pull the height and width of the broadcasted cam in the client. I have been trying with getting metadata buteverything always If there is no metadata with cams if I could create stuff on the streaming app that would be nice.I tried to pass some but I cant figure out if it works or how to grab on the other side.this is what I tried to send it withvar metaData:Object = new Object(); metaData.title = "myStream"; metaData.width = 320; metaData.height = 240; cam_ns.send("@setDataFrame", "onMetaData", metaData);
View 3 Replies
Jan 27, 2010
How do i reset netStream.time for a streaming .flv that was intiatied on the server side? It just keeps incrementing on me even after the streaming .flv is done playing.
View 4 Replies
Dec 23, 2010
I am wondering if Flash / AIR can find all these mobile devices front facing camera and use RTMP to stream the video captured? I would like to create a video conferencing app for these devices. Of course none of them support testing this in the simulators and I don't have the funds to purchase or access all of them that I would like to test. I have seen some posts where they have done this for android but not sure about support for finding a list of cameras, choosing one and streaming from iphone 4 and playbook.
View 2 Replies
Jul 19, 2011
I wanted to open front camera of the Motorola XOOM and try to live streaming using the front camera.
View 1 Replies
Nov 11, 2010
i have a video object on my stage and i make it play by using ns.play();However, when i want to stop playing by ns.close(), i see from httpfox that streaming doesnt stop but continues.is there any way to really stop steaming anytime i want?it is same when i use FLVPlayback component. when i assign path to its source attribute, it starts streaming without saying it to play..
View 3 Replies
Mar 26, 2010
I have a flex 3 app that uses netstream and a video object to stream .mp4 movies. I want to use the bytesLoaded and bytesTotal properties of the netstream to display the buffering information. I would also like to get any information about the number of frames that are dropped if possible.
When I've tested on .flv I'm able to get the information without a problem, but it doesn't seem to work on .mp4.
Is it possible to get this information streaming .mp4? Is there some configuration that I'm missing to make things work the same for .mp4 as .flv?
View 1 Replies
Jul 10, 2009
I'm working with a custom made Flash video player using FMS (Wowza, actually).The video is working, yet when I access the BytesLoaded and BytesTotal,I get 0 (zero) for each.This even persists as the video is loading and playing.It's as if it is not even being registered at all.Here's the code:
var amountPlayed:Number = Math.round(ns.time * tlInterval) / Math.round(duration * tlInterval) * tlInterval;
controls.tl.width = Math.round(amountPlayed) * controls.tlw / tlInterval;[code].....
I tested this with a similar player that uses progressive downloading instead, and I get real data.
View 2 Replies
Jun 29, 2011
I have a Flex/AIR desktop application that connects a local camera and microphone to a NetStream for delivery to a Flash media server.However, I would also like to archive a copy of the outgoing stream locally on the filesystem. Is there any access to the actual bytestream of a NetStream object (even in the dreaded mx.internal namespace) that I could turn around and feed to a FileStream for the local archive?
View 1 Replies
Feb 1, 2009
hey guys, what would be best to use on a full browser video, where the video should resize as the browser resizes and the flv will be streamed?
View 3 Replies
Sep 15, 2011
I'm completely new to FMS but a seasoned Flex developer. We're building a Flash Builder 4.5 application which will be deployed to iPads. The basic functional requirements are as follows:
1. Presenter in a room has a camera streaming video of themselves2. Participants in the same room have an iPad - there are 30 participants and the stream is sent to all 30 iPads simultaneously.3. There must be lowest delay possible with good quality video - we understand this can be achieved with RTMP and that VP6 has to be used (as there is no H.264 support at present in AIR on iOS)4. The presenter will trigger certain things from their iPad which will then display certain alerts, content on the partcipants iPad (from server connection the participant iPads are listening to)
Firstly, I'm interested to know your thoughts on this current spec. This was put together from zero initial experience with FMS and having read a lot online and creating a proof-of-concept. Secondly, with regards to the two-way interaction: Is this something FMS handles? Previously I have used LCDS or BlazeDS for the data events & streaming aspects of our applications. Initially I was planning on using BlazeDS again, in addition to FMS. But from what I have read FMS possible handles data push too? Does FMS have LCDS/Blaze built in in some way?
View 4 Replies
Nov 3, 2010
Does anyone know a way to crop a SWF like you would crop an image in Photoshop? I'm building a Flash Banners application in my Flash portfolio website and I'm loading a SWF using addChild via a URL loader object. There is no way to mask the outsides of the SWF because addChild puts the SWF at the front of the display list so the masks would just show up anyway and the masks will just be huge white sheets that will look dreadful. I need to LITERALLY crop the SWF down to 550 X 325 pixels.
View 5 Replies
May 1, 2011
Am building a video chat application and i was wondering if there are any native events for the NetStream that fire,that can help in detecting when a remote client starts/stops streaming video over his outgoing stream (NetStream) to which the other client has subscribed over P2P/RTFMP in AS3 ?I maybe able to dispatch custom messages since the two clients are already connected, but i don't want to add the extra overhead.
View 1 Replies
Oct 11, 2010
From a Flash object, I would like to be able to detect the presence of a webcam that the user might grant access to, without actually asking the user whether they want to grant access. This is to streamline a large application that has extra features if a webcam exists — if there is a webcam, the application will present several dialogs that lead up to the normal cam-security prompt, but if the user doesn't have the hardware, I want to skip over them altogether. Requesting access to the cam before those dialogs won't make sense to the user.
It appears not to be possible to call Camera.getCamera() without the security prompt happening. Is there a workaround? (For instance, could I, perhaps, call getCamera in a hidden Flash object and inspect its return value, or does it block until the user acknowledges the security prompt?)
View 3 Replies
Oct 20, 2010
Usually Adobe Flash applications can access any usb-webcam.I have a USB camera for microscopes which understands TWAIN and DirectShow.Is there a possibility to access the video data from this camera with flash?
View 1 Replies
Mar 2, 2011
I used NetStream.play("invalid-live-stream-url") to play an invalid live stream. The other arguments are using default, e.g. start = -2, len = -1.
The menu says that when we use the default "start" and "len" to call "NetStream.play", "Plays the live stream until it is no longer available. If a live stream of the specified name is not found, Flash Player plays a recorded stream until it ends."
However, I do not have a recorded stream on the server that has the same name as the live stream, and I did not get the expected "NetStream.Play.StreamNotFound" error.
View 1 Replies
Jul 6, 2011
I'm making a small video players in AS3, and I've found that after calling NetStream.pause() or NetStream.togglePause(), no status messages are being fired any more.If I click the "pause" button while the video is buffering, I never get the Buffer.Full message.Here is some code:
_connection = new NetConnection();
_connection.addEventListener(NetStatusEvent.NET_STATUS, netStatusHandler);
_connection.connect(null);[code].....
View 1 Replies
Sep 17, 2009
I am looking to broadcast live video and need a camera that is better than a simple webcam. It looks like they used to make video cameras that would register as webcams, but stopped making them.If you wanted to broadcast an event live, what would be a good camera to use?
View 5 Replies
Sep 23, 2010
I am streaming pre recorded audio files (mp4) to an AIR client. I have tried two different solutions,
streaming the file directly with the NetStream.play("mp4:xxxxx.m4a") and creating a server side playlist, adding the same sound clip and then streaming the playlist. The problem is, when streaming the playlist i get a few NetStream.Play.InsufficientBW, this does not happen when streaming the file direct. Both solutions uses bufferTime=1.0
I would like to use a server side playlist to implement a simple key solution so that the client dont know the full path to the file, but instead sends a key to a custom server side function that looks up the file path and creates a stream for the client.
View 1 Replies
Feb 13, 2009
Is there a particular reason that when you stream a video your _netStream.time will misreport the elapsed time of the stream? I've tested streaming vs progressive download and discovered that while progressive netStream.time seems spot-on accurate the streaming netStream.time is behind the actual running time of the flv.
In other words, the video has played to completion and stopped, but the seek bar has only progressed 85% of the way through on a stream.
Is this something to do with the sample rate of the video, or some other encoding issue?
View 1 Replies
Apr 1, 2012
I am capturing camera on flex for android using air 3.1,and found that the camera is only showing the a part of of actual camera video.When i view camera using normal camera application in android galaxy tab, it shows full camera area but when i am capturing the camera in flex its showing only the center area for it.I tried using setMode to set the resolution, but its not of any use.Is there any way to get full camera area captured inside flex using camera.getCamera ?
View 1 Replies
Jun 10, 2009
I have a video capture device on a machine. I have written a windows application to capture the video from this device. While capturing, if i try to broadcast using flash it does not connect. If i'm already broadcasting and then try to capture then my windows application does not get the capture pin of the device. So, flash seems to be taking the capture pin. Is there anyway to broadcast using the preview pin on the device so that i can capture using my application. Or is there way where i can split the capture pin and give one to my app and one to the broadcaster
View 10 Replies
Apr 13, 2011
I was wondering if it is possible to crop an swf file through a program that doesn't convert the swf to anything.I've seen a few programs like this online, but none of them actually work. Has anyone has success with this?
View 1 Replies
Jul 2, 2009
We are streaming a one hour F4V from streaming media server 3.5.2 and for some reason it is seeing our one hour video as being 10 hours long. We have tons of other videos and never ran into this problem in any of the other files. This is the only file that exceeds one hour. This occurs in the default player from the streaming server.
View 1 Replies