By the time I arrived at the scene, the meeting had been over.
When I arrived at the scene, the meeting had been over.
Are the two sentences correct?
By the time I arrived at the scene, the meeting had been over.
When I arrived at the scene, the meeting had been over.
Are the two sentences correct?
By the time vs when
OP's two sentences are
1.By the time I arrived at the scene, the meeting had been over.
2.When I arrived at the scene, the meeting had been over.
Are the two sentences correct?
OP's first sentence is correct. The second sentence would be correct by using "was" instead of had been. But the meaning of the sentence is changed.
When I arrived at the scene, the meeting was over. (Our church meeting was just over and they were serving tea and donuts)
The second sentence can have the same meaning as the first, if 'already' is used.
When I arrived at the scene, the meeting had already been over. (The meaning was completely over and I only saw empty chairs there)
There is nothing in either sentence that calls for the past perfect had been over. So, in isolation, the sentences are unidiomatic.
Here's an example of a sentence that calls for the past perfect:
By the time I arrived at the scene, the meeting had been over for an hour.
had been over indicates that the meeting ended at some time earlier than your arrival on the scene, but unless you say something about how much earlier that was, the sentence is lacking the very sort of information that justifies the use of the past perfect with over.
If you leave out over, then the past perfect alone is OK:
By the time I arrived, the meeting had ended.
And if you use the simple past, you can use over as the simple complement of the predicate:
By the time I arrived, the meeting was over.
over is a state, and you need to say how long the state had been in effect when you use the past perfect.
Compare:
By the time the case was reopened and the DNA results were admitted into evidence, the wrongly convicted man had been in prison for twenty years.
in prison is also a state.
By the time the fire trucks arrived, the building had been burning for half an hour.
burning is a state.