Prioritize hardware decoder for playbin2

Jim restlessmindsstudio at gmail.com
Fri Feb 22 07:33:04 PST 2013


Yeah I realized after further testing that I could no longer adjust the volume. So I had to add the soft-volume flag.

Jim

-----Original Message-----
From: gstreamer-devel-bounces+restlessmindsstudio=gmail.com at lists.freedesktop.org [mailto:gstreamer-devel-bounces+restlessmindsstudio=gmail.com at lists.freedesktop.org] On Behalf Of Nicolas Dufresne
Sent: Thursday, February 21, 2013 8:50 PM
To: Discussion of the development of and with GStreamer
Subject: Re: Prioritize hardware decoder for playbin2

Le jeudi 21 février 2013 à 11:57 -0700, Jim a écrit :
> Hi Soeren,
> Thanks for your time. I went ahead and tried setting the playbin2 
> flags property to 0x163 and noticed a big difference in CPU usage, it 
> looks like it is now using the VPU based on the very low CPU usage. 
> But after about 10 seconds the video started getting choppy and froze. 
> So I changed the flags to 0x063 (excluded the GST_PLAY_FLAG_BUFFERING 
> flag) and now the video is playing smoothly and the CPU usage is still low.
> 
> It's odd that disabling buffering would be helpful. Does that make any 
> sense? I do see that the default flags for playbin2 are:
> "soft-volume+text+audio+video" (0x017) so by default buffering is not 
> enabled.
> 
> I think this solved my problem, thanks again!
> 

Well, note that you have disable soft-volume, and enable Only use native audio and Only use native video. This should have the effect of removing any software element from your pipeline (scaling, resample, volume, colorbalance etc.) I cannot tell exactly where is the CPU gain, but it's most likely from one of these, and not from buffering.

regards,
Nicolas

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list