Results 1 to 9 of 9

Thread: Separate images and audio

  1. #1
    Join Date
    Aug 2012
    Posts
    5

    Default Separate images and audio

    Is there any way i can separate audio and images ?

    I want to receive audio only in MP3 format and image stream in jpeg or png format

    I'm using Adobe Flash Media Live Encoder to stream to localhost/live but when i try to get an image from it from this URL:
    http://localhost:8086/transcoderthum...g&size=320x240

    In the console it says: WARN server comment - HTTPTranscoderThumbnail.onHTTPRequest[live/_definst_/myStream]: Live stream encoder not found

    And what is the url to get audio only ?


    Thanks.

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You have to be running the Wowza Transcoder and actively transcoding the stream you want to extract images from. There is another technique that does not involve the Transcoder
    http://www.wowza.com/forums/content....-live-streams)

    You can get audio only in a Flash RTMP client by doing netstream.receiveVideo(false), and there is a server-side equivalent: IMediaStream.receiveVideo(false) which you could invoke in play command in a Wowza module
    http://www.wowza.com/forums/content....-override-play

    Richard

  3. #3
    Join Date
    Aug 2012
    Posts
    5

    Default

    Hi,

    Here is my live Application.xml file:

    <Root>
    	<Application>
    		<Connections>
    			<AutoAccept>true</AutoAccept>
    			<AllowDomains></AllowDomains>
    		</Connections>
    		<Streams>
    			<StreamType>live</StreamType>
    			<StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
    			<KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
    			<LiveStreamPacketizers>cupertinostreamingpacketizer,smoothstreamingpacketizer,sanjosestreamingpacketizer</LiveStreamPacketizers>
    			<Properties>
    			</Properties>
    		</Streams>
    		<Transcoder>
    			<LiveStreamTranscoder>transcoder</LiveStreamTranscoder>
    			<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>
    			<Recorders></Recorders>
    			<Store></Store>
    			<WindowDuration>0</WindowDuration>
    			<StorageDir>${com.wowza.wms.context.VHostConfigHome}/dvr</StorageDir>
    			<ArchiveStrategy>append</ArchiveStrategy>
    			<Repeater>
    				<ChunkOriginURL></ChunkOriginURL>
    			</Repeater>
    			<Properties>
    			</Properties>
    		</DVR>
    		<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>
    			<Authentication>
    				<PublishMethod>digest</PublishMethod>
    				<PlayMethod>none</PlayMethod>
    			</Authentication>
    			<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>
    			</Properties>
    		</RTP>
    		<MediaCaster>
    			<RTP>
    				<RTSP>
    					<RTPTransportMode>interleave</RTPTransportMode>
    				</RTSP>
    			</RTP>
    			<Properties>
    			</Properties>
    		</MediaCaster>
    		<MediaReader>
    			<Properties>
    			</Properties>
    		</MediaReader>
    		<MediaWriter>
    			<Properties>
    			</Properties>
    		</MediaWriter>
    		<LiveStreamPacketizer>
    			<Properties>
    			</Properties>
    		</LiveStreamPacketizer>
    		<HTTPStreamer>
    			<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>
    		</Properties>
    	</Application>
    </Root>

    WARN	server	comment	2012-08-13	15:25:25	-	-	-	-	-	99.625	-	-	-	-	-	-	-	-	HTTPTranscoderThumbnail.onHTTPRequest[live/_definst_/myStream]: Live stream encoder not found
    I have it set to transcoder but still no luck

    And for audio i need mp3 streaming not through flash

    Thanks.
    Last edited by cigraphics; 08-13-2012 at 05:27 AM.

  4. #4
    Join Date
    Aug 2012
    Posts
    5

    Default

    I solved the image problem it was from java i had the 32 bit version.

    Now i need to have direct mp3 streaming i there any way to do it or i have to write a plugin in java to stream on another port ?

  5. #5
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    You can stream live stream that contains only mp3 audio track in a live application (StreamType "live") without special configuration, no plugin needed.

    You can stream mp3 files in vod application, StreamType "default". Use "mp3:" prefix. Test in Wowza examples/SimpleVideoStreaming/client/simplevideostreaming.html

    Server: rtmp://[wowza-address]:1935/vod
    Stream: mp3:yourSong.mp3

    Richard

  6. #6
    Join Date
    Aug 2012
    Posts
    5

    Default

    I need http streaming not rtmp because i can't use flash on iPhone
    I want to use it with <audio> tag

    i tested aac streaming on iphone and it works now i have to make it work in audio tag but what's the url to get http stream from live. I use adobe media live encoder
    Last edited by cigraphics; 08-20-2012 at 05:41 AM.

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    If you are using a smil file, use video tag for mp3 also. There is not a audio tag supported in Wowza. Use mp3: prefix in here also

    Richard

  8. #8
    Join Date
    Aug 2012
    Posts
    5

    Default

    Okay,

    Let me exaplain exactly what i done by now:

    I used the HTTPTranscoderThumbnail to get a stream of images from live

    $ch = curl_init('http://localhost:8086/transcoderthumbnail?application=live&streamname=test&format=jpeg&size=320x240');
    curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
    curl_setopt($ch, CURLOPT_HEADER, 0);
    $d = curl_exec($ch);
    echo 'data:image/jpeg;base64,'.base64_encode($d);
    Now i need to take audio only from live to add it to audio tag. I took an aac stream from a radio and added it to audio tag and it worked. I want to get the same stream in wowza if that is possible.

    <audio id="play" preload="none" controls="controls" src="http://localhost:1935/live/test/playlist.m3u8"></audio>

  9. #9
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    This is how to extract the audio from a live stream for iOS:

    http://www.wowza.com/forums/content....pliant-streams

    Richard

Similar Threads

  1. Separate H.264 and audio capture
    By meth0d in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 12-13-2012, 07:11 AM
  2. live streaming question - possible with separate audio source?
    By sinkazsu in forum Live Streaming and Encoder Discussion
    Replies: 2
    Last Post: 07-21-2012, 02:15 AM
  3. Extracting audio as a separate mp3 file from live stream
    By Ovais Ashraf in forum Live Streaming and Encoder Discussion
    Replies: 4
    Last Post: 06-06-2012, 11:37 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
  •