Send Motion-user mailing list submissions to
        motion-user@lists.sourceforge.net

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
        motion-user-requ...@lists.sourceforge.net

You can reach the person managing the list at
        motion-user-ow...@lists.sourceforge.net

When replying, please edit your Subject line so it is more specific
than "Re: Contents of Motion-user digest..."


Today's Topics:

   1. Re: RTSP stream works on Motion 4.0 but not on 4.2.2 (tosiara)


----------------------------------------------------------------------

Message: 1
Date: Tue, 25 Jun 2019 15:05:27 +0300
From: tosiara <tosi...@gmail.com>
To: Matthew Jurgens <mot...@edcint.co.nz>
Cc: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] RTSP stream works on Motion 4.0 but not on
        4.2.2
Message-ID:
        <CACHTdwSNMsL6ZZ62uGEi37kV0+WB8D9WZeyAQjaf5N60bJ2u=q...@mail.gmail.com>
Content-Type: text/plain; charset="UTF-8"

So, it looks like ffmpeg is unable to decode your RTSP stream:

[0:motion] [NTC] [ENC] [Jun 25 21:28:24] ffmpeg_global_init: ffmpeg
libavcodec version 58.18.100 libavformat version 58.12.100

[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log:
decode_slice_header error
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log: no frame!
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log: P
sub_mb_type 19 out of range at 20 4
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log:
error while decoding MB 20 4
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log: P
sub_mb_type 10 out of range at 46 0
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log:
error while decoding MB 46 0
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log:
illegal reordering_of_pic_nums_idc 8
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log:
illegal modification_of_pic_nums_idc 8
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log:
decode_slice_header error
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log: no frame!
[1:ml1:Driveway] [DBG] [NET] [Jun 25 21:28:29] netcam_check_buffsize:
expanding buffer from [0/0] to [0/3112960] bytes.
[1:ml1:Driveway] [INF] [ENC] Above message repeats 1 times
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log:
reference overflow 17 > 15 or 0 > 15
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log:
decode_slice_header error
[1:ml1:Driveway] [INF] [ENC] [Jun 25 21:28:29] ffmpeg_avcodec_log: no frame!
[1:ml1:Driveway] [INF] [NET] [Jun 25 21:28:29]
netcam_rtsp_decode_video: Error sending packet to codec: Invalid data
found when processing input

Can you try to play the stream on the motion box using ffplay:

ffplay -rtsp_transport udp rtsp://user:password@host:port/onvif1

If it runs, let it run for 30 seconds and send the output


On Tue, Jun 25, 2019 at 2:35 PM Matthew Jurgens <mot...@edcint.co.nz> wrote:
>
> Hi
>
> Thanks for the suggestions.
> I also took the opportunity to change
> rtsp_use_tcp off
> to
> netcam_use_tcp off
>
> Changing the parameters makes no difference.
>
> So I ran it with debug 9. The output is rather large, so I have put it here:
> http://www.edcint.co.nz/tmp/rtsp01.txt
>
> On 25/06/2019 8:49 pm, tosiara wrote:
>
> Can you try to change your config and test again:
>
> netcam_url rtsp://host:port/onvif1
> netcam_userpass user:password
>
> If it still fails try starting motion with extra logging "-d 9"
>
> On Tue, Jun 25, 2019 at 1:40 PM Matthew Jurgens <mot...@edcint.co.nz> wrote:
>
> Hi
>
> I have a camera connected to motion using RTSP. It works perfectly fine
> using motion 4.0 running on Ubuntu 18.04.
> It also works when I access it using RTSP with VLC from a Windows 10
> machine.
> However, when I use the same settings and try to connect to it from a
> machine running Fedora 28 and motion 4.2.2, it will not work.
>
> The thread config for this camera (that works on 4.0, but not on 4.2.2)
> is:
> netcam_url rtsp://user:password@host:port/onvif1
> width 1920
> height 1080
> stream_port 8087
> rtsp_uses_tcp off
>
> A sample of the failing log output on v4.2.2 is:
> [1:ml1:cam1] [NTC] [NET] [Jun 25 19:49:07] netcam_rtsp_cleanup: Normal
> resolution: Shut down complete.
> [1:ml1:cam1] [ERR] [VID] [Jun 25 19:49:07] vid_start: Netcam RTSP failed
> to open
> [1:ml1:cam1] [WRN] [ALL] [Jun 25 19:49:07] motion_init: Could not fetch
> initial image from camera
> [1:ml1:cam1] [WRN] [ALL] [Jun 25 19:49:07] motion_init: Motion continues
> using width and height from config file(s)
> [1:ml1:cam1] [NTC] [ALL] [Jun 25 19:49:07] image_ring_resize: Resizing
> pre_capture buffer to 1 items
> [1:ml1:cam1] [NTC] [ALL] [Jun 25 19:49:07] image_ring_resize: Resizing
> pre_capture buffer to 5 items
> [1:ml1:cam1] [WRN] [ALL] [Jun 25 19:49:10] mlp_retry: Retrying until
> successful connection with camera
> [1:ml1:cam1] [NTC] [VID] [Jun 25 19:49:10] vid_start: Opening Netcam
> RTSP
> [1:ml1:cam1] [NTC] [NET] [Jun 25 19:49:15] netcam_rtsp_cleanup: Normal
> resolution: Shut down complete.
> [1:ml1:cam1] [ERR] [VID] [Jun 25 19:49:15] vid_start: Netcam RTSP failed
> to open
> [1:ml1:cam1] [NTC] [ALL] [Jun 25 19:49:15] motion_loop: Thread exiting
> [0:motion] [NTC] [ALL] [Jun 25 19:49:16] main: Motion thread 1 restart
> [0:motion] [NTC] [ALL] [Jun 25 19:49:16] motion_start_thread: Camera ID:
> 106 is from /etc/motion/conf.d/yoosee1.conf
> [0:motion] [NTC] [ALL] [Jun 25 19:49:16] motion_start_thread: Camera ID:
> 106 Camera Name: cam1 Service: rtsp:
> [1:ml1:cam1] [NTC] [ALL] [Jun 25 19:49:16] motion_init: Camera 106
> started: motion detection Enabled
> [1:ml1:cam1] [NTC] [VID] [Jun 25 19:49:16] vid_start: Opening Netcam
> RTSP
> [1:ml1:cam1] [NTC] [NET] [Jun 25 19:49:21] netcam_rtsp_cleanup: Normal
> resolution: Shut down complete.
>
> and this just continues for a long time till I stop it.
>
> This would seem to be a regression bug of some form.
>
> Any ideas on how to make this work if it is not a bug?
>
> Thanks
>
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
> _______________________________________________
> Motion-user mailing list
> Motion-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/motion-user
> https://motion-project.github.io/
>
> Unsubscribe: https://lists.sourceforge.net/lists/options/motion-user
>
>



------------------------------



------------------------------

Subject: Digest Footer

_______________________________________________
Motion-user mailing list
Motion-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/motion-user


------------------------------

End of Motion-user Digest, Vol 156, Issue 38
********************************************

Reply via email to