I am running the Video Recorder application (written in ActionScript 3.0) from my local machine. It records a Red5 server that is installed on a remote Amazon EC2 server.
For recording, I use the following settings
- Width, height and FPS (for
Camera.setMode()
) - 1920 x 1080 and 10 - Bandwidth and quality (for
Camera.setQuality()
) - 0 and 80 - Buffer time (for
NetStream.setQuality()
) - 3600
I can record video until the buffer is full (I constantly monitor NetStream.BufferLength
)
Once the recording is stopped, the data in the buffer is sent to the server. And now, when I try to play ( bufferTime = 1
), the video does not appear.
I have ssh
'ed on the EC2 server and saw that the file is being created in the folder red5/webapps/vod/streams
, but I'm not sure of its quality or it was written correctly or not. I even used a mplayer
command line-based game player to try to play the file, but it does not play, because I assume that the Ec2 Ubuntu server does not have plugins to play (not sure about that).
However, when recording poor quality with a resolution of 640 x 480 instead of 1920 x 1080, the buffer does not fill beyond 0.1 or 0.2, and video playback plays smoothly.
My internet download speed is around 300 kbps.
How can I (if possible) record and play high-quality video?
source
share