Red5

Red5 的一点点感悟

梦想的初衷 提交于 2019-11-29 20:01:22
最近一个项目需要用到客户端的录音功能,大概的方案就是Flex 客户端加流媒体服务器,曾尝试永将Red5 作为一个web应用嵌入Tomcat 可是没有成功惭愧。当然把tomcat嵌入到Red5里面也是可以容忍的,就没有太多的去在意这些,本想永普通的SSH 去做,Red5又拥有自己的Spring 容器,如果按普通的配置,完全不成功。无奈有添加了一个Spring容器,Struts2中直接从容器中拿到bean (贼不爽,改进中,也分析了部分RED5的源码),Red5作为开源流媒体服务器,做的功能应该说是比较强大,但是作为一个开源项目文档貌似不是那么丰富,当然跟个人能力问题也有比较大的关系。 虽然很多地方用的不是那么顺手,不过Red5作为开源的流媒体服务器,确实比较方便,可以比较方便的录音,播放视频,录制视频,当然格式有限,而且服务端几乎不许要写多少代码,非常方便。 转载于:https://my.oschina.net/u/2296689/blog/545798 来源: https://blog.csdn.net/chuoxieai9700/article/details/100904902

用red5/nginx+obs+jwplayer+websocket实现视频直播与弹幕

怎甘沉沦 提交于 2019-11-29 08:55:16
1、Linux环境准备 linux版的red5下载 https://github.com/Red5/red5-server/releases nginx-rtmp下载 ,使用linux的git命令:git clone https://github.com/arut/nginx-rtmp-module.git ( 如果没有git进行安装,yum install git) 二者选一就可以了,网上说nginx比red5性能高,而且用的人比较多。但我5m带宽的服务器测试来说,red5比nginx流畅,而且延迟低 OBS去官网下载就可以了 obs官网 jwplayer 上百度找,或者进入red5目录的/red5-server/webapps/oflaDemo下,会有一个jwplayer.js和player.swf文件。把它复制到自己的项目就能用。 websocket 后面再项目的pom文件中引入依赖即可(用来实时发送弹幕)。 2、red5/nginx-rtmp安装 red5安装教程有很多,网上找教程即可 例如这个 注意的是:制作完启动脚本之后,我启动脚本成功但还是访问不了red5主页,这时,我直接到red5目录手动执行./red5.sh文件,就能访问到red5主页。但一退出red5就会关闭,所以可以使用后台启动 ./red5.sh & nginx-rtmp教程也可以在网上找到。

flv、MP4 视频播放问题

对着背影说爱祢 提交于 2019-11-29 07:25:00
我们平常笼统说的「视频格式」其实包含三个部分:视频编码、音频编码、容器格式。其中「编码」这个概念其实又包含两个方面:编码和解码。「视频编码」作为动词指的是将动态的图像信息转化为二进制数据的过程;其逆过程称为「视频解码」。「视频编码」作为名词则通常指的是某种特定的编码方式。同样的概念也适用于「音频编码」,只不过它转化的是声音信息。大多数「视频文件」都同时包含视频和音频,因此编码后至少都有两组二进制数据,并且两组数据必须按照特定的方式同步起来,否则我们看到的画面和听到的声音将不吻合。为了解决编码后多组不同类型的的数据的存储、传输问题,需要将他们按照一定的规律组织起来,这种组织方式即是「容器格式」。 我们常见的视频文件扩展名包括 .avi, .rmvb, .mp4, .mkv 等。其实扩展名都是指的某种容器格式。这些容器里面存放的数据可能采用了多种不同的编码方式。例如,常见的 avi 文件里面存放的通常是 xvid 或 divx 编码的视频和 mp3 编码的音频。rmvb 文件里面存放的通常是 RV40 编码的视频和 cook 编码的音频。mp4 文件里面通常存放的是 H.264 编码的视频和 AAC 编码的音频。mkv 文件里面存放的则可能包含前面各种。 目前业界主流的封装是MP4.因为MP4有着良好的特性,并对HTML5友好。mp4新规范实际已经支持无缝拼接,真正流媒体封装器

How to join one audio and video file — Xuggler

狂风中的少年 提交于 2019-11-29 05:23:03
I want to combine a video file (flv) with no audio with an audio file (mp3) using Xuggler. At the moment I have taken two streams and combined the video and audio parts of those streams separately like picture in picture. Now i want to combine the audio and video files with each other.. Any suggestion or hints will be appreciated. I am using red5 server. Thanks. Use a MediaConcatenator. See example code "Concatenate Audio And Video" I developed a class that will take two inputs, one audio file and second video file and will merge them to a single audio video file. public static void main

Javacv: Decoding H.264 “live” stream coming from red5 server on android device

被刻印的时光 ゝ 提交于 2019-11-28 23:56:21
Here is my problem, I have implemented a server side application using Red5, which sends H.264 encoded live stream, on client side the stream is received as byte[] In order to decode it on Android client side i have followed the Javacv-FFmpeg library. The code for decoding is as follows public Frame decodeVideo(byte[] data,long timestamp){ frame.image = null; frame.samples = null; avcodec.av_init_packet(pkt); BytePointer video_data = new BytePointer(data); avcodec.AVCodec codec = avcodec.avcodec_find_decoder(codec_id); video_c = null; video_c = avcodec.avcodec_alloc_context3(codec); video_c

Simple alternatives to Red5 recorder and server for webcam video capture?

别说谁变了你拦得住时间么 提交于 2019-11-28 19:20:25
问题 I'm looking for a flash script/library to capture video and audio from a webcam and then somehow get a saved flv to my encoding server. I'm not looking for something that will host the videos for me. I just need something simple to capture and then upload. I really want this to be open source and free. I've done a fair amount of searching and it seems that most of what i can find is either a full blown service with hosting, or the red 5 suite. I've been trying for a day to get something going

How to join one audio and video file — Xuggler

烈酒焚心 提交于 2019-11-27 23:10:32
问题 I want to combine a video file (flv) with no audio with an audio file (mp3) using Xuggler. At the moment I have taken two streams and combined the video and audio parts of those streams separately like picture in picture. Now i want to combine the audio and video files with each other.. Any suggestion or hints will be appreciated. I am using red5 server. Thanks. 回答1: Use a MediaConcatenator. See example code "Concatenate Audio And Video" 回答2: I developed a class that will take two inputs, one

use flash capture webcam image?

▼魔方 西西 提交于 2019-11-27 19:03:12
问题 Is there any open source flash utility that i can embed on a webpage and use it to capture user webcam image or short duration clips and do "POST" to my server servlet ? i do not looking for streaming video and so i do not need red5 or flash server. can you folks elaborate ...? 回答1: This sounds like a good candidate for Thibault Imbert's AS3 GIF Animation Encoding Class. I've used it about 2 years ago for a project at University. You can check it out here. In my opinion you would have 3 steps