kann man auch Motion anstatt mjpg-streamer? Ich finde da die Einstellöglichkeiten besser....zb Helligkeit usw.
Ich kann nur kein Videobild bei Anruf auf APP Elcom aufrufen. Ohne Anruf geht es, oder muss der Port in der FB freigegeben werden?
live streaming
-
- Hilfe / Ratschläge
- giand
- Erledigt
-
-
Hallo ,
ja , ich benutze motion mit doorpi und Android Elcom app Videofon 1.2 ohne probleme.
-
Hello ,
yes, i use motion with doorpi and Android Elcom app videophone 1.2 without any problems.
Hello Project. Could you please share with you Doorpi? I tried it so many times and it all failed. Doorpi worked properly without motion. As soon as I installed Motion, Doorpi could not be called anymore. I do hope you would let us know. BTW, I'm using a USB Cam that's why I'm using motion.Thank you
-
Hi
i install motion from .deb package with gdebi ,
from https://github.com/Motion-Project/motion/releases, you should find the right package for your system and install it.
You should check the port for web_control and stream , if there in not some conflict with doorpi because in the basic setting is port 8080
used. I m using one USB camera and one PI camera together without problem with doorpi , asterisk on the same RPI.
Let me know if this helpthank you
-
Hi Project,
Thanks for the reply. That's exactly what I wanted to do on a raspberry pi. With the RPi (Raspberry Pi) all I did install DoorPi and it works. After that I installed motion using the following command:After that was done I edited the motion.conf file and edited the /etc/default/motion file to make sure it runs every boot. But as soon Motions runs, DoorPi wouldnt answer when it's called. I'll try the github one and see how that goes. THanks again
-
Hello All,
I downloaded Directly from github.com/Motion-Project/motion/releases and installed it issued the command:
I'm still having the same problems. Could this be a conflict with the current version of Motion? Project, what version of Motion did you use?
-
Hi
i use version 4.1.1 an 4.2 , but i think that the problem will be not in the version. The motion itself works ?
-
Hi
i use version 4.1.1 to 4.2, but i think that the problem will not be in the version. The motion itself works?both DoorPi and Motion works perfectly as long as they are running separately. But once you try to run both in the same raspberry Pi then DoorPi stops working properly but motion works.
-
Ok... so I manually ran DoorPi with doorpi_cli --trace . First I just ran DoorPi. It worked.. Then I ran motion while doorpi is running... here is what I saw:
Code
Alles anzeigen2018-12-15 16: 06: 18,673 [INFO] [doorpi.sipphone.from_linphone] ms_filter_link: MSTee: 0x112fa68,1 -> MSAudioMixer: 0x1131a78,1 2018-12-15 16: 06: 18,676 [INFO] [doorpi.sipphone.from_linphone] ms_filter_link: MSAudioMixer: 0x1131a78,0 -> MSFileRec: 0x11385a8,0 2018-12-15 16: 06: 18,677 [INFO] [doorpi.sipphone.from_linphone] Initializing speex echo canceler with framesize = 64, filterlength = 2000, delay_samples = 0 2018-12-15 16: 06: 18,677 [INFO] [doorpi.sipphone.from_linphone] Initializing speex resampler in mode [min] 2018-12-15 16: 06: 18,678 [INFO] [doorpi.sipphone.from_linphone] MSOpusEnc: codec bit rate set to [30000] with ptime [20] 2018-12-15 16: 06: 18.678 [INFO] [doorpi.sipphone.from_linphone] Setting opus codec bitrate to [30000] from network bitrate [46000] with ptime [20] 2018-12-15 16: 06: 18.679 [INFO] [doorpi.sipphone.from_linphone] Initializing speex resampler in mode [min] 2018-12-15 16: 06: 18,679 [INFO] [doorpi.sipphone.from_linphone] Filter MSRtpRecv is already being scheduled; nothing to do. 2018-12-15 16: 06: 18,679 [INFO] [doorpi.sipphone.from_linphone] MSVolume set gain to [0.000000 db], [1.000000] linear 2018-12-15 16: 06: 18,679 [ERROR] [doorpi.sipphone.from_linphone] MSFileRec: can not start, state = 2 2018-12-15 16: 06: 18,680 [INFO] [doorpi.sipphone.from_linphone] audio_stream_link_video () connecting itc filters 2018-12-15 16: 06: 18,680 [INFO] [doorpi.sipphone.from_linphone] Setting video size 640x480 on stream [0x1127c90] 2018-12-15 16: 06: 18,680 [INFO] [doorpi.sipphone.from_linphone] linphone_call_start_video_stream lc rotation: 0
noticed on line 10 an ERROR occured:
- 2018-12-15 16: 06: 18.679 [ERROR] [doorpi.sipphone.from_linphone] MSFileRec: can not start, state = 2
This is the first error I saw. Then looking at the rest of the data, I saw more errors:
Code
Alles anzeigen2018-12-15 16: 06: 18,683 [INFO] [doorpi.sipphone.from_linphone] Limiting bit rate of video encoder to 1500000 bits / s for stream [0x1127c90] 2018-12-15 16: 06: 18,683 [INFO] [doorpi.sipphone.from_linphone] Video configuration set: bitrate = 1500000bits / s, fps = 12.000000, vsize = 640x480 for encoder [0x114e540] 2018-12-15 16: 06: 18,683 [INFO] [doorpi.sipphone.from_linphone] Driver is uvcvideo, version is 265807 2018-12-15 16: 06: 18,684 [INFO] [doorpi.sipphone.from_linphone] format MS_YUYV: max_fps = 30, native = 1, compressed = 0 2018-12-15 16: 06: 18,685 [INFO] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT: Device or resource busy 2018-12-15 16: 06: 18,685 [ERROR] [doorpi.sipphone.from_linphone] No compatible format found 2018-12-15 16: 06: 18,686 [INFO] [doorpi.sipphone.from_linphone] format MS_YUYV: max_fps = 30, native = 1, compressed = 0 2018-12-15 16: 06: 18,687 [INFO] [doorpi.sipphone.from_linphone] alsa_open_r: opening default at 8000Hz, bits = 16, stereo = 0 2018-12-15 16: 06: 18,687 [INFO] [doorpi.sipphone.from_linphone] so error in pcm_hw.c: 1602 - open '/ dev / snd / pcmC0D0c' failed (-2) 2018-12-15 16: 06: 18,688 [WARNING] [doorpi.sipphone.from_linphone] alsa_open_r: Error opening PCM device default 2018-12-15 16: 06: 18,688 [INFO] [doorpi.sipphone.from_linphone] Stun packet sent for session [0x1155328] 2018-12-15 16: 06: 18,688 [INFO] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT: Device or resource busy 2018-12-15 16: 06: 18,689 [ERROR] [doorpi.sipphone.from_linphone] No compatible format found 2018-12-15 16: 06: 18,689 [INFO] [doorpi.sipphone.from_linphone] format MS_YUYV: max_fps = 30, native = 1, compressed = 0 2018-12-15 16: 06: 18,691 [INFO] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT: Device or resource busy 2018-12-15 16: 06: 18,691 [ERROR] [doorpi.sipphone.from_linphone] No compatible format found 2018-12-15 16: 06: 18,691 [INFO] [doorpi.sipphone.from_linphone] format MS_YUYV: max_fps = 30, native = 1, compressed = 0 2018-12-15 16: 06: 18,692 [INFO] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT: Device or resource busy 2018-12-15 16: 06: 18.693 [ERROR] [doorpi.sipphone.from_linphone] No compatible format found 2018-12-15 16: 06: 18,693 [INFO] [doorpi.sipphone.from_linphone] Could not find any combination of resolution / pixel-format that works! 2018-12-15 16: 06: 18,693 [INFO] [doorpi.sipphone.from_linphone] Fallback. Trying to force YUV420 format 2018-12-15 16: 06: 18,694 [ERROR] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT failed: Device or resource busy 2018-12-15 16: 06: 18,694 [INFO] [doorpi.sipphone.from_linphone] Output video size adjusted to match camera resolution (640x480) 2018-12-15 16: 06: 18,694 [INFO] [doorpi.sipphone.from_linphone] Video configuration set: bitrate = 500000bits / s, fps = 12.000000, vsize = 640x480 for encoder [0x114e540] 2018-12-15 16: 06: 18,695 [INFO] [doorpi.sipphone.from_linphone] Setting sent vsize = 640x480, fps = 12.000000 2018-12-15 16: 06: 18,695 [INFO] [doorpi.sipphone.from_linphone] Video configuration set: bitrate = 500000bits / s, fps = 12.000000, vsize = 640x480 for encoder [0x114e540] 2018-12-15 16: 06: 18,695 [INFO] [doorpi.sipphone.from_linphone] Driver is uvcvideo, version is 265807 2018-12-15 16: 06: 18,696 [INFO] [doorpi.sipphone.from_linphone] format MS_YUYV: max_fps = 30, native = 1, compressed = 0 2018-12-15 16: 06: 18,697 [INFO] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT: Device or resource busy 2018-12-15 16: 06: 18,697 [WARNING] [doorpi.sipphone.from_linphone] Getting reference signal no echo to synchronize on. 2018-12-15 16: 06: 18,698 [ERROR] [doorpi.sipphone.from_linphone] No compatible format found 2018-12-15 16: 06: 18,698 [INFO] [doorpi.sipphone.from_linphone] MSAudioMixer [0x1246448] is entering bypass mode. 2018-12-15 16: 06: 18,698 [INFO] [doorpi.sipphone.from_linphone] format MS_YUYV: max_fps = 30, native = 1, compressed = 0 2018-12-15 16: 06: 18,699 [INFO] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT: Device or resource busy 2018-12-15 16: 06: 18,700 [ERROR] [doorpi.sipphone.from_linphone] No compatible format found 2018-12-15 16: 06: 18,700 [INFO] [doorpi.sipphone.from_linphone] format MS_YUYV: max_fps = 30, native = 1, compressed = 0 2018-12-15 16: 06: 18,701 [INFO] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT: Device or resource busy 2018-12-15 16: 06: 18,701 [ERROR] [doorpi.sipphone.from_linphone] No compatible format found 2018-12-15 16: 06: 18,701 [INFO] [doorpi.sipphone.from_linphone] format MS_YUYV: max_fps = 30, native = 1, compressed = 0 2018-12-15 16: 06: 18,702 [INFO] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT: Device or resource busy 2018-12-15 16: 06: 18,703 [ERROR] [doorpi.sipphone.from_linphone] No compatible format found 2018-12-15 16: 06: 18,704 [INFO] [doorpi.sipphone.from_linphone] Could not find any combination of resolution / pixel-format that works! 2018-12-15 16: 06: 18,704 [INFO] [doorpi.sipphone.from_linphone] Fallback. Trying to force YUV420 format 2018-12-15 16: 06: 18.705 [ERROR] [doorpi.sipphone.from_linphone] VIDIOC_S_FMT failed: Device or resource busy Segmentation fault
I admit I am a noob at this. I really wish somebody out there has a solution.
-
Hi
can you post doorpi.ini and the motion.conf and when you use the separate conf file for camera then camera1.conf, too.
What hw configuration do you use on rpi, what sound card , camera etc ? -
Hi Project,
Regarding sound card, I do use the 3.5mm jack for my sound card and for the microphone I do use the built in Mic from the web cam. The webcam is just the cheap Docooler USB 2.0 12 Megapixel HD Camera Web Cam (I highly doubt this). But it does work. Now for the Doorpi.ini
Code
Alles anzeigen[SMTP] server = smtp.gmail.com port = 465 use_ssl = true use_tls = true need_login = true username=*************@gmail.com password=**************** from = ************** [keyboards] onboardpins = gpio [onboardpins_keyboard] bouncetime = 2000 pressed_on_keydown=false [onboardpins_InputPins] 11 = call:201 [onboardpins_OutputPins] 13 = open_main_gate 18 = status_LED [DoorPi] base_path = /usr/local/etc/DoorPi eventlog = !BASEPATH!/conf/eventlog.db is_alive_led = status_LED snapshot_path = !BASEPATH!/../DoorPiWeb/snapshots/ number_of_snapshots = 100 snapshot_size = 2048x1500 [DoorPiWeb] indexfile = index.html ip = 192.168.1.78 loginfile = login.html online_fallback = http://motom001.github.io/DoorPiWeb port = 80 public = AREA_public www = !BASEPATH!/../DoorPiWeb [DTMF] "*123" = out:open_main_gate,1,0,3 [AREA_public] ;.* /dashboard/bower_components/.* /dashboard/dist/.* /dashboard/js/.* /dashboard/less/.* /login.html /favicon.ico [AREA_config] /control/config_value_get /control/config_value_set /control/config_value_delete /control/config_save /control/config_get_configfile .* [AREA_dashboard] /dashboard/pages/.*html [AREA_status] /status /mirror .* [User] admin=************* visitor=*********** door=************** [Group] administrators = admin, door guests = visitor [WritePermission] administrators = dashboard,status,config [ReadPermission] guests = dashboard [EVENT_OnStartup] 10 = sleep:1 20 = out:LED,1 30 = out:IR,0 40 = take_snapshot 50 = mailto:*********@gmail.com,DoorPi:OnStartup,DoorPi up,true [EVENT_OnShutdown] 10 = take_snapshot 15 = mailto:*********@gmail.com,DoorPi:OnShutdown,DoorPi down,true 20 = out:IR,0 30 = out:LED,0 [AdminNumbers] 200 = active 201 = active [SIP-Phone] firewallpolicy = PolicyNoFirewall audio_codecs = PCMA,PCMU call_timeout = 30 capture_device = ALSA: USB PnP Sound device dialtone = !BASEPATH!/media/ShortDialTone.wav dialtone_renew_every_start = False dialtone_volume = 100 echo_cancellation_enabled = True identity = 203 ; This might need to be changed to a different port local_port = 5270 max_call_time = 120 playback_device = ALSA: USB PnP Sound device record_while_dialing = False records = !BASEPATH!/records/%Y-%m-%d_%H-%M-%S.wav sipphonetyp = linphone sipserver_password = ********* sipserver_realm = Asterisk sipserver_server = 192.168.1.78 sipserver_username = 203 stun_server = 192.168.1.78 ua.max_calls = 2 video_codecs = VP8 video_device = V4L2: /dev/video0 video_display_enabled = False video_size = uxga [EVENT_BeforeKeyPressed] ;20 = out:IR,1 30 = take_snapshot 40 = mailto:*********@gmail.com,DoorPi:BeforeKeyPressed,DoorPi BeforeKeyPressed,true 50 = sleep:20 [EVENT_AfterKeyPressed] ;20 = out:IR,1 30 = take_snapshot 40 = mailto:*********@gmail.com,DoorPi:AfterKeyPressed,DoorPi AfterKeyPressed,true 50 = sleep:20 [EVENT_OnSipPhoneMakeCall] ;10 = out:open_door,1 20 = out:IR,1 30 = take_snapshot 40 = mailto:*********@gmail.com,DoorPi:OnSipPhoneMakeCall,DoorPi OnSipPhoneMakeCall,true [EVENT_OnCallStateConnect] ;10 = out:open_door,1 20 = out:IR,1 ;20 = ipsrpc_setvalue:40276,true 30 = take_snapshot 40 = mailto:*********@gmail.com,DoorPi:OnSipPhoneMakeCall,DoorPi OnCallStateConnect,true [EVENT_OnCallStateDisconnect] ;10 = out:open_door,0 20 = out:IR,0 ;20 = ipsrpc_setvalue:40276,false 30 = take_snapshot 40 = mailto:*********@gmail.com,DoorPi:OnSipPhoneMakeCall,DoorPi OnCallStateDisConnect,true [EVENT_OnCallIncomming] 10 = mailto:*********@gmail.com,DoorPi:OnStartup,DoorPi up 10 = out:IR,1 30 = take_snapshot 40 = mailto:*********@gmail.com,Appel de !remote_uri!,DoorPi appel étrange de !remote_uri!,true 50 = sleep:1
and for the motion.conf file:
Code
Alles anzeigendaemon on process_id_file /var/run/motion/motion.pid setup_mode off logfile /var/log/motion/motion.log log_level 6 log_type all videodevice /dev/video0 v4l2_palette 17 input -1 norm 0 frequency 0 power_line_frequency -1 rotate 0 width 640 height 480 framerate 100 minimum_frame_time 0 netcam_keepalive off netcam_tolerant_check off tsp_uses_tcp on auto_brightness on brightness 0 contrast 0 saturation 0 hue 0 roundrobin_frames 1 roundrobin_skip 1 switchfilter off threshold 1500 threshold_tune off noise_level 32 noise_tune on despeckle_filter EedDl smart_mask_speed 0 lightswitch 0 minimum_motion_frames 1 pre_capture 0 post_capture 25 event_gap 60 max_movie_time 0 emulate_motion off output_pictures off output_debug_pictures off quality 100 picture_type jpeg ffmpeg_output_movies on ffmpeg_output_debug_movies off ffmpeg_timelapse 0 ffmpeg_timelapse_mode daily ffmpeg_bps 400000 ffmpeg_variable_bitrate 0 ffmpeg_video_codec mpeg4 ffmpeg_duplicate_frames true use_extpipe off bframes=4:frameref=1:subq=1:scenecut=-1:nob_adapt:threads=1:keyint=1000:8x8dct:vbv_bufsize=4000:crf=24:partitions=i8x8,i4x4:vbv_maxrate=800:no-chroma-me -vf denoise3d=16:12:48:4,pp=lb -of avi -o %f.avi - -fps %fps snapshot_interval 0 locate_motion_mode off locate_motion_style box text_right %Y-%m-%d\n%T-%q text_left CAMERA %t text_changes off text_event %Y%m%d%H%M%S text_double on target_dir /tmp/motion snapshot_filename %v-%Y%m%d%H%M%S-snapshot picture_filename %v-%Y%m%d%H%M%S-%q movie_filename %v-%Y%m%d%H%M%S timelapse_filename %Y%m%d-timelapse ipv6_enabled off stream_port 9081 stream_quality 100 stream_motion off stream_maxrate 1 stream_localhost off stream_limit 0 stream_auth_method 0 webcontrol_port 9080 webcontrol_localhost off webcontrol_html_output on track_type 0 track_auto off track_iomojo_id 0 track_step_angle_x 10 track_step_angle_y 10 track_move_wait 10 track_speed 255 track_stepsize 40 quiet on
I do hope you can find my problem with these information. Thank you in advance Project for the assistance. I've been working on this for such a long time now.
-
Hi
i see possible problem in the doorpi.ini with video_size = uxga , try set it to vga ?
poststream_maxrate = 1 , post_capture=25, why this settings ?
the snapshot_size is set up to 2048x1500 but you have the camera set to resolution 640x480 ?
How do you handle or for what you use the video stream from the camera ?
For the doorpi you need only snapshot or video stream too ? -
Hi
i see possible problem in the doorpi.ini with video_size = uxga , try set it to vga ?
poststream_maxrate = 1 , post_capture=25, why this settings ?
the snapshot_size is set up to 2048x1500 but you have the camera set to resolution 640x480 ?
How do you handle or for what you use the video stream from the camera ?
For the doorpi you need only snapshot or video stream too ?Thanks Project. Lots of good info here. I'll change the video setting to match Motion's. I really don't need video streaming on doorpi but I don't know how to stop streaming with Doorpi. Thanks again Project
-
hi
in the doorpi.ini try setup
video_device = StaticImage: Static picture
-
hi
in the doorpi.ini try setup
video_device = StaticImage: Static picture
PROJECT YOU ARE A BEAST!!!! BWAHAHAHA!!! IT WORKED! THANK YOU!!!
Just to let everyone know, it was the video capability of DoorPi that was causing the conflict. By disabling it as per Project's help, all is working now. My case is closed. Thanks again buddy.
-
Hello, i have same problem if i want to use motion and doorpi but would like to use video streaming on doorpi.
Is this possible too?Background:
i would like to use linphone to had a video voip call, but would like to get snapshot from cam via push message and videostream recorded if no voip call can be established. -
Hi
unfortunately I do not know how to make video video call from doorpi /linphone , i have to try it.
For snapshot i use curl command in doorpi under [EVENT_.........
10=os_execute:curl -s -o /dev/null http://localhost:port/camid/action/snapshot
or when you use in motion protection with password then
10=os_execute:curl -u user:password -s -o /dev/null http://localhost:port/camid/action/snapshot
port: your port for web control
camid: number of your camerawhen you will make video , use the same way with event and curl command in doorpi -
10=os_execute:curl -s -o /dev/null http://localhost:port/camid/action/eventstart
20=sleep 10 #depend how long should a video be.
30=os_execute:curl -s -o /dev/null http://localhost:port/camid/action/eventend--check in motion setting the parameter : movie_output on