A year ago, the Chinese government locked down the city of Wuhan. For weeks beforehand officials had maintained that the outbreak was under control - just a few dozen cases linked to a live animal market. But in fact the virus had been spreading throughout the city and around China.
By 30 December, several people had been admitted to hospitals in the central city of Wuhan, having fallen ill with high fever and pneumonia. The first known case was a man in his 70s who had fallen ill on 1 December. Many of those were connected to a sprawling live animal market, Huanan Seafood Market, and doctors had begun to suspect this wasn't regular pneumonia.
Samples from infected lungs had been sent to genetic sequencing companies to identify the cause of the disease, and preliminary results had indicated a novel coronavirus similar to Sars. The local health authorities and the country's Center for Disease Control (CDC) had already been notified, but nothing had been said to the public.
Although no-one knew it at the time, between 2,300 and 4,000 people were by now likely infected, according to a recent model by MOBS Lab at Northeastern University in Boston. The outbreak was also thought to be doubling in size every few days. Epidemiologists say that at this early part of an outbreak, each day and even each hour is critical.
30 December 2019: Virus alert
At around 16:00 on 30 December, the head of the Emergency Department at Wuhan Central Hospital was handed the results of a test carried out by sequencing lab Capital Bio Medicals in Beijing.
She went into a cold sweat as she read the report, according to an interview given later to Chinese state media.
At the top were the alarming words: "SARS CORONAVIRUS". She circled them in bright red, and passed it on to colleagues over the Chinese messaging site WeChat.
Within an hour and a half, the grainy image with its large red circle reached a doctor in the hospital's ophthalmology department, Li Wenliang. He shared it with his hundreds-strong university class group, adding the warning, "Don't circulate the message outside this group. Get your family and loved ones to take precautions."
When Sars spread through southern China in late 2002 and 2003, Beijing covered up the outbreak, insisting that everything was under control. This allowed the virus to spread around the world. Beijing's response invoked international criticism and - worryingly for a regime deeply concerned about stability - anger and protests within China. Between 2002 and 2004, Severe Acute Respiratory Syndrome (Sars) went on to infect more than 8,000 people and kill almost 800 worldwide.
Over the coming hours, screen shots of Li's message spread widely online. Across China, millions of people began talking about Sars online.
It would turn out that the sequencers made a mistake - this was not Sars, but a new coronavirus very similar to it. But this was a critical moment. News of a possible outbreak had escaped.
The Wuhan Health Commission was already aware that there was something going on in the city's hospitals. That day, officials from the National Health Commission in Beijing arrived, and lung samples were sent to at least five state labs in Wuhan and Beijing to sequence the virus in parallel.
Now, as messages suggesting the possible return of Sars began flying over Chinese social media, the Wuhan Health Commission sent two orders out to hospitals. It instructed them to report all cases direct to the Health Commission, and told them not to make anything public without authorisation.
Within 12 minutes, these orders were leaked online.
It might have taken a couple more days for the online chatter to make the leap from Chinese-speaking social media to the wider world if it wasn't for the efforts of veteran epidemiologist Marjorie Pollack.
The deputy editor of ProMed-mail, an organisation which sends out alerts on disease outbreaks worldwide, received an email from a contact in Taiwan, asking if she knew anything about the chatter online.
Back in February 2003, ProMed had been the first to break the news of Sars. Now, Pollack had deja vu. "My reaction was: 'We're in trouble,'" she told the BBC.
Three hours later, she had finished writing an emergency post, requesting more information on the new outbreak. It was sent out to ProMed's approximately 80,000 subscribers at one minute to midnight.
31 December: Offers of help
As word began to spread, Professor George F Gao, director general of China's Center for Disease Control [CDC], was receiving offers of help from contacts around the world.
China revamped its infectious disease infrastructure after Sars - and in 2019, Gao had promised that China's vast online surveillance system would be able to prevent another outbreak like it.
But two scientists who contacted Gao say the CDC head did not seem alarmed.
"I sent a really long text to George Gao, offering to send a team out and do anything to support them," Dr Peter Daszak, the president of New York-based infectious diseases research group EcoHealth Alliance, told the BBC. But he says that all he received in reply was a short message wishing him Happy New Year.
Epidemiologist Ian Lipkin of Columbia University in New York was also trying to reach Gao. Just as he was having dinner to ring in the New Year, Gao returned his call. The details Lipkin reveals about their conversation offer new insights into what leading Chinese officials were prepared to say at this critical point.
"He had identified the virus. It was a new coronavirus. And it was not highly transmissible. This didn't really resonate with me because I'd heard that many, many people had been infected," Lipkin told the BBC. "I don't think he was duplicitous, I think he was just wrong."
Lipkin says he thinks Gao should have released the sequences they had already obtained. My view is that you get it out. This is too important to hesitate."
Gao, who refused the BBC's requests for an interview, has told state media that the sequences were released as soon as possible, and that he never said publicly that there was no human-to-human transmission.
That day, the Wuhan Health Commission issued a press release stating that 27 cases of viral pneumonia had been identified, but that there was no clear evidence of human to human transmission.
It would be a further 12 days before China shared the genetic sequences with the international community.
The Chinese government refused multiple interview requests by the BBC. Instead, it gave us detailed statements on China's response, which state that in the fight against Covid-19 China "has always acted with openness, transparency and responsibility, and … in a timely manner."
2px presentational grey line
BBC This World's 54 Days: China and the pandemic can be seen on BBC Two at 21:00 GMT on Tuesday 26 January, or 23:30 on Monday 1 February (except BBC Two Northern Ireland). Or watch on BBC iPlayer.
Part two - 54 Days: America and the Pandemic - will be on BBC Two on Tuesday 2 February at 21:00.
A BBC/PBS Frontline co-production.
1 January 2020: International frustration
International law stipulates that new infectious disease outbreaks of global concern be reported to the World Health Organization within 24 hours. But on 1 January the WHO still had not had official notification of the outbreak. The previous day, officials there had spotted the ProMed post and reports online, so they contacted China's National Health Commission.
"It was reportable," says Professor Lawrence Gostin, Director of the WHO Collaborating Center on national and global health law at Georgetown University in Washington DC, and a member of the International Health Regulations roster of experts. "The failure to report clearly was a violation of the International Health Regulations."
Dr Maria Van Kerkhove, a WHO epidemiologist who would become the agency's Covid-19 technical lead, joined the first of many emergency conference calls in the middle of the night on 1 January.
"We had the assumptions initially that it may be a new coronavirus. For us it wasn't a matter of if human to human transmission was happening, it was what is the extent of it and where is that happening."
It was two days before China responded to the WHO. But what they revealed was vague - that there were now 44 cases of viral pneumonia of unknown cause.
China says that it communicated regularly and fully with the WHO from 3 January. But recordings of internal WHO meetings obtained by the Associated Press (AP) news agency some of which were shared with PBS Frontline and the BBC, paint a different picture, revealing the frustration that senior WHO officials felt by the following week.
"'There's been no evidence of human to human transmission' is not good enough. We need to see the data," Mike Ryan WHO's health emergencies programme director is heard saying.
The WHO was legally required to state the information it had been provided by China. Although they suspected human to human transmission, the WHO were not able to confirm this for a further three weeks.
"Those concerns are not something they ever aired publicly. Instead, they basically deferred to China," says AP's Dake Kang. "Ultimately, the impression that the rest of the world got was just what the Chinese authorities wanted. Which is that everything was under control. Which of course it wasn't."
2 January: Silencing the doctors
The number of people infected by the virus was doubling in size every few days, and more and more people were turning up at Wuhan's hospitals.
But now - instead of allowing doctors to share their concerns publicly - state media began a campaign that effectively silenced them.
On 2 January, China Central Television ran a story about the doctors who spread the news about an outbreak four days earlier. The doctors, referred to only as "rumour mongers" and "internet users", were brought in for questioning by the Wuhan Public Security Bureau and 'dealt with' 'in accordance with the law'.
One of the doctors was Li Wenliang, the eye doctor whose warning had gone viral. He signed a confession. In February, the doctor died of Covid-19.
The Chinese government says that this is not evidence that it was trying to suppress news of the outbreak, and that doctors like Li were being urged not to spread unconfirmed information.
But the impact of this public dressing down was critical. For though it was becoming apparent to doctors that there was, in fact, human-to-human transmission, they were prevented from going public.
A health worker from Li's hospital, Wuhan Central, told us that over the next few days "there were so many people who had a fever. It was out of control. We started to panic. [But] The hospital told us that we were not allowed to speak to anyone."
The Chinese government told us that "it takes a rigorous scientific process to determine if a new virus can be transmitted from person to person".
The authorities would continue to maintain for a further 18 days that there was no human-to-human transmission.
3 January: Secret memo
Labs across the country were racing to map the complete genetic sequence of the virus. Among them was a renowned virologist in Shanghai, Professor Zhang Yongzhen who began sequencing on 3 January.
After having worked for two days straight, he obtained a complete sequence. His results revealed a virus that was similar to Sars, and therefore likely transmissible.
On 5 January, Zhang's office wrote to the National Health Commission advising taking precautionary measures in public places.
"On that very day, he was working to try and get information released as soon as possible, so the rest of the world could see what it was and so we could get diagnostics going", says Zhang's research partner, Professor Edward Holmes an evolutionary virologist at the University of Sydney.
But Zhang could not make his findings public. On January 3, the National Health Commission had sent a secret memorandum to labs banning unauthorised scientists from working on the virus and disclosing the information to the public.
"What the notice effectively did," says AP's Dake Kang, "is it silenced individual scientists and laboratories from revealing information about this virus and potentially allowing word of it to leak out to the outside world and alarm people."
None of the labs went public with the genetic sequence of the virus. China continued to maintain it was viral pneumonia with no clear evidence of human-to-human transmission.
It would be six days before it announced that the new virus was a coronavirus, and even then, it did not share any genetic sequences to allow other countries to develop tests and begin tracing the spread of the virus.
Three days later, on 11 January, Zhang decided it was time to put his neck on the line. As he boarded a plane between Beijing and Shanghai, he authorised Holmes to release the sequence.
The decision came at a personal cost - his lab was closed the next day for "rectification" - but his action broke the deadlock. The next day state scientists released the sequences they had obtained. The international scientific community swung into action, and a toolkit for a diagnostic test was publicly available by 13 January.
Despite the evidence from scientists and doctors, China would not confirm there was human-to-human transmission until 20 January.
At the beginning of any emerging disease outbreak, says health law expert Lawrence Gostin, it's always chaotic. "It was always going to be very difficult to control this virus, from day one. But by the time we knew [the international community] it was transmissible human to human, I think the cat was already out the bag, it already spread.
"That was the shot we had, and we lost it."
As Wang Linfa, a bat virologist at Duke-Nus Medical School in Singapore, says: "January 20th is the dividing line, before that the Chinese could have done much better. After that, the rest of the world should be really on high alert and do much better."