Skip to content

Commit

Permalink
Fix decodebin usage for Pi
Browse files Browse the repository at this point in the history
Signed-off-by: Lukas Bachschwell <lukas@lbsfilm.at>
  • Loading branch information
s00500 committed May 16, 2021
1 parent 06962bd commit 6d70117
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sinks.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ type GstSink struct {
}

func (sink GstSink) StartInstance() (io.WriteCloser, func()) {
args := []string{"fdsrc", "fd=0", "!", "decodebin3", "!", "videoconvert", "n-threads=8", "!", "autovideosink", "sync=false"}
args := []string{"fdsrc", "fd=0", "!", "decodebin", "!", "videoconvert", "n-threads=8", "!", "autovideosink", "sync=false"} // decodebin3 seems to be faster on macOS but does not work on RPI4
cmd := exec.Command("gst-launch-1.0", args...)
stdin, err := cmd.StdinPipe()
if err != nil {
Expand Down

0 comments on commit 6d70117

Please sign in to comment.