# Getting AMF metadata from an MP4 recording for sending over HLS

**URL:** <https://community.wowza.com/t/getting-amf-metadata-from-an-mp4-recording-for-sending-over-hls/94735>\
**Category:** Wowza Developer Dojo\
**Created:** [March 23, 2022, 6:32pm UTC](https://community.wowza.com/t/getting-amf-metadata-from-an-mp4-recording-for-sending-over-hls/94735 "2022-03-23T18:32:48Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dan\_Farrow](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Dan\_Farrow](https://community.wowza.com/u/Dan_Farrow)\
**Post date:** [March 23, 2022, 6:32pm UTC](https://community.wowza.com/t/getting-amf-metadata-from-an-mp4-recording-for-sending-over-hls/94735/1 "2022-03-23T18:32:48Z")

</div>

Hello, I am recording an MP4 with AMF metadata in Wowza from my incoming RTMP stream. I know wowza can restream this MP4 as an HLS stream, but how do I get the metadata out of this file for conversion to ID3?

Do I just use the standard **IHTTPStreamerCupertinoLivePacketizerDataHandler2** and get the data in the **onFillChunkDataPacket** method?

---

<div class="post-metadata">

**Author:** ![Dan\_Farrow](https://avatars.discourse-cdn.com/v4/letter/d/bb73d2/32.png) [@Dan\_Farrow](https://community.wowza.com/u/Dan_Farrow)\
**Post date:** [March 31, 2022, 4:28pm UTC](https://community.wowza.com/t/getting-amf-metadata-from-an-mp4-recording-for-sending-over-hls/94735/2 "2022-03-31T16:28:14Z")

</div>

I wound up extending **IHTTPStreamerCupertinoVODActionNotify**.

I started from the example here:

> <https://github.com/WowzaMediaSystems/wse-plugin-cupertinoliveattachpicture/blob/main/src/com/wowza/wms/plugin/CupertinoVODAttachPicture.java>

And then wound up including an override for this method to do the injection of metadata as ID3 tags:

```
public void onFillChunkDataPacket(IHTTPStreamerCupertinoIndex index, IHTTPStreamerCupertinoIndexItem indexItem,
				LiveStreamPacketizerCupertinoChunk chunk, boolean arg3, AMFPacket packet, ID3Frames id3Frames) { 
...
}
```
