Two Canadians who were arrested during protests in Egypt and then imprisoned have posted a video on YouTube thanking those who worked to get them out.

Toronto-based filmmaker John Greyson and Tarek Loubani, a doctor from London, Ontario, put up the short clip Wednesday on Greyson's YouTube account.

"50 days inside, three days outside, we thought we'd say hi," says Greyson.

"Hi to all of our friends, hi to all of our families, hello to all of the very wonderful people who worked so hard to make this day possible for us. Hello," Loubani says.

The two remain under investigation by Egyptian authorities, and it is unclear when they will be able to leave the country and come back to Canada, according to an official.

"The public prosecutor office and the investigative judge should decide whether they will be tried before a court, or the whole investigation file should be closed and then they'll have the right to go home," Badr Abdelatty said.

"We're stuck a bit, the ordeal is not over. But for now we thought we'd say hi," Greyson says.

"Our thoughts are with the prisoners and their families who are still inside."

The two were arrested on August 16 and placed in Cairo's crowded Tora prison, where they were "sleeping on concrete with the cockroaches" and sharing "a single tap of Nile water" with six others.

Also on HuffPost:

Loading Slideshow...
  • Tarek Loubani

    This undated family photo shows Canadian doctor Tarek Loubani, who has been in detention in Egypt since his arrest on Aug. 16, 2013 in Cairo.

  • John Greyson

    This undated file family photo provided by Cecilia Greyson shows Canadian filmmaker John Greyson, who has been in detention in Egypt since his arrest on Aug. 16, 2013 in Cairo.

  • Cecilia Greyson(C) speaks to supporters after a press conference September 10, 2013, on the sidelines of the Toronto film festival in Toronto, Canada. The sister of one of two Canadians being held in Egypt rallied 300 filmmakers and 100,000 moviegoers at North America's largest film festival Tuesday to press for their release

  • Friends, family and colleagues of Dr. Tarek Loubani gather at a rally in Victoria Park in London, Ont., September 24, 2013, calling on the Harper Government to become more involved in negotiating the release of Loubani and John Greyson.

  • Friends, family and colleagues of Dr. Tarek Loubani gather at a rally in Victoria Park in London, Ont., September 24, 2013, calling on the Harper Government to become more involved in negotiating the release of Loubani and John Greyson.

  • A person holds a poster at a rally to support a call for the release of two Canadians, Tarek Loubani and John Greyson detained in Egypt, in London, Ont., Tuesday, Sept. 24, 2013. Two Canadians arrested and detained without charge in Egypt for six weeks will be held for another 45 days. The sister of Toronto filmmaker John Greyson says a prosecutor issued the order just as her brother and London, Ont., doctor Tarek Loubani mark their first 45 days in prison.T

  • John Greyson

    This undated family photo provided by Cecilia Greyson shows Canadian filmmaker John Greyson, who has been in detention in Egypt since his arrest on Aug. 16, 2013 in Cairo.

  • Tarek Loubani and John Greyson

  • John Greyson