Wowza Community

Amino 130 stb playing VOD MPEG-TS / rtsp from Amazon EC2 Wowza 2.2.3.11

Any help or advice would be very much appreciated, thanks.

I am having challenges playing an H.264/MPEG-4 AVC (Per GSpot) MPEG-TS rtsp stream from an Amazon EC2 Wowza Linux Instance (2.2.3.11) through an Amino 130 (v0.17.3-Ax3x-opera9)

I’m using Wowza 2.2.3 because I have a Windows version which does play the same H.264 file with the same Application.xml file through the same Amino 130 in my local office network.

Heres what I can and can’t do;

(Plays) Local Windows Wowza 2.2.3 -> Amino 130

(Plays) Local Windows Wowza 2.2.3 -> VLC

(Does Not Play) EC2/Web Linux Wowza 2.2.3.11 -> Amino 130

(Plays) EC2/web Linux Wowza 2.2.3.11 -> VLC

I’m using the same Amino 130 for all tests. I have logs for all four of these tests if you would like. the only errors that are obvious to me in the logs in ALL TEST CASES playing or not is,

2012-04-05 14:19:44 EDT comment server ERROR 500 mpegts.mp4 H264CodecConfigInfo.decodeAVCC: java.lang.ArrayIndexOutOfBoundsException: 7 defaultVHost vod definst 5.469 ec2-50-18-232-9.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-50-18-232-9.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:mpegts.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 237687945 0 261884 1 4237 0 261884 mpegts.mp4 - /usr/local/WowzaMediaServer/content mp4 10815918 - rtsp://ec2-50-18-232-9.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:mpegts.mp4 rtsp://ec2-50-18-232-9.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:mpegts.mp4 - rtsp://ec2-50-18-232-9.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:mpegts.mp4 -

2012-04-05 14:19:44 EDT - - - - - - defaultVHost vod definst 4.739 ec2-50-18-232-9.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-50-18-232-9.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:mpegts.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 237687945 0 261884 1 4237 0 261884 mpegts.mp4 - /usr/local/WowzaMediaServer/content mp4 10815918 239.901 rtsp://ec2-50-18-232-9.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:mpegts.mp4 rtsp://ec2-50-18-232-9.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:mpegts.mp4 - rtsp://ec2-50-18-232-9.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:mpegts.mp4 -

Some have exception 7 and some exception 12 whatever that is.

Comments, ideas, suggestions?

Thanks ~

Some suggestions:

  1. Test with example.mp4

  2. Upgrade to the latest Wowza (or at least spin up a DevPay isntance for 1 hour and test your device)

  3. See what is different about your Windows vs. Linux version. It is likely your Java version. Upgrade to the latest Java 1.7 update 3 or later.

Yes, that is what it looks like, UDP ports are blocked or not mapped to your Wowza server in the network. Here is a closer look

connect	rtsp	INFO	200	1278746550	-
create	stream	INFO	200	-	-
describe	rtsp	INFO	200	1278746550	-
comment	server	INFO	200	-	RTPUDPTransport.bind[vod/_definst_]: in:/10.161.2.229:6978 out:/173.247.177.236:11111
play	stream	INFO	200	sample.mp4	-
play	rtsp	INFO	200	1278746550	-
comment	server	INFO	200	-	RTPUDPTransport.unbind[vod/_definst_]: /10.161.2.229:6978 sent:271 recv:0
stop	stream	INFO	200	sample.mp4	-
destroy	stream	INFO	200	sample.mp4	-
disconnect	rtsp	INFO	200	1278746550	-

Richard

Opening all UDP ports on EC2 is easy using a security group. Just allow all UDP ports 0 - 65535. The Wowza EC2 guide has details

http://www.wowza.com/resources/WowzaMediaServerForEC2_UsersGuide.pdf

Richard

Some suggestions:

  1. Test with example.mp4

Tried sample.mp4. All results the same. Plays through Amino 130 in local office network but not from EC2 Wowza 2.2.3 instance.

  1. Upgrade to the latest Wowza (or at least spin up a DevPay isntance for 1 hour and test your device)

Tried DEV PAY version 3.0.5 and did not receive video. No error log entry and access logs appears to show a connect and then a disconnect. Can I send my short log file?

  1. See what is different about your Windows vs. Linux version. It is likely your Java version. Upgrade to the latest Java 1.7 update 3 or later.

