vncrec 1.0.4 → 1.0.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +5 -2
- data/lib/vncrec/version.rb +1 -1
- data/lib/vncrec/writers.rb +3 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc5e43da136548a2d7ced5c57f5b18ade81c0172
|
4
|
+
data.tar.gz: 03aa6b659a34fcd4ff9e2a6548a96763f34893f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8b31ced85fe43a4c50d5edda1bd0b0354aa409992821b9a7f40a6fe52f3222d88aad683088e73418a2396a06303f889db9f6d3309db89b4e6156b727ce12b43d
|
7
|
+
data.tar.gz: adf6796648f33b8489526bb85d03094719b41302a0d5bb12df1a2cce02668037a93a815b052da88b31beef85f7738edbff76743b8a2cec48740517d31519688b
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -4,11 +4,11 @@ VNCRec
|
|
4
4
|
VNCRec is a gem that provides you
|
5
5
|
tools to record VNC session.
|
6
6
|
|
7
|
-
##Installation
|
7
|
+
## Installation
|
8
8
|
|
9
9
|
`gem install vncrec`
|
10
10
|
|
11
|
-
##Usage
|
11
|
+
## Usage
|
12
12
|
There is a binary called `vncrec`, which is a recorder tool.
|
13
13
|
|
14
14
|
With no host specified, it will listen on
|
@@ -38,3 +38,6 @@ you can specify encoder you want by passing .mp4 or .flv, etc. If no filename
|
|
38
38
|
specified, `vncrec` assumes raw. There is also a way to
|
39
39
|
record raw video by specifying filename with extension .raw. This way FFmpeg is
|
40
40
|
not required.
|
41
|
+
|
42
|
+
_NOTE:_ you should use avconv (from libav-tools) on some debian systems. Please, make
|
43
|
+
a symlink, e.g. `ln -s /usr/bin/avconv /usr/bin/ffmpeg`.
|
data/lib/vncrec/version.rb
CHANGED
data/lib/vncrec/writers.rb
CHANGED
@@ -46,6 +46,7 @@ module VNCRec
|
|
46
46
|
# * ffmpeg_out_opts
|
47
47
|
# See {VNCRec::Recorder#initialize} for descriptions
|
48
48
|
def initialize(filename, opts = {})
|
49
|
+
abort("Can't find ffmpeg in PATH!") unless system('which ffmpeg', [1, 2] => File::NULL)
|
49
50
|
@filename = filename
|
50
51
|
@fps = opts[:fps] || 12
|
51
52
|
pf = opts.fetch(:pix_fmt) { fail 'Undefined pixel format' }
|
@@ -59,7 +60,7 @@ module VNCRec
|
|
59
60
|
#{@ffmpeg_iv_opts} \
|
60
61
|
-i pipe:0 \
|
61
62
|
#{@ffmpeg_ia_opts} \
|
62
|
-
#{@ffmpeg_out_opts} #{@filename}
|
63
|
+
#{@ffmpeg_out_opts} #{@filename}"
|
63
64
|
@data_avail = false
|
64
65
|
spawn
|
65
66
|
end
|
@@ -123,7 +124,7 @@ module VNCRec
|
|
123
124
|
end
|
124
125
|
|
125
126
|
def routine
|
126
|
-
@output = IO.popen(@cmd)
|
127
|
+
@output = IO.popen(@cmd, 2 => File.open(File::NULL))
|
127
128
|
@output_ready = true
|
128
129
|
IO.select([STDIN])
|
129
130
|
@th = Thread.new(thread_func)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vncrec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- d-theus
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -185,7 +185,7 @@ requirements:
|
|
185
185
|
- ffmpeg
|
186
186
|
- x11vnc
|
187
187
|
rubyforge_project:
|
188
|
-
rubygems_version: 2.
|
188
|
+
rubygems_version: 2.6.13
|
189
189
|
signing_key:
|
190
190
|
specification_version: 4
|
191
191
|
summary: VNC session recording
|