# Get a chunk of mp4 file

**URL:** <https://community.wowza.com/t/get-a-chunk-of-mp4-file/38795>\
**Category:** Wowza Streaming Engine\
**Created:** [June 6, 2012, 9:03am UTC](https://community.wowza.com/t/get-a-chunk-of-mp4-file/38795 "2012-06-06T09:03:34Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ilya\_Sterin](https://avatars.discourse-cdn.com/v4/letter/i/ac91a4/32.png) [@Ilya\_Sterin](https://community.wowza.com/u/Ilya_Sterin)\
**Post date:** [June 6, 2012, 9:03am UTC](https://community.wowza.com/t/get-a-chunk-of-mp4-file/38795/1 "2012-06-06T09:03:34Z")

</div>

I know how to get a chunk of a file in streaming mode (ios or flash based), but is there a way to access a non-streaming mp4 file and specify the offset. We have large files and we need to access 10 second chunks of these files.

I don’t see any way to access the mp4 file without streaming it for ios or flash and also specify offsets.

---

<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:** [June 6, 2012, 2:19pm UTC](https://community.wowza.com/t/get-a-chunk-of-mp4-file/38795/2 "2012-06-06T14:19:54Z")

</div>

You can use ffmpeg to cut up a file.

```auto
ffmpeg -y -i infile.mp4 -acodec copy -vcodec copy -ss 00:00:00 -t 00:00:10 outFile.mp4

```

Wowza only provides start and length features in RTMP and HTTP vod streaming, as you have noted.

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:** [January 28, 2013, 2:08pm UTC](https://community.wowza.com/t/get-a-chunk-of-mp4-file/38795/3 "2013-01-28T14:08:07Z")

</div>

The chunks are in memory server-side, not written to disk. You can download them client-side one at a time like this:

[https://www.wowza.com/docs/how-to-test-aes-encryption-for-apple-hls-streams](https://www.wowza.com/docs/how-to-test-aes-encryption-for-apple-hls-streams)

Richard

---

<div class="post-metadata">

**Author:** ![Emil\_Issabekov](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Emil\_Issabekov](https://community.wowza.com/u/Emil_Issabekov)\
**Post date:** [January 28, 2013, 4:53pm UTC](https://community.wowza.com/t/get-a-chunk-of-mp4-file/38795/4 "2013-01-28T16:53:30Z")

</div>

Hi Isterin and techical support,

can you please help me, how to get a chunk of a file in streaming mode.

I am receiving the streaming using this link [http://217.131.133.48:1935/live/atv.stream/playlist.m3u8](http://217.131.133.48:1935/live/atv.stream/playlist.m3u8), but still don’t know, where is the folder with the chunks

---

<div class="post-metadata">

**Author:** ![Emil\_Issabekov](https://avatars.discourse-cdn.com/v4/letter/e/898d66/32.png) [@Emil\_Issabekov](https://community.wowza.com/u/Emil_Issabekov)\
**Post date:** [January 30, 2013, 5:12pm UTC](https://community.wowza.com/t/get-a-chunk-of-mp4-file/38795/5 "2013-01-30T17:12:49Z")

</div>

Hi rrlanham,

Thank you for your help. Unfortunately I stuck on 2nd step. When I have inserted the wowzasessionid information onto the end of the URL and have gotten this limk ([http://217.131.133.48:1935/live/atv.stream/chunklist.m3u8?wowzasessionid=2118612753](http://217.131.133.48:1935/live/atv.stream/chunklist.m3u8?wowzasessionid=2118612753)) browser didn’t offer me to download the chunklist.m3u8. I have checked that the /conf/[app-name]/Application.xml /LiveStreamPacketizers contains at least “cupertinostreamingpacketizer”. Please assist me. thank you

---

<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:** [January 30, 2013, 6:30am UTC](https://community.wowza.com/t/get-a-chunk-of-mp4-file/38795/6 "2013-01-30T06:30:04Z")

</div>

Hi,

I have tried this and it would appear either the stream is not running , or it is not using a valid format for the packetizer.

Andrew.
