Skip to content Skip to sidebar Skip to footer

Gstreamer In Python Exits Instantly, But Is Fine On Command Line

I am trying to build a program or robot that can generate audio and video on the fly and stream it to a rtmp server such a Twitch or Youtube. I have found that I can pull in stream

Solution 1:

  1. The error with the pad seems obvious. Without looking at the pipleline if its correct - no such pad 'sink' in element "videotestsrc0": So this is not s sink but a src element. And naturally these don't have sink pads as they are sources.

  2. I have no idea how the rest of your app looks like. But "running" a pipeline is a non-blocking call. So if you don't have a proper application loop or just wait after the call by other means the application may immediately exit.

  3. x264enc key-int-max=<max-number-of-frames>. Or idk.set_property('key-int-max', 60).

Post a Comment for "Gstreamer In Python Exits Instantly, But Is Fine On Command Line"