Playbin speed

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Playbin speed

mrsinger

   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)  
*[hidden email]    |  üwww.cornelius-usa.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.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playbin speed

Nicolas Dufresne-5

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" <[hidden email]> 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)  
*[hidden email]    |  üwww.cornelius-usa.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.

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playbin speed

mrsinger
In reply to this post by mrsinger
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 <[hidden email]>
To: Discussion of the development of and with GStreamer
<[hidden email]>
Subject: Re: Playbin speed
Message-ID:
<CAH_td2w6KwN4ua=Z9Re4fQb8Nn1Wk7q3UD+CX=mKt2B2=[hidden email]>
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" <[hidden email]> 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)
> *:  [hidden email]    *|*  ü:  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.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Playbin speed

Sebastian Dröge-3
On Wed, 2016-10-05 at 14:27 +0000, Singer, Matt wrote:

> 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?
You can take a look at the pipeline graph (set GST_DEBUG_DUMP_DOT_DIR
to some directory for gst-launch), the debug logs or in code with the
GstBin API to look at all the child elements.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment