8ff / firescrew

Firescrew - Spotting moving objects on your RTSP network cameras faster than a caffeinated cat!
https://firescrew.com
GNU Affero General Public License v3.0
142 stars 11 forks source link

[ERROR] Error getting stream info: ffprobe: exit status 1 #21

Open onlineapps-cloud opened 1 month ago

onlineapps-cloud commented 1 month ago

hi, i cannot launch firescrew, i had error:

root@ubuntu:/home/ubuntu# ./firescrew config.json
11:55:30 [INFO] ******************** CONFIG ********************
11:55:30 [INFO] Print Debug: false
11:55:30 [INFO] Device URL: 
11:55:30 [INFO] Lo-Res Param Bypass: Res: 0x0 FPS: 0.00
11:55:30 [INFO] Hi-Res Param Bypass: Res: 0x0 FPS: 0.00
11:55:30 [INFO] Hi-Res Device URL: 
11:55:30 [INFO] Video HiResPath: rec/hi
11:55:30 [INFO] Video RecodeTsToMp4: true
11:55:30 [INFO] Video OnlyRemuxMp4: true
11:55:30 [INFO] Motion Embedded Object Script: objectDetectServerYolo.py
11:55:30 [INFO] Motion Object Min Threshold: 0.300000
11:55:30 [INFO] Motion LookForClasses: [car truck person bicycle motorcycle bus cat dog boat]
11:55:30 [INFO] Motion Network Object Detect Server: 
11:55:30 [INFO] Motion PrebufferSeconds: 10
11:55:30 [INFO] Motion EventGap: 30
11:55:30 [INFO] Pixel Motion Area Threshold: 50.000000
11:55:30 [INFO] Object Center Movement Threshold: 50.000000
11:55:30 [INFO] Object Area Threshold: 2000.000000
11:55:30 [INFO] Ignore Areas Classes:
11:55:30 [INFO]   Class: [template], Coordinates: 0,0,0,0
11:55:30 [INFO]   Class: [car truck train suitcase], Coordinates: 133,356,114,397
11:55:30 [INFO]   Class: [car truck train suitcase], Coordinates: 93,274,290,547
11:55:30 [INFO] Draw Ignored Areas: false
11:55:30 [INFO] Enable Output Stream: false
11:55:30 [INFO] Output Stream Address: :8040
11:55:30 [INFO] ************* EVENTS CONFIG *************
11:55:30 [INFO] Events MQTT Host: 
11:55:30 [INFO] Events MQTT Port: 1883
11:55:30 [INFO] Events MQTT Topic: 
11:55:30 [INFO] Events Slack URL: 
11:55:30 [INFO] Events Script Path: 
11:55:30 [INFO] Events Webhook URL: 
11:55:30 [INFO] ************************************************
11:55:31 [ERROR] Error getting stream info: ffprobe: exit status 1
root@ubuntu:/home/ubuntu# ffmpeg -version
ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100

i don't change anything in default config.json

onlineapps-cloud commented 1 month ago

upd, i tried to connect on my camera, but no success, same results:

