Results 1 to 6 of 6

Thread: amlst 2 stream videos and audioonly

  1. #1

    Default amlst 2 stream videos and audioonly

    Hi this is possible to have one 2 streams video and one stream audio only...?? (playlist.m3u8)


    And If i don't have enough bandwith change from video to audio only.

    This is possible?


    I create a MediListRendition with


    MediaListRendition rendition1 = new MediaListRendition();
    rendition1.setName("mp4:" + "file/bigbuckbunny" + "_750.mp4");
    rendition1.setWowzaAudioOnly(true);


    But not working...

    Thanks

  2. #2
    Join Date
    Sep 2011
    Posts
    1,933

    Default

    Hi
    Yes it's possible, try checking the output of the .smil file that you're using.

    Jason

  3. #3

    Default

    Quote Originally Posted by JasonH View Post
    Hi
    Yes it's possible, try checking the output of the .smil file that you're using.

    Jason
    I'm using this example:

    http://www.wowza.com/forums/showthre...rough-Java-API


    But i need to include audio only..

    The amlst return this:

    <SmoothStreamingMedia MajorVersion="2" MinorVersion="1" Timescale="10000000" Duration="842180000">
    <StreamIndex Type="audio" Index="0" Chunks="42" QualityLevels="1" Timescale="10000000" Url="QualityLevels({bitrate})/Fragments(audio={start time})/Chunks({chunk id})/WowzaSessions(202619798).isma">...</StreamIndex>
    <StreamIndex Type="video" Chunks="28" QualityLevels="2" MaxWidth="1280" MaxHeight="720" DisplayWidth="1280" DisplayHeight="720" Timescale="10000000" Url="QualityLevels({bitrate})/Fragments(video={start time})/Chunks({chunk id})/WowzaSessions(202619798).ismv">
    <QualityLevel Index="0" Bitrate="2026794" FourCC="H264" MaxWidth="1280" MaxHeight="720" CodecPrivateData="000000016742c01e9a7402802dd808800000030080000019078b17500000000168ce32c8"/>
    <QualityLevel Index="1" Bitrate="703131" FourCC="H264" MaxWidth="580" MaxHeight="326" CodecPrivateData="000000016742c01eda0250af9e6c0440000019000005da83c58ba80000000168ce32c8"/>
    <c d="63400000"/>
    <c d="27020000"/>
    <c d="25360000"/>
    <c d="50720000"/>
    <c d="20690000"/>
    <c d="40700000"/>
    <c d="25700000"/>
    <c d="19350000"/>
    <c d="24690000"/>
    <c d="29700000"/>
    <c d="17680000"/>
    <c d="21690000"/>
    <c d="27030000"/>
    <c d="30690000"/>
    <c d="18690000"/>
    <c d="22360000"/>
    <c d="24020000"/>
    <c d="17680000"/>
    <c d="24030000"/>
    <c d="24690000"/>
    <c d="19350000"/>
    <c d="32370000"/>
    <c d="18350000"/>
    <c d="17680000"/>
    <c d="27030000"/>
    <c d="24020000"/>
    <c d="83420000"/>
    <c d="64070000"/>
    </StreamIndex>
    </SmoothStreamingMedia>
    Last edited by MARY2006; 01-16-2013 at 07:27 AM.

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

    Default

    I think for that to work, this has to be enabled:

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

    Richard

  5. #5

    Default

    Hi i need help doing this code:


    I need 3 streams, 2 video files different quality and one stream with audio only to use with HLS.

    I'm doing something wrong, beacause it's always load audiofile only, and i'm testing localhost (maxium bandwith).

    package ....
    
    
    import com.wowza.wms.medialist.*;
    import com.wowza.wms.module.*;
    import com.wowza.wms.stream.*;
    import com.wowza.wms.application.*;
    
    public class SmilGenerator extends ModuleBase 
    {
    	class VideoMediaProvider2 implements IMediaListProvider
    	{
    		public MediaList resolveMediaList(IMediaListReader mediaListReader, IMediaStream stream, String streamName)
    		{
    			MediaList mediaList = new MediaList();
    			
    			MediaListSegment segment = new MediaListSegment();
    			mediaList.addSegment(segment);
    
    			MediaListRendition rendition1 = new MediaListRendition();
    			segment.addRendition(rendition1);
    			
    			//only video 1
    			rendition1.setName("mp4:" + "file/bigbuckbunny" + "_750.mp4");
    			rendition1.setBitrateAudio(128000);
    			rendition1.setBitrateVideo(400000);
    			rendition1.setWidth(320);
    			rendition1.setHeight(240);
    			rendition1.setAudioCodecId("mp4a.40.2");
    			rendition1.setVideoCodecId("avc1.66.12");
    			
    			
    			//only video 2
    			MediaListRendition rendition2 = new MediaListRendition();
    			segment.addRendition(rendition2);
    			
    			rendition2.setName("mp4:" + "file/bigbuckbunny" + "_450.mp4");
    			rendition2.setBitrateAudio(68000);
    			rendition2.setBitrateVideo(400000);
    			rendition2.setWidth(640);
    			rendition2.setHeight(480);
    			rendition2.setAudioCodecId("mp4a.40.2");
    			rendition2.setVideoCodecId("avc1.77.31");
    			
    			//only audio
    			MediaListRendition rendition3 = new MediaListRendition();
    			segment.addRendition(rendition3);
    
    
    			rendition3.setName("mp4:" + "file/bigbuckbunny" + "_750.mp4");
    			rendition3.setBitrateAudio(128000);
    			rendition3.setBitrateVideo(800000);
    			rendition3.setWidth(640);
    			rendition3.setHeight(480);
    			rendition3.setAudioCodecId("mp4a.40.2");
    			rendition3.setVideoCodecId("avc1.77.31");
    			rendition3.setWowzaAudioOnly(true);
    
    			return mediaList;
    		}
    	}
    	
    	public void onAppStart(IApplicationInstance appInstance)
    	{
    		appInstance.setMediaListProvider(new VideoMediaProvider2());
    	}
    	
    }

    I need to add something in config XML?

    Thanks

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

    Default

    It is because the bitrate of the rendition marked audio-only has the highest video bitrate setting. Try "0"

    Richard

Similar Threads

  1. mediacache and amlst
    By notreg in forum Server-side Modules and Code Samples Discussion
    Replies: 1
    Last Post: 07-24-2013, 09:29 AM
  2. playback of multi-bitrate description using amlst
    By manu844 in forum General Forum
    Replies: 1
    Last Post: 05-07-2013, 07:44 PM
  3. Replies: 1
    Last Post: 05-07-2013, 09:02 AM
  4. DVR without audioOnly
    By grafov in forum AddOn: Wowza nDVR
    Replies: 0
    Last Post: 12-14-2012, 04:26 AM

Posting Permissions

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