# Gapless AAC

**URL:** https://community.wowza.com/t/gapless-aac/35553
**Category:** Wowza Streaming Engine
**Created:** [February 24, 2012, 11:51am UTC](https://community.wowza.com/t/gapless-aac/35553 "2012-02-24T11:51:06Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![Ruben\_Chadien](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@Ruben\_Chadien](https://community.wowza.com/u/Ruben_Chadien)
#### Post date: [February 24, 2012, 11:51am UTC](https://community.wowza.com/t/gapless-aac/35553/1 "2012-02-24T11:51:06Z")

</div>

Hi

Does Wowza support reading the information in AAC audio files created by Nero (or Itunes) for gapless playback ?

Thanks

Ruben Chadien

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [February 24, 2012, 2:31am UTC](https://community.wowza.com/t/gapless-aac/35553/2 "2012-02-24T02:31:54Z")

</div>

Hi Ruben,

I’m not sure what you mean by “reading the information”. Wowza does support the AAC audio codec.

Are you saying that you’ve tried streaming AAC audio files with Nero and Itunes, and the playback through Wowza contains gaps?

---

<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: [February 24, 2012, 12:31pm UTC](https://community.wowza.com/t/gapless-aac/35553/3 "2012-02-24T12:31:55Z")

</div>

Hi

Well actually I’m not sure if it does due to the Metadata within the itunes wrapper, this may give itunes instruction on how to playback the files with gapless playback.

If it was the gapless playback that you wanted then you can try the playlist schedule method,

[https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher](https://www.wowza.com/docs/how-to-schedule-streaming-with-wowza-streaming-engine-streampublisher)

Jason

---

<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: [February 24, 2012, 3:55pm UTC](https://community.wowza.com/t/gapless-aac/35553/4 "2012-02-24T15:55:09Z")

</div>

Ruben,

Try adding this Property to the /conf/[app-name]/Application.xml /Streams /Properties list:

```auto
<Property>
 <Name>StartOnPreviousKeyFrame</Name>
 <Value>true</Value>
 <Type>Boolean</Type>
</Property>

```

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: [February 24, 2012, 3:56pm UTC](https://community.wowza.com/t/gapless-aac/35553/5 "2012-02-24T15:56:56Z")

</div>

Well, it is worth a try, but on 2nd thought this might not apply to vod.

Richard

---

<div class="post-metadata">

### Author: ![Ruben\_Chadien](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@Ruben\_Chadien](https://community.wowza.com/u/Ruben_Chadien)
#### Post date: [February 24, 2012, 1:59pm UTC](https://community.wowza.com/t/gapless-aac/35553/6 "2012-02-24T13:59:10Z")

</div>

Yes, when encoding an AAC file the encoder adds a few MS of silence in the beginning of the songs, see [http://en.wikipedia.org/wiki/Gapless\_playback](http://en.wikipedia.org/wiki/Gapless_playback)

Nero AAC encoder and also Itunes encoder supports adding information to the AAC file that tells the player to skip this silence.

I tried playing two files with Flex:

soundInstance.play(“mp4:1.mp4”,0,-1,true);

soundInstance.play(“mp4:2.mp4”,0,-1,false);

and a small gap is heard between the files, these files were encoded with iTunes.

So is it possible to get Wowza to skip the silence based on the information in the AAC files ?

Thanks

Ruben Chadien

---

<div class="post-metadata">

### Author: ![Ruben\_Chadien](https://avatars.discourse-cdn.com/v4/letter/r/e36b37/32.png) [@Ruben\_Chadien](https://community.wowza.com/u/Ruben_Chadien)
#### Post date: [February 27, 2012, 9:35am UTC](https://community.wowza.com/t/gapless-aac/35553/7 "2012-02-27T09:35:36Z")

</div>

Think your right , did not help ☹

Is this something a can extend Wowza with myself ? Writing some kind of plugin that reads the AAC information and skips the silence.

/Ruben

---

<div class="post-metadata">

### Author: ![Randall\_Auriemma](https://avatars.discourse-cdn.com/v4/letter/r/85e7bf/32.png) [@Randall\_Auriemma](https://community.wowza.com/u/Randall_Auriemma)
#### Post date: [February 27, 2012, 12:24am UTC](https://community.wowza.com/t/gapless-aac/35553/8 "2012-02-27T00:24:31Z")

</div>

Yes, there are several ways to play a VOD file starting at a certain time: [https://www.wowza.com/docs/how-to-specify-a-play-start-time-and-duration-for-http-streaming](https://www.wowza.com/docs/how-to-specify-a-play-start-time-and-duration-for-http-streaming)

If you can figure out how to get your flash player to play an HTTP URI in that format, maybe this will be your solution.

Or you can create a very small module to override the play function to specify this start time for all of your VOD files. From the above link look at the “Server-side API” section. There is mentioned a method called onHTTPSessionCreate(). Here is an example that shows how to invoke this method which you may be able to adapt to your needs: [https://www.wowza.com/docs/how-to-limit-playback-by-ip-address-moduleoverrideplayrestrictip](https://www.wowza.com/docs/how-to-limit-playback-by-ip-address-moduleoverrideplayrestrictip)
