# Live Stream and auto record specifics streams

**URL:** <https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985>\
**Category:** Wowza Streaming Engine\
**Created:** [May 14, 2014, 12:31pm UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985 "2014-05-14T12:31:28Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oleg\_Artemov](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oleg\_Artemov](https://community.wowza.com/u/Oleg_Artemov)\
**Post date:** [May 14, 2014, 12:31pm UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/1 "2014-05-14T12:31:28Z")

</div>

Greetings!

Pls help me with my problem.

I have a Wowza Streaming Engine 4.0.3 with Transcoder Addon and nDVR addon.

In application Live demo video pre-roll untill a live stream starts (by StreamPubslisher & ModuleLoopUntilLive).

STREAM1 is pre-roll stream.

STREAM2 is live stream.

By the Transcoder Addon live stream (STREAM2) is transcoding for other bitrate (STREAM2\_360p, STREAM2\_aac, etc).

How can i setup auto record specific streams only when STREAM2 is running (e.g. STREAM2 - live upstream, STREAM2\_360p - live upstream with lower bitrate, etc).

Thx.

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [May 14, 2014, 12:14pm UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/2 "2014-05-14T12:14:00Z")

</div>

Hello,

You can achieve the described scenario by developing a custom Wowza module which would detect the desired stream name and start recording that particular stream.

Please take a look at the [How to start and stop live stream recordings programmatically (IMediaStreamActionNotify3](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3)) article where you can find a code sample which you could modify according to your needs.

Zoran

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [May 14, 2014, 5:09am UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/3 "2014-05-14T05:09:02Z")

</div>

Check our our article on [how to record streams programmatically](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3%28IMediaStreamActionNotify3%29). Then you can further modify the source to determine which streams are initiated via the onPublish method.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 15, 2014, 9:17pm UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/4 "2014-05-15T21:17:39Z")

</div>

Take a [look at this guide](https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord#ilivestreamrecordfileversiondelegate)

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 20, 2014, 3:42pm UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/5 "2014-05-20T15:42:19Z")

</div>

Looking at your screenshot of the IDE, the class and method names with the red squiggles do not have supporting import lines at top. If you mouse over any of those you will see an option to import the required library; just mouse over, do not click until you see the import option.

Also, take a look at this [guide to using the Wowza IDE](https://www.wowza.com/uploads/developers/WowzaIDE_UsersGuide.pdf). This guide is a little out-dated with references to the stand-alone Wowza IDE (which is no longer available) and Wowza 3 paths, but it is still the essential guide to implementing Wowza application Modules, HTTPProviders and ServerListeners

Richard

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [May 14, 2014, 3:34pm UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/6 "2014-05-14T15:34:30Z")

</div>

Hi,

We have a user’s guide for the [Wowza IDE2](https://www.wowza.com/uploads/developers/WowzaIDE_UsersGuide.pdf) which is needed to compile Modules for Wowza.

It is a little out of date, (referencing older Wowza versions) but the basics are all there.

Regards,

Jason

---

<div class="post-metadata">

**Author:** ![Oleg\_Artemov](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oleg\_Artemov](https://community.wowza.com/u/Oleg_Artemov)\
**Post date:** [May 14, 2014, 1:45pm UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/7 "2014-05-14T13:45:45Z")

</div>

I am newbie.

I have a 2 question:

1. How to compile example module in jar file by command line in Linux?

2. Where is place of stream specified in the LiveStreamRecordAutoRecord example module ([https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3) ) ?

Thx.

---

<div class="post-metadata">

**Author:** ![Oleg\_Artemov](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oleg\_Artemov](https://community.wowza.com/u/Oleg_Artemov)\
**Post date:** [May 15, 2014, 1:37pm UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/8 "2014-05-15T13:37:28Z")

</div>

Ok.

i have been done this and compile the example module.

All work.

Thank u very match!

Pls help me how can i change the output filename ?

e.g. in next format: “datetime\_streamname” ?

---

<div class="post-metadata">

**Author:** ![Oleg\_Artemov](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oleg\_Artemov](https://community.wowza.com/u/Oleg_Artemov)\
**Post date:** [May 16, 2014, 10:15am UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/9 "2014-05-16T10:15:12Z")

</div>

Pls explain how to compile this source code from [https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord#ilivestreamrecordfileversiondelegate](https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord#ilivestreamrecordfileversiondelegate) ?

I want to use the specific file name by template after the automatic record starts by IMediaStreamActionNotify3 (this guide [https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3)) with the ILiveStreamRecordFileVersionDelegate [https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord#ilivestreamrecordfileversiondelegate](https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord#ilivestreamrecordfileversiondelegate)

But i don’t understand how can i do this.

I tried to adding the new class to the IMediaStreamActionNotify3, but the Eclipse got error

```auto
Description	Resource	Path	Location	Type
File cannot be resolved to a type	MyDelegate.java	/autorecord/src/com/wowza/wms/example/module	line 30	Java Problem
WMSLoggerFactory cannot be resolved	MyDelegate.java	/autorecord/src/com/wowza/wms/example/module	line 38	Java Problem
ILiveStreamRecordFileVersionDelegate cannot be resolved to a type	MyDelegate.java	/autorecord/src/com/wowza/wms/example/module	line 9	Java Problem
ILiveStreamRecord cannot be resolved to a type	MyDelegate.java	/autorecord/src/com/wowza/wms/example/module	line 11	Java Problem
Date cannot be resolved to a type	MyDelegate.java	/autorecord/src/com/wowza/wms/example/module	line 15	Java Problem
Date cannot be resolved to a type	MyDelegate.java	/autorecord/src/com/wowza/wms/example/module	line 15	Java Problem
File cannot be resolved to a type	MyDelegate.java	/autorecord/src/com/wowza/wms/example/module	line 18	Java Problem
File cannot be resolved to a type	MyDelegate.java	/autorecord/src/com/wowza/wms/example/module	line 18	Java Problem

```

![](http://savepic.net/5448241.png)

Pls help me.

Thx.

---

<div class="post-metadata">

**Author:** ![Oleg\_Artemov](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oleg\_Artemov](https://community.wowza.com/u/Oleg_Artemov)\
**Post date:** [May 19, 2014, 12:56pm UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/10 "2014-05-19T12:56:03Z")

</div>

I am try to add the ILiveStreamRecordFileVersionDelegate by adding into the IMediaStreamActionNotify3 package.

Pls explain, how to recall a MyDelegate class from IMediaStreamActionNotify3 ?

---

<div class="post-metadata">

**Author:** ![Oleg\_Artemov](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oleg\_Artemov](https://community.wowza.com/u/Oleg_Artemov)\
**Post date:** [May 22, 2014, 8:54am UTC](https://community.wowza.com/t/live-stream-and-auto-record-specifics-streams/42985/11 "2014-05-22T08:54:46Z")

</div>

I imported nessasary libraries.

But - i don’t understand how can i import and use ILiveStreamRecordFileVersionDelegate ?

I try to add this class into the IMediaStreamActionNotify3 package, and succesefuli compile it.

But it does not change anything (autorecord is working).
