[Elphel-support] [Urgent] Multicast
Alexandre Poltorak
polto at alsenet.com
Fri Feb 4 02:42:28 PST 2011
Jeff,
I already told you many times: your network configuration is wrong !!! It can not work. The network interface on the multicast lan should be configured with the same IP network as the cameras: 192.168.0.X/24
I already suggested you to connect two network cards to have internet and _dedicated_ multicast network. It's way more simple to configure.
Regards,
Polto
----- Mail original -----
De: "jeff witz" <witzjean at gmail.com>
À: support-list at support.elphel.com, garyamort at gmail.com
Envoyé: Vendredi 4 Février 2011 09:08:46
Objet: [Elphel-support] [Urgent] Multicast
Hello,
I'm looking to a solution that allows me to use the same flux on the same computer, with two different applications.
I must be able to record the flux while I'm performing computation on the same computer.
Until now I was using v4l2loopback to create a virtual device on /dev/video0 in order to let the kernel manage the multitask aspect. It was working perfectly until I upgrade the computer, now I can't open twice the device.
I can't depend on a driver that works randomly, So I must find a solution as fast as I can to succeed in such basic task.
I have a student that depends on this solution to perform is research work, so the people around me start to be very angry about the fact I don't succeed on this task.
I try everything I can without success :
biaxes at biaxes-LML:~$ ifconfig eth0
eth0 Link encap:Ethernet HWaddr 20:cf:30:76:e3:37
inet adr:172.31.25.179 Bcast:172.31.25.255 Masque:255.255.255.0
adr inet6: fe80::22cf:30ff:fe76:e337/64 Scope:Lien
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
Packets reçus:53500 erreurs:0 :0 overruns:0 frame:0
TX packets:7300 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 lg file transmission:1000
Octets reçus:75145304 (75.1 MB) Octets transmis:861937 (861.9 KB)
Interruption:20 Mémoire:f3de0000-f3e00000
Multicast is activated
biaxes at biaxes-LML:~$ mplayer rtsp:// 192.168.0.9
MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing rtsp:// 192.168.0.9 .
Resolving 192.168.0.9 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.0.9
Connecting to server 192.168.0.9[192.168.0.9]: 554...
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp:// 192.168.0.9
Stream not seekable!
file format detected.
10:29:42 Groupsock(5: 224.168.0.9, 20020, 255): failed to join group: setsockopt(IP_ADD_MEMBERSHIP) error: No such device
10:29:42 Groupsock(6: 224.168.0.9, 20021, 255): failed to join group: setsockopt(IP_ADD_MEMBERSHIP) error: No such device
Initiated "video/JPEG" RTP subsession on port 20020
VIDEO: [MJPG] 0x0 0bpp 40.000 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
Audio: no sound
Starting playback...
V: 0.0 0/ 0 ??% ??% ??,?% 0 0
Exiting... (End of file)
biaxes at biaxes-LML:~$
Mencoder didn't work
biaxes at biaxes-LML:~$ gst-launch rtspsrc location=rtsp:// 192.168.0.9:554 protocols=0x00000002 ! decodebin ! autovideosink
Définition du pipeline à PAUSED...
ERREUR : le pipeline refuse de se mettre en pause.
ERREUR : de l'élément /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0 : Impossible d'obtenir ou de définir un paramètre de ressource.
Information de débogage supplémentaire :
gstudpsrc.c(959): gst_udpsrc_start (): /GstPipeline:pipeline0/GstRTSPSrc:rtspsrc0/GstUDPSrc:udpsrc0:
could add membership -1: Aucun périphérique de ce type (19)
Définition du pipeline à NULL...
Libération du pipeline...
Gstreamer didn't work
A basic television is a good example of RTP/Multicast. If you turn your
television on to a specific channel at 10PM and start watching a show,
and I turn on my camera at 10:15PM to the same channel - we will both
see the same show at the same time, I will simply have missed the first
15 minutes. The show is being "multicast" to all devices that choose to
receive the show.
So using multicast in your use case, if you had 3 different processes
that yield different results, and you wanted them to all be done in
realtime on different computers, you could stream the recording to those
machines[the multicast function] and each machine could apply it's own
different program to the data and store it.[or rebroadcast, etc]...and
by the same token, if you have a single machine is fast enough, it could
run 3 different programs each of which connect to the RTP/multicast
stream and process the data...
See http://wiki.elphel.com/index.php?title=Camera_software#mencoder and
the section on mencoder for how you can run a program on an seperate
network connected system to capture the video as it is broadcast. See
the mplayer website for how you can add additional commands to mencoder
to process the video as it is captured.
I'm not sure if all of this would really be necessary however, as the
Elphel is running a linux operating system and can multitask, so I would
imagine you should be able to run mencoder locally to process the video
at the same time, or very nearly the same time, as your capturing it. I
suppose the benefit of designing your entire process/workflow to use
mencoder in conjunction with RTP/multicast would be that you could do it
all on the camera....and if you run into performance issues it is
incredibly easy to move the processing to an external system since the
same commands that run locally can run remotely.
Interestingly[to me at least], I just checked to 2 main libraries
mencoder uses to process/encode video[libavcodec and x264] and neither
of them are able to use a GPU for video encoding. Their all pure CPU
based with no plans on adding OpenCL/GPU enhancements. So if you are
planning on using additional systems for processing the video, adding a
GPU to the system won't provide any benefit if using mencoder.
-Gary
------------------------------
Message: 2
Date: Fri, 4 Feb 2011 14:39:49 +1100
From: Adam Gobi < adam.gobi at acheron.com.au >
To: support-list at support.elphel.com
Subject: Re: [Elphel-support] rtsp server
Message-ID:
<AANLkTi= dZhENm-oDTa2qKM894edJVb9MPjDJDVsTWeBj at mail.gmail.com >
Content-Type: text/plain; charset="iso-8859-1"
Hi Andrey,
still images are getting through fine, other information is as follows:
*Firmware Version:* Elphel (R) Model 353 Camera release 8.0.9.1
2592 x 1936 @10.626 fps
Thanks,
ag.
On 4 February 2011 14:30, Andrey Filippov < andrey at elphel.com > wrote:
> Adam,
>
> There could probably be different reasons you can not get the stream, but I
> do not have immediate solution. And I would like to troubleshoot it on a
> mailing list - maybe somebody can encounter the same problem. Additional
> info will be helpful - what is the firmware version, what is the frame size,
> exposure time (fps reported on the camera control panel), can you see still
> images from the camera or not, ...
>
> Andrey
>
>
> On Thu, Feb 3, 2011 at 7:03 PM, Adam Gobi < adam.gobi at acheron.com.au >wrote:
>
>> Hi Andrey,
>>
>> I can't get it to work in Kubuntu either, here is MPlayer's output:
>>
>> ---
>> MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team
>> mplayer: could not connect to socket
>> mplayer: No such file or directory
>> Failed to open LIRC support. You will not be able to use your remote
>> control.
>>
>> Playing rtsp:// 192.168.0.9 .
>> Resolving 192.168.0.9 for AF_INET6...
>> Couldn't resolve name for AF_INET6: 192.168.0.9
>> Connecting to server 192.168.0.9[192.168.0.9]: 554...
>> rtsp_session: unsupported RTSP server. Server type is 'unknown'.
>> STREAM_LIVE555, URL: rtsp:// 192.168.0.9
>> Stream not seekable!
>> file format detected.
>> Initiated "video/JPEG" RTP subsession on port 54444
>> VIDEO: [MJPG] 0x0 0bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s)
>> ==========================================================================
>> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
>> Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
>> ==========================================================================
>> Audio: no sound
>> Starting playback...
>> V: 0.0 0/ 0 ??% ??% ??,?% 0 0
>>
>> Exiting... (End of file)
>> ---
>>
>> Any ideas?
>>
>> Adam
>>
>> On 3 February 2011 18:14, Andrey Filippov < andrey at elphel.com > wrote:
>>
>>> Hi Adam,
>>>
>>> Can you repost your question to our Mailing List? I do not have
>>> experience with VLC+Windows, I use GNU/Linux, but I'm sure there is somebody
>>> on the ML who has this experience. The streamer on the camera side should
>>> run automatically, with MPlayer I just open the RTSP with:
>>> mplayer rtsp:///camera_ip
>>>
>>> Andrey
>>>
>>>
>>> On Wed, Feb 2, 2011 at 11:23 PM, Adam Gobi < adam.gobi at acheron.com.au >wrote:
>>>
>>>> Hi Andrey,
>>>>
>>>> I'm having trouble streaming the camera to VLC in windows. Is there
>>>> something I need to do to enable streaming on the camera side?
>>>>
>>>> Thanks,
>>>> ag.
>>>>
>>>> --
>>>> Adam Gobi
>>>> Electrical Engineer - Imaging
>>>> Acheron Project Pty Ltd
>>>> Leichhardt, NSW, Australia
>>>> e: adam.gobi at acheron.com.au
>>>> v: +61 451 951 323
>>>> f: +61 2 9571 5575
>>>>
>>>>
>>>
>>
>>
>> --
>> Adam Gobi
>> Electrical Engineer - Imaging
>> Acheron Project Pty Ltd
>> Leichhardt, NSW, Australia
>> e: adam.gobi at acheron.com.au
>> v: +61 451 951 323
>> f: +61 2 9571 5575
>>
>>
>
--
Adam Gobi
Electrical Engineer - Imaging
Acheron Project Pty Ltd
Leichhardt, NSW, Australia
e: adam.gobi at acheron.com.au
v: +61 451 951 323
f: +61 2 9571 5575
-------------- next part --------------
An HTML attachment was scrubbed...
URL: < http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20110204/5aa8b8e3/attachment-0001.html >
------------------------------
Message: 3
Date: Thu, 3 Feb 2011 20:51:39 -0700
From: Andrey Filippov < andrey at elphel.com >
To: Adam Gobi < adam.gobi at acheron.com.au >
Cc: support-list at support.elphel.com
Subject: Re: [Elphel-support] rtsp server
Message-ID:
< AANLkTikubysCVXGQ4s2dVn+ygZR2FVdnK3bDSyfUpLE_ at mail.gmail.com >
Content-Type: text/plain; charset="iso-8859-1"
Adam,
Can you try
mplayer rtsp:// 192.168.0.9 -vo null
and/or reduce image size so it will be smaller than the monitor screen.
Also - is it just a basic camera or the one with the 10359 multiplexer
board?
Andrey
Here is how the output looks when everything is working:
$ mplayer rtsp:// 192.168.0.236
MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote
control.
Playing rtsp:// 192.168.0.236 .
Resolving 192.168.0.236 for AF_INET6...
Couldn't resolve name for AF_INET6: 192.168.0.236
Connecting to server 192.168.0.236[192.168.0.236]: 554...
rtsp_session: unsupported RTSP server. Server type is 'unknown'.
STREAM_LIVE555, URL: rtsp:// 192.168.0.236
Stream not seekable!
file format detected.
Initiated "video/JPEG" RTP subsession on port 33508
VIDEO: [MJPG] 0x0 0bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s)
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
open: No such file or directory
[MGA] Couldn't open: /dev/mga_vid
[VO_TDFXFB] Can't open /dev/fb0: No such file or directory.
[VO_3DFX] Unable to open /dev/3dfx.
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
==========================================================================
Audio: no sound
Starting playback...
Movie-Aspect is 1.34:1 - prescaling to correct movie aspect.
VO: [vdpau] 2592x1936 => 2592x1936 Planar YV12
V: 11.7 64/ 64 32% 6% 0.0% 0 0
Exiting... (Quit)
On Thu, Feb 3, 2011 at 8:39 PM, Adam Gobi < adam.gobi at acheron.com.au > wrote:
> Hi Andrey,
>
> still images are getting through fine, other information is as follows:
>
> *Firmware Version:* Elphel (R) Model 353 Camera release 8.0.9.1
> 2592 x 1936 @10.626 fps
>
> Thanks,
> ag.
>
> On 4 February 2011 14:30, Andrey Filippov < andrey at elphel.com > wrote:
>
>> Adam,
>>
>> There could probably be different reasons you can not get the stream, but
>> I do not have immediate solution. And I would like to troubleshoot it on a
>> mailing list - maybe somebody can encounter the same problem. Additional
>> info will be helpful - what is the firmware version, what is the frame size,
>> exposure time (fps reported on the camera control panel), can you see still
>> images from the camera or not, ...
>>
>> Andrey
>>
>>
>> On Thu, Feb 3, 2011 at 7:03 PM, Adam Gobi < adam.gobi at acheron.com.au >wrote:
>>
>>> Hi Andrey,
>>>
>>> I can't get it to work in Kubuntu either, here is MPlayer's output:
>>>
>>> ---
>>> MPlayer 1.0rc4-4.4.5 (C) 2000-2010 MPlayer Team
>>> mplayer: could not connect to socket
>>> mplayer: No such file or directory
>>> Failed to open LIRC support. You will not be able to use your remote
>>> control.
>>>
>>> Playing rtsp:// 192.168.0.9 .
>>> Resolving 192.168.0.9 for AF_INET6...
>>> Couldn't resolve name for AF_INET6: 192.168.0.9
>>> Connecting to server 192.168.0.9[192.168.0.9]: 554...
>>> rtsp_session: unsupported RTSP server. Server type is 'unknown'.
>>> STREAM_LIVE555, URL: rtsp:// 192.168.0.9
>>> Stream not seekable!
>>> file format detected.
>>> Initiated "video/JPEG" RTP subsession on port 54444
>>> VIDEO: [MJPG] 0x0 0bpp 10.000 fps 0.0 kbps ( 0.0 kbyte/s)
>>>
>>> ==========================================================================
>>> Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
>>> Selected video codec: [ffmjpeg] vfm: ffmpeg (FFmpeg MJPEG)
>>>
>>> ==========================================================================
>>> Audio: no sound
>>> Starting playback...
>>> V: 0.0 0/ 0 ??% ??% ??,?% 0 0
>>>
>>> Exiting... (End of file)
>>> ---
>>>
>>> Any ideas?
>>>
>>> Adam
>>>
>>> On 3 February 2011 18:14, Andrey Filippov < andrey at elphel.com > wrote:
>>>
>>>> Hi Adam,
>>>>
>>>> Can you repost your question to our Mailing List? I do not have
>>>> experience with VLC+Windows, I use GNU/Linux, but I'm sure there is somebody
>>>> on the ML who has this experience. The streamer on the camera side should
>>>> run automatically, with MPlayer I just open the RTSP with:
>>>> mplayer rtsp:///camera_ip
>>>>
>>>> Andrey
>>>>
>>>>
>>>> On Wed, Feb 2, 2011 at 11:23 PM, Adam Gobi < adam.gobi at acheron.com.au >wrote:
>>>>
>>>>> Hi Andrey,
>>>>>
>>>>> I'm having trouble streaming the camera to VLC in windows. Is there
>>>>> something I need to do to enable streaming on the camera side?
>>>>>
>>>>> Thanks,
>>>>> ag.
>>>>>
>>>>> --
>>>>> Adam Gobi
>>>>> Electrical Engineer - Imaging
>>>>> Acheron Project Pty Ltd
>>>>> Leichhardt, NSW, Australia
>>>>> e: adam.gobi at acheron.com.au
>>>>> v: +61 451 951 323
>>>>> f: +61 2 9571 5575
>>>>>
>>>>>
>>>>
>>>
>>>
>>> --
>>> Adam Gobi
>>> Electrical Engineer - Imaging
>>> Acheron Project Pty Ltd
>>> Leichhardt, NSW, Australia
>>> e: adam.gobi at acheron.com.au
>>> v: +61 451 951 323
>>> f: +61 2 9571 5575
>>>
>>>
>>
>
>
> --
> Adam Gobi
> Electrical Engineer - Imaging
> Acheron Project Pty Ltd
> Leichhardt, NSW, Australia
> e: adam.gobi at acheron.com.au
> v: +61 451 951 323
> f: +61 2 9571 5575
>
>
> _______________________________________________
> Support-list mailing list
> Support-list at support.elphel.com
> http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: < http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20110203/ecdcca1b/attachment.html >
------------------------------
_______________________________________________
Support-list mailing list
Support-list at support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
End of Support-list Digest, Vol 18, Issue 1
*******************************************
--
Jean-François WITZ
_______________________________________________
Support-list mailing list
Support-list at support.elphel.com
http://support.elphel.com/mailman/listinfo/support-list_support.elphel.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://support.elphel.com/pipermail/support-list_support.elphel.com/attachments/20110204/d257299f/attachment-0002.html>
More information about the Support-list
mailing list