Fetching byte range from the 0.ts buffer

oldmanuk

New Member
I'd previously thought that it would be convenient to grab the last X number of bytes from the 0.ts recording buffer if I just watched something live that I wanted to store/share online.

However, because the 0.ts file is just a fixed size and treating as an overwritable buffer (if you change channel, it starts writing from the beginning of the file again without truncating the existing content), you can't just do a (e.g.,) `curl --range ` with a negative byte value to grab the last X bytes over ftp:// because that'll get from the end of the file which isn't necessarily the current write point. Do we know where the current live buffer write position in 0.ts is stored/available?
 
Back
Top