# Record Lowest Bitrate stream

**URL:** <https://community.wowza.com/t/record-lowest-bitrate-stream/47245>\
**Category:** Wowza Streaming Engine\
**Created:** [July 5, 2016, 10:48am UTC](https://community.wowza.com/t/record-lowest-bitrate-stream/47245 "2016-07-05T10:48:05Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ayush\_Jain](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Ayush\_Jain](https://community.wowza.com/u/Ayush_Jain)\
**Post date:** [July 5, 2016, 10:48am UTC](https://community.wowza.com/t/record-lowest-bitrate-stream/47245/1 "2016-07-05T10:48:05Z")

</div>

Hi

I’m new to development…I want to build the plugin for wowza application which will automatically detect the lowest bitrate incoming stream and start recording of it. for example if there is a stream, say test.stream, and transcoder transcode it in test\_160 ,test\_360 ,test\_720 so my plugin should tell test\_160 has lowest bitrate and start recording test\_160. My problem is I’m able to record the stream but not able to find the lowest bitrate stream. how to find lowest bitrate stream of all the incoming stream??it would be very helpful if you answer this question…

---

<div class="post-metadata">

**Author:** ![gabriel\_fg](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@gabriel\_fg](https://community.wowza.com/u/gabriel_fg)\
**Post date:** [July 5, 2016, 11:05am UTC](https://community.wowza.com/t/record-lowest-bitrate-stream/47245/2 "2016-07-05T11:05:08Z")

</div>

hello

what coding language are you using ? where do you take the video source from ?

---

<div class="post-metadata">

**Author:** ![gabriel\_fg](https://avatars.discourse-cdn.com/v4/letter/g/a183cd/32.png) [@gabriel\_fg](https://community.wowza.com/u/gabriel_fg)\
**Post date:** [July 5, 2016, 11:48am UTC](https://community.wowza.com/t/record-lowest-bitrate-stream/47245/3 "2016-07-05T11:48:28Z")

</div>

if you have access to the client side, maybe you could determine the bitrate from the source, and name the stream including the bitrate as a string

---

<div class="post-metadata">

**Author:** ![Paul\_Shields](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/paul_shields/32/390_2.png) [@Paul\_Shields](https://community.wowza.com/u/Paul_Shields)\
**Post date:** [August 15, 2016, 11:15am UTC](https://community.wowza.com/t/record-lowest-bitrate-stream/47245/4 "2016-08-15T11:15:32Z")

</div>

Hi,

You may want to check out [this module](https://www.wowza.com/docs/how-to-monitor-bandwidth-of-published-streams-modulelimitpublishedstreambandwidth%28ModuleLimitPublishedStreamBandwidth%29), which monitors bandwidth of published streams. The source is available in GitHub, link in the article.

Regards,

Paul

---

<div class="post-metadata">

**Author:** ![Ayush\_Jain](https://avatars.discourse-cdn.com/v4/letter/a/b2d939/32.png) [@Ayush\_Jain](https://community.wowza.com/u/Ayush_Jain)\
**Post date:** [July 5, 2016, 4:13pm UTC](https://community.wowza.com/t/record-lowest-bitrate-stream/47245/5 "2016-07-05T16:13:13Z")

</div>

i’m using java … i want to list all the streams…and get the lowest bitrate stream from that stream…and then record that stream…i’m providing with my code…see what can i do

public void onAppStart(IApplicationInstance appInstance) {

String fullname = appInstance.getApplication().getName() + “/” + appInstance.getName();

getLogger().info("onAppStart: " + fullname);

this.appInstance = appInstance;

this.vhost = appInstance.getVHost();

checkFile = new HashMap\<String, Integer\>();

StreamRecorderParameters recordParams = new StreamRecorderParameters(this.appInstance);

writeListener=new WriteListener();

appInstance.addMediaWriterListener(writeListener);

recordParams.segmentationType = IStreamRecorderConstants.SEGMENT\_BY\_DURATION;

recordParams.segmentDuration = 30\* 60 \* 1000;

recordParams.versioningOption = IStreamRecorderConstants.OVERWRITE\_FILE;

recordParams.fileVersionDelegate = new MyFileVersionDelegate();

recordParams.notifyListener = new MyStreamRecorderListener();

this.vhost.getLiveStreamRecordManager().startRecording(appInstance,“Prostream\_160p”, recordParams);;

}

thanks

ayush
