Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gstreamer sticky event error #146

Open
Daniel-Mietchen opened this issue Oct 20, 2016 · 2 comments
Open

Gstreamer sticky event error #146

Daniel-Mietchen opened this issue Oct 20, 2016 · 2 comments

Comments

@Daniel-Mietchen
Copy link
Member

Thu Oct 20 23:44:46 CEST 2016####################################################################################################################################################################| ETA: 0:00:00
10.1371/journal.pone.0144113
Input DOIs, delimited by whitespace: Getting PubMed Central IDs for given DOIs … found: 4668036
/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py:573: SAWarning: Unicode type received non-unicodebind param value.###############################################################################|
param.append(processorskey)
“Early-Onset Convulsive Seizures Induced by Brain Hypoxia-Ischemia in Aging Mice: Effects of Anticonvulsive Treatments”:
2 × /

/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py:573: SAWarning: Unicode type received non-unicodebind param value. | ETA: 0:00:00
param.append(processorskey)
2 of 2 100% |####################################################################################################################################################################################| ETA: 0:00:00
(python:29056): GStreamer-WARNING **: gstpad.c:4661:store_sticky_event:dvdlpcmdec0:src Sticky event misordering, got 'segment' before 'caps'

(python:29056): GStreamer-WARNING **: gstpad.c:4661:store_sticky_event:<'':decodepad2> Sticky event misordering, got 'segment' before 'caps'

(python:29056): GStreamer-WARNING **: gstpad.c:4661:store_sticky_event:decodepad2:proxypad3 Sticky event misordering, got 'segment' before 'caps'

@Daniel-Mietchen
Copy link
Member Author

Another one:


Tue Nov  1 00:41:24 CET 2016###############################################################| ETA:  0:00:00
10.1371/journal.pone.0019733
Input DOIs, delimited by whitespace: Getting PubMed Central IDs for given DOIs … found: 3098829
/usr/lib/python2.7/dist-packages/sqlalchemy/engine/default.py:573: SAWarning: Unicode type received non-unicodebind param value.
  param.append(processors[key](compiled_params[key]))
“Visual Genome-Wide RNAi Screening to Identify Human Host Factors Required for Trypanosoma cruzi Infection”:
        1 × video/mpeg
        1 × image/tiff
        1 × application/msword

3 of 3 100% |##############################################################################| ETA:  0:00:00
(python:1602): GStreamer-WARNING **: gstpad.c:4661:store_sticky_event:<mpegaudioparse0:src> Sticky event misordering, got 'segment' before 'caps'

(python:1602): GStreamer-WARNING **: gstpad.c:4661:store_sticky_event:<'':decodepad2> Sticky event misordering, got 'segment' before 'caps'

(python:1602): GStreamer-WARNING **: gstpad.c:4661:store_sticky_event:<src_1:proxypad3> Sticky event misordering, got 'segment' before 'caps'

@vamsi-krishna-mishran
Copy link

vamsi-krishna-mishran commented Nov 28, 2024

import sys
import gi

gi.require_version('Gst', '1.0')
gi.require_version('GstRtspServer','1.0')
from gi.repository import Gst, GstRtspServer, GObject,GLib

loop = GLib.MainLoop()
#GObject.threads_init()
Gst.init(None)

class MyFactory(GstRtspServer.RTSPMediaFactory):
def init(self):
GstRtspServer.RTSPMediaFactory.init(self)

def do_create_element(self, url):
	file_path = "test.mp4"
	s_src = f"filesrc location={file_path} ! decodebin ! videoconvert ! video/x-raw,format=I420 ! capsfilter caps=video/x-raw,format=I420"
	#s_src = f"filesrc location={file_path} ! decodebin ! videoconvert ! video/x-raw,format=I420"
	s_h264 = "x264enc tune=zerolatency bitrate=1000 ! rtph264pay name=pay0 pt=96"
    # Combine the source and encoding pipelines
	pipeline_str = f"( {s_src} ! queue max-size-buffers=10 name=q_enc ! {s_h264} )"
	print("Pipeline:", pipeline_str)
	return Gst.parse_launch(pipeline_str)

class GstServer():
def init(self):
self.server = GstRtspServer.RTSPServer()
f = MyFactory()
f.set_shared(True)
m = self.server.get_mount_points()
m.add_factory("/test", f)
self.server.attach(None)

if name == 'main':
s = GstServer()
loop.run()

where should i do the update to get out of the error. could someone help me?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants