Wowza Community

how to transcode various Web TV (ASX, HTTP, MMS, etc.) simultaneously?

Hello everyone,

I am new to WOWZA. I read some documentation.

My goal is to transcode the same time, in real time, many IPTV and then obtain an output signals compatible with Android.

Through the control panel (http://[wowza-address]:8086/streammanager), I have successfully transcoded dozens of addresses RTMP simultaneously (To do this I followed this guide: https://www.wowza.com/docs/how-to-re-stream-an-unprotected-stream-from-adobe-media-server-or-a-cdn)

Now I have a problem! I have to transcode tv channel format like MMS, ASX, etc. …

I read that Wowza does not support these formats.

So I installed VLC and I followed this guide: https://www.wowza.com/docs/how-to-use-vlc-as-a-live-stream-encoder-with-wowza-media-server-mpeg-ts

I was able to successfully transcode a single channel MMS.

My question is: how do I transcode multiple channels (video format MMS, ASX etc. …) and then pass them to Wowza?

I would administer all the channels from the control panel Wowza

thanks for any response

Note: Sorry for my bad English but I am Italian

Hello,

Your English is very good. You can use VLC to transcode to H.264 and then create a .stream file containing the url for the stream which you’ll start in Stream Manager. You could have multiple instances of VLC and point to multiple Wowza applications.

Once you’ve tested your setup, you may want to use StartupStreams.xml instead to configure and publish your streams. See this article for more information, https://www.wowza.com/docs/how-to-start-streams-at-server-startup

-Lisa

Sounds like you are doing it right as far as starting streams and playing them back. The ugly result is probably a result of bandwidth limitations. Try with one stream, and try each of the different streams one at a time. If they are all okay one at a time or at least much better than with two at a time, that indicates bandwidth problem between VLC and Wowza.

Also, test with Wowza LiveVideoStreaming Flash player running on same server or lan, to see how the streams are playing factoring out Android.

Richard

I can’t really help with VLC at that level, I’m not sure. If I am right, it is a bandwidth problem.

Start Wowza as a service for it to start on reboot

Richard

Hi

For each VLC instance that you run, you should set a different port because now they all try and run off port 10000.

You should make them like this:

Channel 1 = Port 10010

Channel 2 = Port 10020

Channel 3 = Port 10030

Channel 4 = Port 10040

You will also have to change your stream files accordingly.

Jason

thanks for the answer! I did not know this file “StartupStreams.xml”. It is very useful!

I did a test. For example, I have two channels RTMP format, transcode to Android:

channel 1: rtmp://cp86825.live.edgefcs.net/live/cielo_std@17630

channel 2: rtmp://rtl-livestream4me.weebo.it/live/radiovisione_02

This is the procedure I followed:

-I create a folder named application “live”

-I create a folder named Configuration “live” and inside I copy the file “application.xml”

-Setting up the file “application.xml” according to the guide: https://www.wowza.com/docs/how-to-re-stream-an-unprotected-stream-from-adobe-media-server-or-a-cdn

-In the folder “content” I create two files: channel1.stream and channel2.stream. In these two files I post the web addresses of the two-channel format RTMP

-I have modified the file “StartupStreams.xml” adding that:

live/definst

liverepeater

channel1.stream

live/definst

liverepeater

channel2.stream

-Through my Android phone, I launched the addresses: rtsp://IpMyServer:1935/live/channel1.stream and rtsp://IpMyServer:1935/live/channel2.stream

-It works! Perfect! The channels can be seen very well!

Now, I want to transcode two-channel format is not compatible with Wowza. So I use VLC.

For example:

channel 3: http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=1

channel 4: mms://67.205.74.37/telereggio

-From the command line of my server I write:

vlc -vvv “http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=1” --sout “#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=IpMyServer,port=10000,mux=ts}”

and then:

vlc -vvv “mms://67.205.74.37/telereggio” --sout “#transcode{venc=x264{keyint=60,profile=baseline,level=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,acodec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{dst=IpMyServer,port=10000,mux=ts}”

-In the folder “content” I create two files: channel3.stream and channel4.stream. Now I believe that something wrong here. In these two files I put in the same address: udp: / / 0.0.0.0:10000

-I modified the file “StartupStreams.xml” adding that:

live/definst

rtp

channel3.stream

live/definst

rtp

channel4.stream

-Finally, through my Android phone, I launched the addresses: rtsp://IpMyServer:1935/live/channel3.stream and rtsp://IpMyServer:1935/live/channel4.stream . This time do not work!. But if I do this process with vlc for one channel, it works. But I need to do for so many channels simultaneously.

I maybe I was wrong to set the file contents: “channel3.stream” and “channel4.stream”?

Can anyone help me?

thank you very much

Thanks for the reply! So I did this:

-Inside the the file “channel3.stream” I put “udp://0.0.0.0:10010

-Inside the file “channel4.stream” I put “udp://0.0.0.0:10020

-Then, from the command line of my server I write:

vlc -vvv “http://mediapolis.rai.it/relinker/relinkerServlet.htm?cont=1” --sout “#transcode{venc=x264{keyint=60,profile=baseline,l evel=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,aco dec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{ds t=IpMyServer,port=10010,mux=ts}”

and then:

vlc -vvv “mms://67.205.74.37/telereggio” --sout “#transcode{venc=x264{keyint=60,profile=baseline,l evel=3.0,nocabac},vcodec=x264,vb=150,scale=0.5,aco dec=mp4a,ab=96,channels=2,samplerate=48000}:rtp{ds t=IpMyServer,port=10020,mux=ts}”

-Finally, through my Android phone, I launched the addresses: rtsp://IpMyServer:1935/live/channel3.stream and rtsp://IpMyServer:1935/live/channel4.stream

Final result: 2 channels look ugly. Sometimes the video or audio from one channel will not start. If I try to stop and leave the other one, it works well.

The procedure is right? I’m doing wrong?

Thanks

Thank you for answer! Two last questions:

-How do I run two, three, four, etc. VLC instances simultaneously from the command line? It is also possible to start automatically each time you reboot the server, all instances of transcoding with VLC?

-How do I start Wowza automatically at every reboot?

Thanks for the help