A Bangladeshi film director has been arrested and charged after a scene depicting police harshly interrogating a rape victim and highlighting attitudes towards violence against women in the conservative nation sparked the ire of the force.

The first half of "Nabab LLB", a fictional courtroom drama about rape and the treatment of victims starring megastar Shakib Khan, was released on a local streaming service in mid-December.

The scene from the movie directed by Anonno Mamun went viral on social media last week, with criticism directed at police over their handling of the case.

It angered the force, with Mamun, 34, and the actor who played the policeman, 46-year-old Shaheen Mridha, arrested on Friday.

"The officer was interrogating her using very offensive gestures and obscene language which is the opposite of healthy entertainment and will create negative perceptions about policing among the public," Dhaka Metropolitan Police said on their news portal.

The statement added that the pair were arrested "for making and acting in a film containing such offensive and obscene dialogue".

They faced court on Friday and were charged with "making a film with pornographic content" over a different scene depicting the sexual assault, police added.

Officers said they were also seeking to arrest Orchita Sporshia, the 27-year-old actress who played the rape victim.

A senior police officer told AFP Saturday that the film "insulted the entire force".

Bangladesh megastar Shakib Khan plays a lawyer in the courtroom drama 'Nabab LLB', which has angered the police over its depiction of the force
Bangladesh megastar Shakib Khan plays a lawyer in the courtroom drama 'Nabab LLB', which has angered the police over its depiction of the force AFP / STR

"The plot is completely fabricated and unpleasant. It is based on total falsehood," the officer, who asked to remain anonymous, said.

The pair face up to seven years in jail if they are found guilty.

Movies are usually vetted by the country's censorship board but regulations to include streaming service offerings have yet to be finalised.

There are five local streaming platforms in Bangladesh, including recently launched iTheatre, which released "Nabab LLB". The second part of the film is due to be released in early January.

The arrests were denounced by rights activists, who said the film accurately depicted the struggles rape victims face in Bangladesh's legal system.

"These arrests are nothing new but the continuation of attacks on artistic freedom," activist Rezaur Rahman Lenin told AFP.

Activists say violence against women is rising in Bangladesh.

According to local human rights organisation Ain-o-Salish Kendra (ASK), between April and August more than 630 rape cases were reported, with 29 women killed after the assault while five others took their own life.