Multicast streaming video files using tsplay

  • Tutorial
Good afternoon.

There was a need to broadcast video files to the network (movie trailers). The first thought that arose in my head (and probably also in yours?) Is VLC. Installed VLC, configured, launched and the result: everything works. After half an hour, I notice that the image is sometimes poured. I sin on the disk subsystem. After an hour, I understand that some heavy files roll in very hard, and some go perfectly. I open the TS stream analyzer and see (IAT jumps a lot when switching to another trailer): The

image

transport stream is not ideal, is VLC probably to blame? I am looking for other broadcast software and find tsplay.
Under the cut, there is a small instruction on how to start broadcasting a list of files via tsplay.
Immediately showing the results of the analyzer when broadcasting using tsplay:

image



The tsplay program is included in the software package called tstools.

Sources: code.google.com/p/tstools/downloads/list
Official website: tstools.berlios.de

Debian / Ubuntu users are lucky, you can install from the repositories.
The rest will have to download the sources, unzip and run make. Hope to describe this process is not necessary?

To start the broadcast we do:
tsplay filename.ts 1.2.3.4:5500

Looping:
tsplay filename.ts 1.2.3.4:5500 -loop

And we read only the first 1000 TS packets:
tsplay filename.ts 1.2.3.4:5500 -loop -m 1000

I wrote a simple loop that in turn broadcasts all .ts files from the current directory:
while true; do for i in `ls | grep .ts`; do tsplay $i 239.255.10.156:1234; done; done;

I threw it into screen and forgot, it has been working steadily for weeks.

Computer resources do not eat at all. I hope someone comes in handy. Check out the other tstools programs. Good luck.

Also popular now: