0

How do I ensure that .ts files are no larger than 1024Kbps..?

I use this code

ffmpeg -i https://bitmovin-a.akamaihd.net/content/MI20192708/master.m3u8 -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -hls_time 1 -hls_list_size 0 output.m3u8

, but the file is still large, the results can even be above 5MB enter image description here

5
  • 1
    By lowering the quality. Targeting a specific file size is only possible with 2-pass encoding or constant bitrate encoding.
    – Daniel B
    Commented Apr 20 at 11:57
  • 1024Kbps is a per second value, not a total value as your link appears to show.
    – Sark
    Commented Apr 20 at 21:58
  • Can the per second value for each .ts file, sir?
    – horasjey
    Commented Apr 22 at 0:52
  • If your 5MB files are no longer than 40 seconds duration the average bitrate will be no greater than 1024Kbps. ....1024bits/8=128bytes. 40×128bytes=5MB
    – Sark
    Commented Apr 26 at 8:16
  • any solution sir?
    – horasjey
    Commented Jun 15 at 8:30

0

You must log in to answer this question.

Browse other questions tagged .