title: FFMPEG HLS video qualities scaling
body: <p>In my code I am trying to generate <code>m3u8</code> format of my single video in different qualities. My code is able to generate <code>m3u8</code> but without qualities its taking its original frame height and width instead of my defined one. I did my research over it but I am unable to accomplish the target right one. As I am new to <code>ffmpeg</code>. I don't know much about the commands and its fixes but I know I am doing something wrong in it</p>
  
  <p>Here is my sample command list</p>
  
  <pre><code>//144p
  ffmpeg -i test_video.mp4 -vf scale=256:144 -vcodec copy -acodec copy -vbsf h264_mp4toannexb -hls_time 2 -hls_list_size 999999999 out/144_vid.m3u8
  
  //240p
  ffmpeg -i test_video.mp4 -vf scale=426:240 -vcodec copy -acodec copy -vbsf h264_mp4toannexb -hls_time 2 -hls_list_size 999999999 out/240_vid.m3u8
  
  //360p
  ffmpeg -i test_video.mp4 -vf scale=640:360 -vcodec copy -acodec copy -vbsf h264_mp4toannexb -hls_time 2 -hls_list_size 999999999 out/360_vid.m3u8
  </code></pre>