The film was the major project of the last decade of Ray's life, and he and his collaborators continuously re-edited it. Rough versions of the film were screened at festivals as early as 1972 (including a Cannes premiere in 1973), and the most well-known cut was completed in 1976.