hi all . i wonder how i can record part of a live m3u8 stream using ffmpeg. For example only 30 min of a live stream since as we all know live stream never ends! I tried the following but that will never stop since it is live stream!

ffmpeg -i "livestram.m3u8" "test.mp4"