File tree Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Expand file tree Collapse file tree 2 files changed +11
-18
lines changed Original file line number Diff line number Diff line change @@ -23,20 +23,6 @@ On Macintosh with [homebrew](http://bew.sh/), for example:
23
23
24
24
``` bash
25
25
brew install ffmpeg chromaprint make
26
- git clone git@github.com:djthorpe/go-media.git
27
- cd go-media
28
- make
29
- ```
30
-
31
- On Debian Linux:
32
-
33
-
34
- ``` bash
35
- sudo apt install libavcodec-dev libavdevice-dev libavfilter-dev \
36
- libavformat-dev libavresample-dev libavutil-dev libchromaprint-dev
37
- git clone git@github.com:djthorpe/go-media.git
38
- cd go-media
39
- make
40
26
```
41
27
42
28
There are some examples in the ` cmd ` folder of the main repository on how to use
@@ -47,6 +33,14 @@ the package. The various make targets are:
47
33
* ` make cmd ` will build example command-line tools into the ` build ` folder;
48
34
* ` make clean ` will remove all build artifacts.
49
35
36
+ For example,
37
+
38
+ ``` bash
39
+ git clone git@github.com:djthorpe/go-media.git
40
+ cd go-media
41
+ make
42
+ ```
43
+
50
44
## Examples
51
45
52
46
There are two example [ Command Line applications] ( https://github.com/mutablelogic/go-media/tree/master/cmd ) :
Original file line number Diff line number Diff line change @@ -60,10 +60,9 @@ func AVFormat_avformat_get_class() *AVClass {
60
60
////////////////////////////////////////////////////////////////////////////////
61
61
// PUBLIC METHODS - AVSTREAM
62
62
63
- //Commented out due to not compiling on debian
64
- //func AVFormat_avstream_getclass() *AVClass {
65
- // return (*AVClass)(C.av_stream_get_class())
66
- //}
63
+ func AVFormat_avstream_getclass () * AVClass {
64
+ return (* AVClass )(C .av_stream_get_class ())
65
+ }
67
66
68
67
func AVFormat_avformat_new_stream (oc * AVFormatContext , c * AVCodec ) * AVStream {
69
68
return (* AVStream )(C .avformat_new_stream ((* C .struct_AVFormatContext )(oc ), (* C .struct_AVCodec )(c )))
You can’t perform that action at this time.
0 commit comments