-
Problem publish video streaming from ip camera to website
Hello,
I need help to publishing video streaming from IP Camera to website using JWPlayer.
IP Camera can be viewed using VLC Player. Bellow some information may be needed.
1. VLC Player URL : rtsp://120.29.156.228/cam1/h264
2. Stream Name : camera.stream
Content of file camera.stream : rtsp://120.29.156.228/cam1/h264
3. VLC Codec Information:
Stream 0
Type: Video
Codec: H264 - MPEG-4 AVC (part10) (h264)
Resolution: 640x480
Decodec format: Planar 4:2:0 YUV
4. JWPlayer Script:
<script src="jwplayer.js" type="text/javascript"></script>
<div id="livecam"></div>
<script type="text/javascript">
jwplayer('livecam').setup({
'flashplayer': 'player.swf',
'file': 'camera.stream',
'streamer': 'rtmp://119.235.255.66:1935/livecam',
'autostart': 'true',
'controlbar': 'bottom',
'stretching': 'exactfit',
'width': '640',
'height': '352'
});
</script>
5. IP Camera Type :
2Megapixel/H.264/720P Real-Time/IR/Vari-Focal
N6076 Bullet Network Camera
6. Official Product Website : http://www.3svision.com.tw/prod_info.php?pid=46
7. IP Camera Spesification :
2 Megapixel 1/3” CMOS Sensor in High Resolution
H.264/MJPEG Dual Codec & Streaming simultaneously
Vari-Focal Lens 3mm-10mm F1.6
UXGA (1600x1200@15fps)/WXGA (1280x720@30fps)
Digital I/O for External Sensor and Alarm
Mechanical ICR
Built-in IR Illuminator
3D Noise Reduction
2 Way Audio Supported
Intelligent Video Analytics
3GPP Supported
IP 68 Water+Vandal Proof
PoE Power Over Ethernet IEEE802.3af (Option)
Micro SD Card Supported (SDHC up to 32GB)
8. Content of Application.xml
<Root>
<Application>
<!-- Uncomment to set application level timeout values
<ApplicationTimeout>60000</ApplicationTimeout>
<PingTimeout>12000</PingTimeout>
<ValidationFrequency>8000</ValidationFrequency>
<MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
<MaximumSetBufferTime>60000</MaximumSetBufferTime>
<MaximumStorageDirDepth>25</MaximumStorageDirDepth>
-->
<Connections>
<AutoAccept>true</AutoAccept>
<AllowDomains></AllowDomains>
</Connections>
<!--
StorageDir path variables
${com.wowza.wms.AppHome} - Application home directory
${com.wowza.wms.ConfigHome} - Configuration home directory
${com.wowza.wms.context.VHost} - Virtual host name
${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory
${com.wowza.wms.context.Application} - Application name
${com.wowza.wms.context.ApplicationInstance} - Application instance name
-->
<Streams>
<StreamType>live</StreamType>
<StorageDir>${com.wowza.wms.context.VHostConfigHom e}/content</StorageDir>
<KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
<!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater, sanjosestreamingrepeater -->
<LiveStreamPacketizers>cupertinostreamingpacketize r, smoothstreamingpacketizer, sanjosestreamingpacketizer</LiveStreamPacketizers>
<!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
<Properties>
</Properties>
</Streams>
<Transcoder>
<!-- To turn on transcoder set to: transcoder -->
<LiveStreamTranscoder></LiveStreamTranscoder>
<!-- [templatename].xml or ${SourceStreamName}.xml -->
<Templates>${SourceStreamName}.xml,transrate.xml </Templates>
<ProfileDir>${com.wowza.wms.context.VHostConfigHom e}/transcoder/profiles</ProfileDir>
<TemplateDir>${com.wowza.wms.context.VHostConfigHo me}/transcoder/templates</TemplateDir>
<Properties>
</Properties>
</Transcoder>
<DVR>
<!-- As a single server or as an origin, use dvrstreamingpacketizer in LiveStreamPacketizers above -->
<!-- Or, in an origin-edge configuration, edges use dvrstreamingrepeater in LiveStreamPacketizers above -->
<!-- As an origin, also add dvrchunkstreaming to HTTPStreamers below -->
<!-- To turn on DVR recording set Recorders to dvrrecorder. This works with dvrstreamingpacketizer -->
<Recorders></Recorders>
<!-- As a single server or as an origin, set the Store to dvrfilestorage-->
<!-- edges should have this empty -->
<Store></Store>
<!-- Window Duration is length of live DVR window in seconds. 0 means the window is never trimmed. -->
<WindowDuration>0</WindowDuration>
<!-- Storage Directory is top level location where dvr is stored. e.g. c:/temp/dvr -->
<StorageDir>${com.wowza.wms.context.VHostConfigHom e}/dvr</StorageDir>
<!-- valid ArchiveStrategy values are append, version, delete -->
<ArchiveStrategy>append</ArchiveStrategy>
<!-- If this is a dvrstreamingrepeater, define ChunkOriginURL to point back to origin -->
<!-- And define Application/Repeater/OriginURL to point back to the origin -->
<Repeater>
<ChunkOriginURL></ChunkOriginURL>
</Repeater>
<!-- Properties for DVR -->
<Properties>
</Properties>
</DVR>
<!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming, sanjosestreaming, dvrchunkstreaming -->
<HTTPStreamers>cupertinostreaming,smoothstreaming, sanjosestreaming</HTTPStreamers>
<SharedObjects>
<StorageDir></StorageDir>
</SharedObjects>
<Client>
<IdleFrequency>-1</IdleFrequency>
<Access>
<StreamReadAccess>*</StreamReadAccess>
<StreamWriteAccess>*</StreamWriteAccess>
<StreamAudioSampleAccess></StreamAudioSampleAccess>
<StreamVideoSampleAccess></StreamVideoSampleAccess>
<SharedObjectReadAccess>*</SharedObjectReadAccess>
<SharedObjectWriteAccess>*</SharedObjectWriteAccess>
</Access>
</Client>
<RTP>
<!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
<Authentication>
<PublishMethod>digest</PublishMethod>
<PlayMethod>none</PlayMethod>
</Authentication>
<!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
<AVSyncMethod>senderreport</AVSyncMethod>
<MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
<IdleFrequency>75</IdleFrequency>
<RTSPSessionTimeout>90000</RTSPSessionTimeout>
<RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>
<RTSPBindIpAddress></RTSPBindIpAddress>
<RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>
<RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>
<IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>
<!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->
<Properties>
</Properties>
</RTP>
<MediaCaster>
<RTP>
<RTSP>
<!-- udp, interleave -->
<RTPTransportMode>interleave</RTPTransportMode>
</RTSP>
</RTP>
<!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
<Properties>
</Properties>
</MediaCaster>
<MediaReader>
<!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->
<Properties>
</Properties>
</MediaReader>
<MediaWriter>
<!-- Properties defined here will override any properties defined in conf/MediaWriter.xml for any MediaWriter loaded by this applications -->
<Properties>
</Properties>
</MediaWriter>
<LiveStreamPacketizer>
<!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
<Properties>
</Properties>
</LiveStreamPacketizer>
<HTTPStreamer>
<!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
<Properties>
</Properties>
</HTTPStreamer>
<Repeater>
<OriginURL></OriginURL>
<QueryString><![CDATA[]]></QueryString>
</Repeater>
<Modules>
<Module>
<Name>base</Name>
<Description>Base</Description>
<Class>com.wowza.wms.module.ModuleCore</Class>
</Module>
<Module>
<Name>properties</Name>
<Description>Properties</Description>
<Class>com.wowza.wms.module.ModuleProperties</Class>
</Module>
<Module>
<Name>logging</Name>
<Description>Client Logging</Description>
<Class>com.wowza.wms.module.ModuleClientLogging</Class>
</Module>
<Module>
<Name>flvplayback</Name>
<Description>FLVPlayback</Description>
<Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
</Module>
</Modules>
<!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
<Properties>
</Properties>
</Application>
</Root>
First of all thank you for help me solve this problem.
-
You didn't mention the problem. The guide for re-streaming IP cameras is here:
http://www.wowza.com/forums/content....-re-streaming)
Did you start "camera.stream" in StreamManager?
Richard
-
I have started camera.stream in StreamManager and select rtp in Media Caster Type but there is nothing display di website with jwplayer as web player. Only rotating indocator. Please help me to solve this problem or what I am missing.
Last edited by indostreamserver; 05-24-2012 at 08:24 PM.
-
Same problem, exactly !
Just tried to change stream source from IP camera to VLC Streamer, no luck, blank screen and rotating indicator
below - Wowza log
INFO server comment - RTPSessionTracker.add[rtsp://127.0.0.1:8554/]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.b uildSDPD
ata: sessionId:null sessionTimeout:0
INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamIn fo[live/
_definst_]: RTSP/RTP re-streaming. Success, received SDP data.
INFO stream create - -
INFO stream publish camera.stream -
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.s essionSt
art: PLAY: rtsp://127.0.0.1:8554/
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.p rocessRe
sponse: PLAY: rtsp://127.0.0.1:8554/
INFO server comment - RTPMediaCaster.Reconnector[32706681:live/_definst_:camera.
stream]: done: 16
INFO server comment - RTPMediaCaster.streamTimeout[32706681:live/_definst_:camer
a.stream]: timeout:12000 diff:12016 reason:101
INFO server comment - RTPMediaCaster.resetConnection[32706681:live/_definst_:cam
era.stream]:
INFO server comment - RTPMediaCaster.closeRTPSession[32706681:live/_definst_:cam
era.stream]
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.c lose clo
seSession
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.o nClose
INFO server comment - RTPSessionTracker.remove[rtsp://127.0.0.1:8554/]: 0:true
INFO stream unpublish camera.stream -
INFO stream destroy camera.stream -
INFO server comment - RTPMediaCaster.Reconnector[32706681:live/_definst_:camera.
stream]: start: 17
INFO server comment - RTPSessionTracker.add[rtsp://127.0.0.1:8554/]: 1
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.b uildSDPD
ata: sessionId:null sessionTimeout:0
INFO server comment - RTPSessionDescriptionDataProviderBasic.getStreamIn fo[live/
_definst_]: RTSP/RTP re-streaming. Success, received SDP data.
INFO stream create - -
INFO stream publish camera.stream -
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.s essionSt
art: PLAY: rtsp://127.0.0.1:8554/
INFO server comment - RTPSessionDescriptionDataProviderBasicRTSPWorker.p rocessRe
sponse: PLAY: rtsp://127.0.0.1:8554/
INFO server comment - RTPMediaCaster.Reconnector[32706681:live/_definst_:camera.
stream]: done: 17
-
I am having the same problem as @gad.
May you please check this out and reply to this post?
-
These log messages show that Wowza was not able to connect to the source. An IP camera is not usually at 127.0.0.1, it would be another IP address on your LAN or public IP that you can reach.
Richard
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules