I'm running a Video Recorder application (written in ActionScript 3.0) from my local machine. It records using a Red5 server which is installed on a remote Amazon EC2 server.
To record, I'm using 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'm able to record video till the buffer gets filled (I'm monitoring the NetStream.BufferLength
constantly)
Once, the recording is stopped - the data in the buffer is sent to the server. And now, when I try to playback with (bufferTime = 1
) The video doesn't appear.
I have ssh
'ed into the EC2 server and have seen that the file does get created in the red5/webapps/vod/streams
folder, but I'm am unsure about its quality or whether it has recorded correctly or not. I've even used the command line based movie player mplayer
to try and play the file, but it doesn't play because I'm guessing the Ec2 server Ubuntu lacks the playback plugins (not sure of this though.)
However, when it's a low quality recording with 640 x 480 instead of 1920 x 1080, the buffer doesn't get filled beyond 0.1 or 0.2, and the video plays back smoothly.
My Internet upload speed is around 300 kbps.
How can I (if it is possible), record and then playback high quality video?