Giter Club home page Giter Club logo

Comments (34)

jnanes avatar jnanes commented on June 9, 2024 1

so, I troubleshot further and just found that my live streams work in homekit, and update to "live", if I disconnect from Wifi. On LTE they are working, which is strange because my Unifi firewall of course allows all traffic from LAN > LAN .Anyhow, I created an additional subnet, and set my wifi to use it and somehow this has worked. For example, homebridge, and my unifi controler are on the 10.5.5.x net and my Wifi was as well but that did not work, adjusting my wifi to use 10.7.7.x has made this work. I am not sure how helpful that is but of course my current setup is not ideal .

from homebridge-camera-ffmpeg-ufv.

papacrown avatar papacrown commented on June 9, 2024 1

I'm having this same problem, everything works and Cams are discovered, but I only get a screenshot, once I click on the feed it stays Loading and just updates with the screenshot every few seconds, I never get continous streaming.

I get this message in the log:

-rtsp_transport http -re -i rtsp://192.168.15.2:7447/5ae7911ee4b0ec40d6ec480b_1?apiKey=REDACTED -threads 0 -vcodec libx264 -an -pix_fmt yuv420p -r 15 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -payload_type 99 -ssrc 4875182 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params Xv2GrIRvNgdTkUlsQ9RMTuUGw5gHC1q6K7ARk5Ae srtp://192.168.15.46:57851?rtcpport=57851&localrtcpport=57851&pkt_size=1378

I imagine I could try reducing packet size to 378, but since I am using Hassio I have no idea how to modify it. Any ideas/suggestions?

from homebridge-camera-ffmpeg-ufv.

ryan99alero avatar ryan99alero commented on June 9, 2024

system.log

from homebridge-camera-ffmpeg-ufv.

gozoinks avatar gozoinks commented on June 9, 2024

Any output at the time the crash? Anything reporting ENOENT?

from homebridge-camera-ffmpeg-ufv.

ryan99alero avatar ryan99alero commented on June 9, 2024

I didn't find anything reporting ENOENT. I didn't receive any output on the home app but I suspecting your referring to output logging on the homekit side. I attached everything from the logs that I saw in the file above but nothing that gives me any inclenation as to whats going on. Would you have any recomendations for where or what logs to look at on the NVR? I checked the /var/log/unifi-video folder and read through those logs. Didn't find anything that would really even align with the timeline of the outbound request. I'm guessing there is a way to turn on debug logging on the NVR to maybe capture more data. Next stop is to maybe try wireshark but I have a feeling I'm not going to sniff out much considering its on ssl.

from homebridge-camera-ffmpeg-ufv.

ryan99alero avatar ryan99alero commented on June 9, 2024

I have tried opening the stream via quicktime thats in the logs via with http:// and https:// and RTSP:// with the following url from the logs for the stream. 192.168.29.167:7447/5a5d8b324f0cfa9a9b8b4435_0?apiKey=W5Jha9rfZzzcY9SHolNXHd98DBk0UC69

It give me an error that the 5a5d8b324f0cfa9a9b8b4435_0 could not be opened. I'm not sure since this is all hashed if your decrypting the url that is sent to get the stream for viewing or if that should load. From what I've read online if the camera is in standalone mode you can stream the RTSP video feed using quicktime but since this has API credentials and is being streamed from the NVR I'm sure its a different ball game
.

from homebridge-camera-ffmpeg-ufv.

scsi-2 avatar scsi-2 commented on June 9, 2024

Im having the same issue. Here's the debug output at the time, which is reliably reproducible when I try to open a camera on iOS:

StreamController Write SelectedStreamConfiguration +0ms
-rtsp_transport http -re -i rtsp://172.27.7.23:7447/578098e1e4b0680ca0eebfec_1?apiKey=xxxxx -threads 0 -vcodec libx264 -an -pix_fmt yuv420p -r 15 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -payload_type 99 -ssrc 1 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params jFjU3BqKL6xVtTWPFwCiq8lgZiVWdJQFDxhdCMRO srtp://172.16.200.176:49995?rtcpport=49995&localrtcpport=49995&pkt_size=1378
EventedHTTPServer [::ffff:172.16.200.176] Sending HTTP event '1.22' with data: {"characteristics":[{"aid":1,"iid":22,"value":"AQEB"}]} +6ms
EventedHTTPServer [::ffff:172.16.200.174] Sending HTTP event '1.22' with data: {"characteristics":[{"aid":1,"iid":22,"value":"AQEB"}]} +1ms
EventedHTTPServer [::ffff:172.16.200.184] Sending HTTP event '1.22' with data: {"characteristics":[{"aid":1,"iid":22,"value":"AQEB"}]} +0ms
EventedHTTPServer [::ffff:172.16.200.150] Sending HTTP event '1.22' with data: {"characteristics":[{"aid":1,"iid":22,"value":"AQEB"}]} +0ms
EventedHTTPServer [::ffff:172.16.200.176] Sending HTTP event '1.22' with data: {"characteristics":[{"aid":1,"iid":22,"value":"AQEB"}]} +1ms
EventedHTTPServer [::ffff:172.16.200.174] Sending HTTP event '1.22' with data: {"characteristics":[{"aid":1,"iid":22,"value":"AQEB"}]} +0ms
EventedHTTPServer [::ffff:172.16.200.184] Sending HTTP event '1.22' with data: {"characteristics":[{"aid":1,"iid":22,"value":"AQEB"}]} +1ms
EventedHTTPServer [::ffff:172.16.200.150] Sending HTTP event '1.22' with data: {"characteristics":[{"aid":1,"iid":22,"value":"AQEB"}]} +0ms
events.js:112
throw er; // Unhandled 'error' event
^

Error: spawn ffmpeg ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at onErrorNT (internal/child_process.js:379:16)
at process._tickCallback (internal/process/next_tick.js:114:19)

from homebridge-camera-ffmpeg-ufv.

scsi-2 avatar scsi-2 commented on June 9, 2024

My config is attached below, too.

