Playbin speed
Singer, Matt
Matt.Singer at cornelius.com
Wed Oct 5 14:27:16 UTC 2016
Apologies for butchering the digest thread, will switch to individual messages.
The flush was there because I inherited the code and it was already there ;-)
I don’t disable sync. The only other thing not in that code fragment is setting the state to PLAYING
Is there a way to get from "gst-launch-1.0 playbin" how it configures itself?
-----Original Message-----
Message: 1
Date: Tue, 4 Oct 2016 22:05:59 -0400
From: Nicolas Dufresne <nicolas at ndufresne.ca>
To: Discussion of the development of and with GStreamer
<gstreamer-devel at lists.freedesktop.org>
Subject: Re: Playbin speed
Message-ID:
<CAH_td2w6KwN4ua=Z9Re4fQb8Nn1Wk7q3UD+CX=mKt2B2=y1k1Q at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
It's not possible to say from the information you provided. Did you disable sync on your video sink? Why do you set the bus to flushing?
Le 4 oct. 2016 8:28 PM, "Singer, Matt" <Matt.Singer at cornelius.com> a écrit :
> I’m playing a video file with the follow code. It works just fine
> on a motherboard that has a J1900 running Kubuntu 14.04. The same
> code on my I7 Dell running Kubuntu 16.04 displays the video at least a 2x rate (might be
> 4x). But if I just run gst-launch-1.0 playbin myfile it displays just
> fine.
>
>
>
> Any ideas?
>
>
>
> Thanks
>
>
>
>
>
>
>
> self.playbin = Gst.ElementFactory.make('playbin', None)
>
> self.bus = self.playbin.get_bus()
>
>
>
> self.bus.set_flushing(True)
>
> self.bus.add_signal_watch()
>
> self.onEOS_ID = self.bus.connect('message::eos', self.OnEOS)
>
> self.onError_ID = self.bus.connect('message::error', self.OnError)
>
>
>
> self.bus.enable_sync_message_emission()
>
> self.onSync_ID = self.bus.connect('sync-message::element',
> self.OnSyncMessage)
>
>
>
>
>
> self.playbin.set_property('uri', myFile)
>
>
>
> ----
> Matthew R. Singer
>
> Embedded Systems Engineer - Strategic Accounts
>
> *Cornelius Inc.*
> (: (410) 972-9444 (m)
> *: matt.singer at cornelius.com *|* ü: www.cornelius-usa.com
> <http://www.cornelius.com/>
>
> Cornelius Inc., 101 Regency Drive, Glendale Heights, IL 60139
>
The information contained in this electronic message is privileged and confidential information; intended solely for the use of the intended recipient. Retransmission, dissemination or other use that any person other than the intended recipient makes of this communication is prohibited and any reliance or decisions made based upon it are solely the responsibility of such person. If you received this in error, contact the sender immediately and destroy all copies of this e-mail.
More information about the gstreamer-devel
mailing list