Pitter
Posts: 8
Joined: Wed May 11, 2016 2:36 pm

Autostart Socat to broadcast raspivid

Fri May 13, 2016 4:33 pm

Hello again,

i want to start a video broadcast automatically after boot sequence.
I oriented myself on this thread http://www.forum-raspberrypi.de/Thread- ... ach-reboot and got it working to the point that raspivid runs after boot. But it doesnt stream to my network. I used my normal stream command in the script - script is atm:

Code: Select all

sudo ifdown wlan0
sudo ifup wlan0

sudo killall raspivid

raspivid -w 1280 -h 810 -b 3000000 -fps 49 -t 0 -pf baseline -ih -g 49 -o - | socat -b 1024 - udp4-datagram:192.168.1.134:5000
Can someone help me to find the mistake ? PS: the command used directly in Terminal works, of course.

Pitter
Posts: 8
Joined: Wed May 11, 2016 2:36 pm

Re: Autostart Socat to broadcast raspivid

Sat May 14, 2016 4:40 pm

Nobody can help here? Its really important to me.

I got as far that with lxde raspivid gets started. I did this using ~/.config/lxsession/LXDE-pi/autostart.

But when i use my full command set (which streams raspivid using socat) in autostart nothing happens:

raspivid -w 1280 -h 810 -b 3000000 -fps 49 -t 0 -pf baseline -ih -g 49 -o - | socat -b 1024 - udp4-datagram:192.168.1.134:5000

Can socat get started at all using this method? Where could be the mistake?

tvjon
Posts: 778
Joined: Mon Jan 07, 2013 9:11 am

Re: Autostart Socat to broadcast raspivid

Tue May 17, 2016 9:21 am

"Nobody can help here?"

Well, it's quite difficult with just the info' you've supplied.

What OS are you using?

Where have you inserted your script?



Is there any particular reason you're booting to the X desktop? I imagine it's not that useful as the desktop will be mostly obliterated by raspivid's output?

Return to “General discussion”