Live webstream:

This forum is for topics specific to the Raspberry Pi and Arch Linux ARM

Live webstream:

Postby WisdomFire » Thu Mar 20, 2014 12:30 am

So, I have been trying to get a live web stream going on my Raspberry Pi, and I have gotten pretty far. I got throught the installation processes, and I have already configured wireless. Now, all I have left to do is to get a webcam hooked up and to start the live streaming working. Anyway, I looked on YouTube, and found a very nice and easy looking tutorial. I saw that it was in Raspbian, but I know enough about ArchLinux now to mostly get around it. Here's the link: http://www.youtube.com/watch?v=NVrqNaLxU_g. I got really far into it, but I found this error when trying to execute
$this->bbcode_second_pass_code('', 'service motion start')
I got the typical bash error saying that 'service: command not found'.
So, anyhow, I was wondering what way is there to try and by-pass this, or is there a different way to do this that I don't know of?

Thanks, WisdomFire.
WisdomFire
 
Posts: 9
Joined: Tue Mar 11, 2014 12:51 am

Re: Live webstream:

Postby WarheadsSE » Thu Mar 20, 2014 1:44 am

That command is a debian-ism, and sysvinit specific. Consider finding the associated .service for systemd.
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: Live webstream:

Postby WisdomFire » Thu Apr 10, 2014 11:19 pm

So I got most everything done. I have connected to the pi on the stream address (192.168.bla.bla:8081) but I cannot get a single image through. I have "Unable to open video device since bla bla bla". Occasionally I get to see a flash of green and then it goes back to the "Unable to bla bla bla"...

Am I missing a driver or something?
WisdomFire
 
Posts: 9
Joined: Tue Mar 11, 2014 12:51 am

Re: Live webstream:

Postby WisdomFire » Tue Apr 29, 2014 12:26 am

Ok, I finally realized what the heck my problem is. I didn't look at the webcam setup at the archlinux wiki. So, moving on: I tried setting up udev:

https://wiki.archlinux.org/index.php/Webcam_Setup#udev

Well, I tried going to VLC media player, and loading up everything. I got this:

$this->bbcode_second_pass_code('', 'VLC is unable to open the following MRL 'v4l2:///dev/video0'.')

I have not gotten anywhere with anything for the past two months... : (
WisdomFire
 
Posts: 9
Joined: Tue Mar 11, 2014 12:51 am

Re: Live webstream:

Postby hendry » Tue Apr 29, 2014 4:24 am

Getting a PI to stream to a Web browser is absolutely non-trivial.

Start with something basic like http://archpi.dabase.com/#sending-and-r ... he-network
hendry
 
Posts: 40
Joined: Wed Jul 31, 2013 8:28 am
Location: Singapore

Re: Live webstream:

Postby WisdomFire » Tue Apr 29, 2014 11:09 pm

Ok, I'll give it a shot.

Oh... What if the receiving machine is using Windows and I am not allowed to change that? (do not ask.)

Edit: Also, I am trying to edit my DHCP address. I am connected through a wireless adapter (if that is important, I don't know) Anyhow, I type in

$this->bbcode_second_pass_code('', 'dhcpcd interface')

and I get this output:

$this->bbcode_second_pass_code('', 'dhcpcd[1378]: sending commands to master dhcpcd process')

Am I doing something wrong?? :oops:
WisdomFire
 
Posts: 9
Joined: Tue Mar 11, 2014 12:51 am

Re: Live webstream:

Postby hendry » Wed Apr 30, 2014 7:11 am

Try stay on topic. I.e. open a new topic about your wireless problem.

Anyway, if you want to sanely stream, use eth0. Please.
hendry
 
Posts: 40
Joined: Wed Jul 31, 2013 8:28 am
Location: Singapore

Re: Live webstream:

Postby WisdomFire » Thu May 08, 2014 11:26 pm

The thing is, I can't sanely stream if wireless streaming is insane. The thing has to be cordless... I suppose I'll have to find other way to do this if this will not work wirelessly.
WisdomFire
 
Posts: 9
Joined: Tue Mar 11, 2014 12:51 am


Re: Live webstream:

Postby WisdomFire » Tue May 13, 2014 12:11 am

Well, I figured out one problem, and I will say it is an embarrasing one. I had my camera plugged into a powered usb hub and a the whole thing was switching from /dev/video0 to /dev/video1 and back. Anyhow, I can actually use the webcam... I think that I might be able to solve my problem now... :oops: Oh well. I will come back if need anymore help...

--WisdomFire
WisdomFire
 
Posts: 9
Joined: Tue Mar 11, 2014 12:51 am


Return to Raspberry Pi

Who is online

Users browsing this forum: No registered users and 3 guests