# How to split an image or video into a number of packets?

**URL:** <https://www.ruby-forum.com/t/how-to-split-an-image-or-video-into-a-number-of-packets/231219>\
**Category:** GNU Radio\
**Created:** [July 28, 2014, 8:11am UTC](https://www.ruby-forum.com/t/how-to-split-an-image-or-video-into-a-number-of-packets/231219 "2014-07-28T08:11:22Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [July 28, 2014, 8:11am UTC](https://www.ruby-forum.com/t/how-to-split-an-image-or-video-into-a-number-of-packets/231219/1 "2014-07-28T08:11:22Z")

</div>

Hi all,

I want to transmit an image/video from one node to another node using  
GNUradio, but I don’t know how to divide an image or video into multiple  
packets. I want to make it real time in the sense that an image/video is  
loaded, divided in to multiple packets and then transmitted  
continuously.  
Can any one tell me how to do this in GNUradio?  
Thank you very much  
Van-Ly

Van-Ly Nguyen,  
Signals and Systems of Laboratory - SSL  
Faculty of Electronics and Telecommunications - FET  
University of Engineering and Technology - UET  
Vietnam National University, Hanoi - VNU

Tel: (+84) 978 819 406

---

<div class="post-metadata">

**Author:** ![NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/9fc29f/32.png) [@NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/u/NguySSSn_VSSn_LS_S)\
**Post date:** [July 28, 2014, 8:51am UTC](https://www.ruby-forum.com/t/how-to-split-an-image-or-video-into-a-number-of-packets/231219/2 "2014-07-28T08:51:11Z")

</div>

Hi,

If I understand correctly you want to stream a video from one node to  
the  
other. You could use VLC for that and UDP source and sink in GNU Radio.

Basically use a UDP Source on the sender side and use VLC to stream a  
video  
to the UDP source’s port.  
On the receiver side, use a UDP Sink and use another instance of VLC to  
receive a stream for the UDP sink’s port.

2014-07-28 8:09 GMT+02:00 Nguyễn Văn Lý [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

---

<div class="post-metadata">

**Author:** ![NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/9fc29f/32.png) [@NguySSSn\_VSSn\_LS\_S](https://www.ruby-forum.com/u/NguySSSn_VSSn_LS_S)\
**Post date:** [July 28, 2014, 10:27am UTC](https://www.ruby-forum.com/t/how-to-split-an-image-or-video-into-a-number-of-packets/231219/3 "2014-07-28T10:27:26Z")

</div>

This is a really open question. How do you want to transmit? If you use  
OFDM, you can simply prepend a stream to tagged stream block.

M
