Distributed Real-Time Processing of Multimedia Data With the P2G Framework