live555 android,Android RTSP/UDP“RTSP/1.0 461 Unsupported transport”通过蜂窝网络(4G)

在尝试通过RTSP/UDP在Android设备上流式传输视频时,遇到一个问题,即三星Galaxy Core SM-G386F无法通过4G网络从VLC流媒体服务器播放视频。虽然它可以从Live555MediaServer流式传输,但无法使用VLC。日志显示错误`RTSP/1.0 461 Unsupported transport`,表明VLC不支持所请求的传输方式。其他设备如Samsung Galaxy S4、S5和Note 3则可以正常播放。可能的原因包括LTE服务提供商阻止UDP数据包或VLC未实现RTP/UDP传输。建议检查LTE服务提供商的限制并测试UDP应用程序以确认问题所在。
摘要由CSDN通过智能技术生成

I am currently working on video streaming via RTSP/UDP for Android devices. My goal is to stream a video over a 4G cellular network. The problem I am facing is that the method used does not work with the Samsung Galaxy Core SM-G386F.

我目前正在通过RTSP/UDP为Android设备进行视频流流。我的目标是在4G蜂窝网络上播放视频。我所面临的问题是使用的方法与三星Galaxy smg - g386f不兼容。

Below is a summary of the method and a log file. I would like to know if there is any apparent mistake I am making or basically it is not supported for said device.

下面是方法和日志文件的摘要。我想知道我是否有明显的错误,或者基本上不支持该设备。

SERVER SIDE

服务器端

Streaming servers:

流媒体服务器:

Live555MediaServer

Live555MediaServer

live555MediaServer

live555MediaServer

来源:http://www.live555.com/liveMedia/

VideoLAN / VLC

VideoLAN / VLC

vlc -vvv Jellyfish-3-Mbps.mkv --sout '#rtp{sdp=rtsp://0.0.0.0:5555/test.sdp}'

vlc -vvv Jellyfish-3-Mbps。mkv——多' # rtp { sdp = rtsp:/ / 0.0.0.0:5555 / test.sdp }”

来源:http://www.videolan.org/vlc/download-debian.html

Video test files:

视频测试文件:

Jellyfish Video Bitrate Test Files

水母视频比特率测试文件。

ex: Jellyfish-3-Mbps.mkv - 60s, 3 Mbps AVG Bitrate, 21 MB

例:Jellyfish-3-Mbps。mkv - 60, 3mbps AVG比特率,2mb。

来源:http://jell.yfish.us/

CLIENT SIDE

客户端

String url = "rtsp://IP_ADDR:8554/Jellyfish-3-Mbps.mkv"; // Live555MediaServer

String url = "rtsp://IP_ADDR:5555/test.sdp"; // VLC

Player.java (Method 1)

的球员。java(方法1)

VideoView v1 = (VideoView) findViewById(R.id.videoView1);

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

v1.requestFocus();

v1.start();

Player.java (Method 2) - UDP TEST

的球员。java(方法2)- UDP测试。

MediaPlayer mp = new MediaPlayer();

try {

mp.setDataSource(url);

mp.prepareAsync();

mp.setOnPreparedListener(new MediaPlayer.OnPreparedListener() {

@Override

public void onPrepared(MediaPlayer mp) {

Log.d(TAG, "START STREAM");

mp.start();

}

});

} catch (IOException e) {

Log.d(TAG, "ERROR: " + e);

} catch (Exception e) {

Log.d(TAG, "ERROR: " + e);

}

AndroidManifest.xml

AndroidManifest.xml

Both methods (VideoView & MediaPlayer) and media servers (Live555MediaServer and VLC) work fine on the following android devices:

这两种方法(VideoView & MediaPlayer)和媒体服务器(Live555MediaServer和VLC)在以下android设备上运行良好:

Samsung Galaxy S4 (Android 4.3)

三星Galaxy S4(安卓4.3)

Samsung Galaxy S5 (Android 4.4.2)

三星Galaxy S5(安卓4.4.2)

Samsung Galaxy Note 3 (Android 4.4.2)

三星Galaxy Note 3(安卓4.4.2)

