Jump to content

IPTV plugin cannot play rtsp stream from camera


Recommended Posts

Posted

Hi, I just installed the server on Windows and added an RTSP address in the IPTV plugin but it doesn't play.

this url rtsp://admin:xxxx@172.16.11.11/profile1 . when i hit play , the browser debug console show this

 

playbackmanager.js?v=4.8.10.0:1 Uncaught (in promise) AbortError: signal is aborted without reason
    at PlaybackManager.sendAbortSignal (playbackmanager.js?v=4.8.10.0:1:81461)
    at PlaybackManager.newAbortSignal (playbackmanager.js?v=4.8.10.0:1:81528)
    at PlaybackManager.self.play (playbackmanager.js?v=4.8.10.0:1:70553)
    at Object.play (playbackactions.js?v=4.8.10.0:1:2508)
    at play (commandprocessor.js?v=4.8.10.0:1:7687)
    at executeCommandInternal (commandprocessor.js?v=4.8.10.0:1:16958)
    at Object.executeCommand (commandprocessor.js?v=4.8.10.0:1:26501)
    at executeAction (shortcuts.js?v=4.8.10.0:1:5252)
    at EmbyItemsContainer.onClick (shortcuts.js?v=4.8.10.0:1:5878)
    at EmbyItemsContainer.onClick (emby-itemscontainer.js?v=4.8.10.0:1:1384)

 

this is a ffprobe test

 

ffprobe -loglevel verbose -i rtsp://admin:xxxx@172.16.11.11/profile1
ffprobe version 5.1-emby_2023_06_25 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
[tcp @ 000002aa9b95ea80] Starting connection attempt to 172.16.11.11 port 554
[tcp @ 000002aa9b95ea80] Successfully connected to 172.16.11.11 port 554
[rtsp @ 000002aa9b8024c0] SDP:
v=0
o=- 1730490456669337 1 IN IP4 172.16.11.11
s=\profile1
u=http:///
e=admin@
b=AS:7050
t=0 0
a=control:*
a=range:npt=00.000-
m=video 0 RTP/AVP 96
b=AS:5000
a=control:track1
a=rtpmap:96 H264/90000
a=fmtp:96 profile-level-id=676400; sprop-parameter-sets=Z2QAM6zoAgAMGQ==,aO48MA==; packetization-mode=1
m=audio 0 RTP/AVP 8
b=AS:1000
a=control:track2
a=rtpmap:8 pcma/8000
a=ptime:40

[rtsp @ 000002aa9b8024c0] setting jitter buffer size to 500
^C  Last message repeated 1 times

 

It seems to be working correctly, I can see it with VLC perfectly.

Txs!

 

Posted

Hello miloja,

** This is an auto reply **

Please wait for someone from staff support or our members to reply to you.

It's recommended to provide more info, as it explain in this thread:


Thank you.

Emby Team

Posted

just this 2 logs , the probe fail for timeout

Running the command manually gives this result

 

ffprobe.exe -i "rtsp://admin:xxxx@172.16.11.11/profile2" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data


ffprobe version 5.1-emby_2023_06_25 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
{
[rtsp @ 0000026bdd164e00] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, rtsp, from 'rtsp://admin:xxxxx@172.16.11.11/profile2':
  Metadata:
    title           : \profile2
  Duration: N/A, start: 0.000000, bitrate: 64 kb/s
  Stream #0:0: Video: h264, none, 90k tbr, 90k tbn
  Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "codec_type": "video",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 0,
            "height": 0,
            "coded_width": 0,
            "coded_height": 0,
            "closed_captions": 0,
            "film_grain": 0,
            "has_b_frames": 0,
            "level": -99,
            "refs": 1,
            "is_avc": "false",
            "nal_length_size": "0",
            "r_frame_rate": "90000/1",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "extradata": "\n00000000: 0000 0001 674d 001e f405 8093 2000 0000  ....gM...... ...\n00000010: 0168 ee3c 80                             .h.<.\n",
            "extradata_size": 21,
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            }
        },
        {
            "index": 1,
            "codec_name": "pcm_alaw",
            "codec_long_name": "PCM A-law / G.711 A-law",
            "codec_type": "audio",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "sample_fmt": "s16",
            "sample_rate": "8000",
            "channels": 1,
            "channel_layout": "mono",
            "bits_per_sample": 8,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/8000",
            "bit_rate": "64000",
            "extradata": "\n",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            }
        }
    ],
    "chapters": [

    ],
    "format": {
        "filename": "rtsp://admin:xxxx@172.16.11.11/profile2",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "rtsp",
        "format_long_name": "RTSP input",
        "start_time": "0.000000",
        "bit_rate": "64000",
        "probe_score": 100,
        "tags": {
            "title": "\\profile2"
        }
    }
}

 

