Clearly a departure. Went wheels up right after rotate. No way they'd be that low with the gear position the way it is without a failure. No landing markers in sight. This is either a take off or a disaster.
https://en.wikipedia.org/wiki/File:Ba_b747-400_g-civx_mainge...
Gear are retracted once a positive rate of climb has been achieved, but not that early.
I looked around on Youtube for some good examples, and this was the best I could find:
https://www.youtube.com/watch?v=5wjoF8-Oaew
The captain keeps a hand on the throttles until V1, and then it is several seconds after takeoff that FO retracts the gear.