root@ubuntu:/home/ubuntu# ./firescrew config.json
12:10:21 [INFO] ******************** CONFIG ********************
12:10:21 [INFO] Print Debug: false
12:10:21 [INFO] Device URL: rtsp://192.168.1.39:554/user=admin_password=censoredchannel=1_stream=0&onvif=0.sdp?real_st
12:10:21 [INFO] Lo-Res Param Bypass: Res: 0x0 FPS: 0.00
12:10:21 [INFO] Hi-Res Param Bypass: Res: 0x0 FPS: 0.00
12:10:21 [INFO] Hi-Res Device URL: 
12:10:21 [INFO] Video HiResPath: rec/hi
12:10:21 [INFO] Video RecodeTsToMp4: true
12:10:21 [INFO] Video OnlyRemuxMp4: true
12:10:21 [INFO] Motion Embedded Object Script: objectDetectServerYolo.py
12:10:21 [INFO] Motion Object Min Threshold: 0.300000
12:10:21 [INFO] Motion LookForClasses: [car truck person bicycle motorcycle bus cat dog boat]
12:10:21 [INFO] Motion Network Object Detect Server: 
12:10:21 [INFO] Motion PrebufferSeconds: 10
12:10:21 [INFO] Motion EventGap: 30
12:10:21 [INFO] Pixel Motion Area Threshold: 50.000000
12:10:21 [INFO] Object Center Movement Threshold: 50.000000
12:10:21 [INFO] Object Area Threshold: 2000.000000
12:10:21 [INFO] Ignore Areas Classes:
12:10:21 [INFO]   Class: [template], Coordinates: 0,0,0,0
12:10:21 [INFO]   Class: [car truck train suitcase], Coordinates: 133,356,114,397
12:10:21 [INFO]   Class: [car truck train suitcase], Coordinates: 93,274,290,547
12:10:21 [INFO] Draw Ignored Areas: false
12:10:21 [INFO] Enable Output Stream: false
12:10:21 [INFO] Output Stream Address: :8040
12:10:21 [INFO] ************* EVENTS CONFIG *************
12:10:21 [INFO] Events MQTT Host: 
12:10:21 [INFO] Events MQTT Port: 1883
12:10:21 [INFO] Events MQTT Topic: 
12:10:21 [INFO] Events Slack URL: 
12:10:21 [INFO] Events Script Path: 
12:10:21 [INFO] Events Webhook URL: 
12:10:21 [INFO] ************************************************
12:10:21 [ERROR] Error getting stream info: ffprobe: exit status 1
onlineapps-cloud commented 1 month ago
root@ubuntu:/home/ubuntu# ffprobe -version
ffprobe version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2007-2021 the FFmpeg developers
built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)
configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
libavutil      56. 70.100 / 56. 70.100
libavcodec     58.134.100 / 58.134.100
libavformat    58. 76.100 / 58. 76.100
libavdevice    58. 13.100 / 58. 13.100
libavfilter     7.110.100 /  7.110.100
libswscale      5.  9.100 /  5.  9.100
libswresample   3.  9.100 /  3.  9.100
libpostproc    55.  9.100 / 55.  9.100
chiefMarlin commented 1 month ago

Hi You will have to change the rtsp stream paths on the config to point to your cameras for it work https://github.com/8ff/firescrew?tab=readme-ov-file#configuration

onlineapps-cloud commented 1 month ago

Hi You will have to change the rtsp stream paths on the config to point to your cameras for it work https://github.com/8ff/firescrew?tab=readme-ov-file#configuration

i already made it here https://github.com/8ff/firescrew/issues/21#issuecomment-2226879610 image or i need to made another configuration?

chiefMarlin commented 1 month ago

Thats weird, i somehow missed your subsequent message, your rtsp stream doesnt seem correct, typically in rtsp username and password stored in the same part as the ip Eg: rtsp://username:password@192.168.0.53:554/h264Preview_01_sub firescrew essentially uses ffmpeg to capture so you should first test whether your stream works with ffplay like so:

ffplay -rtsp_transport tcp  rtsp://USERNAME:PASSWORD@192.168.123.123:554//SOME_PATH_HERE
onlineapps-cloud commented 1 month ago

this is RTSP link received from onvif device manager, this link work well in VLC media player image image image ffplay work as expected.

chiefMarlin commented 1 month ago

Try running below command to see what ffprobe returns for stream info: ffprobe -rtsp_transport tcp -v quiet -print_format json -show_streams RTSP_URL_HERE

onlineapps-cloud commented 1 month ago

Try running below command to see what ffprobe returns for stream info: ffprobe -rtsp_transport tcp -v quiet -print_format json -show_streams RTSP_URL_HERE


