httplivestreaming: Add num_retained_old_files parameter
mpegts: Add functions to open/close without header/footer