Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230

 

 

 

A multiprocessing problem

Programming languages, Coding, Executables, Package Creation, and Scripting.
Post Reply
Message
Author
debitant
Posts: 1
Joined: 2017-01-24 03:58

A multiprocessing problem

#1 Post by debitant »

Hello,
I have a process writing a h264 raw video stream to stdou. I would like to write this stream to a local file and also netcat it to a ip,portnum WHEN AVAILABLE (meaning if ip is listening on portnum I would like to send the stream. If ip,portnum is not listening then simply write to file locally. ) This should happen live without affecting the video writing process.

Currently whenever needed I restart the video writer and do the following:
writeh264VideoStream - | tee outVideo.h264 >(nc 192.168.1.10 5002) > /dev/null

( I am trying using named pipes and multiple processes and sending signals using trap etc. Just don't get it to work)
Is there anyway to connect and send to 5002 live without restarting the writing process writeh264VideoStream?
Thanks

Post Reply