{
"bridge": {
"name": "Homebridge",
"username": "xxx",
"port": 51826,
"pin": "xxx"
},

"accessories":[{
"accessory":"DummySwitch",
"name":"Dumb Switch 1",
"stateful": true
},{
"accessory":"OpenweathermapTemperature",
"name":"Outside Temperature",
"url":"http://api.openweathermap.org/data/2.5/weather?q=78753&appid=xxx"

}],

"platforms": [
    {

"platform": "camera-ffmpeg-ufv",
"name": "UniFi Video",
"nvrs": [
{
"apiHost": "172.27.7.23",
"apiPort": 7443,
"apiProtocol": "https",
"apiKey": "xxx"
}
]
}

]

}

from homebridge-camera-ffmpeg-ufv.

scsi-2 avatar scsi-2 commented on June 9, 2024

I resolved this by removing ffmpeg installed by npm,

sudo npm remove -g ffmpeg

and re-installing ffmpeg thru APT.

sudo apt-get install ffmpeg

I'm running this on Ubuntu 16.04...

from homebridge-camera-ffmpeg-ufv.

erfind avatar erfind commented on June 9, 2024

I'm trying to run this in a Docker container and the image updates in the home app, however the video will not play. Any ideas?

from homebridge-camera-ffmpeg-ufv.

jnanes avatar jnanes commented on June 9, 2024

im having this very issue. I see the thumbnails, they update, but when selecting any of my camera streams, it hangs about 30 seconds than errors with "no response, this camera is not respnding ". I tried the fix above to remove ffmpeg from npm and install via apt but it did not help.

from homebridge-camera-ffmpeg-ufv.

jnanes avatar jnanes commented on June 9, 2024

any help on this @gozoinks ? I am running homebridge on ubuntu 16.04 LTS. I am happy to provide any info that will assist. When I select a stream in the Home app, this appears in the Homebridge logs
"-rtsp_transport http -re -i rtsp://10.5.5.10:7447/5ae3b22dddf466856c275490_0?apiKey=6PG1wmYTwouig8hYYaIPqcmWHeTVJjuR -threads 0 -vcodec libx264 -an -pix_fmt yuv420p -r 15 -f rawvideo -tune zerolatency -vf scale=1280:720 -b:v 299k -bufsize 299k -payload_type 99 -ssrc 1 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params UHWx2+cYmdbIYoRl86ItilJuz0irXnbVmIfi9ehz srtp://10.5.5.115:62018?rtcpport=62018&localrtcpport=62018&pkt_size=1378"

However, the stream just sits at "loading" than times out.

from homebridge-camera-ffmpeg-ufv.

jnanes avatar jnanes commented on June 9, 2024

My issue can be closed. Homebridge/cameraffmpegufv began working on my 10.5.5.x LAN both remote/local. Not sure about @ryan99alero though

from homebridge-camera-ffmpeg-ufv.

erfind avatar erfind commented on June 9, 2024

Did anyone come up with a solution for this while running a docker container with Ubuntu?

I'm getting the same error:

-rtsp_transport http -re -i rtsp://10.0.1.XXX:7447/5abc5fcde4b0d8bcd93af0e3_1?apiKey=QrN6k0odRShqPHPLVOwHfl5ScCioADno -threads 0 -vcodec libx264 -an -pix_fmt yuv420p -r 15 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -payload_type 99 -ssrc 3277658 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params /eg98OxNVn8VIs0eoHb9tQw0hZYr8HWX58v2fkKQ srtp://10.0.1.XXX:61864?rtcpport=61864&localrtcpport=61864&pkt_size=1378
events.js:183
throw er; // Unhandled 'error' event
^

Error: spawn ffmpeg ENOENT
at _errnoException (util.js:992:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
at onErrorNT (internal/child_process.js:372:16)
at _combinedTickCallback (internal/process/next_tick.js:138:11)
at process._tickCallback (internal/process/next_tick.js:180:9)

from homebridge-camera-ffmpeg-ufv.

adrum avatar adrum commented on June 9, 2024

@erfind I had it working at one point on 16.04 in Docker, but broke it while trying to add audio. It's reliant on the correct libraries being added to FFmpeg. I have audio working from my Mac, but not my Linux box. Hoping to get back to it one of these weekends.

from homebridge-camera-ffmpeg-ufv.

alexbogus avatar alexbogus commented on June 9, 2024

Hi all

I have the same issue of erfind, I've installed NVR on Docker and the RTSP url is the internal IP of the Docker's network. When the homekit app tries to stream the video I have an error, because this IP address is not accessible from my wifi. There is any way to pass an FQDN from the config to rewrite the IP address on the URL?

I was asking on UBNT forums, and there is no way to change the RSTP url from the UBNT application
Thanks in advance

from homebridge-camera-ffmpeg-ufv.

adrum avatar adrum commented on June 9, 2024

I believe you need to use the same network across the containers that need to communicate with each other. You can use the host network to simplify things a bit. This should allow the two containers to talk to each other.

https://docs.docker.com/network/host/

from homebridge-camera-ffmpeg-ufv.

adrum avatar adrum commented on June 9, 2024

@erfind I have this running in a docker container with live streaming working. I'm using this docker image for homebridge: https://github.com/oznu/docker-homebridge

You drop all files from your .homebridge into the config folder mounted for the volume below.

Here is my docker-compose.yml:

version: '2'
services:
  homebridge:
    image: oznu/homebridge:debian
    restart: always
    network_mode: host
    environment:
      - TZ=America/Indianapolis
      - PGID=1000
      - PUID=1000
      - PACKAGES=ffmpeg
    volumes:
      - ./config:/homebridge

Here is my config/package.json. You can add whatever plugins you need inside of the dependencies object.

{
  "dependencies": {
    "homebridge-camera-ffmpeg-ufv": "^0.7.1"
  },
  "name": "docker-homebridge",
  "version": "1.0.0",
  "main": "index.js",
  "devDependencies": {},
  "scripts": {
    "test": "echo \"Error: no test specified\" && exit 1"
  },
  "author": "",
  "license": "ISC",
  "description": ""
}

from homebridge-camera-ffmpeg-ufv.

erfind avatar erfind commented on June 9, 2024

from homebridge-camera-ffmpeg-ufv.

danTHAman152000 avatar danTHAman152000 commented on June 9, 2024

New to Home Assistant / Homebridge, currently running on hass.io...... I was never successful at "homebridge-camera-ffmpeg" or the "omx" version, but was successful at intermittent screen shots with the "ufv" version. I have the same issue that the Home app shows 10 second-old screen shots and not actual live video. Hoping for a fix!

from homebridge-camera-ffmpeg-ufv.

ryan99alero avatar ryan99alero commented on June 9, 2024

from homebridge-camera-ffmpeg-ufv.

Botts85 avatar Botts85 commented on June 9, 2024

I am having the exact same issue that @papacrown listed here as well.

I have ffmpeg from apt-get and I cannot view live streams from the cameras, but the screenshots update on a regular basis.

from homebridge-camera-ffmpeg-ufv.

Denna93 avatar Denna93 commented on June 9, 2024

I am also having this problem any fix?

from homebridge-camera-ffmpeg-ufv.

brianerdelyi avatar brianerdelyi commented on June 9, 2024

Good day. I'm using the HomeApp on my iPhone. Live stream never appears to work. I get a thumbnail then a counter counting up how many seconds ago the snapshot was taken. If I exit the view the snapshot is updated again. VLC plays my livestream fine.

Homebridge is running on MacOS (10.13.6)

{
"platform": "Camera-ffmpeg",
"cameras": [
{
"name": "UniFi G3 Flex",
"videoConfig": {
"source": "-rtsp_transport tcp -re -i rtsp://192.168.2.22:7447/5bc8fc2dec2e7891b822aff5_2",
"maxStreams": 2,
"maxWidth": 1280,
"maxHeight": 720,
"maxFPS": 30
}
}
]
}

Any thoughts?

from homebridge-camera-ffmpeg-ufv.

adrum avatar adrum commented on June 9, 2024

@brianerdelyi

Try this:

{
    "platform": "Camera-ffmpeg",
    "cameras": [
        {
            "name": "UniFi G3 Flex",
            "videoConfig": {
                "source": "-rtsp_transport http -re -i rtsp://192.168.2.22:7447/5bc8fc2dec2e7891b822aff5_2",
                "maxStreams": 2,
                "maxWidth": 1280,
                "maxHeight": 720,
                "maxFPS": 30
            }
        }
    ]
}

from homebridge-camera-ffmpeg-ufv.

brianerdelyi avatar brianerdelyi commented on June 9, 2024

Will do. And I'm sorry, that was supposed to be posted on the other issue log.

from homebridge-camera-ffmpeg-ufv.

adrum avatar adrum commented on June 9, 2024

If that didn't work, run ffmpeg from terminal or equivalent. It should spit out the ffmpeg configuration. Mine spits out this:

ffmpeg version 3.4.4 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 6.4.0 (Alpine 6.4.0)
  configuration: --prefix=/usr --enable-avresample --enable-avfilter --enable-gnutls --enable-gpl --enable-libass --enable-libmp3lame --enable-librtmp --enable-libvorbis --enable-libvpx --enable-libxvid --enable-libx264 --enable-libx265 --enable-libtheora --enable-libv4l2 --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-libxcb --disable-stripping --disable-static --enable-vaapi --enable-vdpau --enable-libopus --disable-debug
  libavutil      55. 78.100 / 55. 78.100
  libavcodec     57.107.100 / 57.107.100
  libavformat    57. 83.100 / 57. 83.100
  libavdevice    57. 10.100 / 57. 10.100
  libavfilter     6.107.100 /  6.107.100
  libavresample   3.  7.  0 /  3.  7.  0
  libswscale      4.  8.100 /  4.  8.100
  libswresample   2.  9.100 /  2.  9.100
  libpostproc    54.  7.100 / 54.  7.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

What does yours say?

from homebridge-camera-ffmpeg-ufv.

brianerdelyi avatar brianerdelyi commented on June 9, 2024

No change using HTTP. I had previously tried it without that flag as well.

FFMPEG shows:

ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.11.45.2)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.0.2_1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gpl --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-opencl --enable-videotoolbox
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...

Use -h to get full help or, even better, run 'man ffmpeg'

from homebridge-camera-ffmpeg-ufv.

adrum avatar adrum commented on June 9, 2024

Looks like there are some differences between our two installs. I'm not sure which one is the relevant one, but it may be worth installing all options for ffmpeg. I'm assuming you're using homebrew. Try the following:

Uninstall ffmpeg:

brew uninstall ffmpeg

Reinstall ffmpeg with every option (this will take some time):

brew install ffmpeg $(brew options ffmpeg | grep -v -e '\s' | grep -e '--with-\|--HEAD' | tr '\n' ' ')

Source:
https://gist.github.com/clayton/6196167#gistcomment-2710005

from homebridge-camera-ffmpeg-ufv.

brianerdelyi avatar brianerdelyi commented on June 9, 2024

hmmm. it did take some time. still no change. I'm restarting homebridge as well. It's just the live stream isn't working. Constantly has loading but no updates.

from homebridge-camera-ffmpeg-ufv.

brianerdelyi avatar brianerdelyi commented on June 9, 2024

I enabled debugging. I also modified my config again.

