h264: continuously calculate duration
fix updating epg too frequently