title: ffmpeg convert h265 raw stream into hls playlist
body: <p>I have a raw h265 video file. I'm trying to convert it to a hls m3u8 playlist.
  It's a large file (~2GB), So I try to segment it into small .ts files so my player can already start playing it.</p>
  
  <p>I do it in 2 steps:</p>
  
  <pre><code>ffmpeg -i video.h265 -c copy video.mp4
  ffmpeg -i video.mp4 -c:v copy -start_number 0 -hls_time 5 -hls_list_size 0 -hls_playlist_type event -f hls index.m3u8
  </code></pre>
  
  <p>The Problem is I get only one .ts which is still very large (same size) which is to heavy for the player to start playing quick.</p>
  
  <p>If re-transcode it to h265 again it splits it into several .ts files, but I think there is no need to transcode as it already in h265 format.</p>