rien / reStream

Stream your reMarkable screen over SSH.
MIT License
734 stars 56 forks source link

Latency grows over time #16

Closed samuelyeewl closed 4 years ago

samuelyeewl commented 4 years ago

Hi, I've been trying to use this to stream my remarkable's screen - but although it starts out having low latency, the latency grows significantly over time, to > 5 seconds after less than a minute of use. I'm not sure what is going wrong.

I have lz4 installed (v1.8.1 on host, precompiled version on remarkable), ffmpeg 4.2.2, and I'm on macOS 10.13.6. The tablet is connected via USB.

Thanks for the help!

rien commented 4 years ago

That is weird. I'm not having this issue. Is there any output in ffmpeg that looks abnormal? Do you use any options?

rien commented 4 years ago

@samuelyeewl any updates from your side? Do you still experience this problem?

rien commented 4 years ago

I'm closing this issue because I cannot reproduce this problem and I haven't heard from someone else experiencing this issue. Please reopen this issue if needed.

Stivanification commented 3 years ago

I have the same issue with lz4 installed on host and on the reMarkable. It's a reMarkable 1, the software version is 2.5.0.27 and I'm running macOS 11.1 on the host. This is the output of ffmpeg:

ffplay version 4.3.1 Copyright (c) 2003-2020 the FFmpeg developers
  built with Apple clang version 12.0.0 (clang-1200.0.32.21)
  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.1_3 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, rawvideo, from 'pipe:':
  Duration: N/A, start: 0.000000, bitrate: 1054310 kb/s
    Stream #0:0: Video: rawvideo (RGB[16] / 0x10424752), rgb565le, 1408x1872, 1054310 kb/s, 25 tbr, 25 tbn, 25 tbc
  85.71 M-V:  0.001 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0