You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
package main
import (
"fmt"
"log"
"time"
"github.com/notedit/gst"
)
func main() {
log.Printf("HELLO")
pipeline, err := gst.ParseLaunch("appsrc name=mysource format=time is-live=true do-timestamp=true ! videoconvert ! autovideosink")
if err != nil {
panic("pipeline error")
}
log.Printf("pipe: %v", pipeline)
videoCap := gst.CapsFromString("video/x-raw,format=RGB,width=320,height=240,bpp=24,depth=24")
element := pipeline.GetByName("mysource")
element.SetObject("caps", videoCap)
pipeline.SetState(gst.StatePlaying)
i := 0
for {
if i > 100 {
break
}
data := make([]byte, 320*240*3)
err := element.PushBuffer(data)
if err != nil {
fmt.Println("push buffer error")
break
}
fmt.Println("push one")
i++
time.Sleep(50000000)
}
pipeline.SetState(gst.StateNull)
pipeline = nil
element = nil
videoCap = nil
}
After an error about PKG_CONFIG_PATH not set properly, I notice there is a folder with a bunch of .pc files, including C:\gstreamer\1.0\mingw_x86_64\lib\pkgconfig\gstreamer-1.0.pc
So I set my PKG_CONFIG_PATH env var to C:/gstreamer/1.0/mingw_x86_64/lib/pkgconfig and finally go build silently builds an .exe, yet when I run it nothing happens. No error, no console output, it just quits immediately.
Hello,
What is the correct procedure to get one of the examples working on Windows?
I probably missed something silly, but I tried downloading and installing https://gstreamer.freedesktop.org/data/pkg/windows/1.18.2/mingw/gstreamer-1.0-devel-mingw-x86_64-1.18.2.msi then I tried to
go build
one of the examples:After an error about PKG_CONFIG_PATH not set properly, I notice there is a folder with a bunch of .pc files, including
C:\gstreamer\1.0\mingw_x86_64\lib\pkgconfig\gstreamer-1.0.pc
So I set my
PKG_CONFIG_PATH
env var toC:/gstreamer/1.0/mingw_x86_64/lib/pkgconfig
and finallygo build
silently builds an .exe, yet when I run it nothing happens. No error, no console output, it just quits immediately.Any ideas?
My gstreamer-1.0.pc looks like this:
The text was updated successfully, but these errors were encountered: