Stream URL has a "?" in the path causing invalid ffmpeg command



  • Camera:
    AMCREST IP2M-844E

    Path to stream:
    rtsp://192.168.77.10:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif

    Error:
    cmd : -loglevel warning -analyzeduration 1000000 -probesize 1000000 -rtsp_transport tcp -i rtsp://192.168.77.10:554/cam/realmonitor -f flv -an -c:v copy pipe:1 -an -c:v copy -f hls -tune zerolatency -g 1 -hls_time 2 -hls_list_size 10 -start_number 0 -live_start_index -3 -hls_allow_cache 0 -hls_flags +delete_segments+omit_endlist /dev/shm/streams/2Df5hBE/Ul58ZNEcv3/detectorStream.m3u8

    Dropped to terminal and tested the command outright. Failed initially unless I wrapped the URL in quotes:

    ffmpeg -loglevel warning -analyzeduration 1000000 -probesize 1000000 -i "rtsp://192.168.77.10:554/cam/realmonitor?channel=1&subtype=0&unicast=true&proto=Onvif" -f flv -an -c:v copy pipe:1 -an -c:v copy -f hls -tune zerolatency -g 1 -hls_time 2 -hls_list_size 10 -start_number 0




 

Looks like your connection to Shinobi Forum was lost, please wait while we try to reconnect.