Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Silverlight smoothstreaming of mp3

  1. #1
    Join Date
    Apr 2010
    Posts
    7

    Default Silverlight smoothstreaming of mp3

    Hey,

    I have finally been able to set up Wowza to steam video (mp4) to flash, iphone and silverlight. The next natural step was to try with an mp3 file. The same setup can stream my test mp3 file to Flash and iPhone, but when I try via silverlight it doesn't work, and the manifest doesn't return anything useful.

    Code:
    <SmoothStreamingMedia MajorVersion="2" MinorVersion="0" Duration="0">
    </SmoothStreamingMedia>
    Application.xml
    Code:
    <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>default</StreamType>
    			<StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
    			<KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
    			<!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater -->
    			<LiveStreamPacketizers></LiveStreamPacketizers>			
    			<!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
    			<Properties>
    			</Properties>
    		</Streams>
    		<!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming -->
    		<HTTPStreamers>cupertinostreaming,smoothstreaming</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>digest</PlayMethod>
    			</Authentication>
    			<!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
    			<AVSyncMethod>senderreport</AVSyncMethod>
    			<MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
    			<IdleFrequency>25</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>
    			<!-- 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>
    			<Property>
    				<Name>smoothStreamingMediaMajorVersion</Name>
    				<Value>2</Value>
    				<Type>Integer</Type>
    			</Property>
    		</Properties>
    	</Application>
    </Root>
    Below is the smoothstream URL I'm using.

    http://wowza.server01.geckon.com:193...1.mp3/Manifest

    Any advice would be appreciated.

    Thanks

    - Jesper

  2. #2
    Join Date
    Dec 2007
    Posts
    25,638

    Default

    Jesper,

    hm, not sure. The Application.xml looks right, and the mp3 file plays in Flash. But the Manifest is empty.

    Check the logs for any Warnings or Errors.

    Also, try other mp3 files.

    Richard
    Last edited by rrlanham; 05-11-2010 at 12:30 PM.

  3. #3

    Default

    We do not support MP3 file streaming to Silverlight. We will add it at some point but for now it is not supported.

    Charlie

  4. #4
    Join Date
    Apr 2010
    Posts
    7

    Default

    Thanks for the quick replies.

    Okay I just assumed wowza would stream MP3 due to the wording of the Quick start guide

    Video

    * H.264

    Audio

    * AAC - AAC, AAC Low Complexity (AAC LC), High Efficiency AAC v1 and v2 (HE-AAC)
    * MP3
    Is there any audio format I can use then, that will stream to silverlight using wowza?

    Thanks

  5. #5

    Default

    Yes, AAC files in an MP4 container.

    Charlie

  6. #6
    Join Date
    Apr 2010
    Posts
    7

    Default

    Hey,

    I can see a patch has been released:

    WowzaMediaServer2.0.0-patch16.zip
    Added support for streaming H.264/MP3 streams to the iPhone/iPod touch/iPad (live and video on demand)
    Added support for streaming H.264/MP3 streams to Silverlight
    Added support for streaming H.264/MP3 streams to MPEG-TS
    Fixed NullPtr exception with RTSP/RTP streaming when rejecting a session
    Version: 2.0.0.16 build24317 (16 May 2010 12:10:00 PST)

    Does that mean it should be possible to stream mp3 now? and does it have to be in a mp4 container?

    /Jesper

  7. #7
    Join Date
    Dec 2007
    Posts
    25,638

    Default

    Yes, as stated, mp3 is supported for h.264 format, and in mp3 container.

    Richard

  8. #8
    Join Date
    Apr 2010
    Posts
    7

    Default

    Thank you for your answer.

    Then I have a problem somewhere, the following points to a mp3 file, but the manifest shows nothing:
    http://wowza.server01.geckon.com:193...1.mp3/Manifest

    When I do the same for one of the video files in the same folder, the manifest works fine.
    http://wowza.server01.geckon.com:193...s.m4v/Manifest

    The Application.xml is still the same as posted before.

    This is the version:
    Wowza Media Server 2 Developer 2.0.0.16 build24317

  9. #9
    Join Date
    Dec 2007
    Posts
    25,638

    Default

    I tried an mp3 file I have, and got the same results. It plays in Flash, but no Manifest.

    I inspected with Gspot, and it says the audio codec is " MPEG-1 Layer 3".

    The devbuild page for patch 16 says:
    Added support for streaming H.264/MP3 streams to Silverlight
    But MPEG-1 is not h.264.

    Check your MP3 file codec with Gspot:
    http://www.wowzamedia.com/forums/showthread.php?t=6292


    Richard

  10. #10
    Join Date
    Dec 2007
    Posts
    25,638

    Default

    Sorry, my mistake. MP3 is supported, but not in mp3 container. Has to be mp4 container for Silverlight.

    Richard

Page 1 of 2 12 LastLast

Tags for this Thread

Posting Permissions

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