re-streaming from VLC

Hi Everyone,

need someone’s help!

I’m trying to make a re-streamnig from vlc player.

I do the following:

  1. make stream in VLC on the base of some video

  2. make configuration for file *.stream and start live in wowza

  3. start RTMP player and fill the proper values however RTMP player doesn’t play anything.

Can anyone to explain what’s wrong?

Denis

Run Wowza in stand-alone (/bin/startup.bat) mode and test. What do you see in the console?

Richard

Take a look at these guides, which show what we recommend for streaming from VLC using mpeg-ts:

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-publish-and-play-a-live-stream-mpeg-ts-based-encoder

Richard

Denis,

RTSP (for example rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov) → 2. VLC (just re-streaming) → 3. Wowza (re-streaming) - 4. VLC , final client.

This looks like you are doing Wowza > VLC > Wowza > VLC. I don’t see a camera in this workflow. The camera.stream file would typically contain an rtsp url to a camera source, now Wowza.

Richard

Denis,

If the goal is to get that camera on working, we should work on that directly. Is it on a public IP? Can you play it in VLC directly? In VLC, play the rtsp url to the camera and look at Tools > Codec info. What is the audio and video codec info?

Richard

Denis,

So let’s keep focused on the camera and transcoding. At the bottom of this article are examples of how to transcode with VLC:

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

You will use the RTSP url you played in VLC as the input. This creates an mpeg-ts stream that you will re-stream in Wowza following this guide:

https://www.wowza.com/docs/how-to-dynamically-switch-between-rtp-and-mpeg-ts-when-streaming-rtsp

Richard

There is probably a bandwidth bottleneck somewhere between the player and Wowza. Try a lower bitrate.

Richard

DenisY, you might try to adjust your [install-dir]/conf/[app-name]/Application.xml file and change the from 12000 to 13000, and/or from 90000 to 0 (zero)

Salvadore

Hi, Richard!

thanks for reply.

I did it and didn’t find anything strange.

here is a logging frame:

server: VLC/2.0.5 - - - 66526.784 - - - - - - -

date: Wed, 24 Apr 2013 12:15:54 GMT - - - 66526.784 - -

content-type: application/sdp - - - 66526.784 - - - -

content-base: rtsp://192.168.110.130:8554/den - - - 66526.784

content-length: 696 - - - 66526.785 - - - - - -

cache-control: no-cache - - - 66526.785 - - - - -

cseq: 2 - - - 66526.785 - - - - - - - - -

uri: RTSP/1.0 200 OK - - - 66526.785 - - - - - -

protocol: RTSP/1.0 - - - 66526.785 - - - - - -

status: 200 - - - 66526.785 - - - - - - - -

response: OK - - - 66526.785 - - - - - - - -

server: VLC/2.0.5 - - - 66526.785 - - - - - - -

date: Wed, 24 Apr 2013 12:15:54 GMT - - - 66526.786 - -

content-type: application/sdp - - - 66526.786 - - - -

content-base: rtsp://192.168.110.130:8554/den - - - 66526.786

content-length: 696 - - - 66526.786 - - - - - -

cache-control: no-cache - - - 66526.786 - - - - -

cseq: 2 - - - 66526.786 - - - - - - - - -

*** RTSPMessageReceive ***

RTSP/1.0 200 OK

cache-control: no-cache

content-type: application/sdp

response: OK

protocol: RTSP/1.0

cseq: 2

status: 200

content-length: 696

content-base: rtsp://192.168.110.130:8554/den

server: VLC/2.0.5

date: Wed, 24 Apr 2013 12:15:54 GMT

uri: RTSP/1.0 200 OK

2013-04-25 08:05:58 ALMT comment server DEBUG 200 - v=0

o=- 15357920667673772645 15357920667673772645 IN IP4 ubuntu

s=Unnamed

i=N/A

c=IN IP4 0.0.0.0

t=0 0

a=tool:vlc 2.0.5

a=recvonly

a=type:broadcast

a=charset:UTF-8

a=control:rtsp://192.168.110.130:8554/den

m=video 0 RTP/AVP 96

b=RR:0

a=rtpmap:96 H264/90000

a=fmtp:96 packetization-mode=1;profile-level-id=42c01e;sprop-parameter-sets=Z0LAHpZiA2P8vCAAAAMAIAAABgHixck=,aMuMsg==;

a=control:rtsp://192.168.110.130:8554/den/trackID=0

m=audio 0 RTP/AVP 96

b=RR:0

a=rtpmap:96 mpeg4-generic/48000/2

a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1190; SizeLength=13; IndexLength=3; IndexDeltaLength=3; Profile=1;

a=control:rtsp://192.168.110.130:8554/den/trackID=1

      • 66526.786 - - - - - - - - - - - - - - - - - - - - - - - - -

2013-04-25 08:05:58 ALMT comment server DEBUG 200 - DESCRIBE: SDP: trackCount:2 trackNames:[rtsp://192.168.110.130:8554/den/trackID=0,header,rtsp://192.168.110.130:8554/den/trackID=1] - - - 66526.787 - - - - - - - - - - - - - - - - - - - - - - - - -

2013-04-25 08:05:58 ALMT comment server DEBUG 200 - *** RTSPMessageSend ***

SETUP rtsp://192.168.110.130:8554/den/trackID=0 RTSP/1.0

Transport: RTP/AVP/TCP;unicast;interleaved=0-1

CSeq: 3

      • 66526.787 - - - - - - - - - - - - - - - - - - - - - - - - -

2013-04-25 08:05:58 ALMT comment server DEBUG 200 - RTPSessionDescriptionDataProviderBasicRTSPWorker.send: command:SETUP

SETUP rtsp://192.168.110.130:8554/den/trackID=0 RTSP/1.0

Transport: RTP/AVP/TCP;unicast;interleaved=0-1

CSeq: 3

and here is the logging after I start FlashRTMPPlayer:

RTPSessionDescriptionDataProviderBasicRTSPWorker.processResponse: command:PLAY respo

LivePlayer.rsend[live/definst/camera.stream]: rt:783 - - - 301.378 - -

send[288021509]: size:0:0 filter:7 time:0 tOffset:0 rwrt:true - - - 301.378

LivePlayer.rsend[live/definst/camera.stream]: rt:255 - - - 301.633 - -

send[288021509]: size:0:0 filter:7 time:255 tOffset:0 rwrt:true - - - 301.633

LivePlayer.rsend[live/definst/camera.stream]: rt:255 - - - 301.888 - -

send[288021509]: size:0:0 filter:7 time:255 tOffset:0 rwrt:true - - - 301.889

LivePlayer.rsend[live/definst/camera.stream]: rt:255 - - - 302.143 - -

send[288021509]: size:0:0 filter:7 time:257 tOffset:0 rwrt:true - - - 302.145

LivePlayer.rsend[live/definst/camera.stream]: rt:255 - - - 302.398 - -

send[288021509]: size:0:0 filter:7 time:254 tOffset:0 rwrt:true - - - 302.399

LivePlayer.rsend[live/definst/camera.stream]: rt:259 - - - 302.657 - -

send[288021509]: size:0:0 filter:7 time:259 tOffset:0 rwrt:true - - - 302.658

LivePlayer.rsend[live/definst/camera.stream]: rt:257 - - - 302.915 - -

send[288021509]: size:0:0 filter:7 time:257 tOffset:0 rwrt:true - - - 302.916

LivePlayer.rsend[live/definst/camera.stream]: rt:259 - - - 303.173 - -

send[288021509]: size:0:0 filter:7 time:258 tOffset:0 rwrt:true - - - 303.173

LivePlayer.rsend[live/definst/camera.stream]: rt:256 - - - 303.429 - -

send[288021509]: size:0:0 filter:7 time:256 tOffset:0 rwrt:true - - - 303.429

LivePlayer.rsend[live/definst/camera.stream]: rt:256 - - - 303.685 - -

send[288021509]: size:0:0 filter:7 time:256 tOffset:0 rwrt:true - - - 303.686

LivePlayer.rsend[live/definst/camera.stream]: rt:256 - - - 303.941 - -

send[288021509]: size:0:0 filter:7 time:257 tOffset:0 rwrt:true - - - 303.942

LivePlayer.rsend[live/definst/camera.stream]: rt:256 - - - 304.198 - -

send[288021509]: size:0:0 filter:7 time:256 tOffset:0 rwrt:true - - - 304.198

so…you can see that nothing strange or I wrong? )

Denis

Hi Richard,

many thanks, it works. but I have to resolve something different:

  1. RTSP (for example rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov) -> 2. VLC (just re-streaming) -> 3. Wowza (re-streaming) - 4. VLC , final client.

1->2 works

2->3 doesn’t work

I filled “rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov” in *.stream file. Started live and have following logs:

RTPMediaCaster.Reconnector[1842130206:live/definst:camera1.stream]: done: 37 -

server: VLC/2.0.5 - - - 500.452 - - - - - - - - - - -

date: Sun, 28 Apr 2013 07:26:13 GMT - - - 500.453 - - - - - -

content-length: 0 - - - 500.453 - - - - - - - - - - -

cache-control: no-cache - - - 500.453 - - - - - - - - -

cseq: 5 - - - 500.453 - - - - - - - - - - - - -

uri: RTSP/1.0 200 OK - - - 500.453 - - - - - - - - - -

protocol: RTSP/1.0 - - - 500.453 - - - - - - - - - -

status: 200 - - - 500.454 - - - - - - - - - - - -

response: OK - - - 500.454 - - - - - - - - - - - -

server: VLC/2.0.5 - - - 500.454 - - - - - - - - - - -

date: Sun, 28 Apr 2013 07:26:13 GMT - - - 500.454 - - - - - -

content-length: 0 - - - 500.454 - - - - - - - - - - -

cache-control: no-cache - - - 500.454 - - - - - - - - -

cseq: 5 - - - 500.454 - - - - - - - - - - - - -

*** RTSPMessageReceive ***

LivePlayer.rsend[live/definst/camera1.stream]: rt:255 - - - 512.466 - - - - - - - -

send[807883211]: size:0:0 filter:7 time:256 tOffset:0 rwrt:true - - - 512.467 - - - - - -

RTPMediaCaster.streamTimeout[1842130206:live/definst:camera1.stream]: timeout:12000 diff:12018 reason:101

RTPMediaCaster.resetConnection[1842130206:live/definst:camera1.stream]: - - - 512.587 - - -

RTPMediaCaster.closeRTPSession[1842130206:live/definst:camera1.stream] - - - 512.588 - - -

*** RTSPMessageSend ***

why timeout? what’s the reason 101?

pls help

Denis

Salvadore,

made the adjustment, but nothing changed. I found other message in log:

uri: RTSP/1.0 461 Unsupported transport

What does it mean?

by the way the VLC as a final client marked in log the following:

main error: open of `rtsp://192.168.110.129:1935/live/camera1.stream’ failed

Denis

Richard,

I have IP vga camera.

After the first configuration (according to “How to re-stream video from an IP camera”) I didn’t get the result.

I supposed that the codec isn’t proper for Wowza. So… I decided to check the authentic RTSP stream with codec that proper for Wowza…that’s why I took the rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov instead of real ip camera.

In any way whether the real cam or generated RTSP I got just RTSP stream that can be processed by Wowza like from real cam. or I wrong?

Denis

Richard,

my cam has no public IP.

I can play it in VLC.

codec is MPEG part 2.

I found in tutorial (https://www.wowza.com/docs/how-to-re-stream-video-from-an-ip-camera-rtsp-rtp-re-streaming) that MPEG has to be part 10 and if you has different part you need to transcoded rtsp by VLC. I tried it and got nothing. so I decided to check real rtsp (rtsp://184.72.239.149/vod/mp4:BigBuckBunny_115k.mov).

Denis

Richard,

thank you very much. It works!

but why there is a delay? … about 3 minutes and more…and the delay is growing (

Denis