diff --git a/README.md b/README.md index f6412b4..8a82291 100644 --- a/README.md +++ b/README.md @@ -29,7 +29,6 @@ Duration() float64 FPS() float64 Codec() string AudioCodec() string -PixFmt() string FrameBuffer() []byte SetFrameBuffer(buffer []byte) diff --git a/utils.go b/utils.go index 8b5306b..0edd6ae 100644 --- a/utils.go +++ b/utils.go @@ -119,9 +119,6 @@ func addVideoData(data map[string]string, video *Video) { if codec, ok := data["codec_name"]; ok { video.codec = codec } - if pixfmt, ok := data["pix_fmt"]; ok { - video.pixfmt = pixfmt - } } // Parses the given data into a float64. diff --git a/video.go b/video.go index 937d235..9368e97 100644 --- a/video.go +++ b/video.go @@ -20,7 +20,6 @@ type Video struct { fps float64 // Frames per second. codec string // Codec used for video encoding. audioCodec string // Codec used for audio encoding. - pixfmt string // Pixel format video is stored in. framebuffer []byte // Raw frame data. pipe *io.ReadCloser // Stdout pipe for ffmpeg process. cmd *exec.Cmd // ffmpeg command. @@ -69,10 +68,6 @@ func (video *Video) AudioCodec() string { return video.audioCodec } -func (video *Video) PixFmt() string { - return video.pixfmt -} - func (video *Video) FrameBuffer() []byte { return video.framebuffer } diff --git a/vidio_test.go b/vidio_test.go index e959ecb..e2d904f 100644 --- a/vidio_test.go +++ b/vidio_test.go @@ -29,7 +29,6 @@ func TestVideoMetaData(t *testing.T) { assertEquals(video.fps, float64(30)) assertEquals(video.codec, "h264") assertEquals(video.audioCodec, "aac") - assertEquals(video.pixfmt, "yuv420p") assertEquals(len(video.framebuffer), 0) if video.pipe != nil {