[2018-10-21 00:59:40] [Camera-ffmpeg] Start streaming video from UniFi G3 Flex with 640x360@132kBit
ffmpeg -rtsp_transport http -re -i rtsp://192.168.2.22:7447/5bc8fc2dec2e7891b822aff5_2 -map 0:0 -vcodec libx264 -pix_fmt yuv420p -r 1 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -payload_type 99 -ssrc 681385 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params UxOWzUYNEs6tZRlIpCSa+C7jdBQRWm3vB7Jm7rVw srtp://192.168.2.18:49555?rtcpport=49555&localrtcpport=49555&pkt_size=1316
ffmpeg version git-2018-10-20-9e21ba3 Copyright (c) 2000-2018 the FFmpeg developers
  built with Apple LLVM version 10.0.0 (clang-1000.10.44.2)

  configuration: --prefix=/usr/local/Cellar/ffmpeg/HEAD-9e21ba3_1 --enable-shared --enable-pthreads --enable-version3 --enable-hardcoded-tables --enable-avresample --cc=clang --host-cflags='-I/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/include -I/Library/Java/JavaVirtualMachines/jdk-11.jdk/Contents/Home/include/darwin' --host-ldflags= --enable-ffplay --enable-gpl --enable-libmp3lame --enable-libopus --enable-libsnappy --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-chromaprint --enable-frei0r --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfdk-aac --enable-libfontconfig --enable-libfreetype --enable-libgme --enable-libgsm --enable-libmodplug --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-librsvg --enable-librtmp --enable-librubberband --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtesseract --enable-libtwolame --enable-libvidstab --enable-libwavpack --enable-libwebp --enable-libzimg --enable-libzmq --enable-opencl --enable-openssl --enable-videotoolbox --enable-libopenjpeg --disable-decoder=jpeg2000 --extra-cflags=-I/usr/local/Cellar/openjpeg/2.3.0/include/openjpeg-2.3 --enable-nonfree
  libavutil      56. 19.101 / 56. 19.101
  libavcodec     58. 33.102 / 58. 33.102
  libavformat    58. 19.101 / 58. 19.101
  libavdevice    58.  4.105 / 58.  4.105
  libavfilter     7. 34.100 /  7. 34.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  2.100 /  5.  2.100
  libswresample   3.  2.100 /  3.  2.100
  libpostproc    55.  2.100 / 55.  2.100

Input #0, rtsp, from 'rtsp://192.168.2.22:7447/5bc8fc2dec2e7891b822aff5_2':
  Metadata:
    title           : 
FCECDA1F525A_2
  Duration: N/A, start: 0.000000, bitrate: N/A
    Stream #0:0: Audio: aac (LC), 48000 Hz, mono, fltp
    Stream #0:1: Video: h264 (Main), yuvj420p(pc, bt709, progressive), 640x360 [SAR 1:1 DAR 16:9], 15 fps, 15 tbr, 90k tbn, 30 tbc

Codec AVOption tune (Tune the encoding to a specific scenario) specified for output file #0 (srtp://192.168.2.18:49555?rtcpport=49555&localrtcpport=49555&pkt_size=1316) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.

Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (srtp://192.168.2.18:49555?rtcpport=49555&localrtcpport=49555&pkt_size=1316) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.

Stream mapping:
  Stream #0:0 -> #0:0
 (aac (native) -> pcm_mulaw (native))
Press [q] to stop, [?] for help

Output #0, rtp, to 'srtp://192.168.2.18:49555?rtcpport=49555&localrtcpport=49555&pkt_size=1316':
  Metadata:
    title           : FCECDA1F525A_2

    encoder         : Lavf58.19.101
    Stream #0:0: Audio: pcm_mulaw, 48000 Hz, mono, s16, 384 kb/s
    Metadata:
      encoder         : Lavc58.33.102 pcm_mulaw

size=      24kB time=00:00:00.51 bitrate= 389.4kbits/s speed=   1x    
size=      49kB time=00:00:01.02 bitrate= 389.0kbits/s speed=1.01x    
size=      72kB time=00:00:01.51 bitrate= 388.7kbits/s speed=0.993x    
size=      96kB time=00:00:02.02 bitrate= 388.7kbits/s speed=0.996x    
size=     120kB time=00:00:02.53 bitrate= 388.6kbits/s speed=   1x    
size=     145kB time=00:00:03.05 bitrate= 388.6kbits/s speed=   1x    
size=     169kB time=00:00:03.56 bitrate= 388.6kbits/s speed=1.01x    
size=     192kB time=00:00:04.05 bitrate= 388.6kbits/s speed=   1x    
size=     217kB time=00:00:04.56 bitrate= 388.5kbits/s speed=   1x    
size=     240kB time=00:00:05.05 bitrate= 388.6kbits/s speed=   1x    
size=     264kB time=00:00:05.56 bitrate= 388.6kbits/s speed=   1x    
size=     288kB time=00:00:06.07 bitrate= 388.6kbits/s speed=   1x    
size=     313kB time=00:00:06.59 bitrate= 388.6kbits/s speed=   1x    
size=     336kB time=00:00:07.08 bitrate= 388.6kbits/s speed=   1x    
size=     360kB time=00:00:07.59 bitrate= 388.6kbits/s speed=   1x    
size=     385kB time=00:00:08.10 bitrate= 388.6kbits/s speed=   1x    
size=     409kB time=00:00:08.61 bitrate= 388.6kbits/s speed=   1x    
size=     432kB time=00:00:09.10 bitrate= 388.5kbits/s speed=   1x    
size=     456kB time=00:00:09.62 bitrate= 388.5kbits/s speed=   1x    
size=     481kB time=00:00:10.13 bitrate= 388.6kbits/s speed=   1x    
size=     505kB time=00:00:10.64 bitrate= 388.6kbits/s speed=   1x    
size=     528kB time=00:00:11.13 bitrate= 388.6kbits/s speed=   1x    
size=     552kB time=00:00:11.64 bitrate= 388.6kbits/s speed=   1x    
size=     577kB time=00:00:12.15 bitrate= 388.6kbits/s speed=   1x    
size=     600kB time=00:00:12.65 bitrate= 388.6kbits/s speed=   1x    
size=     624kB time=00:00:13.16 bitrate= 388.6kbits/s speed=   1x    
size=     649kB time=00:00:13.67 bitrate= 388.6kbits/s speed=   1x    
size=     672kB time=00:00:14.16 bitrate= 388.5kbits/s speed=   1x    
size=     696kB time=00:00:14.67 bitrate= 388.5kbits/s speed=   1x    
size=     719kB time=00:00:15.16 bitrate= 388.6kbits/s speed=   1x    
size=     744kB time=00:00:15.67 bitrate= 388.6kbits/s speed=   1x    
size=     767kB time=00:00:16.17 bitrate= 388.6kbits/s speed=   1x    
size=     791kB time=00:00:16.68 bitrate= 388.6kbits/s speed=   1x    
size=     816kB time=00:00:17.19 bitrate= 388.6kbits/s speed=   1x    
size=     840kB time=00:00:17.70 bitrate= 388.6kbits/s speed=   1x    
size=     864kB time=00:00:18.21 bitrate= 388.6kbits/s speed=   1x    
size=     888kB time=00:00:18.73 bitrate= 388.6kbits/s speed=   1x    
size=     912kB time=00:00:19.22 bitrate= 388.5kbits/s speed=   1x    
size=     936kB time=00:00:19.73 bitrate= 388.5kbits/s speed=   1x    
size=     960kB time=00:00:20.24 bitrate= 388.6kbits/s speed=   1x    
size=     985kB time=00:00:20.75 bitrate= 388.6kbits/s speed=   1x    
size=    1008kB time=00:00:21.24 bitrate= 388.6kbits/s speed=   1x    
size=    1032kB time=00:00:21.75 bitrate= 388.6kbits/s speed=   1x    
size=    1056kB time=00:00:22.27 bitrate= 388.6kbits/s speed=   1x    
size=    1080kB time=00:00:22.76 bitrate= 388.6kbits/s speed=   1x    
size=    1104kB time=00:00:23.27 bitrate= 388.6kbits/s speed=   1x    
size=    1128kB time=00:00:23.78 bitrate= 388.6kbits/s speed=   1x    
size=    1152kB time=00:00:24.29 bitrate= 388.6kbits/s speed=   1x    
size=    1176kB time=00:00:24.78 bitrate= 388.5kbits/s speed=   1x    
size=    1200kB time=00:00:25.30 bitrate= 388.6kbits/s speed=   1x    
size=    1224kB time=00:00:25.81 bitrate= 388.6kbits/s speed=   1x    
size=    1248kB time=00:00:26.30 bitrate= 388.6kbits/s speed=   1x    
size=    1272kB time=00:00:26.81 bitrate= 388.6kbits/s speed=   1x    
size=    1296kB time=00:00:27.32 bitrate= 388.6kbits/s speed=   1x    
size=    1296kB time=00:00:27.32 bitrate= 388.6kbits/s speed=   1x    
video:0kB audio:1281kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.184682%

Exiting normally, received signal 15.

[2018-10-21 01:00:11] [Camera-ffmpeg] Stopped streaming

Updated config:

            "name": "UniFi G3 Flex",
            "videoConfig": {
            	"source": "-rtsp_transport http -re -i rtsp://192.168.2.22:7447/5bc8fc2dec2e7891b822aff5_2",
            	"maxStreams": 2,
            	"maxWidth": 640,
            	"maxHeight": 480,
            	"maxFPS": 1,
              "debug": true

from homebridge-camera-ffmpeg-ufv.

felsmann avatar felsmann commented on June 9, 2024

so, I troubleshot further and just found that my live streams work in homekit, and update to "live", if I disconnect from Wifi. On LTE they are working, which is strange because my Unifi firewall of course allows all traffic from LAN > LAN .Anyhow, I created an additional subnet, and set my wifi to use it and somehow this has worked. For example, homebridge, and my unifi controler are on the 10.5.5.x net and my Wifi was as well but that did not work, adjusting my wifi to use 10.7.7.x has made this work. I am not sure how helpful that is but of course my current setup is not ideal .

Can you share details on how to do this? I have the very exact issue

Thanks

from homebridge-camera-ffmpeg-ufv.

scourchesne avatar scourchesne commented on June 9, 2024

For me the issue was the resolution and video settings :
On local network the stream request was using : -vf scale=1280:720 -b:v 299k -bufsize 299k
On LTE network (WAN) the stream request was using : -vf scale=640:360 -b:v 132k -bufsize 132k

Limiting the RTSP stream in the NVR to only 640:360, removing the camera from HOME app, adding it again fixed Local / Internet Streaming for now at 640x360.

I don't understand 1280 x 720 isn't even an official resolution for my G3 Flex camera RTSP settings...
Probably a bug in the plugin.

from homebridge-camera-ffmpeg-ufv.

bobjoylove avatar bobjoylove commented on June 9, 2024

I have the same issue as @brianerdelyi

I can see stills but the streams don't work.. They timeout after 30s with no video transcoded.

My config and debug are below. My RSTP streams are 1920*1080p mode.

{
  "bridge": {
	"name": "Homebridge",
	"username": "redacted",
	"port": 51826,
	"pin": "redacted"
  },
  "description": "JSON API",
  "platforms": [
	{
	  "platform": "Camera-ffmpeg",
	  "cameras": [
		{
		  "name": "UniFi G3 Flex",
		  "videoConfig": {
			"source": "-rtsp_transport http -re -i rtsp://192.168.1.36:7447/Yxzpuz4y4URhViu8",
			"vcodec": "h264_omx",
			"audio": false,
			"maxStreams": 2,
			"maxWidth": 1920,
			"maxHeight": 1080,
			"maxFPS": 25,
			"debug": true
		  }
		},
						  {
		  "name": "UniFi G3 Dome",
		  "videoConfig": {
			"source": "-rtsp_transport http -re -i rtsp://192.168.1.36:7447/rNxzWMpQ4hQMybBG",
			"vcodec": "h264_omx",
			"audio": false,
			"maxStreams": 2,
			"maxWidth": 1280,
			"maxHeight": 1080,
			"maxFPS": 30,
			"debug": true
		  }
		  }
	  ]
	}
  ]
}

And my debug log

[2019-2-27 21:02:07] [Camera-ffmpeg] Start streaming video from UniFi G3 Flex with 640x360@132kBit
ffmpeg -rtsp_transport http -re -i rtsp://192.168.1.36:7447/Yxzpuz4y4URhViu8 -map 0:0 -vcodec h264_omx -pix_fmt yuv420p -r 25 -f rawvideo -tune zerolatency -vf scale=640:360 -b:v 132k -bufsize 132k -maxrate 132k -payload_type 99 -ssrc 5986047 -f rtp -srtp_out_suite AES_CM_128_HMAC_SHA1_80 -srtp_out_params N33ckrPdkKGpYNiFnA7BaV4qwZlBo1ISnCqPzXBk srtp://192.168.1.39:55315?rtcpport=55315&localrtcpport=55315&pkt_size=1316 -loglevel debug
ffmpeg version 3.2.12-1deb9u1+rpt1 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 6.3.0 (Raspbian 6.3.0-18+rpi1+deb9u1) 20170516
configuration: --prefix=/usr --extra-version='1
deb9u1+rpt1' --toolchain=hardened --libdir=/usr/lib/arm-linux-gnueabihf --incdir=/usr/include/arm-linux-gnueabihf --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-omx-rpi --enable-mmal --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --arch=armhf --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
libavutil 55. 34.101 / 55. 34.101
libavcodec 57. 64.101 / 57. 64.101
libavformat 57. 56.101 / 57. 56.101
libavdevice 57. 1.100 / 57. 1.100
libavfilter 6. 65.100 / 6. 65.100
libavresample 3. 1. 0 / 3. 1. 0
libswscale 4. 2.100 / 4. 2.100
libswresample 2. 3.100 / 2. 3.100
libpostproc 54. 1.100 / 54. 1.100
Splitting the commandline.
Reading option '-rtsp_transport' ...
matched as AVOption 'rtsp_transport' with argument 'http'.
Reading option '-re' ... matched as option 're' (read input at native frame rate) with argument '1'.
Reading option '-i' ...
matched as input url with argument 'rtsp://192.168.1.36:7447/Yxzpuz4y4URhViu8'.
Reading option '-map' ... matched as option 'map' (set input stream mapping) with argument '0:0'.
Reading option '-vcodec' ... matched as option 'vcodec' (force video codec ('copy' to copy stream)) with argument 'h264_omx'.
Reading option '-pix_fmt' ... matched as option 'pix_fmt' (set pixel format) with argument 'yuv420p'.
Reading option '-r' ... matched as option 'r' (set frame rate (Hz value, fraction or abbreviation)) with argument '25'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rawvideo'.
Reading option '-tune' ...
matched as AVOption 'tune' with argument 'zerolatency'.
Reading option '-vf' ... matched as option 'vf' (set video filters) with argument 'scale=640:360'.
Reading option '-b:v' ... matched as option 'b' (video bitrate (please use -b:v)) with argument '132k'.
Reading option '-bufsize' ...
matched as AVOption 'bufsize' with argument '132k'.
Reading option '-maxrate' ...
matched as AVOption 'maxrate' with argument '132k'.
Reading option '-payload_type' ...
matched as AVOption 'payload_type' with argument '99'.
Reading option '-ssrc' ...
matched as AVOption 'ssrc' with argument '5986047'.
Reading option '-f' ... matched as option 'f' (force format) with argument 'rtp'.
Reading option '-srtp_out_suite' ...
matched as AVOption 'srtp_out_suite' with argument 'AES_CM_128_HMAC_SHA1_80'.
Reading option '-srtp_out_params' ...
matched as AVOption 'srtp_out_params' with argument 'N33ckrPdkKGpYNiFnA7BaV4qwZlBo1ISnCqPzXBk'.
Reading option 'srtp://192.168.1.39:55315?rtcpport=55315&localrtcpport=55315&pkt_size=1316' ... matched as output url.
Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option loglevel (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input url rtsp://192.168.1.36:7447/Yxzpuz4y4URhViu8.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: rtsp://192.168.1.36:7447/Yxzpuz4y4URhViu8.
[http @ 0x14145b0] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[http @ 0x14145b0] request: GET /Yxzpuz4y4URhViu8 HTTP/1.1
User-Agent: Lavf/57.56.101
Range: bytes=0-
Connection: close
Host: 192.168.1.36:7447
Icy-MetaData: 1
x-sessioncookie: 783dd2eb7ef664d6
Accept: application/x-rtsp-tunnelled
Pragma: no-cache
Cache-Control: no-cache
[http @ 0x1416180] Setting default whitelist 'http,https,tls,rtp,tcp,udp,crypto,httpproxy'
[http @ 0x1416180] request: POST /Yxzpuz4y4URhViu8 HTTP/1.1
User-Agent: Lavf/57.56.101
Accept: /
Connection: close
Host: 192.168.1.36:7447
Icy-MetaData: 1
x-sessioncookie: 783dd2eb7ef664d6
Content-Type: application/x-rtsp-tunnelled
Pragma: no-cache
Cache-Control: no-cache
Content-Length: 32767
Expires: Sun, 9 Jan 1972 00:00:00 GMT
[rtsp @ 0x1412790] SDP:
v=0
o=- 813 0 IN IP4 192.168.1.36
s=FCECDA1F900E_0
u=www.evostream.com
e=[email protected]
c=IN IP4 192.168.1.36
t=0 0
a=recvonly
a=control:*
a=range:npt=now-
m=audio 0 RTP/AVP 96
a=recvonly
a=rtpmap:96 mpeg4-generic/48000/1
a=control:trackID=1
a=fmtp:96 streamtype=5; profile-level-id=15; mode=AAC-hbr; config=1188; SizeLength=13; IndexLength=3; IndexDeltaLength=3;
m=video 0 RTP/AVP 97
a=recvonly
a=control:trackID=2
a=rtpmap:97 H264/90000
a=fmtp:97 profile-level-id=4d0029; packetization-mode=1; sprop-parameter-sets=Z00AKZpkA8ARPy4C3AQEBQAAAwPoAADDUJQ=,aO48gA==
[rtsp @ 0x1412790] audio codec set to: aac
[rtsp @ 0x1412790] audio samplerate set to: 48000
[rtsp @ 0x1412790] audio channels set to: 1
[rtsp @ 0x1412790] video codec set to: h264
[rtsp @ 0x1412790] RTP Profile IDC: 4d Profile IOP: 0 Level: 29
[rtsp @ 0x1412790] RTP Packetization Mode: 1
[rtsp @ 0x1412790] Extradata set to 0x141c2a0 (size: 38)
[rtsp @ 0x1412790] setting jitter buffer size to 0
Last message repeated 1 times
[rtsp @ 0x1412790] hello state=0
[h264 @ 0x141bdb0] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x141bdb0] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x141bdb0] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x141bdb0] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x141bdb0] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x141bdb0] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x141bdb0] nal_unit_type: 1, nal_ref_idc: 3
[h264 @ 0x141bdb0] Reinit context to 1920x1088, pix_fmt: yuvj420p
[h264 @ 0x141bdb0] Frame num gap 21 19
[h264 @ 0x141bdb0] nal_unit_type: 1, nal_ref_idc: 3
Last message repeated 1 times
[h264 @ 0x141bdb0] nal_unit_type: 7, nal_ref_idc: 3
[h264 @ 0x141bdb0] nal_unit_type: 8, nal_ref_idc: 3
[h264 @ 0x141bdb0] nal_unit_type: 5, nal_ref_idc: 3
[h264 @ 0x141bdb0] nal_unit_type: 1, nal_ref_idc: 3
Last message repeated 5 times
[rtsp @ 0x1412790] All info found
Input #0, rtsp, from 'rtsp://192.168.1.36:7447/Yxzpuz4y4URhViu8':
Metadata:
title : FCECDA1F900E_0
Duration: N/A, start: 0.130000, bitrate: N/A
Stream #0:0, 56, 1/48000: Audio: aac (LC), 48000 Hz, mono, fltp
Stream #0:1, 31, 1/90000: Video: h264 (Main), 1 reference frame, yuvj420p(pc, bt709, progressive, left), 1920x1080 (1920x1088) [SAR 1:1 DAR 16:9], 0/1, 25 fps,
25 tbr, 90k tbn, 50 tbc
Successfully opened the file.
Parsing a group of options: output url srtp://192.168.1.39:55315?rtcpport=55315&localrtcpport=55315&pkt_size=1316.
Applying option map (set input stream mapping) with argument 0:0.
Applying option vcodec (force video codec ('copy' to copy stream)) with argument h264_omx.
Applying option pix_fmt (set pixel format) with argument yuv420p.
Applying option r (set frame rate (Hz value, fraction or abbreviation)) with argument 25.
Applying option f (force format) with argument rawvideo.
Applying option vf (set video filters) with argument scale=640:360.
Applying option b:v (video bitrate (please use -b:v)) with argument 132k.
Applying option f (force format) with argument rtp.
Successfully parsed a group of options.
Opening an output file: srtp://192.168.1.39:55315?rtcpport=55315&localrtcpport=55315&pkt_size=1316.
Codec AVOption tune (Tune the encoding to a specific scenario) specified for output file #0 (srtp://192.168.1.39:55315?rtcpport=55315&localrtcpport=55315&pkt_size=1316) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
Codec AVOption b (set bitrate (in bits/s)) specified for output file #0 (srtp://192.168.1.39:55315?rtcpport=55315&localrtcpport=55315&pkt_size=1316) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
[srtp @ 0x145fd50] No default whitelist set
[rtp @ 0x14445e0] No default whitelist set
[udp @ 0x1532690] No default whitelist set
[udp @ 0x1528790] No default whitelist set
Successfully opened the file.
detected 4 logical cores
[graph 0 input from stream 0:0 @ 0x145d4f0] Setting 'time_base' to value '1/48000'
[graph 0 input from stream 0:0 @ 0x145d4f0] Setting 'sample_rate' to value '48000'
[graph 0 input from stream 0:0 @ 0x145d4f0] Setting 'sample_fmt' to value 'fltp'
[graph 0 input from stream 0:0 @ 0x145d4f0] Setting 'channel_layout' to value '0x4'
[graph 0 input from stream 0:0 @ 0x145d4f0] tb:1/48000 samplefmt:fltp samplerate:48000 chlayout:0x4
[audio format for output stream 0:0 @ 0x1528810] Setting 'sample_fmts' to value 's16'
[audio format for output stream 0:0 @ 0x1528810] auto-inserting filter 'auto-inserted resampler 0' between the filter 'Parsed_anull_0' and the filter 'audio format for output stream 0:0'
[AVFilterGraph @ 0x1444880] query_formats: 4 queried, 6 merged, 3 already done, 0 delayed
[auto-inserted resampler 0 @ 0x1446c50] [SWR @ 0x146a0d0] Using fltp internally between filters
[auto-inserted resampler 0 @ 0x1446c50] ch:1 chl:mono fmt:fltp r:48000Hz -> ch:1 chl:mono fmt:s16 r:48000Hz
Output #0, rtp, to 'srtp://192.168.1.39:55315?rtcpport=55315&localrtcpport=55315&pkt_size=1316':
Metadata:
title : FCECDA1F900E_0
encoder :
Lavf57.56.101
Stream #0:0, 0, 1/48000: Audio: pcm_mulaw, 48000 Hz, mono, s16, 384 kb/s
Metadata:
encoder : Lavc57.64.101 pcm_mulaw
Stream mapping:
Stream #0:0 -> #0:0 (aac (native) -> pcm_mulaw (native))
Press [q] to stop, [?] for help
cur_dts is invalid (this is harmless if it occurs once at the start per stream)
Last message repeated 1 times
size= 24kB time=00:00:00.51 bitrate= 388.7kbits/s speed=1.02x
size= 49kB time=00:00:01.02 bitrate= 388.6kbits/s speed=1.02x
size= 72kB time=00:00:01.51 bitrate= 388.7kbits/s speed=1.01x
size= 96kB time=00:00:02.02 bitrate= 388.7kbits/s speed=1.01x
size= 120kB time=00:00:02.53 bitrate= 388.6kbits/s speed=1.01x
size= 144kB time=00:00:03.02 bitrate= 388.6kbits/s speed= 1x
size= 168kB time=00:00:03.54 bitrate= 388.6kbits/s speed= 1x
size= 192kB time=00:00:04.05 bitrate= 388.6kbits/s speed=1.01x
size= 216kB time=00:00:04.54 bitrate= 388.5kbits/s speed= 1x
size= 240kB time=00:00:05.05 bitrate= 388.6kbits/s speed= 1x
size= 264kB time=00:00:05.56 bitrate= 388.6kbits/s speed= 1x
size= 287kB time=00:00:06.05 bitrate= 388.6kbits/s speed= 1x
size= 312kB time=00:00:06.57 bitrate= 388.6kbits/s speed= 1x
size= 336kB time=00:00:07.08 bitrate= 388.6kbits/s speed= 1x
size= 359kB time=00:00:07.57 bitrate= 388.6kbits/s speed= 1x
size= 383kB time=00:00:08.08 bitrate= 388.6kbits/s speed= 1x
size= 408kB time=00:00:08.59 bitrate= 388.6kbits/s speed= 1x
size= 431kB time=00:00:09.08 bitrate= 388.5kbits/s speed= 1x
size= 455kB time=00:00:09.60 bitrate= 388.5kbits/s speed= 1x
size= 480kB time=00:00:10.11 bitrate= 388.6kbits/s speed= 1x
size= 503kB time=00:00:10.60 bitrate= 388.6kbits/s speed= 1x
size= 527kB time=00:00:11.11 bitrate= 388.6kbits/s speed= 1x
size= 551kB time=00:00:11.62 bitrate= 388.6kbits/s speed= 1x
size= 575kB time=00:00:12.11 bitrate= 388.6kbits/s speed= 1x
size= 599kB time=00:00:12.62 bitrate= 388.6kbits/s speed= 1x
size= 623kB time=00:00:13.14 bitrate= 388.6kbits/s speed= 1x
size= 647kB time=00:00:13.63 bitrate= 388.5kbits/s speed= 1x
size= 671kB time=00:00:14.14 bitrate= 388.5kbits/s speed= 1x
size= 695kB time=00:00:14.65 bitrate= 388.5kbits/s speed= 1x
size= 718kB time=00:00:15.14 bitrate= 388.6kbits/s speed= 1x
size= 743kB time=00:00:15.65 bitrate= 388.6kbits/s speed= 1x
size= 767kB time=00:00:16.17 bitrate= 388.6kbits/s speed= 1x
size= 790kB time=00:00:16.66 bitrate= 388.6kbits/s speed= 1x
size= 815kB time=00:00:17.17 bitrate= 388.6kbits/s speed= 1x
size= 839kB time=00:00:17.68 bitrate= 388.6kbits/s speed= 1x
size= 862kB time=00:00:18.17 bitrate= 388.5kbits/s speed= 1x
size= 886kB time=00:00:18.68 bitrate= 388.5kbits/s speed= 1x
size= 911kB time=00:00:19.20 bitrate= 388.5kbits/s speed= 1x
size= 934kB time=00:00:19.69 bitrate= 388.6kbits/s speed= 1x
size= 958kB time=00:00:20.20 bitrate= 388.6kbits/s speed= 1x
size= 983kB time=00:00:20.71 bitrate= 388.6kbits/s speed= 1x
size= 1006kB time=00:00:21.20 bitrate= 388.6kbits/s speed= 1x
size= 1030kB time=00:00:21.71 bitrate= 388.6kbits/s speed= 1x
size= 1054kB time=00:00:22.22 bitrate= 388.6kbits/s speed= 1x
size= 1078kB time=00:00:22.72 bitrate= 388.5kbits/s speed= 1x
size= 1102kB time=00:00:23.23 bitrate= 388.5kbits/s speed= 1x
size= 1125kB time=00:00:23.72 bitrate= 388.6kbits/s speed= 1x
size= 1149kB time=00:00:24.23 bitrate= 388.6kbits/s speed= 1x
size= 1174kB time=00:00:24.74 bitrate= 388.6kbits/s speed= 1x
size= 1197kB time=00:00:25.23 bitrate= 388.6kbits/s speed= 1x
size= 1221kB time=00:00:25.74 bitrate= 388.6kbits/s speed= 1x
size= 1246kB time=00:00:26.26 bitrate= 388.6kbits/s speed= 1x
size= 1269kB time=00:00:26.75 bitrate= 388.5kbits/s speed= 1x
size= 1293kB time=00:00:27.26 bitrate= 388.5kbits/s speed= 1x
size= 1317kB time=00:00:27.77 bitrate= 388.5kbits/s speed= 1x
size= 1328kB time=00:00:27.98 bitrate= 388.5kbits/s speed= 1x
video:0kB audio:1312kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.184380%
Input file #0 (rtsp://192.168.1.36:7447/Yxzpuz4y4URhViu8):
Input stream #0:0 (audio): 1312 packets read (214730 bytes); 1312 frames decoded (1343488 samples);
Input stream #0:1 (video): 31 packets read (191062 bytes);
Total: 1343 packets (405792 bytes) demuxed

Output file #0 (srtp://192.168.1.39:55315?rtcpport=55315&localrtcpport=55315&pkt_size=1316):
Output stream #0:0 (audio): 1312 frames encoded (1343488 samples); 1312 packets muxed (1343488 bytes);
Total: 1312 packets (1343488 bytes) muxed
1312 frames successfully decoded, 0 decoding errors
[AVIOContext @ 0x142ba10] Statistics: 0 seeks, 1318 writeouts
Exiting normally, received signal 15.
[2019-2-27 21:02:37] [Camera-ffmpeg] Stopped streaming

from homebridge-camera-ffmpeg-ufv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.