Ex-Labour MP and former Army officer Eric Joyce has been told he faces jail after he admitted having an indecent movie of a child.
Joyce, 59, had a film on a device that "depicts a number of children" with one said to be 12 months old, Ipswich Crown Court heard.
The former shadow minister was arrested in November 2018.
He was granted bail and ordered to sign the sex offenders register. He is due to be sentenced on 7 August.
Joyce, of Worlingworth, Suffolk, pleaded guilty to making an indecent image of a child.
He was the Labour MP for Falkirk in Stirlingshire between 2000 and 2012 before leaving the party to serve as an independent.
The court heard the 51-second category A film - the most serious there is - was accessed by Joyce between August 2013 and November 2018.
Eric Joyce: From Army major to disgraced MP
Live updates: Coronavirus and more from across the east of England
Judge Emma Peters said Joyce, who appeared at court in person, "says he accesses it via an email which he says was a spam email".
"At the time he was drinking heavily and he has now undergone work with the Lucy Faithfull Foundation and a psychotherapist," the judge said.
https://www.bbc.com/news/uk-england-suffolk-53320424