D:\AI\ffmpeg-master-latest-win64-gpl\ffmpeg-master-latest-win64-gpl\bin>ffprobe -rtsp_transport tcp -v quiet -print_format json -show_streams rtsp://192.168.1.39:554/user=admin_password=tlJwpbo6_channel=1_stream=0
{
    "streams": [
        {
            "index": 0,
            "codec_name": "h264",
            "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
            "profile": "Main",
            "codec_type": "video",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 2560,
            "height": 1440,
            "coded_width": 2560,
            "coded_height": 1440,
            "closed_captions": 0,
            "film_grain": 0,
            "has_b_frames": 0,
            "pix_fmt": "yuvj420p",
            "level": 50,
            "color_range": "pc",
            "color_space": "bt709",
            "color_transfer": "bt709",
            "color_primaries": "bt709",
            "chroma_location": "left",
            "field_order": "progressive",
            "refs": 1,
            "is_avc": "false",
            "nal_length_size": "0",
            "r_frame_rate": "20/1",
            "avg_frame_rate": "20/1",
            "time_base": "1/90000",
            "start_pts": 4500,
            "start_time": "0.050000",
            "bits_per_raw_sample": "8",
            "extradata_size": 38,
            "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,
                "non_diegetic": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0,
                "multilayer": 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,
            "bits_per_sample": 8,
            "initial_padding": 0,
            "r_frame_rate": "0/0",
            "avg_frame_rate": "0/0",
            "time_base": "1/8000",
            "start_pts": 0,
            "start_time": "0.000000",
            "bit_rate": "64000",
            "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,
                "non_diegetic": 0,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0,
                "multilayer": 0
            }
        }
    ]
}
chiefMarlin commented 1 month ago

Try enabling debug in the config file to see why ffprobe is exiting with 1

onlineapps-cloud commented 1 month ago

hi, I enabled debug, but, no success :(

root@ubuntu:/home/ubuntu# ./firescrew config.json
07:05:42 [INFO] ******************** CONFIG ********************
07:05:42 [INFO] Print Debug: true
07:05:42 [INFO] Device URL: rtsp://192.168.1.39:554/user=admin_password=tlJwpbo6_channel=1_stream=0&onvif=0.sdp?real_st
07:05:42 [INFO] Lo-Res Param Bypass: Res: 0x0 FPS: 0.00
07:05:42 [INFO] Hi-Res Param Bypass: Res: 0x0 FPS: 0.00
07:05:42 [INFO] Hi-Res Device URL: 
07:05:42 [INFO] Video HiResPath: rec/hi
07:05:42 [INFO] Video RecodeTsToMp4: true
07:05:42 [INFO] Video OnlyRemuxMp4: true
07:05:42 [INFO] Motion Embedded Object Script: objectDetectServerYolo.py
07:05:42 [INFO] Motion Object Min Threshold: 0.300000
07:05:42 [INFO] Motion LookForClasses: [car truck person bicycle motorcycle bus cat dog boat]
07:05:42 [INFO] Motion Network Object Detect Server: 
07:05:42 [INFO] Motion PrebufferSeconds: 10
07:05:42 [INFO] Motion EventGap: 30
07:05:42 [INFO] Pixel Motion Area Threshold: 50.000000
07:05:42 [INFO] Object Center Movement Threshold: 50.000000
07:05:42 [INFO] Object Area Threshold: 2000.000000
07:05:42 [INFO] Ignore Areas Classes:
07:05:42 [INFO]   Class: [template], Coordinates: 0,0,0,0
07:05:42 [INFO]   Class: [car truck train suitcase], Coordinates: 133,356,114,397
07:05:42 [INFO]   Class: [car truck train suitcase], Coordinates: 93,274,290,547
07:05:42 [INFO] Draw Ignored Areas: false
07:05:42 [INFO] Enable Output Stream: false
07:05:42 [INFO] Output Stream Address: :8040
07:05:42 [INFO] ************* EVENTS CONFIG *************
07:05:42 [INFO] Events MQTT Host: 
07:05:42 [INFO] Events MQTT Port: 1883
07:05:42 [INFO] Events MQTT Topic: 
07:05:42 [INFO] Events Slack URL: 
07:05:42 [INFO] Events Script Path: 
07:05:42 [INFO] Events Webhook URL: 
07:05:42 [INFO] ************************************************
07:05:42 [ERROR] Error getting stream info: ffprobe: exit status 1