title: Ffmpeg creating m3u8 from mp4, video file size
body: <p>I am using ffmpeg to convert mp4 to m3u8. But first I need to make mp4 smaller. I use this code to make it smaller:</p>
  
  <pre><code>ffmpeg -i big.mp4 -b 1000000 small.mp4
  </code></pre>
  
  <p>Then I use this code to convert it to m3u8</p>
  
  <pre><code>ffmpeg -i small.mp4 -g 60 -hls_time 2 -hls_list_size 0 -hls_segment_size 500000 output.m3u8
  </code></pre>
  
  <p>Is there a way to do this in once? </p>