Java on Windows machine is 1.6.0.26 and EC2 Wowza 2.2 is 1.6.0.24 . I will upgrade all machines if you think it will help

Could there be a config setting that needs a longer time out period on Wowza?

Should I call our office telecom provider to check the ports in their router? What ports should be open to receive rtsp MPEG-TS?

I appreciate any help.

Thanks

Craig

I’m using the VOD example with the addition of this in the RTP section;

forceMPEGTSOut

true

Boolean

rtpWrapMPEGTS

true

Boolean

.

It all works fine locally just not over internet. Maybe I’m missing something else in my setup required for internet? What else can I tell you or show you.

rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4

I too can play everything through VLC but not through the Amino if it’s coming from the web. Using EC2 Wowza 3.0.5 I do not get that Java error anymore. I just get a connect and then a disconnect (as far as I can understand. The Amino is very finicky. I normally use them to receive a multicast mpeg-ts stream through a VPN or MPLS network that works fine. The VOD through the internet is giving me trouble. I will check with telecom to make sure our internet router has the correct ports open and will bring in a guy to do some packet comparison between the two working and not working. If you have any other ideas, i could send the log. Is anyone aware of a video on the web that has been successfully tested through an Amino 130 that I can try?

thanks

I read in a post describing a similar Amino challenge that if the logs show a UDP bind quicly followed by an unbind then it might be a UDP port issue. My telecom provider tells me that all UDP ports are open but must they be mapped to the Wowza server? Here is my log. Does it appear to be a UDP issue?

#Version: 1.0

#Start-Date: 2012-04-06 00:42:23 UTC

#Software: Wowza Media Server 3.0.5 build1220

#Date: 2012-04-06 // Access Log

#Fields:

2012-04-06 01:35:36 UTC comment server INFO 200 - ServerListenerEC2Variables#ApplicationInstanceNotify.onApplicationInstanceCreate[vod/definst]: Auto-set application RTSP addresses: internal[bind]:10.161.2.229 external[origin,connection]:184.72.14.17 - - - 111037.029 - - - - - - - - - - - - - - - - - - - - - - - - -

2012-04-06 01:35:36 UTC app-start application INFO 200 definst vod/definst - - - 111037.031 - - - - - - - - - - - - - - - - - - - - - - - - -

2012-04-06 01:35:36 UTC connect rtsp INFO 200 1278746550 - defaultVHost vod definst 111037.032 ec2-184-72-14-17.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 1278746550 0 0 - - - - - - - - - - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 -

2012-04-06 01:35:36 UTC create stream INFO 200 - - defaultVHost vod definst 0.001 ec2-184-72-14-17.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 1278746550 0 0 1 0 0 0 sample.mp4 - - - - - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 -

2012-04-06 01:35:36 UTC describe rtsp INFO 200 1278746550 - defaultVHost vod definst 0.117 ec2-184-72-14-17.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 1278746550 0 0 - 0 - - sample.mp4 - /usr/local/WowzaMediaServer/content mp4 39115156 596.458 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 -

2012-04-06 01:35:36 UTC comment server INFO 200 - RTPUDPTransport.bind[vod/definst]: in:/10.161.2.229:6978 out:/173.247.177.236:11111 - - - 0.209 - - - - - - - - - - - - - - - - - - - - - - - - -

2012-04-06 01:35:36 UTC play stream INFO 200 sample.mp4 - defaultVHost vod definst 0.14 ec2-184-72-14-17.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 1278746550 0 0 1 0 0 0 sample.mp4 - /usr/local/WowzaMediaServer/content mp4 39115156 596.458 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 -

2012-04-06 01:35:36 UTC play rtsp INFO 200 1278746550 - defaultVHost vod definst 0.243 ec2-184-72-14-17.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 1278746550 0 0 - 0 - - sample.mp4 - /usr/local/WowzaMediaServer/content mp4 39115156 596.458 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 -

2012-04-06 01:35:40 UTC comment server INFO 200 - RTPUDPTransport.unbind[vod/definst]: /10.161.2.229:6978 sent:271 recv:0 - - - 4.813 - - - - - - - - - - - - - - - - - - - - - - - - -

2012-04-06 01:35:40 UTC stop stream INFO 200 sample.mp4 - defaultVHost vod definst 4.713 ec2-184-72-14-17.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 1278746550 0 356636 1 4395 0 356636 sample.mp4 - /usr/local/WowzaMediaServer/content mp4 39115156 596.458 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 -

2012-04-06 01:35:40 UTC destroy stream INFO 200 sample.mp4 - defaultVHost vod definst 4.719 ec2-184-72-14-17.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 1278746550 0 356636 1 4395 0 356636 sample.mp4 - /usr/local/WowzaMediaServer/content mp4 39115156 596.458 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 -

2012-04-06 01:35:40 UTC disconnect rtsp INFO 200 1278746550 - defaultVHost vod definst 4.823 ec2-184-72-14-17.us-west-1.compute.amazonaws.com 1935 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 173.247.177.236 rtsp - Amino Communications Ltd aminetx3x rtsp_plugin-1.11 1278746550 0 0 - - - - - - - - - - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 - rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 -

No Error Log for this period

Thanks,

This Wowza server is an EC2 instance. That being the case is there a change I need to make in my Application.xml file or a change with my Internet Provider (Telcom’s) router?

Thanks

So all of the following RTSP bind settings in my Appliciation.xml are ok?

digest

none

senderreport

12000

75

90000

0

0.0.0.0

127.0.0.1

*

forceMPEGTSOut

true

Boolean

rtpWrapMPEGTS

true

Boolean

Richard, thanks for hanging in there with me on this.

connect rtsp INFO 200 1278746550 -

create stream INFO 200 - -

describe rtsp INFO 200 1278746550 -

comment server INFO 200 - RTPUDPTransport.bind[vod/definst]: in:/10.161.2.229:6978 out:/173.247.177.236:11111

play stream INFO 200 sample.mp4 -

play rtsp INFO 200 1278746550 -

comment server INFO 200 - RTPUDPTransport.unbind[vod/definst]: /10.161.2.229:6978 sent:271 recv:0

stop stream INFO 200 sample.mp4 -

destroy stream INFO 200 sample.mp4 -

disconnect rtsp INFO 200 1278746550 -

10.161.2.229 is the internal ip for my Wowza EC2 instance and 173.247.177.236 is the ip for my Amino 130.

the logs show this line also,

Auto-set application RTSP addresses: internal[bind]:10.161.2.229 external[origin,connection]:184.72.14.17

184.72.14.17 is part of the public address for my Wowza EC2 instance as seen in my rtsp address

rtsp://ec2-184-72-14-17.us-west-1.compute.amazonaws.com:1935/vod/definst/mp4:sample.mp4 -

It seems like the binds are at least getting the correct address for everything. But as I’ve said after 5 seconds it unbinds. What do you think I could have done with the router to help?

thanks again,

Craig

“Could there be a config setting that needs a longer time out period on Wowza?”

-As I understand it MPEGTS out just streams over UDP and therefore has no timeout.

Could you describe your setup in more detail? How are you doing the MPEGTS out. What tutorials/modules are you using, and what configuration changes did you implement?

For example, the multicast publish module can publish MPEGTS unicast. You would set the destination port in the module configuration.

I am able to play your stream. Does that URI work on the Amino?

There is this article for firewall issues: https://www.wowza.com/docs/how-to-set-up-an-application-for-rtsp-rtp-streaming

-You might be already setup though.

The default port for RTSP is 554, unless you specify 1935. That should be all you need.

Do you get this error on your Windows box?: ArrayIndexOutOfBoundsException

Have you tried my original suggestions #2 and #3?

Something weird: I am able to play your sample.mp4 link in ffmpeg and VLC. I can only play your mpegts.mp4 from your first post, in VLC. ffmpeg complains: [rtsp @ 0xa6b7ac0] Could not find codec parameters (Video: none)

If it’s working on your local network it’s probably just a firewall issue. Try clearing your firewall on the EC2 instance, or opening up UDP. From the tutorial: “To stream to RTSP/RTP be sure UDP ports 0-65535 are open and properly mapped to the server running Wowza Media Server.”

Is the problem just that mpegts.mp4 is improperly encoded. Did you try the sample.mp4 on your STB?

This would a change in your network configuration, not in Application.xml.

-Lisa