Publish RTMP Stream from a Java app to Wowza

I’m trying to read H.264 MPEG-TS files and publish a stream from a Java application to Wowza 2.x. I was thinking about using Red5 RTMP implementation. Is there a RTMP library that I can use in Wowza? Any examples that you are willing and able to share?

Thanks

Here is an example that I found on Red5:

http://code.google.com/p/android-rtmp-client/source/browse/trunk/example/com/ryong21/example/publisher/Publisher.java?r=4

It’s for slightly older version than 1.0 RC.

No, Wowza does not support .ts files for vod streaming.

Richard

It can work if you send a live mpegts stream to Wowza. See this guide:

https://www.wowza.com/docs/how-to-publish-and-play-a-live-stream-mpeg-ts-based-encoder)

Richard

Wowza doesn’t have anything like that, but you should be able to use VLC or ffmpeg

https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts)

https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts)

Richard

I can read the TS files and pull H.264 streams off the TS packets. I just need ability to stream H.264 over RTMP into Wowza in Java.

I think I need to clarify what I’m trying to do. I don’t have an encoder or live video camera. I have TS files that I need to use to create a live stream. This needs to happen in a java application. I am using FFMPEG for this now. But “-re” option forces “real-time” behavior which is not exactly what I want. The application that uses FFMPEG is written in Java. So I need to emulate what FFMPEG is doing to publish a stream in java - I need RTMP java library that would allow me to publish a live stream to Wowza. Does Wowza provide any java library for me to do that? Red5 does have a org.red5.server.stream.message.RTMPMessage and org.red5.server.stream.provider.FileProvider classes for me to follow as examples. I’m hoping for something similar in Wowza.