Longbow
Posts: 3
Joined: Thu Nov 08, 2012 10:38 am

Re: Getting Streaming working to a PC

Fri May 17, 2013 9:45 am

RexRoper wrote:Update 2: After a bit of web searching I found a Win 32/64Bit download for netcat that solved my issues on my WinXP box. No change on the Win8 boxes. Both 32Bit and 64Bit Win8 fail with the same error as above. I will test Win 7 tomorrow. netcat for Win 32/64Bit can be found at:
http://eternallybored.org/misc/netcat/
This solved it for me too, I downloaded the 1.11 version and it works.

towolf
Posts: 421
Joined: Fri Jan 18, 2013 2:11 pm

Re: Getting Streaming working to a PC

Fri May 17, 2013 10:54 pm

New style of HTTP streaming to iDevices and Android described here: http://www.raspberrypi.org/phpBB3/viewt ... 4&p=351398

Unhban
Posts: 53
Joined: Sun Oct 14, 2012 10:58 am

Re: Getting Streaming working to a PC

Sat May 18, 2013 3:15 pm

Just got mine working OK with my PC, but have found an unusual effect ('feature'?) with Mplayer.

If I use my mouse wheel a series of white squares appear across the screen. They seem to do nothing. However, I've found that if I turn the mouse wheel towards me the time between movement in real life and shown on the screen increases. Whereas, if I turn the wheel away from me the delay decreases to vitually zero.

BTW, I have the -cache setting on the PC set to 4096 (Vista). On the Pi I had to add an -ex night setting, otherwise the pic was quite grainy. Also added a -br 55 setting, otherwise the blacks were crushed.

So my final line (so far!) looks like :

Code: Select all

raspivid -t 999999 -hf -ex night -br 55 -o - | nc 192.168.1.65 5001
BTW, the IP Address is the one for your PC and not your Pi..... :P

Unh.

LeoWhite
Posts: 131
Joined: Mon Apr 08, 2013 9:20 am
Contact: Website

Re: Getting Streaming working to a PC

Sat May 18, 2013 4:47 pm

I've finally managed to get streaming workign using vlc and rtp. Seems a little more stable than using http (and I never got netcat/mplayer working under Window!

Running raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264

Lets me then play the stream using VLC in windows by Network Streaming from rtsp://<IP of RPi>:8554/

This gets me a step closer to getting better streaming from my BigTraks!

ProgDrums
Posts: 10
Joined: Wed Apr 10, 2013 10:36 am

Re: Getting Streaming working to a PC

Sat May 18, 2013 8:53 pm

LeoWhite wrote:I've finally managed to get streaming workign using vlc and rtp. Seems a little more stable than using http (and I never got netcat/mplayer working under Window!

Running raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264

Lets me then play the stream using VLC in windows by Network Streaming from rtsp://<IP of RPi>:8554/
This won't work for me. VLC comes up with the following error.

Connection failed:
VLC could not connect to "192.168.1.51:8554".

The IP is definitely right as I've double checked with ifconfig.

EDIT: Cancel that. It's working after a reboot of the PC.

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Getting Streaming working to a PC

Sat May 18, 2013 11:25 pm

Sucess :)

Moved camera to another RPi - different WiFI adaptor same SD card - same PSU - no flashing so at least the camera isn't k'nacked :)

Code: Select all

raspivid -t 999999 -o - | nc 192.168.1.76 5001

Code: Select all

c:\apps\nc\nc.exe -L -p 5001 | c:\apps\mplayer\mplayer.exe -fps 31 -cache 1024 -
Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

RexRoper
Posts: 67
Joined: Wed Oct 31, 2012 4:45 pm
Location: South Florida
Contact: Website

Re: Getting Streaming working to a PC

Sun May 19, 2013 1:09 am

LeoWhite wrote:I've finally managed to get streaming workign using vlc and rtp. Seems a little more stable than using http (and I never got netcat/mplayer working under Window!

Running raspivid -o - -t 99999 |cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264

Lets me then play the stream using VLC in windows by Network Streaming from rtsp://<IP of RPi>:8554/

This gets me a step closer to getting better streaming from my BigTraks!
My Pi reboots every time when I try this method. It has me quit baffled. :?: I am not certain what the cause is at this point, unless an update/upgrade has released since this past Wednesday evening.

Any suggestions?

User avatar
recantha2
Posts: 286
Joined: Wed Nov 14, 2012 9:34 am
Location: Potton, Bedfordshire
Contact: Website Facebook Twitter

Re: Getting Streaming working to a PC

Sun May 19, 2013 7:23 am

I sounds like that could be a power supply problem. Try a different one.
--
Michael Horne - @recantha
Raspberry Pi blog - http://www.recantha.co.uk/blog

Cambridge Raspberry Jam
Website: http://camjam.me
Facebook: https://www.facebook.com/cambridgeraspberryjam
Follow the Cambridge Raspberry Jam on Twitter - @cambridgejam

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Getting Streaming working to a PC

Sun May 19, 2013 8:07 am

Are you powering via microUSB - I put down many of my power type problems to doing this, then drawing largish currents, then the poly-fuse becomes more resistive, then everything shuts down or goes funny :(

If possible, try get 5V direct into you RPI - safest route is a powered hub into one of the USB ports.

There is a small risk IF your camera is faulty that you could do some damage to your RPi but assuming the camera is not faulty, then there is very little risk in trying this

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

RexRoper
Posts: 67
Joined: Wed Oct 31, 2012 4:45 pm
Location: South Florida
Contact: Website

Re: Getting Streaming working to a PC

Mon May 20, 2013 12:17 pm

recantha2 wrote:I sounds like that could be a power supply problem. Try a different one.
Test voltage at TP1-TP2, I have 5.00VDC when my RPi is fully configured and powered. Voltage does not drop below 4V94 during boot process. I do not believe power to be the specific problem in this situation, but I could be mistaken.

simplesi
Posts: 2327
Joined: Fri Feb 24, 2012 6:19 pm
Location: Euxton, Lancashire, UK
Contact: Website

Re: Getting Streaming working to a PC

Mon May 20, 2013 1:28 pm

I think James said it took quite a bit of current when recording a vid - so that would be the time to measure the volts i'd thought

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter

Return to “Camera board”