Live video feed?

Post

Posted
Rating:
#1 (In Topic #1232)
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
 I've been away from Gambas for way too long and my search hasn't turned up anything of value.

Is it possible to view live video in Gambas, such as an rtsp feed? I'm currently using VLC to live view my security cameras but I have to either open multiple instances of VLC or change URL's to view each one. I would like to bring all feeds together into one app. I don't need to record, that's already taken care of.

I've loaded both gb.media and gb.media.form but only see a mediaview and that didn't seem to allow an URL for anything other than a video file stored in a directory. Maybe I've missed how it's done?

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#2
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
 I'm guessing a live RTSP feed is not doable?

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#3
Guru
BruceSteers is in the usergroup ‘Guru’
 gb.media is basically a gstreamer interface so can do what gst can do.

I not the one who can answer though i have little experience with MediaPlayer and none with live feeds.

Others may be able to help though.
Online now: No Back to the top

Post

Posted
Rating:
#4
Avatar
Regular
thatbruce is in the usergroup ‘Regular’
There is/was a farm project that played the usb camera video in live mode. I cant remember who wrote it or what it was called. If you could find it, it might  provide some clues. I used it in a similar situation some years ago when I had a local idiot who kept stealing the wheely bins from the footpath for some unknown reason. It was quite good for that as he made a lot of noise at 3am so I was able to set the app going on bin night and when he woke me up I just hit "record" on the laptop beside the bed, rolled over, went back to sleep and reviewed the recording in the morning. I forwarded a couple of good ones to the local police and soon there were no more occurences. Hee hee.
Wish I could help more but I have had no more use for it since then.
b

Online now: No Back to the top

Post

Posted
Rating:
#5
Avatar
Administrator
sholzy is in the usergroup ‘unknown’
 Thanks, guys! That was just enough info to get me going in the right direction. I found an example in the farm that can play an RTSP stream and I'll base my project on that one. That project is in another language so it's going to take a bit to sort that out.

I have a neighbor who would "borrow" my water twice a year to top up her swimming pool. Twice a year my water usage for the month would double. I ended up putting on a faucet lock on that side of the house and the water usage spikes stopped. That resulted in her calling code enforcement on her neighbors just for harassment. Her husband is cool and didn't know she was calling code enforcement on everyone. Once he found out, it stopped. I think she's mentally unstable so I avoid her as much as possible.

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#6
Regular
vuott is in the usergroup ‘Regular’

Got2BeFree said

I found an example in the farm that can play an RTSP stream
Well, what's the name of this program that you found ?

Europaeus sum !

<COLOR color="#FF8000">Amare memorentes atque deflentes ad mortem silenter labimur.</COLOR>
Online now: No Back to the top

Post

Posted
Rating:
#7
Avatar
Administrator
sholzy is in the usergroup ‘unknown’

vuott said

Got2BeFree said

I found an example in the farm that can play an RTSP stream
Well, what's the name of this program that you found ?

IPTV by WebOss.

Once I saw how it's done, I realized just how simple it is. Just need a MediaView and feed it an RTSP url like this:

Code

MediaView1.Stop
MediaView1.URL = "rtsp://192.168.xxx.xxx:554/h264?username=yourUserName&password=somePassword"
MediaView1.Play
(The above rtsp line is for my brand of camera. May work for other brands.)

My project is showing 4 feeds and is able to expand to more feeds very easily. Currently the url's are hard coded in, but I'll eventually have the rtsp url's reside in a sqlite db to make it easier to add and delete cameras.  It's been about 4 years since my last project and I'm realizing just how much I've forgotten in that time.  :(

sholzy
Gambas One Site Director

To report bugs in the Gambas IDE:
Official Gambas Bug Tracker
Online now: No Back to the top

Post

Posted
Rating:
#8
Regular
rj71 is in the usergroup ‘Regular’

Got2BeFree said

vuott said

Got2BeFree said

I found an example in the farm that can play an RTSP stream
Well, what's the name of this program that you found ?

IPTV by WebOss.

Once I saw how it's done, I realized just how simple it is. Just need a MediaView and feed it an RTSP url like this:

Code

MediaView1.Stop
MediaView1.URL = "rtsp://192.168.xxx.xxx:554/h264?username=yourUserName&password=somePassword"
MediaView1.Play
(The above rtsp line is for my brand of camera. May work for other brands.)

My project is showing 4 feeds and is able to expand to more feeds very easily. Currently the url's are hard coded in, but I'll eventually have the rtsp url's reside in a sqlite db to make it easier to add and delete cameras.  It's been about 4 years since my last project and I'm realizing just how much I've forgotten in that time.  :(

This is some great info! I've been building a homemade "Netflix" app to use for my huge movie collection and that process naturally lead me to wonder if I can incorporate any live streaming just for laughs. If anyone is wondering, mediaview can also play an icecast stream. I have a Node Media server and when I get some time I'll see if mediaview can connect and play….unless anyone already knows the answer to that.
Online now: No Back to the top
1 guest and 0 members have just viewed this.