Record high-quality video using Flash and Red5 Media Server

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 mplayercommand 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?

+1
source share
2 answers

// Ensure that no more than 43690.6(43K/second) is used to send video. camera.setQuality(43690.6,0);

. Amazon EC2.

0

, :

  • , .
  • Flash Player ( )
  • Red5 - , .

Red5 . HDFVR Red5 FP ​​ .

- , ( .flv).

Red5 0.8 , / ( , ).

Red5 0.9 -.

Red5 1.0 RC1 - Red5/conf/red5-common.xml - - . queueThreshold / rtmp.

Red5 1.0 final, 1.0.1 1.0.2 . , , Red5 .flv 1 2 . .flv 1- , . yamdi , .flv .

HDFVR Red5, Red5 1.0.3 .

0

Source: https://habr.com/ru/post/1795299/


All Articles