embyserver.txt hardware_detection-63866086270.txt

Posted

@miloja,

Did you try adding the port to the url? Try rtsp://admin:xxxx@172.16.11.11:554/profile1 and see if that works.

Posted
same error. the timeout seems to be the problem
 
2024-11-04 11:03:54.873 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: C:\Users\mmilohanich_da\AppData\Roaming\Emby-Server\system\ffprobe.exe -i "rtsp://admin:123456@172.16.11.11:554/profile1 " -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2024-11-04 11:04:54.890 Error MediaProbeManager: Timeout while running Ffprobe -i "rtsp://admin:123456@172.16.11.11:554/profile1 " -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2024-11-04 11:04:55.399 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code -1 - Failed
2024-11-04 11:04:55.399 Error MediaProbeManager: ProcessRun 'ffprobe' Error Output:
ffprobe version 5.1-emby_2023_06_25 Copyright (c) 2007-2022 the FFmpeg developers and softworkz for Emby LLC
built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
2024-11-04 11:04:55.400 Error App: Error in ffprobe
*** Error Report ***
Version: 4.8.10.0
Command line: C:\Users\mmilohanich_da\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
Operating system: Microsoft Windows 10.0.14393
Framework: .NET 6.0.33
OS/Process: x64/x64
Runtime: C:/Users/mmilohanich_da/AppData/Roaming/Emby-Server/system/System.Private.CoreLib.dll
Processor count: 4
Data path: C:\Users\mmilohanich_da\AppData\Roaming\Emby-Server\programdata
Application path: C:\Users\mmilohanich_da\AppData\Roaming\Emby-Server\system
Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Emby.Server.MediaEncoding.Unified.Ffmpeg.FfRunException: Error running ffprobe: -i "rtsp://admin:123456@172.16.11.11:554/profile1 " -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
at Emby.Server.MediaEncoding.Probing.MediaProbeManager.GetMediaInfoInternal(String inputPath, String primaryPath, MediaProtocol protocol, String userAgent, Boolean extractChapters, String probeSizeArgument, Boolean isAudio, Boolean hasMixedProtocols, CancellationToken cancellationToken)
at Emby.Providers.MediaInfo.FFProbeVideoInfo.ProbeVideo[T](MetadataResult`1 metadataResult, MetadataRefreshOptions options, LibraryOptions libraryOptions, CancellationToken cancellationToken)
at Emby.Providers.Manager.MetadataService`2.RunCustomProvider(ICustomMetadataProvider`1 provider, MetadataResult`1 itemResult, String logName, MetadataRefreshOptions options, LibraryOptions libraryOptions, RefreshResult refreshResult, CancellationToken cancellationToken)
Source: Emby.Server.MediaEncoding
 
Running the same command manually, after a while it responds with this Jason.
 

{
[rtsp @ 00000101fe6b4e00] Could not find codec parameters for stream 0 (Video: h264, none): unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options

Input #0, rtsp, from 'rtsp://admin:xxxx@172.16.11.11:554/profile1 ':
  Metadata:
    title           : \profile1
  Duration: N/A, start: 0.000000, bitrate: 64 kb/s
  Stream #0:0: Video: h264, none, 90k tbr, 90k tbn
  Stream #0:1: Audio: pcm_alaw, 8000 Hz, mono, s16, 64 kb/s
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "codec_type": "video",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 0,
            "height": 0,
            "coded_width": 0,
            "coded_height": 0,
            "closed_captions": 0,
            "film_grain": 0,
            "has_b_frames": 0,
            "level": -99,
            "refs": 1,
            "is_avc": "false",
            "nal_length_size": "0",
            "r_frame_rate": "90000/1",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "extradata": "\n00000000: 0000 0001 6764 0033 ace8 0200 0c19 0000  ....gd.3........\n00000010: 0001 68ee 3c30                           ..h.<0\n",
            "extradata_size": 22,
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            }
        },
        {
            "index": 1,
            "codec_name": "pcm_alaw",
            "codec_long_name": "PCM A-law / G.711 A-law",
            "codec_type": "audio",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "sample_fmt": "s16",
            "sample_rate": "8000",
            "channels": 1,
            "channel_layout": "mono",
            "bits_per_sample": 8,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/8000",
            "bit_rate": "64000",
            "extradata": "\n",
            "disposition": {
                "default": 0,
                "dub": 0,
                "original": 0,
                "comment": 0,
                "lyrics": 0,
                "karaoke": 0,
                "forced": 0,
                "hearing_impaired": 0,
                "visual_impaired": 0,
                "clean_effects": 0,
                "attached_pic": 0,
                "timed_thumbnails": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            }
        }
    ],
    "chapters": [

    ],
    "format": {
        "filename": "rtsp://admin:xxxx@172.16.11.11:554/profile1 ",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "rtsp",
        "format_long_name": "RTSP input",
        "start_time": "0.000000",
        "bit_rate": "64000",
        "probe_score": 100,
        "tags": {
            "title": "\\profile1"
        }
    }
}

 
 
 
Posted

