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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b496fdd1cf4345a163978a601c2f3defa77e4646
4
- data.tar.gz: 205b7ca582a47c89da2e220d77fc5e6b4dc7f2b8
3
+ metadata.gz: dc5e43da136548a2d7ced5c57f5b18ade81c0172
4
+ data.tar.gz: 03aa6b659a34fcd4ff9e2a6548a96763f34893f4
5
5
  SHA512:
6
- metadata.gz: 8aeb8c8cd064a12dc28897625cefd801559fd1b920c7afe1a9970848388fd17d8e0473a8723b8407e329cd7d16abdff1a153dd7bcc50c54bc7099c01cbff2947
7
- data.tar.gz: 6b3bcfb25adc7581a1a90c1a3b7103501a081329c473e05af99851f0338f1258f89fb583bede9a3f6684ae3c7fb2bdfb3162ad7e1226e6d5016355ec5b2a7775
6
+ metadata.gz: 8b31ced85fe43a4c50d5edda1bd0b0354aa409992821b9a7f40a6fe52f3222d88aad683088e73418a2396a06303f889db9f6d3309db89b4e6156b727ce12b43d
7
+ data.tar.gz: adf6796648f33b8489526bb85d03094719b41302a0d5bb12df1a2cce02668037a93a815b052da88b31beef85f7738edbff76743b8a2cec48740517d31519688b
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ##1.0.6
4
+
5
+ * silence system which ffmpeg
6
+
7
+ ##1.0.5
8
+
9
+ * Fixed popen cmdline redirection which somehow was broken on Debian jessie
10
+
3
11
  ##1.0.4
4
12
 
5
13
  * Added authentication
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`.
@@ -1,3 +1,3 @@
1
1
  module VNCRec
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -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} &>/dev/null"
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
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: 2017-08-13 00:00:00.000000000 Z
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.4.5.2
188
+ rubygems_version: 2.6.13
189
189
  signing_key:
190
190
  specification_version: 4
191
191
  summary: VNC session recording