The IEEE 802.15.4 standard, known as ZigBee, is limited to a through-rate of 250kbps providing support for small packet file transitions and it is designed to provide highly efficient connectivity with low power-usage. ZigBee is commonly used in wireless architecture and in controlling and monitoring applications. ZigBee's cost effective potential makes it highly likely that it will soon be used to transfer large amounts of data or stream video. However, ZigBee's current bandwidth is very low for video transmissions over IEEE 802.15.4 networks, therefore this will be difficult to achieve. Additionally, the ZigBee limitation could become a real problem if the user wishes to transmit a large amount of data in a very short time. Hence, in this paper a solution has been accomplished by applying Particle Swarm Optimization to Scalable Rate Control in order to increase the available bandwidth, which leads to both an improvement in the quality of picture and a reduction in the data loss when transmitting MPEG-4 video over the ZigBee wireless sensor networks.