Sony took a writedown of nearly $1 billion at its struggling Hollywood movie segment, blaming it on dwindling demand for DVDs and competition with movie-streaming services.

The massive charge for the December quarter, which totaled $976 million, came as the Japanese conglomerate slashed its outlook for profits from its DVDs, blu-ray discs and other home-entertainment operations.

Earlier this month, Sony said Michael Lynton, the chief executive of its movie and television unit Sony Entertainment, will step down in February.

Last week, The Post reported that Sony has been weighing a potential sale of its TV and film operations.

Sony CEO Kaz Hirai has repeatedly denied any intent to sell the businesses. Still, he has not appointed a successor to Lynton, stoking speculation that there may be no position to fill.

Sony/Columbia ended 2016 in fifth place among major movie studios, with a market share of 8 percent, behind Disney, Warner, Fox and Universal, according to Box Office Mojo.

In November, Sony’s chief financial officer, Kenichiro Yoshida, said a turnaround was “progressing, but it takes time for the benefit to be realized.”

Sony’s movie business has been battered by the popularity of streaming services from Netflix and Amazon.

Netflix has scored big hits like “Orange is the New Black” and”House of Cards,” and

Amazon has been aggressively bankrolling award-winning series like “Transparent” and “Mozart in the Jungle.”

In its latest statement, Sony also said it would cut its stake in M3 , operator of membership-based medical-related online services, to 34 percent from 39.3 percent in a bid to strengthen its financial standing.

Sony said the impact of the impairment charge and stake sale on the group’s earnings outlook for the current fiscal year is being evaluated and will be disclosed when it releases its third-quarter results on Feb. 2.