Commit Graph

78 Commits

Author SHA1 Message Date
dcd3007932 Listen for connection on rM instead of host 2021-01-28 23:11:07 +01:00
87981226c5 Add option to send data over a tcp socket
This reducec the dropbear cpu usage to basically
nothing, since the traffic does not need encryption
anymore.

This option uses the nc command on the client side.
So this will not work with windows as of now!
2021-01-13 12:43:52 +01:00
e4080ede2a Windows installation instructions 2021-01-08 11:23:00 +01:00
3187c03e88 Disable password auth, mention rM2 ed25519 issue
Fixes #38
2021-01-05 20:09:41 +01:00
c41b877789 Fix formatting 2021-01-01 14:55:28 +01:00
38ff447ae6 Fix transpose options for rM2 2021-01-01 14:52:30 +01:00
1b213ad7ac Use correct binary 2021-01-01 14:51:49 +01:00
794db4c2e7 Fix formatting 2021-01-01 14:51:49 +01:00
4203ac7960 Fix typo 2021-01-01 14:51:49 +01:00
a0248760bd Edit reStream.sh and README 2021-01-01 14:51:46 +01:00
4c27256fef Fix some minor issues with restream binary 2021-01-01 14:50:43 +01:00
9352090965 Add restream Rust executable 2021-01-01 14:50:43 +01:00
2e280f889d Use head and tail instead of dd 2021-01-01 14:50:43 +01:00
221aa0e7b3 Use a better way to find the framebuffer address 2021-01-01 14:50:43 +01:00
0dc05496a9 Improve performance for carving memory 2021-01-01 14:50:42 +01:00
cdd88ac6a3 Apply @thomsten's suggestion
Co-authored-by: Thomas Stenersen <stenersen.thomas@gmail.com>
2021-01-01 14:50:42 +01:00
c90bfff017 Apply @xiu's suggestion
Co-authored-by: Guillaume Herail <xiu@users.noreply.github.com>
2021-01-01 14:50:42 +01:00
7eb0143866 Change rM2 supported badge 🎉 2021-01-01 14:50:42 +01:00
d436a8ecb0 shfmt 2021-01-01 14:50:42 +01:00
995486e1ec Update script to work with multiple reMarkable versions 2021-01-01 14:50:42 +01:00
eebf5e9880 Fix options in README 2020-12-31 15:44:04 +01:00
24b4846ec7 Merge branch 'cloudsftp-feature/window-title' 2020-12-31 15:22:38 +01:00
6f55f735b0 Simplify cli options 2020-12-31 15:22:11 +01:00
f1cb66b663 Use ffmpeg native options to do scaling and padding math (#34)
* Use ffmpeg native options to do scaling and padding math

* whitespace
2020-12-31 15:19:16 +01:00
943489a9fd Use ffmpeg native options to do scaling and padding math (#34)
* Use ffmpeg native options to do scaling and padding math

* whitespace
2020-12-23 15:04:51 +01:00
8ef4a6993b add description of option to README 2020-11-20 12:34:16 +01:00
7a44de2862 fix typos 2020-11-20 12:29:32 +01:00
e775e8707b enable recording to output 2020-11-20 12:23:15 +01:00
30ac3b714d add option to change the window title (default: reStream) 2020-11-20 12:14:45 +01:00
4b3527ebef Merge pull request #29 from Utopiah/patch-1
rm2 unsupported badge
2020-10-17 12:23:05 +02:00
db572cfcad rm2 unsupported badge
cf issue created earlier today
2020-10-16 23:53:22 +02:00
bea1581257 Fix formatting 2020-05-06 14:47:37 +02:00
a1b14bdf41 Measure troughput with -t 2020-05-06 14:43:23 +02:00
220d387994 Add MIT License
Closes #21
2020-04-18 16:17:42 +02:00
e680dd5531 Set pixel format to rgb565le 2020-04-18 16:17:42 +02:00
057e90721d Merge pull request #18 from beardhatcode/master
Add video4linux2 support
2020-04-14 11:57:51 +02:00
9e9fbbc771 Add explaination about v4l2 2020-04-14 11:54:01 +02:00
e687816421 Add video4linux2 support 2020-04-14 10:59:49 +02:00
154fbe6fe8 Split action workflow into linting and formatting 2020-04-07 11:53:11 +02:00
088d3732c4 Add examples to usage info 2020-04-07 11:48:46 +02:00
48a7ed84c3 Merge pull request #13 from matteodelabre/specify-output
Allow choosing the video output
2020-04-07 11:34:50 +02:00
ab6fa11982 Fix formatting 2020-04-07 11:21:10 +02:00
3609b990ff Store extra ffmpeg arguments in $@ 2020-04-07 11:17:45 +02:00
0c707af239 Merge branch 'master' into specify-output 2020-04-07 10:55:20 +02:00
d0323daef5 Replace arrays with variable substitutions for POSIX compliance
Co-Authored-By: Rien <rien.maertens@posteo.be>
2020-04-07 10:48:51 +02:00
52d0187d7e Don't use ~ in commands 2020-04-06 23:19:54 +02:00
1dfb28028d Add GitHub workflow 2020-04-03 12:16:16 +02:00
154d15b890 Apply shellcheck and shfmt 2020-04-03 12:15:53 +02:00
4344903438 Fix recorded videos playing back too fast
Use the `setpts` video filter to set each frame’s presentation timestamp
to the time it is received by the encoder.
See <https://ffmpeg.org/ffmpeg-filters.html#Examples-141>.
2020-04-03 11:28:42 +02:00
49f20074f0 Allow choosing the video output
Instead of simply playing back the frames through `ffplay`, I thought it
might be interesting to be able to record the sequence to a video file
or to use it as part of a stream.

I have in mind the use case of making educational videos/live streams
where the tablet can be used as a kind of remote blackboard by teachers,
which is especially relevant currently. But there are certainly other
use cases!

Changes
=======

This commit adds two new options to that effect:

* `-o --output`: Path of the output as understood by `ffmpeg` (usually a
file name). If this is `-` (as it is by default), the existing behavior
of playing the stream through `ffplay` is restored.

* `-f --format`: When recording to an output, this option can be used to
force the encoding format. If this is `-` (again, the default),
`ffmpeg`’s auto format detection is used (based on the file extension).

Because of the possible confusion between the newly added `--output`
option and the existing `--destination` option for specifying the source
address, I suggest renaming the `--destination` option to `--source`
(this is implemented in this commit).

Examples
========

Record to a file
----------------

```sh
./reStream.sh -o remarkable.mp4
```

Caveat: The recorded file plays back too fast.
I am not sure how to fix this.

Create an UDP MPEG-TS stream
----------------------------

```sh
./reStream.sh -o "udp://127.0.0.1:1234" -f "mpegts"
```

This sends frames over UDP to the specified port using the MPEG-TS
format (see <https://trac.ffmpeg.org/wiki/StreamingGuide>). This stream
can then be connected, for example, to OBS for live streaming (see
<https://connect.ed-diamond.com/Linux-Pratique/LP-096/Enrichir-sa-diffusion-de-contenus-multimedias-avec-OBS>
in French).
2020-04-02 20:54:11 +02:00