works for absolute path for the media segment file name as well