# using LiveStreamRecord to produce TS chunks

**URL:** <https://community.wowza.com/t/using-livestreamrecord-to-produce-ts-chunks/33902>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [July 11, 2013, 9:15am UTC](https://community.wowza.com/t/using-livestreamrecord-to-produce-ts-chunks/33902 "2013-07-11T09:15:01Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sorin\_Vasilescu](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sorin\_Vasilescu](https://community.wowza.com/u/Sorin_Vasilescu)\
**Post date:** [July 11, 2013, 9:15am UTC](https://community.wowza.com/t/using-livestreamrecord-to-produce-ts-chunks/33902/1 "2013-07-11T09:15:01Z")

</div>

Hi,

I’ve seen there are new features in the live stream recorder, like the startRecordingSegmentByDuration method. This is very useful, but I can only figure out how to record MP4 files. I want to use Wowza as a stream segmenter, so I would need to record TS files (chunks). Is that possible in any way?

Thanks.

---

<div class="post-metadata">

**Author:** ![Andrew\_Kennedy1](https://avatars.discourse-cdn.com/v4/letter/a/278dde/32.png) [@Andrew\_Kennedy1](https://community.wowza.com/u/Andrew_Kennedy1)\
**Post date:** [July 11, 2013, 3:06am UTC](https://community.wowza.com/t/using-livestreamrecord-to-produce-ts-chunks/33902/2 "2013-07-11T03:06:59Z")

</div>

Hi,

This is not possible with live stream record. It will always produce mp4/flv files and not ts chunks.

Andrew.

---

<div class="post-metadata">

**Author:** ![Sorin\_Vasilescu](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sorin\_Vasilescu](https://community.wowza.com/u/Sorin_Vasilescu)\
**Post date:** [July 15, 2013, 1:44pm UTC](https://community.wowza.com/t/using-livestreamrecord-to-produce-ts-chunks/33902/3 "2013-07-15T13:44:23Z")

</div>

Bummer… thank you, though…

Another short question, then. If I issue the command startSegmentByDuration, the first chunk is called chunk\_test.mp4 and the following ones are called chunk\_test\_2013-07-15-14.31.01.731-EEST\_1.mp4, in sequence, with the \_1 incremented.

How do I get the first chunk to be called chunk\_test\_2013-07-15-14.31.01.731-EEST\_0.mp4?

---

<div class="post-metadata">

**Author:** ![Sorin\_Vasilescu](https://avatars.discourse-cdn.com/v4/letter/s/c57346/32.png) [@Sorin\_Vasilescu](https://community.wowza.com/u/Sorin_Vasilescu)\
**Post date:** [July 16, 2013, 3:00pm UTC](https://community.wowza.com/t/using-livestreamrecord-to-produce-ts-chunks/33902/4 "2013-07-16T15:00:17Z")

</div>

I have no problem with the naming scheme as it is, I just want the first chunk to follow it… The first chunk is called chunk\_test.mp4, plain, and the rest have 2013-07-15-14.31.01.731-EEST\_{%n} appended to the filename.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [July 15, 2013, 8:25am UTC](https://community.wowza.com/t/using-livestreamrecord-to-produce-ts-chunks/33902/5 "2013-07-15T08:25:00Z")

</div>

> Bummer… thank you, though…
> 
> Another short question, then. If I issue the command startSegmentByDuration, the first chunk is called chunk\_test.mp4 and the following ones are called chunk\_test\_2013-07-15-14.31.01.731-EEST\_1.mp4, in sequence, with the \_1 incremented.
> 
> How do I get the first chunk to be called chunk\_test\_2013-07-15-14.31.01.731-EEST\_0.mp4?

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

Salvadore
