Media Server :: Recording "failing" The First Time?
Aug 6, 2009
currently, we're running FML 2 and I'm writing a very simple recording application that generates a random stream name and publishes a flv using the microphone on the user's computer. The error I'm running into is that the first time I press record (and run netstream.publish(fileName, "record")) it always fails. if I stop recording, then rerecord it works fine.
like I said, it always fails when I first "record". if I end the recording and start again it works fine.(the trace basically reads NetStream.Record.NoAccess) a workaround I did was to put a publish and close immediately in the begininng to "trick" it to recording.
As titled, what is the way to record video/audio files using Flash Meida Server through rmtp, and allow users to access the recorded files through http?What I am trying to do, is to record a user's microphone's input and save it to the server.fterwards, I would like other users to be able to access the recorded files and mainuplating the audio data, by computeSpectrum(), to do some visualization of the audio. As I know computeSpectrum() cannot work on streaming files, so I think I need to access the recorded files using http instead of rmtp. Is that true?
I know that we are an entire version behind the current, but this is due to problems with a failed upgrade due to a bug in FMS with streaming our (3TB) collection of .mp4's with the new version... that being said, onto our current trouble...
I want to have a website where users can record short video clips (using a webcam) and then have those videos saved on the FMS for viewing later. I've seen a lot about streaming video, but I actually want to save the video.
We have mutiple live streams(games) in our application and one of our requirement is to record the games when they start and end the record after stop.We have written a servere side Code based on guidelines provided in the forums. Our Sample code looks like this.
We have written a PHP page which receives the Game Start and Game Stop and calls the FMS startRecord and stopRecord functions accordingly.We tested this record manuall by passing the values to PHP page and recording works perfectly.Our problem arises when we automate this recording. Every minutes we have 10 games that are created and hence the PHP page calls FMS 10 times a minute to startRecord and stopRecord.Some of the recorded flv are inconsistent and recording is never complete.
Can FMS take such sequential request? We are stuck with this because the recording is partial sometimes.We are using FMS 4 with Red Hat. Any other information will be provided.
Live Stream Encoder====>My FMS (my own server) republish to======>CDN======>Viewing Client
I want to archive the live stream at the first stop, my FMS. Adobe live docs say if I want the recorded file to be of format F4V (H.264), the stream name with which I publish must be of the format mp4:streamname.f4v. My CDN, unfortunately, requires the stream name it receives to be of the format "streamname".
I'm trying to record a FLV, using servers-side scripting. It's working as expected. I'm using record('append') to add streams to the same file. What I want to do now is record the streams in "real-time". I want to keep the same functionality (append) but I want to "records" the time that there is no streams available. In other words, I want to ends a with a file (FLV) with the srtreams separated by black frames when there are no streams available. If the time between a stream and the next stream is 5 minutes, I want the FLv to play 5 minutes in black.
I'm making DVR application and I'd like to use h-264 codec, but got following problem. While f4v file is recording, client application (for example Adobe DVR Sample Application player) cannot seek inside the video. It starts playing sought part of the video and stops in few seconds. When recording process finishes the seek works correctly in the recorded file. The process described above works fine when I use vp6 codec. I am using FMLE 3.1 and FMIS 3.5.3
Is it possible to record .flv in an encrypted mode? I know RTMPE, but I mean an encrypted flv file, not only encrypted streaming. we want to be sure that the recorded messages will not be avaible for playing locally via a flvPlayer. (the application is running on a FMS service provider' server)
I'm trying to record an audio/video program and the resulting .flv is in the wrong directory. It always ends up in application/live. I copied the sample application to application/eTutor and have the following code:
private var rtmpPath:String = "rtmp://x.x.x.x/eTutor"; private var rtmpSession:String = "0_738_0_9_6_6_2012_8_00_00_AM"; ... nc2.addEventListener(NetStatusEvent.NET_STATUS,onFMSNetStatus); nc2.client =
Suddenly mic not connecting to server. I have FP 10.1. 102.64 Windows XP 32 bit and explorer 8. See link which instructs me to "change" but no response.
I managed to record webcam stream by using the FMS developper version locally my computer.And if I try to use a remote FMS (FMS Stream EDTN 3.5 ALP), my doesn't work anymore!
import mx.rpc.http.HTTPService; import flash.net.ObjectEncoding; private var nc:NetConnection;
I need to record what's streamed to the livepkgr application as an MP4 file (or convert it afterwards).As of the default settings the livepkgr applications records all incoming streams as an F4F file (using the main.asc file that came with the installation).I've tried streaming and recording an H.264 videostream with AAC sound (as per these instructions)
If I move this recored file to another application and rename it to MP4 an external player (JWPlayer) can play the stream just fine, as can iOS devices (though with some minor issues when scrubbing).The renamed file won't open in Windows Media Player or Quicktime Player, though.
I've tried using the f4vpp tool and processed the video into another MP4 file. This file streams just fine to the external player as well, and it resolves the scrubbing issues on iOS devices.The file now opens in Windows Media Player, but Quicktime Player still won't open it with the following message: "Error -2002: a bad public movie atom was found in the movie (filename.mp4)"I really need the livepkgr application to record in a format that either is by default, or can easily be converted to, a proper MP4 file that can be opened in all applications.
I have purchased flash media server and I'm looking for a way to have people record video off their webcams and have it saved to the FMS. How to do this?
Is there a possibility - instead of attaching a camera [via ns.attachcamera()] to a netstream - to "attach" e.g. BitmapData to netstream. The reason is, that I use BitmapData's .draw method to get the webcam video in order to change it, such as with the .treshold method. And I want to record and save these altered bitmaps (as a video) on the FMS instead the original webcam video.
[URL]
Two videos are shown, the left one is the original from the webcam, the right one the "modified" video. Only the modified video shall be recorded via the netstream .publish method.
I am using FMS 3.5 and Flash CS3 (though using action script 2 at the mo)What I have is a simple program that records a webcam and saves the result as an FLV. - Note, I am doing all this locally, NOT over the internet or a local server. FMS is on the same PC as the program.
1) The frames per second does not seem to be fixing to 25fps, but instead seems to be around 15fps depending upon which pc I use. I'm using: cam.setMode( 320, 240, 25 ); to set the size and frame rate in flash.
2) When I get the properties for the resulting flv, it says it is using h.263 codec. Is there a way to change the codec that is used (to say h.264)? Or is this dependent on the version of flash used? ie. would creating it in flash 9 using AS3 give a better quality result?
I've implemented a serverside script that records the current stream to disk. This record method is called from another clientside flash application. On some occasions the recording suddenly stops after a few hours without giving any errors, and without there being any network dropouts (Flash Media Encoder doesn't report any dropouts). What can be the cause of this, and what can I do to make the recording more stable?
We use a Flash component to allow a user on our web site to record from a Webcam on to our own Flash Media Server. The problem we are having is that the video in a 30 second FLV freezes at the 7th second but the audio continues. The video unfreezes after a couple of seconds but never catches up with the audio. At the very end there's a "Fast-forwarding" of video for the last few seconds so that at literally the last moment, everything's in sync. This happens for almost all of our recordings. Has anyone experienced this type of behavior?
I have got success in making live streaming with telecast at different pc. The application which I have made has the features: I' am publishing live stream using the connection like: nc.connection("rtmp://10.8.4.56:1935/live"); publishing the stream like: ns.publish("mycamera","live"); now, on other pc I am running the file for telecast using the following code: making connection with server: nc.connection("rtmp://10.8.4.56:1935/live"); playing the live stream: ns.play("mycamera"); vid.attachNetStream(ns);
Now, that was for the live stream for publish and view. But I want little more than that.I want to record the live stream at the publish end simultaneously. I have tried the code at publish side like: nc.connection("rtmp://10.8.4.56:1935/live"); ns.publish("mycamera","live"); ns.publish("mycamera","record"); But it is giving me error: NetStream.Record.NoAccess when I am changing the connection point to tmp://10.8.4.56:1935/dvr", t is giving me the result but then effecting the live telecast.
I'm recording a stream from a webcam as an f4v file using FMS 3.5. The file is created in the live folder, and i can stream it back to the client no problem, however when I try to play the file in Adobe Media Player (or anything else) it won't play. I've used the f4v post processor which claims to run successfully, but with no joy.
I am trying to record a H264/AAC streamin FLV format on my FMS server and all I get in the recording is the metadata but no media content. Is H264 recording only supported in F4V?
I have an application running in FMIS 3.5. Everything is working. Now I want to create two application instances, one for a live stream and one for a development stream. That way I can test my application against the development stream without interfering with the application that manages the live stream.So first I created folders under my application. Say the application's name is test. I created two folders, dev and live. Then I changed my Flex 3 applications so that they would write to rtmp://mydomain.com/test/live/stream. But the application still records the live stream in test, not test/live.[code]
I restarted my vhost. My application still records my live stream into the test folder instead of test/live.So I removed those entries and restarted my vhost.Then I added a folder called streams below my test folder. And I added dev and live subfolders below streams. I saw this on another post somewhere. But this didn't work either.I have not been able to find the configuration element(s) that enable multiple instances in one application.Am I missing a configuration parameter somewhere or is this a bug in 3.5?
I have developed an application with fms3.5.3 and there is some latency problem so my client is looking peer to peer communication "FMS4" with video recording, how is it possible
I'm currently able to record audio and video (from a webcam) to a Flash Media Server. However, in some cases users have a webcam with no builtin microphone. In that case the flash client uses the default microphone with 'Microphone.getMicrophone();' and possibly selects the micrphone of the PC.
A delay between audio and video is caused in cases with a separated webcam and microphone. There isn't a lot of delay on an internal network (e.g. LAN) however, there is a very large delay between audio and video on an external network (e.g. WAN).
I know this question comes up from time to time, but it's completely unaddressed in the documentation and I'd like there to exist a more authoritative treatment of the subject.Like many other developers, we're trying to record multicast RTMFP streams. We see three options:
Broadcasting clients open two outgoing NetStreams: one for the multicast group through RTMFP, and another directly to FMS through RTMP for recording. One downside to this solution is that now the user has two outgoing streams, so available outbound bandwidth for any broadcasting client could easily become a constraint on video quality.One can stream to FMS 4 using RTMP and have FMS-side code that records and broadcasts the stream to the multicast group using RTMFP (recommended by JayCharles at http:url...). I haven't tried this out yet but my guess it that it will have worse video quality than a pure RTMFP solution. Is my concern justified?Super-hacky solution: one could have flash player running in some kind of virtual environment on a server. This flash player could subscribe to the multicast stream and record the video at a systems level. Has anyone tried a hack as daring as this? What solution is recommended by Adobe?It's incredible to me that FMS 4 can't act as an RTMFP consumer, thereby both acting as a multicast node and also recording the video. Can anyone at Adobe comment on this omission in functionality?
I'm currently having an issue with FMS4 developer edition on both Linux (x64) and Windows XP (x86).When I stream a webcam using ns.publish("foobar", "live") I can watch the live stream on another client, however when i use ns.publish("foobar", "record"); neither broadcasting nor recording works.Using the "live" parameter the client appears in the log files and in the administration console as "publishing", using "record" the client appears as "idle".Is there anything I need to configure besides LIVE_DIR in fms.ini?
Is this a restriction in the developer edition? Here is the relevant part of the code (condensed):
-------------------------------------------------------------------- var camLive:Camera = Camera.getCamera(); var nc:NetConnection = new NetConnection();[code]............