Answers.Body: <p>Try this command, it worked for me:</p>
  <pre><code>ffmpeg -live_start_index -99999 -i https://your_url/source.m3u8 -c copy -bsf:a aac_adtstoasc outputtt.mp4
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2021-11-11T15:39:33.067Z
Answers.LastActivityDate: 2021-11-11T16:05:37.717Z
Answers.LastEditDate: 2021-11-11T16:05:37.717Z
Answers.UserDisplayName: Naber
Body: <p>When I use ffmpeg straight forward like this:</p>
  <pre><code>ffmpeg -i 'playlist.m3u8' -c copy out.mp4
  </code></pre>
  <p>it searches for current segment (or maybe the last one) and drops all previous.</p>
  <p>I know that live playlist is a sliding window and contains only the last part of all segments. Even if there are some older segments in a m3u8 file, ffmpeg skips them but I want to download them too. I don't want to start from the very beginning of the stream I just need to prevent that skips.</p>
  
Tags: <ffmpeg><hls>
Title: How to force ffmpeg download live m3u8 from the first available segment?
UserDisplayName: wzowmyx
ThreadText: # How to force ffmpeg download live m3u8 from the first available segment?
  
  (Asked by: username_0 on 2021-08-26)
  
  When I use ffmpeg straight forward like this:
  
  ```
  ffmpeg -i 'playlist.m3u8' -c copy out.mp4
  
  ```
  
  it searches for current segment (or maybe the last one) and drops all previous.
  
  I know that live playlist is a sliding window and contains only the last part of all segments. Even if there are some older segments in a m3u8 file, ffmpeg skips them but I want to download them too. I don't want to start from the very beginning of the stream I just need to prevent that skips.
  
  **Tags:** ffmpeg, hls
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2021-11-11. Score: 1
  
  Try this command, it worked for me:
  
  ```
  ffmpeg -live_start_index -99999 -i https://your_url/source.m3u8 -c copy -bsf:a aac_adtstoasc outputtt.mp4
  
  ```
  
  
  ---
  
  