rien / reStream

Stream your reMarkable screen over SSH.
MIT License
748 stars 57 forks source link

ffmpeg output is distorted (vertical lines) #97

Closed kareiva closed 8 months ago

kareiva commented 1 year ago

I was using the reStream on a weekly basis and without any changes to the settings/code, the output became garbled.

restream ffmpeg

Host is Fedora release 38 (went from beta to GA over a few dnf upgrades)

I am currently at 3862d9c5c85d09c58e985f01049989f15a3d2830 and using the below:

$ ffmpeg -version
ffmpeg version 6.0 Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 13 (GCC)
Eeems commented 1 year ago

What OS version is the device?

kareiva commented 1 year ago

Forgot to mention the remarkable2 is at 3.6.0.1865

On Mon, 11 Sept 2023, 18:27 Nathaniel van Diepen, @.***> wrote:

What OS version is the device?

— Reply to this email directly, view it on GitHub https://github.com/rien/reStream/issues/97#issuecomment-1714117270, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5VYTLQSC2KNN3Q4BXNTXDXZ4UW5ANCNFSM6AAAAAA4TBXS2M . You are receiving this because you authored the thread.Message ID: @.***>

Eeems commented 1 year ago

This is likely a duplicate of #95

kareiva commented 1 year ago

Thanks. I will try the suggested fix at https://github.com/rien/reStream/issues/95#issuecomment-1681492697 and let you know.

On Mon, 11 Sept 2023, 21:40 Nathaniel van Diepen, @.***> wrote:

This is likely a duplicate of #95 https://github.com/rien/reStream/issues/95

— Reply to this email directly, view it on GitHub https://github.com/rien/reStream/issues/97#issuecomment-1714395511, or unsubscribe https://github.com/notifications/unsubscribe-auth/AA5VYTP4UWJVWVTMXHE2ET3XZ5LINANCNFSM6AAAAAA4TBXS2M . You are receiving this because you authored the thread.Message ID: @.***>

kareiva commented 1 year ago

Thanks! I think it was the pixel format in the first place that was causing the issue.

I have tuned my options to the below:

bytes_per_pixel=2
pixel_format="gray16be"
video_filters="curves=all='0/0 0.19/1 1/1',transpose=0"

Now, just a small leftover: transposing with a flip makes the landscape mode turn to left, not to right as documented.

FloranMartin commented 11 months ago

Hello, I got similar issue on Remarkable 2 - version 3.6.1.1894 It was solved with

In the header part of the code line 15 : video_filters = "vflip"

In the part which check the remarkable 2 version
line 146: width = 1872 line 147 : height = 2808 line 148 : bytes_per_pixel = 1 line 150 : pixel_format="grey12be" line 151 : video_filters = "$video_filters",transpose=2"

In my case the grey12be was cleaner but feel free to try out the available format in the list (ending by be is nicer than le).

One remaining minor issue is that the stream is duplicated into two vertical windows but resizing the app window works just fine to remain lazy enough.

rien commented 8 months ago

This should be fixed in the latest release by #100. Let me know if you encounter any additional issues.