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 problem (Truong Huy)


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

Message: 1
Date: Thu, 28 Dec 2023 20:05:27 +0700
From: Truong Huy <huytruongquo...@gmail.com>
To: Motion discussion list <motion-user@lists.sourceforge.net>
Subject: Re: [Motion-user] RTSP problem
Message-ID:
        <cahq4sfjtg2ua1a_nihagawrkoqprt3yd6arkhzfd5tg7z1-...@mail.gmail.com>
Content-Type: text/plain; charset="utf-8"

Hi Tosiara,

I tried with your config but unsucessfully. :(

Thank you.

On Thu, Dec 28, 2023, 18:39 tosiara <tosi...@gmail.com> wrote:

> Sure, here it is attached. Ignore the version stamp in the config
>
> On Thu, Dec 28, 2023 at 12:10?PM Truong Huy <huytruongquo...@gmail.com>
> wrote:
>
>> Hi Tosiara,
>>
>> Could you share config working successfully in your machine which you
>> mention in previous mail?
>>
>> Thank you.
>>
>> On Thu, Dec 28, 2023 at 5:01?PM tosiara <tosi...@gmail.com> wrote:
>>
>>> I simply took motion-dist and added the following lines:
>>>
>>> netcam_url rtsp://admin:123456789abc@14.233.86.163:554/onvif1
>>> netcam_params rtsp_transport=udp,analyzeduration=30
>>> width 1280
>>> height 720
>>>
>>>
>>> Still, motion is not able to start the stream:
>>>
>>> [1:ml1] [NTC] [VID] vid_start: Opening Netcam RTSP
>>> [1:ml1] [DBG] [ALL] util_parms_parse: Parsing:
>>> rtsp_transport=udp,analyzeduration=30
>>> [1:ml1] [DBG] [ALL] util_parms_add: Parsed: >rtsp_transport< >udp<
>>> [1:ml1] [DBG] [ALL] util_parms_add: Parsed: >analyzeduration< >30<
>>> [1:ml1] [INF] [NET] netcam_rtsp_set_parms: Setting up norm stream.
>>> [1:ml1] [DBG] [ALL] util_parms_add: Parsed: >decoder< >NULL<
>>> [1:ml1] [INF] [NET] netcam_rtsp_set_path: Setting up rtsp via netcam
>>> [1:ml1] [INF] [NET] netcam_rtsp_set_options: norm: Setting rtsp/rtmp
>>> [1:ml1] [INF] [NET] netcam_rtsp_set_options: norm: option:
>>> rtsp_transport = udp
>>> [1:ml1] [INF] [NET] netcam_rtsp_set_options: norm: option:
>>> analyzeduration = 30
>>> [1:ml1] [INF] [NET] netcam_rtsp_open_context: norm: Opened camera((null))
>>> [1:ml1] [INF] [ENC] ffmpeg_avcodec_log: Could not find codec parameters
>>> for stream 0 (Video: h264, none): unspecified size
>>> Consider increasing the value for the 'analyzeduration' and 'probesize'
>>> options
>>> [1:av0] [INF] [NET] netcam_init_swdecoder: norm: Initializing decoder
>>> [1:av0] [INF] [NET] netcam_rtsp_open_codec: norm: Decoder opened
>>> [1:ml1] [ERR] [NET] netcam_rtsp_open_context: norm: Camera image size is
>>> invalid
>>> [1:ml1] [INF] [NET] netcam_rtsp_cleanup: norm: Shutting down network
>>> camera.
>>>
>>> Maybe worth starting an issue on Github, as I'm able to see the stream
>>> using ffplay
>>>
>>> On Thu, Dec 28, 2023 at 11:52?AM Truong Huy <huytruongquo...@gmail.com>
>>> wrote:
>>>
>>>> Hi Tosiara,
>>>>
>>>> *I change the config:*
>>>>
>>>>  User defined name for the camera.
>>>> camera_name MyCam1
>>>>
>>>> # Numeric identifier for the camera.
>>>> camera_id 101
>>>>
>>>> # The full URL of the network camera stream.
>>>> netcam_url rtsp://14.233.86.163:554/onvif1
>>>>
>>>> # User requested decoder for netcam.
>>>> netcam_decoder mjpeg
>>>> netcam_userpass admin:123456789abc
>>>>
>>>> ############################################################
>>>> # Image Processing configuration parameters
>>>> ############################################################
>>>>
>>>> # Image width in pixels.
>>>> width 1280
>>>>
>>>> # Image height in pixels.
>>>> height 720
>>>>
>>>> # Text to be overlayed in the lower left corner of images
>>>> text_left CAMERA 1
>>>>
>>>> # File name(without extension) for movies relative to target directory
>>>> movie_filename CAM01_%t-%v-%Y%m%d%H%M%S
>>>>
>>>> decoder mjpeg
>>>> capture_rate 4
>>>> rtsp_transport udp
>>>> input_format mjpeg
>>>>
>>>>
>>>> *Result:*
>>>>
>>>> [0:motion] [NTC] [ALL] [Dec 28 04:48:40] main: Motion thread 1 restart
>>>> [0:motion] [NTC] [ALL] [Dec 28 04:48:40] motion_start_thread: Camera
>>>> ID: 101 is from /etc/motion/camera1-dist.conf
>>>> [0:motion] [NTC] [ALL] [Dec 28 04:48:40] motion_start_thread: Camera
>>>> ID: 101 Camera Name: MyCam1 Service: rtsp:
>>>> [1:ml1:MyCam1] [NTC] [ALL] [Dec 28 04:48:40] motion_init: Camera 101
>>>> started: motion detection Enabled
>>>> [1:ml1:MyCam1] [NTC] [VID] [Dec 28 04:48:40] vid_start: Opening Netcam
>>>> RTSP
>>>> [1:ml1:MyCam1] [ERR] [NET] [Dec 28 04:48:41] netcam_rtsp_open_context:
>>>> Normal resolution: Unable to open camera(MyCam1): Invalid data found when
>>>> processing input
>>>> [1:ml1:MyCam1] [NTC] [NET] [Dec 28 04:48:41] netcam_rtsp_cleanup:
>>>> Normal resolution: Shut down complete.
>>>> [1:ml1:MyCam1] [ERR] [VID] [Dec 28 04:48:41] vid_start: Netcam RTSP
>>>> failed to open
>>>> [1:ml1:MyCam1] [WRN] [ALL] [Dec 28 04:48:41] motion_init: Could not
>>>> fetch initial image from camera
>>>> [1:ml1:MyCam1] [WRN] [ALL] [Dec 28 04:48:41] motion_init: Motion
>>>> continues using width and height from config file(s)
>>>> [1:ml1:MyCam1] [NTC] [ALL] [Dec 28 04:48:41] image_ring_resize:
>>>> Resizing pre_capture buffer to 1 items
>>>> [1:ml1:MyCam1] [NTC] [ALL] [Dec 28 04:48:41] image_ring_resize:
>>>> Resizing pre_capture buffer to 4 items
>>>> [2:ml2:Patio] [WRN] [NET] [Dec 28 04:48:41] netcam_init_jpeg: no new
>>>> pic, no signal rcvd
>>>> [2:ml2:Patio] [WRN] [NET] Above message repeats 1 times
>>>> [2:ml2:Patio] [WRN]
>>>>
>>>> Could you please help to share your config in your machine?
>>>>
>>>> Thank you.
>>>>
>>>> On Thu, Dec 28, 2023 at 4:40?PM tosiara <tosi...@gmail.com> wrote:
>>>>
>>>>> Can you try to specify:
>>>>> rtsp_transport udp
>>>>>
>>>>> On Thu, Dec 28, 2023 at 11:26?AM tosiara <tosi...@gmail.com> wrote:
>>>>>
>>>>>> If ffmpeg is unable to play the stream - motion won't too.
>>>>>>
>>>>>> I tried your URL with ffmpeg and it worked on my machine, I can see
>>>>>> the stream. What version of ffmpeg libraries do you use? How did you
>>>>>> install motion?
>>>>>>
>>>>>>
>>>>>> On Thu, Dec 28, 2023 at 10:51?AM Truong Huy <
>>>>>> huytruongquo...@gmail.com> wrote:
>>>>>>
>>>>>>> Hi Tosiara,
>>>>>>>
>>>>>>> I already tried to put user/pass on netcam_userpass. However, still
>>>>>>> failed.
>>>>>>> I tried with ffplay and results: [rtsp @ 0x7fdc70000cc0] CSeq 1
>>>>>>> expected, 0 received.=    0B f=0/0
>>>>>>> rtsp://admin:123456789abc@14.233.86.163:554/onvif1: Invalid data
>>>>>>> found when processing input
>>>>>>>
>>>>>>> I could play with vlc successfully.
>>>>>>>
>>>>>>> URL is already published to internet.
>>>>>>> Could you please help to check with your  machine? I tried a lot but
>>>>>>> still same result. Invalid data found when processing input.
>>>>>>>
>>>>>>> Thank you.
>>>>>>>
>>>>>>> On Thu, Dec 28, 2023 at 3:27?PM tosiara <tosi...@gmail.com> wrote:
>>>>>>>
>>>>>>>> One thing, that you don't need to specify user and password in
>>>>>>>> netcam_url ir you also specify netcam_userpass. Just remove it from 
>>>>>>>> url and
>>>>>>>> you should be fine
>>>>>>>>
>>>>>>>> Also, can you play the same url using ffplay on the same machine?
>>>>>>>>
>>>>>>>> On Thu, Dec 28, 2023 at 8:04?AM Truong Huy <
>>>>>>>> huytruongquo...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Hi all,
>>>>>>>>>
>>>>>>>>> I tried to add RTSP camera to Motion.
>>>>>>>>> My link: rtsp://admin:123456789abc@14.233.86.163:554/onvif1
>>>>>>>>>
>>>>>>>>> My config:
>>>>>>>>> # /usr/etc/motion/camera1.conf
>>>>>>>>> #
>>>>>>>>> # This config file was generated by motion 4.3.2
>>>>>>>>>
>>>>>>>>> ###########################################################
>>>>>>>>> # Configuration options specific to camera 1
>>>>>>>>> ############################################################
>>>>>>>>> # User defined name for the camera.
>>>>>>>>> camera_name MyCam1
>>>>>>>>>
>>>>>>>>> # Numeric identifier for the camera.
>>>>>>>>> camera_id 101
>>>>>>>>>
>>>>>>>>> # The full URL of the network camera stream.
>>>>>>>>> netcam_url rtsp://admin:123456789abc@14.233.86.163:554/onvif1
>>>>>>>>>
>>>>>>>>> # Image width in pixels.
>>>>>>>>> width 1280
>>>>>>>>>
>>>>>>>>> # Image height in pixels.
>>>>>>>>> height 720
>>>>>>>>>
>>>>>>>>> # Text to be overlayed in the lower left corner of images
>>>>>>>>> text_left CAMERA 1
>>>>>>>>>
>>>>>>>>> # File name(without extension) for movies relative to target
>>>>>>>>> directory
>>>>>>>>> movie_filename CAM01_%t-%v-%Y%m%d%H%M%S
>>>>>>>>>
>>>>>>>>> #Other config
>>>>>>>>> decoder mpeg4
>>>>>>>>> capture_rate 4
>>>>>>>>> rtsp_transport tcp
>>>>>>>>> input_format mpeg4
>>>>>>>>> netcam_userpass admin:123456789abc
>>>>>>>>>
>>>>>>>>> But failed.
>>>>>>>>> [image: image.png]
>>>>>>>>>
>>>>>>>>> I searched over the internet, I found out many guys has problem as
>>>>>>>>> my case. However, no solution.
>>>>>>>>> Please help to check
>>>>>>>>>
>>>>>>>>> Thank you.
>>>>>>>>> --
>>>>>>>>> Regards,
>>>>>>>>> Thank you.
>>>>>>>>>
>>>>>>>>> Mr. Truong Quoc Huy
>>>>>>>>> +84905811839
>>>>>>>>> _______________________________________________
>>>>>>>>> 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
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> --
>>>>>>> Regards,
>>>>>>> Thank you.
>>>>>>>
>>>>>>> Mr. Truong Quoc Huy
>>>>>>> +84905811839
>>>>>>> _______________________________________________
>>>>>>> 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
>>>>
>>>>
>>>>
>>>> --
>>>> Regards,
>>>> Thank you.
>>>>
>>>> Mr. Truong Quoc Huy
>>>> +84905811839
>>>> _______________________________________________
>>>> 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
>>
>>
>>
>> --
>> Regards,
>> Thank you.
>>
>> Mr. Truong Quoc Huy
>> +84905811839
>> _______________________________________________
>> 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
-------------- next part --------------
An HTML attachment was scrubbed...
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 213694 bytes
Desc: not available

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



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

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 208, Issue 18
********************************************

Reply via email to