WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: curl-devel extension may be required for git on piCore 11 beta 2  (Read 3377 times)

Offline RockJamm

  • Newbie
  • *
  • Posts: 20
Hello again.

From a clean install of piCore beta 2

I've installed git and cmake and now I'm trying to pull from git:

git clone https://github.com/mpromonet/v4l2rtspserver.git

and I'm getting:

fatal: unable to find remote helper for 'https'

some suggestion that this can happen if curl-devel is not installed before git.

Does this sound right and if so please can it be added?  Many thanks


Offline RockJamm

  • Newbie
  • *
  • Posts: 20
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #1 on: June 05, 2020, 06:26:33 AM »
Some suggestions that running as root might help out there but:

sudo git clone https://github.com/mpromonet/v4l2rtspserver.git

gets same response

Offline RockJamm

  • Newbie
  • *
  • Posts: 20
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #2 on: June 05, 2020, 06:36:37 AM »
I have resolved this by using the git transport instead of https

sudo git clone git://github.com/mpromonet/v4l2rtspserver.git

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #3 on: June 05, 2020, 07:22:22 AM »
git updated - you will also need to update ca-certificates

(I haven't tried, but ffmpeg, gstreamer and motion should all be able to stream a v4l2 feed from the RPi camera)
« Last Edit: June 05, 2020, 07:26:11 AM by Juanito »

Offline RockJamm

  • Newbie
  • *
  • Posts: 20
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #4 on: June 05, 2020, 09:16:34 AM »
git updated - you will also need to update ca-certificates

(I haven't tried, but ffmpeg, gstreamer and motion should all be able to stream a v4l2 feed from the RPi camera)

That's really helpful thank you - on a bit of a learning curve re: streaming but getting there I think!

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #5 on: June 06, 2020, 06:51:15 AM »
This works on an RPI3 with an RPi camera and the motion extension:

edit /usr/local/etc/motion/motion.conf

webcontrol_localhost off
stream_localhost off

Then, on the RPi (or via ssh):
Code: [Select]
$ motion -n
...
[0:motion] [NTC] [ALL] conf_load: Processing thread 0 - config file /usr/local/etc/motion/motion.conf
[0:motion] [NTC] [ALL] motion_startup: Logging to syslog
[0:motion] [NTC] [ALL] motion_startup: Motion 4.3.1 Started
...
[0:motion] [NTC] [STR] webu_start_strm: Starting all camera streams on port 8081
[0:motion] [NTC] [STR] webu_strm_ntc: Started camera 0 stream on port 8081
[0:motion] [NTC] [STR] webu_start_ctrl: Starting webcontrol on port 8080
[0:motion] [NTC] [STR] webu_start_ctrl: Started webcontrol on port 8080
[0:motion] [NTC] [ENC] ffmpeg_global_init: ffmpeg libavcodec version 58.54.100 libavformat version 58.29.100
[0:motion] [NTC] [ALL] translate_init: Language: English
[0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 is from /usr/local/etc/motion/motion.conf
[0:motion] [NTC] [ALL] motion_start_thread: Camera ID: 0 Camera Name: (null) Device: /dev/video0
[0:motion] [NTC] [ALL] main: Waiting for threads to finish, pid: 4228
[1:ml1] [NTC] [ALL] motion_init: Camera 0 started: motion detection Enabled
[1:ml1] [NTC] [VID] vid_start: Opening V4L2 device
[1:ml1] [NTC] [VID] v4l2_device_open: Using videodevice /dev/video0 and input -1
[1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_CAPTURE
[1:ml1] [NTC] [VID] v4l2_device_capability: - VIDEO_OVERLAY
[1:ml1] [NTC] [VID] v4l2_device_capability: - READWRITE
[1:ml1] [NTC] [VID] v4l2_device_capability: - STREAMING
[1:ml1] [NTC] [VID] v4l2_input_select: Name = "Camera 0"- CAMERA
[1:ml1] [NTC] [VID] v4l2_norm_select: Device does not support specifying PAL/NTSC norm
[1:ml1] [NTC] [VID] v4l2_pixfmt_set: Testing palette YU12 (640x480)
[1:ml1] [NTC] [VID] v4l2_pixfmt_set: Using palette YU12 (640x480)
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
[1:ml1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 4 items
[1:ml1] [NTC] [EVT] event_newfile: File of type 8 saved to: ./0-01-20200606143344.mkv
[1:ml1] [NTC] [ALL] motion_detected: Motion detected - starting event 1
[1:ml1] [NTC] [ALL] mlp_actions: End of event 1

On another machine on the same lan:
Code: [Select]
$ ffplay http://192.168.1.111:8081
..where 192.168.1.111 is the RPi3 ip address

You will basically see a still image until the camera detects movement and begins to record - the videos are saved locally on the RPi3.

You can also see the control interface in a browser using http://192.168.1.111:8080
« Last Edit: June 06, 2020, 06:54:20 AM by Juanito »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #6 on: June 06, 2020, 06:59:40 AM »
Instead of using motion/ffmpeg/libv4l2 on the RPi, this also works with the rpi-vc extension:
Code: [Select]
$ sudo raspivid -t 0 -l -o tcp://0.0.0.0:3333.."sudo" because the permissions for /dev/vchiq are not correct

..and on a laptop on the same lan:
Code: [Select]
vlc tcp/h264://192.168.1.111:3333..where 192.168.1.111 is the RPi3 ip address

Offline RockJamm

  • Newbie
  • *
  • Posts: 20
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #7 on: June 08, 2020, 03:48:55 AM »
This looks like an excellent option - thank you!  I missed it last week!   I was always looking for a minimal solution, this looks perfect.

Offline RockJamm

  • Newbie
  • *
  • Posts: 20
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #8 on: June 08, 2020, 05:04:50 AM »
Hmm.  Not having any joy at the vlc end though the pi is clearly listening for a connection:

tc@pc-cam1:~$ sudo raspivid -t 0 -l -o tcp://0.0.0.0:3333
Waiting for a TCP connection on 0.0.0.0:3333...

but at the vlc end, trying to open a network location no joy.  Maybe it's a firewall thing.  I'll persist.  Thanks again.

...[Edit] I was not running vlc from a shell but from the gui - now working on shell access instead  [/Edit]
« Last Edit: June 08, 2020, 05:10:34 AM by RockJamm »

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14850
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #9 on: June 08, 2020, 06:37:39 AM »
motion would probably use the least bandwidth..

Offline RockJamm

  • Newbie
  • *
  • Posts: 20
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #10 on: June 08, 2020, 08:55:35 AM »
Thanks Juanito.

Motion works but doesn't do what I'm after.  I want highest quality video over LAN as a full-time reliable stream.   I've chosen piCore because I don't want any unnecessary processes going on.  I'm aiming for 1920 x 1080 at 30fps+.  Motion does about 3 fps in both preview and recordings in the test I've done.

I'm very interested in your raspivid only suggestion but I can't get it to work yet. 

Offline RockJamm

  • Newbie
  • *
  • Posts: 20
Re: curl-devel extension may be required for git on piCore 11 beta 2
« Reply #11 on: June 08, 2020, 09:07:47 AM »
raspivid to tcp as you suggested is picked up by ffplay -i tcp://192.168.1.138:3333

much better fps, quite a big buffer but I can live with that.