Page 1 of 4 123 ... LastLast
Results 1 to 10 of 32

Thread: Video works in VLC but not in Flash or mobile

  1. #1
    Join Date
    Jul 2012
    Posts
    17

    Default Video works in VLC but not in Flash or mobile

    I have set up a test Wowza Media Server version 3.1.2. The feed being used is a live IP camera using udp and I am able to see the video using VLC.

    codec information:
    Audio: MPEG AAC Audio (mp4a)
    Video: H264 - MPEG-4
    Resolution: 640x480
    Frame Rate: 59.942390
    Decoded format: Planar 4:2:0 YUV

    When trying to view this via a browser using jwplayer I do not get an error, but I am not able to see the video. I have tested this same setup to view the sample.mp4 video and this worked fine. This is the code used:

    <script type="text/javascript">
    jwplayer('mediaplayer').setup({
    'id': 'BATBCam',
    'width': '480',
    'height': '270',
    'provider': 'rtmp',
    'autoplay': 'true',
    'streamer': 'rtmp://[IP of my server removed]:1935/live',
    'file': "camera.stream",
    'modes': [
    {type: 'flash', src: 'player.swf'},
    {
    type: 'html5',
    config:
    {
    'file': "http://[IP of my server removed]:1935/live/mp4:camera.stream/playlist.m3u8",
    provider: 'video'
    }
    }
    ]
    });
    </script>

    Any advice would be appreciated!

  2. #2
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Did you start the "camera.stream" in StreamManager? If Application.xml /StreamType is "live" then you have to do that. If you have only Flash RTMP clients, you can use StreamType "rtp-live", then not have to use StreamManager.

    To see what is going on while you test, run Wowza in stand-alone (/bin/startup.bat) mode so you can see log output in the console.

    Are you sure it is udp, most IP cameras publish to rtsp url
    http://www.wowza.com/forums/content....-re-streaming)

    Otherwise, follow this guide:
    http://www.wowza.com/forums/content....based-encoder)

    Richard

  3. #3
    Join Date
    Jul 2012
    Posts
    17

    Default

    Thank you for your quick reply...

    The stream is started and I can view it using a VLC viewer, I have tried with and without UDP, the server is unable to connect to the camera unless I set it to UDP.

    I have gone through the guide multiple times, and I have made all of the Flash adjustments recommended, nothing seems to make a difference.

  4. #4
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Starting the stream in StreamManager is another step in Wowza that is necessary if you are using StreamType "live":

    http://www.wowza.com/forums/content....Stream-Manager

    Run Wowza in stand-alone mode so you can see what is happening. When you start the stream you should see it start in the log output, when you try to play it from the Flash RTMP client you see log output. If you see nothing, then there is a connectivity problem, otherwise you will see log output either indicating success or some problem.

    Richard

  5. #5
    Join Date
    Jul 2012
    Posts
    17

    Default

    Yes, I understand that starting the stream in StreamManager is required... it has been started. I confirmed that is is started and working using the VLC player, there I can view the video and everything looks great.

    When I connect using a Flash player, I can see in the console that the connection is made, but no video is displayed in the Flash player.

  6. #6
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    You are playing the output from Wowza in VLC, or are you playing the source (the URL that is in camera.stream) in VLC?

    Is there messaging? There should be a x-event "connect" and x-event "play" when you playback from Flash RTMP client.

    Test in Wowza examples/LiveVideoStreaming/client/livevideostreaming.html

    Server: rtmp://[wowza-address]:1935/live
    Stream: camera.stream

    Richard

  7. #7
    Join Date
    Jul 2012
    Posts
    17

    Default

    I apologize, I should have been more clear, I am connecting to the stream from Wowza server using and RTSP connection, that works.

    I am seeing "WARN server comment.... Timecode out of order, then later Timecodes jumped back in time

  8. #8
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    I still can't tell if you are testing the output of Wowza in VLC or the source. If you are testing output of in VLC, what is the URL you are using, and what does VLC report in Tools > Codec info.

    Timecode out of order is a problem with the source. There isn't a way to fix it in Wowza.

    What camera model?

    Richard

  9. #9
    Join Date
    Jul 2012
    Posts
    17

    Default

    I am testing the output of Wowza using VLC, the connection is rtsp://[my ip]:1935/live/camera.stream

    codec information from VLC:
    Audio: MPEG AAC Audio (mp4a)
    Video: H264 - MPEG-4
    Resolution: 640x480
    Frame Rate: 59.942390
    Decoded format: Planar 4:2:0 YUV

    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.VHostConfigHome}/content</StorageDir>
    <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
    <!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater, sanjosestreamingrepeater -->
    <LiveStreamPacketizers>cupertinostreamingpacketizer,smoothstreamingpacketizer,sanjosestreamingpacket izer</LiveStreamPacketizers>
    <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
    <Properties>
    <Property>
    <Name>nalUnitFilter</Name>
    <Value>13</Value>
    <Type>Integer</Type>
    </Property>
    </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.VHostConfigHome}/transcoder/profiles</ProfileDir>
    <TemplateDir>${com.wowza.wms.context.VHostConfigHome}/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.VHostConfigHome}/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>
    <Property>
    <Name>rtpIgnoreProfileLevelId</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Property>
    <Property>
    <Name>videoIsAligned</Name>
    <Value>false</Value>
    <Type>Boolean</Type>
    </Property>
    </Properties>
    </RTP>
    <MediaCaster>
    <RTP>
    <RTSP>
    <!-- udp, interleave -->
    <RTPTransportMode>udp</RTPTransportMode>
    </RTSP>
    </RTP>
    <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
    <Properties>
    <Property>
    <Name>rtspFilterUnknownTracks</Name>
    <Value>true</Value>
    <Type>Boolean</Type>
    </Property>
    <Property>
    <Name>rtspValidationFrequency</Name>
    <Value>0</Value>
    <Type>Integer</Type>
    </Property>
    </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>

  10. #10
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    Does it work with Wowza player: examples/LiveVideoStreaming/client/livevideostreaming.html

    Server: rtmp://[wowza-address]:1935/live
    Stream: camera.stream

    Richard

Page 1 of 4 123 ... LastLast

Similar Threads

  1. RTSP link works on VLC but not on Set-Top-Box
    By tinkerbell in forum Media Players and Devices Discussion
    Replies: 6
    Last Post: 06-17-2015, 02:13 AM
  2. AIR Mobile Live channel DVR URL not working on iPhone but works on all android phones
    By irfanadil in forum Wowza Streaming Engine functionality
    Replies: 0
    Last Post: 03-06-2014, 05:27 AM
  3. Live Streaming issue using RTMP, HTTP mobile works fine
    By Mccredible55 in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 10-10-2013, 10:37 AM
  4. Live streaming that works for both mobile and desktop inquiry
    By stevefink in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 10-06-2013, 05:18 PM
  5. RTSP stream works in VLC but not HLC in VLC
    By craigvansant in forum Live Streaming and Encoder Discussion
    Replies: 10
    Last Post: 01-11-2013, 04:50 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •