Send Motion-user mailing list submissions to
[email protected]
To subscribe or unsubscribe via the World Wide Web, visit
https://lists.sourceforge.net/lists/listinfo/motion-user
or, via email, send a message with subject or body 'help' to
[email protected]
You can reach the person managing the list at
[email protected]
When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."
Today's Topics:
1. Logitech C910 corrupted MJPEG (tosiara)
2. Re: Logitech C910 corrupted MJPEG (tosiara)
3. Re: Motion input http stream (Michael Ibou)
----------------------------------------------------------------------
Message: 1
Date: Fri, 3 Apr 2015 16:50:58 +0300
From: tosiara <[email protected]>
Subject: [Motion-user] Logitech C910 corrupted MJPEG
To: Motion discussion list <[email protected]>
Message-ID:
<cachtdwt2o6b7m6m7eyw7esrh-6n5nwzezqxahzzqlujurrf...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Hi,
I've got same issue with Logitech C910 as it was described in 2011:
http://www.lavrsen.dk/foswiki/bin/view/Motion/SupportQuestion2011x01x09x193606
Anyone knows if a solution have been developed for this issue?
[1] [NTC] [VID] v4l2_get_capability:
------------------------
cap.driver: "uvcvideo"
cap.card: "UVC Camera (046d:0821)"
cap.bus_info: "usb-lm1-1.4"
cap.capabilities=0x85000001
------------------------
[1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
[1] [NTC] [VID] v4l2_get_capability: - READWRITE
[1] [NTC] [VID] v4l2_get_capability: - STREAMING
[1] [NTC] [VID] v4l2_select_input: name = "Camera 1", type 0x00000002,
status 00000000
[1] [NTC] [VID] v4l2_select_input: - CAMERA
[1] [WRN] [VID] v4l2_select_input: Device doesn't support VIDIOC_G_STD
[1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette MJPG (640x480)
[1] [NTC] [VID] v4l2_do_set_pix_format: Using palette MJPG (640x480)
bytesperlines 0 sizeimage 614400 colorspace 00000008
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900, "Brightness",
range 0,255
[1] [NTC] [VID] v4l2_scan_controls: "Brightness", default -8193,
current 0
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901, "Contrast",
range 0,255
[1] [NTC] [VID] v4l2_scan_controls: "Contrast", default 57343, current
255
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902, "Saturation",
range 0,255
[1] [NTC] [VID] v4l2_scan_controls: "Saturation", default 57343,
current 255
[1] [NTC] [VID] v4l2_scan_controls: found control 0x00980913, "Gain", range
0,255
[1] [NTC] [VID] v4l2_scan_controls: "Gain", default 57343, current 64
[1] [NTC] [VID] vid_v4lx_start: Using V4L2
[1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
Corrupt JPEG data: 2 extraneous bytes before marker 0xd2
[1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd3
[1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd1
[1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd0
[1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
Corrupt JPEG data: 1 extraneous bytes before marker 0xd5
[1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
[1] [ERR] [ALL] motion_init: Error capturing first image
Thanks
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 2
Date: Fri, 3 Apr 2015 20:03:35 +0300
From: tosiara <[email protected]>
Subject: Re: [Motion-user] Logitech C910 corrupted MJPEG
To: Motion discussion list <[email protected]>
Message-ID:
<cachtdwr9vpujdl8ocf-z7kgrdrecs1htpahvbtkqbxte6hq...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
Looks like the MJPEG is good, but some junk also appears in the buffer,
which does not affect the picture.
By changing motion code I was able to make Logitech C910 working:
diff --git a/video_common.c b/video_common.c
index 54569c6..f98154f 100644
--- a/video_common.c
+++ b/video_common.c
@@ -394,7 +394,7 @@ int mjpegtoyuv420p(unsigned char *map, unsigned char
*cap_map, int width, int he
if (ret == 1) {
MOTION_LOG(CRT, TYPE_VIDEO, NO_ERRNO, "%s: Corrupt image ...
continue");
- ret = 2;
+ ret = 0;
}
return ret;
}
Basicaly, motion should ignore the decode warning.
I will report this issue in Mr-Dave fork
Thanks
On Fri, Apr 3, 2015 at 4:50 PM, tosiara <[email protected]> wrote:
> Hi,
>
> I've got same issue with Logitech C910 as it was described in 2011:
>
>
> http://www.lavrsen.dk/foswiki/bin/view/Motion/SupportQuestion2011x01x09x193606
>
> Anyone knows if a solution have been developed for this issue?
>
> [1] [NTC] [VID] v4l2_get_capability:
> ------------------------
> cap.driver: "uvcvideo"
> cap.card: "UVC Camera (046d:0821)"
> cap.bus_info: "usb-lm1-1.4"
> cap.capabilities=0x85000001
> ------------------------
> [1] [NTC] [VID] v4l2_get_capability: - VIDEO_CAPTURE
> [1] [NTC] [VID] v4l2_get_capability: - READWRITE
> [1] [NTC] [VID] v4l2_get_capability: - STREAMING
> [1] [NTC] [VID] v4l2_select_input: name = "Camera 1", type 0x00000002,
> status 00000000
> [1] [NTC] [VID] v4l2_select_input: - CAMERA
> [1] [WRN] [VID] v4l2_select_input: Device doesn't support VIDIOC_G_STD
> [1] [NTC] [VID] v4l2_do_set_pix_format: Testing palette MJPG (640x480)
> [1] [NTC] [VID] v4l2_do_set_pix_format: Using palette MJPG (640x480)
> bytesperlines 0 sizeimage 614400 colorspace 00000008
> [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980900,
> "Brightness", range 0,255
> [1] [NTC] [VID] v4l2_scan_controls: "Brightness", default -8193,
> current 0
> [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980901, "Contrast",
> range 0,255
> [1] [NTC] [VID] v4l2_scan_controls: "Contrast", default 57343, current
> 255
> [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980902,
> "Saturation", range 0,255
> [1] [NTC] [VID] v4l2_scan_controls: "Saturation", default 57343,
> current 255
> [1] [NTC] [VID] v4l2_scan_controls: found control 0x00980913, "Gain",
> range 0,255
> [1] [NTC] [VID] v4l2_scan_controls: "Gain", default 57343, current 64
> [1] [NTC] [VID] vid_v4lx_start: Using V4L2
> [1] [NTC] [ALL] image_ring_resize: Resizing pre_capture buffer to 1 items
> Corrupt JPEG data: 2 extraneous bytes before marker 0xd2
> [1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
> Corrupt JPEG data: 1 extraneous bytes before marker 0xd3
> [1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
> Corrupt JPEG data: 1 extraneous bytes before marker 0xd1
> [1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
> Corrupt JPEG data: 1 extraneous bytes before marker 0xd0
> [1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
> Corrupt JPEG data: 1 extraneous bytes before marker 0xd5
> [1] [CRT] [VID] mjpegtoyuv420p: Corrupt image ... continue
> [1] [ERR] [ALL] motion_init: Error capturing first image
>
> Thanks
>
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
Message: 3
Date: Sun, 05 Apr 2015 16:48:15 +0200
From: Michael Ibou <[email protected]>
Subject: Re: [Motion-user] Motion input http stream
To: Motion discussion list <[email protected]>
Message-ID: <[email protected]>
Content-Type: text/plain; charset="windows-1252"
Hello
Thank you but I found another solution. Now I use Picamera which use
python.
So now I can record in full HD and at the same time in 320x200 (for
streaming) and I can extract images (1 per minutes).
After I use vlc for streaming the flux on web pages.
It is very easy to use.
Thank you
Le 30/03/2015 13:36, tosiara a ?crit :
> motion only supports MJPEG HTTP and RTSP input streams. You can't just
> mux your h264 into http without transcoding it to MJPEG.
>
> --sout
> '#transcode{vcodec=mjpg,vb=10000,scale=1,width=1280,height=720}:standard{access=http,mux=mpjpeg,dst=0.0.0.0:8081
>
> <http://0.0.0.0:8081>}'
> --sout-http-mime="multipart/x-mixed-replace;boundary=7b3cc56e5f51db803f790dad720ed50a"
>
> But using motion just for streaming is overkill. You should consider
> some lightweight solution, like mjpg-streamer or as Steve suggested
> Gstreamer.
>
>
> On Sat, Mar 28, 2015 at 6:14 PM, Michael Ibou <[email protected]
> <mailto:[email protected]>> wrote:
>
> Hello
>
> My name is Michael and I work on project with raspberry and
> raspberry Camera black, so I need some help with Motion.
>
> The objectives of my project are: record the video in full hd and
> stream in less quality in 3G.
>
> For now I make a script for record videos in full HD with raspivid.
>
> I use with command line:
>
> / raspivid -t 0 -w 1280 -h 720 -fps 25 -b 1200000 -o - |
> cvlc stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/}' :demux=h264/
>
> and after I have another instance of vlc to record and cut in file
> of 10 minutes.
>
> Now I want to stream the video with 3G but it very too big for the
> connection so I would like to use the stream of Motion (I need
> only the stream so I have to disable the record and motion
> detection of motion).
>
> I tried to change rtsp in http and send this flux to Motion like
> and IP Camera:
>
> / raspivid -t 0 -w 1280 -h 720 -fps 25 -b 1200000 -o - |
> cvlc -v stream:///dev/stdin --http-caching=10000 --sout
>
> "#standard{access=http{mime=multipart/x-mixed-replace},mux=ts,dst=:8554}":demux=h264/
>
> and my motion.conf
>
> / netcam_url http://127.0.0.1:8554//
>
> But it is doesn?t work. The mine type isn?t compatible with motion.
>
> What version of Motion is better for do this Original or for raspivid?
>
> How can I use Motion with http stream?
>
> Do you have another idea?
>
> In Motion for raspberry camera where is the capture of the video
> from the camera maybe I have to change this capture and use my
> http flux?
>
> Thank you very much
>
>
> Regards
>
> Michael
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel
> Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your
> hub for all
> things parallel software development, from weekly thought
> leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and
> join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> Motion-user mailing list
> [email protected]
> <mailto:[email protected]>
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
>
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
>
>
> _______________________________________________
> Motion-user mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/motion-user
> http://www.lavrsen.dk/twiki/bin/view/Motion/WebHome
-------------- next part --------------
An HTML attachment was scrubbed...
------------------------------
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
------------------------------
_______________________________________________
Motion-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/motion-user
End of Motion-user Digest, Vol 107, Issue 1
*******************************************