Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
onlineapps-cloud opened this issue Jul 13, 2024 · 11 comments
Open

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

onlineapps-cloud opened this issue Jul 13, 2024 · 11 comments

Comments

@onlineapps-cloud
Copy link

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
Copy link
Author

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
Copy link
Author

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
Copy link
Member

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
Copy link
Author

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 #21 (comment)
image
or i need to made another configuration?

@chiefMarlin
Copy link
Member

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:[email protected]: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:[email protected]:554//SOME_PATH_HERE

@onlineapps-cloud
Copy link
Author

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
Copy link
Member

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
Copy link
Author

onlineapps-cloud commented Jul 16, 2024

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
Copy link
Member

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

@onlineapps-cloud
Copy link
Author

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

@oernii
Copy link

oernii commented Dec 11, 2024

I seem to have this same problem. vlc, ffplay and ffprobe all work and do NOT return exit1.

$ docker run --rm -it -p 8080:8080 -v /home/oernii/firescrew:/media:Z -v /home/oernii/
firescrew/config.json:/config.json:Z  -it 8fforg/firescrew:latest /config.json
[+] Checking for updates...
Updated!
15:33:08 [INFO] ******************** CONFIG ********************
15:33:08 [INFO] Print Debug: true
15:33:08 [INFO] Device URL: rtsp://user1:[email protected]:8554/live1.265
15:33:08 [INFO] Lo-Res Param Bypass: Res: 0x0 FPS: 0.00
15:33:08 [INFO] Hi-Res Param Bypass: Res: 0x0 FPS: 0.00
15:33:08 [INFO] Hi-Res Device URL: rtsp://user1:[email protected]:8554/live0.265
15:33:08 [INFO] Video HiResPath: rec/hi
15:33:08 [INFO] Video RecodeTsToMp4: false
15:33:08 [INFO] Video OnlyRemuxMp4: false
15:33:08 [INFO] Motion Embedded Object Script: objectDetectServerYolo.py
15:33:08 [INFO] Motion Object Min Threshold: 0.300000
15:33:08 [INFO] Motion LookForClasses: [car truck person bicycle motorcycle bus cat dog boat]
15:33:08 [INFO] Motion Network Object Detect Server: 
15:33:08 [INFO] Motion PrebufferSeconds: 10
15:33:08 [INFO] Motion EventGap: 30
15:33:08 [INFO] Pixel Motion Area Threshold: 50.000000
15:33:08 [INFO] Object Center Movement Threshold: 50.000000
15:33:08 [INFO] Object Area Threshold: 2000.000000
15:33:08 [INFO] Ignore Areas Classes:
15:33:08 [INFO]   Class: [template], Coordinates: 0,0,0,0
15:33:08 [INFO]   Class: [car truck train suitcase], Coordinates: 133,356,114,397
15:33:08 [INFO]   Class: [car truck train suitcase], Coordinates: 93,274,290,547
15:33:08 [INFO] Draw Ignored Areas: false
15:33:08 [INFO] Enable Output Stream: false
15:33:08 [INFO] Output Stream Address: :8040
15:33:08 [INFO] ************* EVENTS CONFIG *************
15:33:08 [INFO] Events MQTT Host: mqtt.in
15:33:08 [INFO] Events MQTT Port: 1883
15:33:08 [INFO] Events MQTT Topic: motion
15:33:08 [INFO] Events Slack URL: 
15:33:08 [INFO] Events Script Path: 
15:33:08 [INFO] Events Webhook URL: 
15:33:08 [INFO] ************************************************
15:33:09 [DEBUG] ffprobe url: rtsp://user1:[email protected]:8554/live0.265 output: {
    "streams": [
        {
            "index": 0,
            "codec_name": "hevc",
            "codec_long_name": "H.265 / HEVC (High Efficiency Video Coding)",
            "profile": "Main",
            "codec_type": "video",
            "codec_tag_string": "[0][0][0][0]",
            "codec_tag": "0x0000",
            "width": 1920,
            "height": 1080,
            "coded_width": 1920,
            "coded_height": 1080,
            "closed_captions": 0,
            "film_grain": 0,
            "has_b_frames": 0,
            "pix_fmt": "yuvj420p",
            "level": 123,
            "color_range": "pc",
            "color_space": "bt709",
"color_primaries": "bt709",
            "chroma_location": "left",
            "refs": 1,
            "r_frame_rate": "20/1",
            "avg_frame_rate": "0/0",
            "time_base": "1/90000",
            "start_pts": 4500,
            "start_time": "0.050000",
            "extradata_size": 76,
            "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_mulaw",
            "codec_long_name": "PCM mu-law / G.711 mu-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",
            "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,
                "captions": 0,
                "descriptions": 0,
                "metadata": 0,
                "dependent": 0,
                "still_image": 0
            }
        }
    ]
}

15:33:09 [ERROR] Error getting stream info: exit status 1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants