<p>You need to download the m3u8 itself, look at the entries and see if the individual TS filenames are entirely regular i.e. no signatures which vary with each entry, and the varying elements that are present can be deduced.</p>

<p>If so, then simply work backwards i.e. if the playlist you download has entries <code>file_03532.ts</code>, <code>file_03533.ts</code>, <code>file_03534.ts</code>..., then <code>file_03529.ts</code>, <code>file_03530.ts</code>, <code>file_03531.ts</code>.. would be the earlier entries. You can then use a download manager that lets you download a list of filenames generated using a pattern. <a href="https://www.google.co.in/url?sa=t&amp;rct=j&amp;q=&amp;esrc=s&amp;source=web&amp;cd=1&amp;cad=rja&amp;uact=8&amp;ved=0ahUKEwi92vny6I3OAhVEsI8KHa9uDzkQFggbMAA&amp;url=https%3A%2F%2Fwww.internetdownloadmanager.com%2Fdownload.html&amp;usg=AFQjCNHDbklZbAFiY4rOWNN9WD5bzjAblg&amp;sig2=C5g0pxZ81PzNWxev4RbLJw&amp;bvm=bv.127984354,d.c2I" rel="nofollow">IDM</a> does this. There's probably others.</p>

CC BY-SA 3.0
2016-07-25T16:12:46.883Z
That makes sense; thank you! Forgive my lack of experience in this matter, but how do we look at the entries and see the individual TS chunks?
Zafer Cesur
CC BY-SA 3.0
2016-07-25T16:14:44.400Z
Nevermind, I opened it with Notepad++ and it worked.
Zafer Cesur
CC BY-SA 3.0
2016-07-25T04:53:57.693Z
2016-07-25T04:53:57.693Z
Gyan
<p>I have an <code>.m3u8</code> URI of type <code>LIVE</code>. As far as I know, live playlists use a sliding window instead of containing all the segments. My questions are,</p>

<hr>

<p><strong>1)</strong> Is it possible to find out what the length of the window is (time or frame-wise)? My intention is to use the playlist I have to download a live-stream starting from an earlier time.</p>

<p><strong>2)</strong> If yes, how do I get the earlier segments, i.e., how do I specify where I want to start downloading from? I tried something like <code>ffmpeg -ss -00:00:10 -i "in.m3u8" out.mp4</code>, but it did not work.</p>

<p>I do not have much experience in video-encoding or live-streaming, and I would appreciate any direction!</p>

<ffmpeg><encoding><streaming>
Downloading earlier segments from a live m3u8 playlist
Zafer Cesur
# Downloading earlier segments from a live m3u8 playlist

(Asked by: username_0 on 2016-07-25)

I have an `.m3u8` URI of type `LIVE`. As far as I know, live playlists use a sliding window instead of containing all the segments. My questions are,

---

**1)** Is it possible to find out what the length of the window is (time or frame-wise)? My intention is to use the playlist I have to download a live-stream starting from an earlier time.

**2)** If yes, how do I get the earlier segments, i.e., how do I specify where I want to start downloading from? I tried something like `ffmpeg -ss -00:00:10 -i "in.m3u8" out.mp4`, but it did not work.

I do not have much experience in video-encoding or live-streaming, and I would appreciate any direction!

**Tags:** ffmpeg, encoding, streaming


---

## 1 answers

### Answer by username_1 on 2016-07-25. Score: 1 | Accepted answer

You need to download the m3u8 itself, look at the entries and see if the individual TS filenames are entirely regular i.e. no signatures which vary with each entry, and the varying elements that are present can be deduced.

If so, then simply work backwards i.e. if the playlist you download has entries `file_03532.ts`, `file_03533.ts`, `file_03534.ts`..., then `file_03529.ts`, `file_03530.ts`, `file_03531.ts`.. would be the earlier entries. You can then use a download manager that lets you download a list of filenames generated using a pattern. [IDM](https://www.google.co.in/url?sa=t&rct=j&q=&esrc=s&source=web&cd=1&cad=rja&uact=8&ved=0ahUKEwi92vny6I3OAhVEsI8KHa9uDzkQFggbMAA&url=https%3A%2F%2Fwww.internetdownloadmanager.com%2Fdownload.html&usg=AFQjCNHDbklZbAFiY4rOWNN9WD5bzjAblg&sig2=C5g0pxZ81PzNWxev4RbLJw&bvm=bv.127984354,d.c2I) does this. There's probably others.

> **Comments:**
> **username_0**: That makes sense; thank you! Forgive my lack of experience in this matter, but how do we look at the entries and see the individual TS chunks?  
> **username_0**: Nevermind, I opened it with Notepad++ and it worked.  

---

