Re: [asterisk-users] call an IP camera?
On Sat, 2020-10-03 at 15:51 +0200, Antony Stone wrote: > On Thursday 24 September 2020 at 16:31:33, hw wrote: > > > Hi, > > > > is it possible to "call" an IP camera? I'm thinking about something like > > bridging with a music stream, but instead of streaming audio, bridge with > > the video stream from the camera. > > I'm curious - did you manage to get anywhere with this? Unfornuately not --- would be a cool featuere, though ... -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] call an IP camera?
On Thursday 24 September 2020 at 16:31:33, hw wrote: > Hi, > > is it possible to "call" an IP camera? I'm thinking about something like > bridging with a music stream, but instead of streaming audio, bridge with > the video stream from the camera. I'm curious - did you manage to get anywhere with this? Antony. -- It may not seem obvious, but (6 x 5 + 5) x 5 - 55 equals 5! Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] call an IP camera?
On Thu, 2020-09-24 at 18:45 +0200, Antony Stone wrote: > On Thursday 24 September 2020 at 18:28:13, hw wrote: > > > On Thu, 2020-09-24 at 16:57 +0200, Antony Stone wrote: > > > I would start with something like > > > https://www.voip-info.org/asterisk-config-musiconholdconf/ > > > https://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf > > > (or any more up to date documentation if you can find it). > > > > > > I've never tried that with video, but given how the media negotiation > > > between Asterisk and SIP devices is handled, I would expect it to work > > > given compatible codecs. > > > > Unfortunately, musiconhold.conf doesn't understand rtsp: > > [test] > > mode=playlist > > entry=rtsp://10.10.30.20/12 > > Have a look at https://www.voip-info.org/asterisk-config-musiconholdconf/ and > the section headings "Stream radio using MPlayer for MOH" and "Example using > asx (mms://)(.wmv) streams. (or “anything” that mplayer can play)." > > Those look promising to me. [test] mode=custom application=ffmpeg -i rtsp://10.10.30.20/12 -map 0:0 -f rawvideo pipe:1 WARNING[100823]: res_musiconhold.c:794 monmp3thread: poll() failed: Interrupted system call Other than getting lots of error messages as above, the command basically works in that ffmpeg pipes the video to STDOUT. I can use 'ffmpeg -i rtsp://10.10.30.20/12 -map 0:0 -f matroska pipe:1 > some_file' and then play the file with mpv (rawvideo doesn't work with mpv --- but should work with a phone?). Why is the system call being interrupted all the time? Because asterisk doesn't take video for music? -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] call an IP camera?
On Thursday 24 September 2020 at 18:28:13, hw wrote: > On Thu, 2020-09-24 at 16:57 +0200, Antony Stone wrote: > > > > I would start with something like > > https://www.voip-info.org/asterisk-config-musiconholdconf/ > > https://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf > > (or any more up to date documentation if you can find it). > > > > I've never tried that with video, but given how the media negotiation > > between Asterisk and SIP devices is handled, I would expect it to work > > given compatible codecs. > > Unfortunately, musiconhold.conf doesn't understand rtsp: > [test] > mode=playlist > entry=rtsp://10.10.30.20/12 Have a look at https://www.voip-info.org/asterisk-config-musiconholdconf/ and the section headings "Stream radio using MPlayer for MOH" and "Example using asx (mms://)(.wmv) streams. (or “anything” that mplayer can play)." Those look promising to me. Antony. -- "The future is already here. It's just not evenly distributed yet." - William Gibson Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] call an IP camera?
On 9/24/2020 12:28 PM, hw wrote: What are the requirements for the URLs that can be used with the 'playlist' option in musiconhold.conf? HTTP(S) -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] call an IP camera?
On Thu, 2020-09-24 at 15:01 +, Ralph L. Miller wrote: > The Grandstream camera product line has SIP output so you can "call" the > camera Good to know, thanks! Unfortunately, I don't have a camera like that. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] call an IP camera?
On Thu, 2020-09-24 at 16:57 +0200, Antony Stone wrote: > On Thursday 24 September 2020 at 16:31:33, hw wrote: > > > Hi, > > > > is it possible to "call" an IP camera? > > Only if it talks SIP (which some do, generally door entry cameras with a > push > button input and often a lock release output). > > > I'm thinking about something like bridging with a music stream, but > > instead > > of streaming audio, bridge with the video stream from the camera. > > So, maybe you should treat it like a music stream such as music on hold? > > > It would be very cool if I could just call the camera and see what's > > going > > on. Ffmpeg shows the following streams available from the camera: > > > > Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, > > 12 > > fps, 12 tbr, 90k tbn, 24 tbc > > > > Stream #0:0: Video: h264 (Main), yuv420p(progressive), 640x352, 12 > > fps, > > 12 tbr, 90k tbn, 24 tbc > > > > Perhaps it's not even necessary to recode the stream? > > Very likely, but what you're looking at there is the media format; you > also > need some sort of signalling protocol if you're going to call it from > Asterisk. > > I would start with something like > https://www.voip-info.org/asterisk-config-musiconholdconf/ > https://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf > (or any more up to date documentation if you can find it). > > I've never tried that with video, but given how the media negotiation > between > Asterisk and SIP devices is handled, I would expect it to work given > compatible codecs. Unfortunately, musiconhold.conf doesn't understand rtsp: #033[1;37mmoh_parse_options#033[0m: Playlist entries must be a URL or absolute path, 'rtsp://10.10.30.20/12' provided. Asterisk then ignores the configured music class when it's given like this in musiconhold.conf (and plays music from the default class instead): [test] mode=playlist entry=rtsp://10.10.30.20/12 So I guess that musiconhold may be limited to audio only. But who knows? What are the requirements for the URLs that can be used with the 'playlist' option in musiconhold.conf? It's generally possible to stream stuff to devices (like phones), like when using the Playback() dialplan application to stream audio. Is it somehow possible to stream audio from programs into channels from the dialplan or somewhere else without using musiconhold.conf? If that was possible, it might be possible to stream video instead. Does pjsip support video? [1] would indicate that it doesn't. However, that information seems to be over 8 years old :( [1]: https://wiki.asterisk.org/wiki/display/AST/Video+Telephony -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] call an IP camera?
The Grandstream camera product line has SIP output so you can "call" the camera -Original Message- From: asterisk-users [mailto:asterisk-users-boun...@lists.digium.com] On Behalf Of Antony Stone Sent: Thursday, September 24, 2020 10:57 AM To: Asterisk Users Mailing List - Non-Commercial Discussion Subject: Re: [asterisk-users] call an IP camera? On Thursday 24 September 2020 at 16:31:33, hw wrote: > Hi, > > is it possible to "call" an IP camera? Only if it talks SIP (which some do, generally door entry cameras with a push button input and often a lock release output). > I'm thinking about something like bridging with a music stream, but instead > of streaming audio, bridge with the video stream from the camera. So, maybe you should treat it like a music stream such as music on hold? > It would be very cool if I could just call the camera and see what's going > on. Ffmpeg shows the following streams available from the camera: > > Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 12 > fps, 12 tbr, 90k tbn, 24 tbc > > Stream #0:0: Video: h264 (Main), yuv420p(progressive), 640x352, 12 fps, > 12 tbr, 90k tbn, 24 tbc > > Perhaps it's not even necessary to recode the stream? Very likely, but what you're looking at there is the media format; you also need some sort of signalling protocol if you're going to call it from Asterisk. I would start with something like https://www.voip-info.org/asterisk-config-musiconholdconf/ https://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf (or any more up to date documentation if you can find it). I've never tried that with video, but given how the media negotiation between Asterisk and SIP devices is handled, I would expect it to work given compatible codecs. Antony. -- I bought a book on memory techniques, but I've forgotten where I put it. Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
Re: [asterisk-users] call an IP camera?
On Thursday 24 September 2020 at 16:31:33, hw wrote: > Hi, > > is it possible to "call" an IP camera? Only if it talks SIP (which some do, generally door entry cameras with a push button input and often a lock release output). > I'm thinking about something like bridging with a music stream, but instead > of streaming audio, bridge with the video stream from the camera. So, maybe you should treat it like a music stream such as music on hold? > It would be very cool if I could just call the camera and see what's going > on. Ffmpeg shows the following streams available from the camera: > > Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 12 > fps, 12 tbr, 90k tbn, 24 tbc > > Stream #0:0: Video: h264 (Main), yuv420p(progressive), 640x352, 12 fps, > 12 tbr, 90k tbn, 24 tbc > > Perhaps it's not even necessary to recode the stream? Very likely, but what you're looking at there is the media format; you also need some sort of signalling protocol if you're going to call it from Asterisk. I would start with something like https://www.voip-info.org/asterisk-config-musiconholdconf/ https://www.voip-info.org/wiki/view/Asterisk+config+musiconhold.conf (or any more up to date documentation if you can find it). I've never tried that with video, but given how the media negotiation between Asterisk and SIP devices is handled, I would expect it to work given compatible codecs. Antony. -- I bought a book on memory techniques, but I've forgotten where I put it. Please reply to the list; please *don't* CC me. -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users
[asterisk-users] call an IP camera?
Hi, is it possible to "call" an IP camera? I'm thinking about something like bridging with a music stream, but instead of streaming audio, bridge with the video stream from the camera. It would be very cool if I could just call the camera and see what's going on. Ffmpeg shows the following streams available from the camera: Stream #0:0: Video: h264 (Main), yuv420p(progressive), 1920x1080, 12 fps, 12 tbr, 90k tbn, 24 tbc Stream #0:0: Video: h264 (Main), yuv420p(progressive), 640x352, 12 fps, 12 tbr, 90k tbn, 24 tbc Perhaps it's not even necessary to recode the stream? -- _ -- Bandwidth and Colocation Provided by http://www.api-digital.com -- Check out the new Asterisk community forum at: https://community.asterisk.org/ New to Asterisk? Start here: https://wiki.asterisk.org/wiki/display/AST/Getting+Started asterisk-users mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-users