coderrr-video-accel 0.0.1 → 0.0.3

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.
data/README.markdown CHANGED
@@ -1,5 +1,13 @@
1
- Video what?
2
- ====
1
+ Video Stream Acceleration
2
+ =
3
+
4
+ Why would I use this?
5
+ -
6
+
7
+ The only people who would want to use this are those who have a per-connection bandwidth cap which is less than what is required to stream a given video you want to watch.
8
+
9
+ What does it do?
10
+ -
3
11
 
4
12
  video-accel is an accelerator for streaming videos on the web. It acts very similar to a download accelerator.
5
13
 
@@ -7,4 +15,19 @@ A download accelerator will split a file up into a small (~5) number of even par
7
15
 
8
16
  So instead of splitting the file up into a small number of even parts, video-accel splits the file up into a large number of even parts and then downloads a small number at a time, but it downloads them *in order*. The fact that it downloads them in order is what allows you to still stream the video while it is being downloaded at a faster rate.
9
17
 
10
- Currently video-accel only works with Linux.
18
+ Usage
19
+ -
20
+
21
+ vdl http://popular.video.site/url
22
+
23
+ The actual video url will be resolved with clipnabber.com
24
+
25
+ vdl -s http://direct.url.of/video
26
+
27
+ Skip the clipnabber.com resolution
28
+
29
+ vdl -t "xterm -e" -p video_player http://url
30
+
31
+ Use a custom video player inside of a custom terminal. The defaults are -t "gnome-terminal -e" and -p vplayer
32
+
33
+ Currently video-accel only works with Linux.
data/lib/speed_stream.rb CHANGED
@@ -18,7 +18,7 @@ class SpeedStream
18
18
  @output_file = output_file
19
19
  @write_mutex = Mutex.new
20
20
  @finished = []
21
- @bytes_per_conn = 30_000
21
+ @bytes_per_conn = 100_000
22
22
  @concurrent_connections = 10
23
23
  @cookies = {}
24
24
  @extra_file_length_headers = {'Range' => 'bytes=1-'}
data/lib/video_player.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  class VideoPlayer
2
2
  MP_ARGS = [
3
+ "-autosync 0 -mc 0.0",
3
4
  "",
4
5
  "-autosync 30 -mc 2.0",
5
- "-autosync 0 -mc 0.0"
6
6
  ]
7
7
 
8
8
  def initialize(file)
@@ -51,4 +51,4 @@ class VideoPlayer
51
51
  wait_for_cmd
52
52
  end
53
53
  end
54
- end
54
+ end
data/video-accel.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = "video-accel"
3
- s.version = "0.0.1"
3
+ s.version = "0.0.3"
4
4
  s.author = "coderrr"
5
5
  s.email = "coderrr.contact@gmail.com"
6
6
  # s.homepage = "http://blogs.cocoondev.org/crafterm/"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coderrr-video-accel
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - coderrr
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-10-09 00:00:00 -07:00
12
+ date: 2008-10-27 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15