Vice Media has secured a $450 million investment from private-equity firm TPG, as the youth-focused digital media company looks to step up its spending on scripted programming and plans a direct-to-consumer service.

The deal will give Vice a valuation of around $5.7 billion, including the new investment, people familiar with the situation say.

Media...