Avi stream to red5 server

I have a problem with Red5 Media Server. I installed it on a Windows machine and I am trying to transfer the avi file to the server using ffmeg:

ffmpeg -i testfile.avi -re -acodec libfaac -ar 22050 -vcodec libx264 -f flv rtmp://localhost/oflaDemo/test

According to the console, ffmpeg is broadcast to the server.

So, I opened the Publisher app to find out if it works or not. http://localhost:5080/demos/publisher.html

I clicked connect and I got this NetConnection.Connect.Success

next I recorded the stream name for testing and clicked the play button NetStream.Play.Start

but it didn’t work.
I will be very grateful if someone can help me.

Regards Babel

+4
source share
1 answer

When streaming video to a red5 server using ffmpeg, just check the red5 log for errors. I get an error in red5 during streaming avi file

  org.red5.server.net.rtmp.codec.RTMPProtocolDecoder - Error decoding buffer 

So that the video has not been broadcast yet. That is why you cannot see. This may be the reason. I am using red5-0.9 and ffmpeg version N-38632.

0
source

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


All Articles