hornetseye-ffmpeg 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/Rakefile +1 -1
- data/ext/avoutput.cc +8 -7
- metadata +73 -83
data/README.md
CHANGED
@@ -15,7 +15,7 @@ Installation
|
|
15
15
|
|
16
16
|
*hornetseye-ffmpeg* requires FFMpeg and the software scaling library. If you are running Debian or (K)ubuntu, you can install them like this:
|
17
17
|
|
18
|
-
$ sudo aptitude install libavformat-dev libswscale-dev
|
18
|
+
$ sudo aptitude install libavformat-dev libswscale-dev libboost-dev
|
19
19
|
|
20
20
|
To install this Ruby extension, use the following command:
|
21
21
|
|
data/Rakefile
CHANGED
data/ext/avoutput.cc
CHANGED
@@ -51,7 +51,6 @@ AVOutput::AVOutput( const string &mrl, int videoBitRate, int width, int height,
|
|
51
51
|
ERRORMACRO( format != NULL, Error, ,
|
52
52
|
"Could not find suitable output format for \"" << mrl << "\"" );
|
53
53
|
m_oc = avformat_alloc_context();
|
54
|
-
// m_oc = av_alloc_format_context();
|
55
54
|
ERRORMACRO( m_oc != NULL, Error, , "Failure allocating format context" );
|
56
55
|
m_oc->oformat = format;
|
57
56
|
snprintf( m_oc->filename, sizeof( m_oc->filename ), "%s", mrl.c_str() );
|
@@ -87,8 +86,8 @@ AVOutput::AVOutput( const string &mrl, int videoBitRate, int width, int height,
|
|
87
86
|
if ( m_oc->oformat->flags & AVFMT_GLOBALHEADER )
|
88
87
|
c->flags |= CODEC_FLAG_GLOBAL_HEADER;
|
89
88
|
};
|
90
|
-
ERRORMACRO( av_set_parameters( m_oc, NULL ) >= 0, Error, ,
|
91
|
-
|
89
|
+
// ERRORMACRO( av_set_parameters( m_oc, NULL ) >= 0, Error, ,
|
90
|
+
// "Invalid output format parameters: " << strerror( errno ) );
|
92
91
|
AVCodec *codec = avcodec_find_encoder( c->codec_id );
|
93
92
|
ERRORMACRO( codec != NULL, Error, , "Could not find video codec "
|
94
93
|
<< c->codec_id );
|
@@ -118,11 +117,11 @@ AVOutput::AVOutput( const string &mrl, int videoBitRate, int width, int height,
|
|
118
117
|
#endif
|
119
118
|
};
|
120
119
|
if ( !( format->flags & AVFMT_NOFILE ) ) {
|
121
|
-
ERRORMACRO(
|
122
|
-
|
120
|
+
ERRORMACRO(avio_open(&m_oc->pb, mrl.c_str(), AVIO_FLAG_WRITE) >= 0, Error, ,
|
121
|
+
"Could not open \"" << mrl << "\"" );
|
123
122
|
m_fileOpen = true;
|
124
123
|
};
|
125
|
-
ERRORMACRO(
|
124
|
+
ERRORMACRO( avformat_write_header(m_oc, NULL) >= 0, Error, ,
|
126
125
|
"Error writing header of video \"" << mrl << "\": "
|
127
126
|
<< strerror( errno ) );
|
128
127
|
m_headerWritten = true;
|
@@ -191,7 +190,7 @@ void AVOutput::close(void)
|
|
191
190
|
m_audioStream = NULL;
|
192
191
|
m_videoStream = NULL;
|
193
192
|
if ( m_fileOpen ) {
|
194
|
-
|
193
|
+
avio_close(m_oc->pb);
|
195
194
|
m_fileOpen = false;
|
196
195
|
};
|
197
196
|
av_free( m_oc );
|
@@ -515,8 +514,10 @@ VALUE AVOutput::registerRubyClass( VALUE rbModule )
|
|
515
514
|
INT2FIX( CODEC_ID_TIFF ) );
|
516
515
|
rb_define_const( cRubyClass, "CODEC_ID_GIF",
|
517
516
|
INT2FIX( CODEC_ID_GIF ) );
|
517
|
+
#ifdef CODEC_ID_FFH264
|
518
518
|
rb_define_const( cRubyClass, "CODEC_ID_FFH264",
|
519
519
|
INT2FIX( CODEC_ID_FFH264 ) );
|
520
|
+
#endif
|
520
521
|
rb_define_const( cRubyClass, "CODEC_ID_DXA",
|
521
522
|
INT2FIX( CODEC_ID_DXA ) );
|
522
523
|
rb_define_const( cRubyClass, "CODEC_ID_DNXHD",
|
metadata
CHANGED
@@ -1,90 +1,89 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: hornetseye-ffmpeg
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.1.4
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 1
|
8
|
-
- 1
|
9
|
-
- 3
|
10
|
-
version: 1.1.3
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Jan Wedekind
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2013-09-20 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: malloc
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
18
|
+
requirements:
|
26
19
|
- - ~>
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 1
|
31
|
-
- 2
|
32
|
-
version: "1.2"
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '1.2'
|
33
22
|
type: :runtime
|
34
|
-
version_requirements: *id001
|
35
|
-
- !ruby/object:Gem::Dependency
|
36
|
-
name: multiarray
|
37
23
|
prerelease: false
|
38
|
-
|
24
|
+
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '1.2'
|
30
|
+
- !ruby/object:Gem::Dependency
|
31
|
+
name: multiarray
|
32
|
+
requirement: !ruby/object:Gem::Requirement
|
39
33
|
none: false
|
40
|
-
requirements:
|
34
|
+
requirements:
|
41
35
|
- - ~>
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
|
44
|
-
segments:
|
45
|
-
- 1
|
46
|
-
- 0
|
47
|
-
version: "1.0"
|
36
|
+
- !ruby/object:Gem::Version
|
37
|
+
version: '1.0'
|
48
38
|
type: :runtime
|
49
|
-
version_requirements: *id002
|
50
|
-
- !ruby/object:Gem::Dependency
|
51
|
-
name: hornetseye-frame
|
52
39
|
prerelease: false
|
53
|
-
|
40
|
+
version_requirements: !ruby/object:Gem::Requirement
|
54
41
|
none: false
|
55
|
-
requirements:
|
42
|
+
requirements:
|
56
43
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '1.0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: hornetseye-frame
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ~>
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '1.0'
|
63
54
|
type: :runtime
|
64
|
-
version_requirements: *id003
|
65
|
-
- !ruby/object:Gem::Dependency
|
66
|
-
name: rake
|
67
55
|
prerelease: false
|
68
|
-
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
57
|
none: false
|
70
|
-
requirements:
|
71
|
-
- -
|
72
|
-
- !ruby/object:Gem::Version
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '1.0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: rake
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
77
70
|
type: :development
|
78
|
-
|
79
|
-
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
description: This Ruby extension defines the class Hornetseye::AVInput for reading
|
79
|
+
frames from video files and the class Hornetseye::AVOutput for writing frames to
|
80
|
+
video files.
|
80
81
|
email: jan@wedesoft.de
|
81
82
|
executables: []
|
82
|
-
|
83
|
-
extensions:
|
83
|
+
extensions:
|
84
84
|
- Rakefile
|
85
85
|
extra_rdoc_files: []
|
86
|
-
|
87
|
-
files:
|
86
|
+
files:
|
88
87
|
- Rakefile
|
89
88
|
- README.md
|
90
89
|
- COPYING
|
@@ -105,37 +104,28 @@ files:
|
|
105
104
|
- ext/avoutput.hh
|
106
105
|
homepage: http://wedesoft.github.com/hornetseye-ffmpeg/
|
107
106
|
licenses: []
|
108
|
-
|
109
107
|
post_install_message:
|
110
|
-
rdoc_options:
|
108
|
+
rdoc_options:
|
111
109
|
- --no-private
|
112
|
-
require_paths:
|
110
|
+
require_paths:
|
113
111
|
- lib
|
114
112
|
- ext
|
115
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
113
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
116
114
|
none: false
|
117
|
-
requirements:
|
118
|
-
- -
|
119
|
-
- !ruby/object:Gem::Version
|
120
|
-
|
121
|
-
|
122
|
-
- 0
|
123
|
-
version: "0"
|
124
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
|
+
requirements:
|
116
|
+
- - ! '>='
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
version: '0'
|
119
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
125
120
|
none: false
|
126
|
-
requirements:
|
127
|
-
- -
|
128
|
-
- !ruby/object:Gem::Version
|
129
|
-
|
130
|
-
segments:
|
131
|
-
- 0
|
132
|
-
version: "0"
|
121
|
+
requirements:
|
122
|
+
- - ! '>='
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
133
125
|
requirements: []
|
134
|
-
|
135
126
|
rubyforge_project: hornetseye
|
136
|
-
rubygems_version: 1.8.
|
127
|
+
rubygems_version: 1.8.23
|
137
128
|
signing_key:
|
138
129
|
specification_version: 3
|
139
130
|
summary: Read/write video frames using libffmpeg
|
140
131
|
test_files: []
|
141
|
-
|