The problem appears on the Android Galaxy Core SM-G386F (Android 4.2). It can play stream from Live555MediaServer by using both methods, but it cannot play the stream from VLC.

这一问题出现在安卓(Android)星系核心SM-G386F (Android 4.2)上。它可以使用这两种方法从Live555MediaServer中播放流,但不能从VLC中播放流。

满logcats:GALAXY_CORE_VLC GALAXY_CORE_LIVE555

Logcat from Android Galaxy Core SM-G386F for VLC streaming media by using Method 1. It requests for RTP/AVP/UDP but id does not receive UPD packets.

使用方法1,从Android Galaxy Core smg - g386f中使用的Logcat用于VLC流媒体。它请求RTP/AVP/UDP,但id不接收UPD包。

06-18 12:01:21.907: V/NuPlayer(5575): scanning sources haveAudio=0, haveVideo=0

06-18 12:01:21.938: I/ARTSPConnection(5575): status: RTSP/1.0 461 Unsupported transport

06-18 12:01:21.938: V/ARTSPConnection(5575): line: Server: VLC/2.0.3

06-18 12:01:21.938: V/ARTSPConnection(5575): line: Date: Wed, 18 Jun 2014 10:01:23 GMT

06-18 12:01:21.938: V/ARTSPConnection(5575): line: Content-Length: 0

06-18 12:01:21.938: V/ARTSPConnection(5575): line: Cache-Control: no-cache

06-18 12:01:21.938: V/ARTSPConnection(5575): line: Cseq: 7

06-18 12:01:21.938: I/MyHandler(5575): SETUP(1) completed with result 0 (Success)

06-18 12:01:21.938: E/MyHandler(5575): Server responses [461] ERROR for the SETUP request

06-18 12:01:21.938: W/APacketSource(5575): Format:video 0 RTP/AVP 96 / MIME-Type:H264/90000

06-18 12:01:21.938: I/APacketSource(5575): dimensions 1280x720

06-18 12:01:21.938: W/ASessionDescription(5575): system prop 3gpp-ra option is not found

06-18 12:01:21.938: V/ARTSPConnection(5575): request: 'SETUP rtsp://IP_ADDR:5555/test.sdp/trackID=1 RTSP/1.0

06-18 12:01:21.938: V/ARTSPConnection(5575): Transport: RTP/AVP/TCP;unicast;interleaved=0-1

06-18 12:01:21.938: V/ARTSPConnection(5575): Session: 5729006ad01e3b2d

06-18 12:01:21.938: V/ARTSPConnection(5575): Blocksize: 1400

06-18 12:01:21.938: V/ARTSPConnection(5575): User-Agent: Samsung SM-G386F stagefright/Beyonce/1.1.9 (Linux;Android 4.2.2)

06-18 12:01:21.938: V/ARTSPConnection(5575): x-wap-profile: http://wap.samsungmobile.com/uaprof/SM-G386F.xml

06-18 12:01:21.938: V/ARTSPConnection(5575): CSeq: 8

06-18 12:01:21.938: V/ARTSPConnection(5575):

06-18 12:01:21.938: V/ARTSPConnection(5575): '

06-18 12:01:22.001: I/ARTSPConnection(5575): status: RTSP/1.0 461 Unsupported transport

06-18 12:01:22.001: V/ARTSPConnection(5575): line: Server: VLC/2.0.3

06-18 12:01:22.009: V/ARTSPConnection(5575): line: Date: Wed, 18 Jun 2014 10:01:23 GMT

06-18 12:01:22.009: V/ARTSPConnection(5575): line: Session: 5729006ad01e3b2d;timeout=60

06-18 12:01:22.009: V/ARTSPConnection(5575): line: Content-Length: 0

06-18 12:01:22.009: V/ARTSPConnection(5575): line: Cache-Control: no-cache

06-18 12:01:22.009: V/ARTSPConnection(5575): line: Cseq: 8

06-18 12:01:22.009: I/MyHandler(5575): SETUP(2) completed with result 0 (Success)

06-18 12:01:22.009: E/MyHandler(5575): Server responses [461] ERROR for the SETUP request

06-18 12:01:

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值