很抱歉,这个视频是无效的流此设备,HTTP流的android [英] Sorry, this video is not valid for streaming to this device in Http streaming android

查看:192
本文介绍了很抱歉,这个视频是无效的流此设备,HTTP流的android的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我可以从URL(服务器)的成功,

其他(我的视频,最高到我的服务器)不是

您可以看到无论是在我的code (工作/不工作) 我在坚持了这个问题。 抱歉,这个视频是无效的流此设备

You can see both in my code (Working/Not working) I'm on stuck with this problem. "Sorry, this video is not valid for streaming to this device"

下面code:

String url = null;
    //      url = "rtsp://v5.cache5.c.youtube.com/CiILENy73wIaGQmC00ZlwwIDOxMYDSANFEgGUgZ2aWRlb3MM/0/0/0/video.3gp"; // Working
    //      url = "http://daily3gp.com/vids/747.3gp"; // Working
    url = "http://www.ooklnet.com/files/381/381489/video.mp4"; // Working
    //      url = "rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov"; // Working
    //      url = "http://dl.dropbox.com/u/80419/santa.mp4"; // Working

    //      url = "http://trekvn.hostoi.com/encode_normal.mp4"; // Not Working
    //      url = "http://trekvn.hostoi.com/output_encode_mp4_box.mp4"; // Not Working
    //      url = "http://www.ourserversite.com:14556/ingCloud/users/400010001/mp4_320p/e8d8535852a98c949640c5d618ac23d320131022174507.mp4"; // Not Working
    //      url = "http://trekvn.hostoi.com/mpeg_2_ts.ts"; // Not Working

    videoviewer.setVideoURI(Uri.parse(url));

    videoviewer.requestFocus();
    videoviewer.setKeepScreenOn(true);
    videoviewer.setOnErrorListener(this);
    videoviewer.setOnPreparedListener(this);

@Override
    public void onPrepared(MediaPlayer mp) {
           videoviewer.start()'
}

所有这些视频中可以起到很好的网站上, 有格式* .MP4(MPEG-4第10部分),视频:.H264,音频:AAC

All of these video can play good on the site, have format *.mp4 (mpeg-4 part 10), Video : .H264, Audio : aac.

请告诉我为什么, 以及如何解决它。

Please tell me why, and how to fix it.

P / S:三星Galaxy Tab 7 - 2.2.1

p/s : Samsung Galaxy Tab 7" - 2.2.1

谢谢

推荐答案

这是问题,很多人遇到,确保您了解以下内容来解决该问题。

This is the issue that many people met, ensure you understand following content to fix the issue.

通过我的经验,并在此答案<一href="http://stackoverflow.com/questions/8012494/sorry-this-video-cannot-be-played-streaming-mp4-to-android">Sorry,此视频无法播放 - 流媒体的MP4到Android

Through my experience and the answer in this Sorry, this video cannot be played - streaming mp4 to android

最后,我找到了原因和解决方法:

Finally, I found the reason and the solution:

- 原因:的几乎 * MP4文件制作为iOS上的发展重点,并在编码:H264主。而的Andr​​oid方只能流和放大器;播放文件具有编码: H264基线

- Reason : Almost the *.mp4 file was produced for developing focus on iOS, and have the encoding : H264 Main. While Android side can only stream & play the files have the encoding : H264 Baseline.

- 解决方案:的我们需要的从编码H264主要以H264基线保障功能的网络优化的转换(移动-moov原子前 - MDAT)功能)

- Solution : We need convert from the encoding H264 Main to H264 Baseline (guaranteed enabled Web Optimized (move -moov atom before -mdat) feature)

- 错误:

  • 对不起,该视频是无效的流此设备

抱歉,此视频无法播放

手刹工具是完成它的最简单和最便宜的方法。

HandBrake tool is the easiest and cheapest way to complete it.

谢谢

P / S:但是如果你使用这种方法,你需要你的视频上传到服务器进行测试

这篇关于很抱歉,这个视频是无效的流此设备,HTTP流的android的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