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