关于Android视频直播

原创 2012年03月26日 23:43:02

最近做视频直播方面的软件,以前没做过这方面的东西,google了一下,搜索出来基本没有有用的信息,最多的就是视频直播软件还有就是外包信息。搜索半天无果后,下了几个“android播放网络视频”的demo试了一下,发现还是不行,将url改成电视直播的url以后不能播放。

后来只能去下了各种电视直播的软件,来看别人是怎么实现的,最后发现了一个第三方的多媒体方面的类库。vitamio,其官方地址:http://vov.io/

 

以下内容摘自官方网站的描述:

What's Vitamio

Vitamio is a multimedia framework for all Android devices. Vitamio works like the Android's default MediaPlayer except that it includes much more powerful features. And it's absolutely free !

Network Protocols

The following network protocols are supported for audio and video playback:

  • MMS
  • RTSP (RTP, SDP)
  • HTTP progressive streaming
  • HTTP live streaming (M3U8), for Android 2.1+

Media formats

Many audio and video codecs are packed into Vitamio beside the default media format built in Android platform, some of them are listed below.

  • divx/xvid
  • wmv
  • flv
  • ts
  • rmvb
  • mkv
  • mov
  • m4v
  • avi
  • mp4
  • 3gp

Subtitles

Vitamio support the display of many external and embedded subtitle formats.

  • SubRip(.srt)
  • Sub Station Alpha(.ssa) / Advanced Sub Station Alpha(.ass)
  • SAMI(.smi/.sami)
  • MicroDVD(.sub/.txt)
  • SubViewer2.0(.sub)
  • MPL2(.mpl/.txt)
  • Matroska (.mkv) Subtitle Track

More features

There are more wonderful features available in Vitamio.

  • Background playback
  • Multiple audio tracks support
  • Mutitiple subtitles support, including external and embedded ones
  • Processor optimization for many platforms
  • Buffering when streaming
  • Adjustable aspect ratio
  • Automatically text encoding detection

And many other features are waiting for you !

Where to get Vitamio

You can grab Vitamio from any sources, but the recommended sources are listed below.

Vitamio plugin for multimedia users

Vitamio plugin is a simple Android APP, e.g. an APK file. It's recommended to install the Vitamio plugin when the app in your device are guiding you to do this. However, you can install it from below sources if you know your device's features:

  • ARMv6: for some low end devices (, VOV)
  • VFP: for some low end devices with VFP support (, VOV)
  • ARMv7: for ARMv7 devices without NEON support, such as Tegra 2 powered devices(, VOV)
  • NEON: for ARMv7 devices with NEON support (, VOV)

Vitamio SDK for Android developers

You can download the jar file to use with your project here. (Vitamio-SDK.7z)

How to use Vitamio

When you installed Vitamio according to guidelines above, you can enjoy it.

For multimedia users

Vitamio is not an APP which can run by itself, it's a plugin for many other multimedia apps you're using. Those apps will work seamlessly when you accomplish the installation of Vitamio.

For Android developers

Here is a demo project which uses the vitamio.jar. (Vitamio-Demo.7z)

Vitamio provides the similiar interfaces with Android default MediaPlayer framework. If you're using android.media.MediaPlayer in your project, just grab the vitamio.jar from above, then add it to your project's libs, and replace the import of android.media.MediaPlayer with io.vov.vitamio.MediaPlayer.

Besides the default interfaces from Android MediaPlayer, Vitamio provides more APIs, please refer the javadoc in the library.

Please don't hesitate to contact us if you have any problems. ()

Privacy

We must notify you that Vitamio will collect those information to improve itself when you using it.

UniqueID generated from Device identifier

Vitamio reads your device identifier to generate an unique ID and collect the generated one instead of your device identifier. Most important, this generation can't be reversed. So don't worry about this, as it's not harmful.

Device's CPU features and screen size.

Vitamio will work on many different Android devices, different CPU architectures, different screen sizes and so on, so it needs to know the environment.

The app's package name which is using Vitamio

There're many apps which may use Vitamio, so Vitamio should know which process is using it to allocate proper resources.

The media's metadata

Vitamio may collect the media's metadata including but not limited to codecs, bitrates, samplerates and resolutions.

Licenses

Vitamio uses sevral opensource projects, thanks to them.

FFmpeg

FFmpeg provides the software codecs and demuxers. Vitamio uses code of FFmpeg licensed under the LGPLv2.1 and its source can be downloaded here

Universalchardet

Universalchardet is the encoding detector library of Mozilla. Vitamio uses the code of universalchardet licensed under MPL to detect the encoding of subtitle texts.

The original code of universalchardet is available at Mozilla.

The code of universalchardet used by Vitamio is available at here.

 

………………………………………………………………

如果也有做这方面的同学可以尝试一下。

版权声明:本文为博主原创文章,未经博主允许不得转载。

相关文章推荐

Android视频直播例子

  • 2016-06-30 10:49
  • 36.03MB
  • 下载

视频直播 android源代码

  • 2017-02-14 09:48
  • 36.03MB
  • 下载

Android视频直播APP-WliveTV

基于ijkplayer的视频直播软件(github:https://github.com/wanliyang1990/WliveTV) 注:里面加载图片的Imageloader改了加载图片的链接源代...

开源SDK实现Android视频直播

最近一段时间,视频直播可谓大火。在视频直播领域,有不同的商家提供各种的商业解决方案,包括软硬件设备,摄像机,编码器,流媒体服务器等。本文要讲解的是如何使用一系列免费工具,打造一套视频直播方案。视频直播...

Android+Web视频直播装逼实现

一、前言 因为最近视频直播比较火,自己也想去了解,所以看了一些资料分享一下,说错了的请大家包容和指正。 二、实现原理 看图说话: 通过上图可以看到,所谓的视频直播其实就是通过录...

Android视频直播的实现(包括服务器搭建)

http://blog.csdn.net/huaxun66/article/details/53427771 最近一段时间,视频直播可谓大火。在视频直播领域,有不同的商家提供各种的商业解...

Android视频直播的实现

最近一段时间,视频直播可谓大火。在视频直播领域,有不同的商家提供各种的商业解决方案,包括软硬件设备,摄像机,编码器,流媒体服务器等。本文要讲解的是如何使用一系列免费工具,打造一套视频直播方案。 ...

ffmpeg开发之旅(7):Android视频直播核心技术(架构)详解

目前主流的直播架构中主要有两种方案,即流媒体转发、P2P。流媒体转发,是一种在视频直播中以流的方式将连续的音、视频数据经编码压缩后传输到流媒体服务器,用户实时从服务器获取流媒体资源,而不必要等待整个文...

android开发关于阿里云视频直播签名机制

使用AliLive时计算签名机制,话不多说,附上代码,自己体会。 import java.io.UnsupportedEncodingException; import java.net.UR...

android 音视频直播

@Author:明明不说话 @Statement:博客内容纯属个人观点,欢迎转载,转载请注明,谢谢 android 基于rtmp的语音采集和播放 前段时间研究了android使用rtmp协议进...
内容举报
返回顶部
收藏助手
不良信息举报
您举报文章:深度学习:神经网络中的前向传播和反向传播算法推导
举报原因:
原因补充:

(最多只允许输入30个字)