Ok, two questions. Who is the manufacturer of the camera? How did you ascertain the rtsp address you are using?

Posted

The manufacturer is provision and the address is the correct one, if I look at it with VLC it works correctly

Posted

Hi, we’re looking into it. Thanks for reporting.

Posted

Sorry for asking seemingly simple questions, but here are two more. When you are looking at the camera on VLC, is it on the same computer that your Emby server is on? If not, did forward port 554 through your router? BTW, VLC automatically knows that the rtsp protocol is on 554, Emby doesn't so you would have to add the port in the url.

Posted

hi, yes same computer and yes I also added the port, look in my previous posts you can see the port 

Posted

Another way to watch (and test) this camera is to create a new movie library just for this video. This would eliminate any chance of issues with the IPTV plugin.

1. Make a stream file in Notepad (if you're using Windows) with just this line in it; rtsp://admin:xxxx@172.16.11.11:554/profile1. Make sure the file is saved as xxxx.strm.

2. Create a new folder on your hard drive and move the strm file into it.

3. Create a new library in Emby with the content being Movies and point it to the newly created folder. I unchecked everything in the setup (NFO, metadata, monitoring, etc.), hit save, then scanned the library.

4. When you want to watch the video, open the library and play the strm file.

Posted

same results @daldana

 

2024-11-08 18:49:12.655 Info MediaProbeManager: ProcessRun 'ffprobe' Execute: C:\Users\mmilohanich_da\AppData\Roaming\Emby-Server\system\ffprobe.exe -i "rtsp://admin:xxxx@172.16.11.11:554/profile1" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2024-11-08 18:50:12.668 Error MediaProbeManager: Timeout while running Ffprobe -i "rtsp://admin:xxxx@172.16.11.11:554/profile1" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format -show_data
2024-11-08 18:50:13.177 Info MediaProbeManager: ProcessRun 'ffprobe' Process exited with code -1 - Failed
2024-11-08 18:50:13.177 Error MediaProbeManager: ProcessRun 'ffprobe' Error Output:
Posted

I guess I should have asked this earlier, but what is the model number of the camera? Does "http://admin:xxxx@172.16.11.11:80/profile1" work in vlc? Or is rtsp the only choice?

Posted

rstp is the only choice, the camera is a provision and yes VLC works ok in the same machine

Posted

I was asking for the model number of the camera.

Posted

According to the attached manual, it should connect via rtsp or http, but they are talking about IE 6.0 as a browser. Also, the manual does state that an Active X control needs to be downloaded, so the protocols used might be (I said might be) outdated for current software.

@Luke, could this be the problem or am I overthinking?

Installation Manual Provision Camera.pdf

Posted

Hi, it's possible that the 4.9 beta channel may have resolved this issue. The change in question will be in an upcoming 4.8.x maintenance release. 

Posted

@Luke If I run the portable version on my PC the stream is visible for 10 seconds and then fails again. logs attached

logs.rar

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...