User avatar
CopterRichie
Posts: 131
Joined: Tue Mar 26, 2013 3:14 am
Location: Los Angeles CA.

omxplayer to play stream from 2nd Pi

Wed Jan 29, 2014 7:27 pm

Thank you in advance,

I would like to use omxplayer on Pi#2 to play a video stream sent from Pi#1. On Pi#1, I am using the following

Code: Select all

raspivid -t 0 -w 640 -h 480 -o - | nc 192.168.1.10 5001
What is required on Pi#2 to play the stream using omxplayer? (hopefully, something very simple)


Richard

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

Re: omxplayer to play stream from 2nd Pi

Wed Jan 29, 2014 7:51 pm

Will something simpler do?

nc -l -k 5001 | ./hello_video.bin /dev/stdin

Negligible latency :)

Make sure hello_video.bin is in your path.

You may have to build it in /opt/ etc.

HTH

User avatar
CopterRichie
Posts: 131
Joined: Tue Mar 26, 2013 3:14 am
Location: Los Angeles CA.

Re: omxplayer to play stream from 2nd Pi

Wed Jan 29, 2014 8:11 pm

Thank you.

User avatar
CopterRichie
Posts: 131
Joined: Tue Mar 26, 2013 3:14 am
Location: Los Angeles CA.

Re: omxplayer to play stream from 2nd Pi

Wed Jan 29, 2014 9:17 pm

tvjon wrote:Will something simpler do?

nc -l -k 5001 | ./hello_video.bin /dev/stdin

Negligible latency :)

Make sure hello_video.bin is in your path.

You may have to build it in /opt/ etc.

HTH

thank you, thank you and another thank you. Perfect!!

User avatar
CopterRichie
Posts: 131
Joined: Tue Mar 26, 2013 3:14 am
Location: Los Angeles CA.

Re: omxplayer to play stream from 2nd Pi

Fri Jan 31, 2014 10:07 pm

Code: Select all

nc -l -k 5001 | ./hello_video.bin /dev/stdin
Follow up question please, how can I modify the above line to write to both the /dev/stdin and to a file simultaneously?


Thank you.

ghans
Posts: 7863
Joined: Mon Dec 12, 2011 8:30 pm
Location: Germany

Re: omxplayer to play stream from 2nd Pi

Fri Jan 31, 2014 10:16 pm

Code: Select all

nc -l -k 5001 | tee filename.h264 | ./hello_video.bin /dev/stdin

ghans
• Don't like the board ? Missing features ? Change to the prosilver theme ! You can find it in your settings.
• Don't like to search the forum BEFORE posting 'cos it's useless ? Try googling : yoursearchtermshere site:raspberrypi.org

User avatar
CopterRichie
Posts: 131
Joined: Tue Mar 26, 2013 3:14 am
Location: Los Angeles CA.

Re: omxplayer to play stream from 2nd Pi

Fri Jan 31, 2014 10:17 pm

Thank you!!!

wjaxxx
Posts: 5
Joined: Sat Aug 23, 2014 11:32 am

Re: omxplayer to play stream from 2nd Pi

Mon Aug 25, 2014 6:59 am

Hi,

I have the same setup.
It works beautifull during the first moments while there is data in the hello_video buffer.

However when the receiver pi catch up the transmitter pi, the video starts to play less smooth like a little bit choppy.
Does it happens to you?

joicemj
Posts: 1
Joined: Sun Feb 05, 2017 9:09 am

Re: omxplayer to play stream from 2nd Pi

Sun Feb 05, 2017 9:25 am

Hi,
This is super cool. Thanks for sharing this here. I would like to go a step further. How to simply make a video conferencing using the same ?
I was thinking about a solution, like this
Image
picture shows.
One window showing the present user and the other window, remote user.
is this possible to composite both using `raspivid` ?
what about the possibility of doing the same with `gstreamer` ?
compositing is possible, I tried. But suffering to do the same with remote videos.
Any recommendations / help ?

Return to “Camera board”