[Interest] Play video is very slow using Gstreamer

William Zeng williamzeng88 at gmail.com
Fri May 25 05:41:09 CEST 2012


Yes. I use QMediaPlayer and QVideoWidget to construct a simplest player. I
also try to comment code related on playbin and create the gstreamer
pipeline manually. When I connect to TIDmaiVideoSink, it plays very well.
But it plays very slow when I change video ouput from TIDmaiVideoSink to
QVideoWidget.

On Fri, May 25, 2012 at 12:38 AM, Fredrik HENRICSSON <
fredrik.henricsson at stericsson.com> wrote:

> ****
>
> Hi William,****
>
> This looks a bit familiar.. Are you using QVideoWidget or the QML Video
> element in your UI? I had performance issues with QML video playback that I
> at the time concluded did not end up using GStreamer, while QVideoWidget
> does and GStreamer draws to a native window. This was over a year ago
> though so things may have changed since then.****
>
> BR
> Fredrik****
>
> ** **
>
> *From:* interest-bounces+fredrik.henricsson=stericsson.com at qt-project.org[mailto:
> interest-bounces+fredrik.henricsson=stericsson.com at qt-project.org] *On
> Behalf Of *William Zeng
> *Sent:* den 24 maj 2012 17:51
> *To:* interest at qt-project.org
> *Subject:* [Interest] Play video is very slow using Gstreamer****
>
> ** **
>
> Hi All, ****
>
>  ****
>
> I'm trying to make a media player using Qt and TI DSP. It has sound but no
> video when I use QtMultimedia of Qt5 alpha + Gstreamer. ****
>
>  ****
>
> Then I try several methods, such as:****
>
> 1. QtMultimedia of Qt5 alpha + Qt mobility 1.2.0 + Gstreamer****
>
> 2. QtMultimedia of Qt 4.8.1 + Qt mobility 1.2.0 + Gstreamer****
>
> 3. Qt 4.8.2 + Phonon + Gstreamer****
>
> The same result is video plays very slow and the CPU usage is up to 54%.**
> **
>
>  ****
>
> Below is my environment:****
>
> Beagleboard-xM****
>
> TI DVSDK 4.01.00.09 for DM3730****
>
>  ****
>
> It play very well when I used the gstreamer directly:****
>
> gst-launch filesrc
> location="/usr/share/ti/data/videos/davincieffect_h264_aac.mp4" ! qtdemux
> name=demux demux.audio_00 ! queue max-size-buffers=8000 max-size-time=0
> max-size-bytes=0 ! TIAuddec1 ! alsasink demux.video_00 ! queue ! TIViddec2
> padAllocOutbufs=TRUE ! TIDmaiVideoSink videoStd=720P_60 videoOutput=AUTO
> numBufs=5****
>
>  ****
>
> Another command is well by using playbin2. I know Qt also use playbin2 to
> process media file. But I don't know why they can't get the same result.**
> **
>
> gst-launch playbin2 uri=
> file:///usr/share/ti/data/videos/davincieffect_h264_aac.mp4flags="native-video"
> ****
>
>  ****
>
> Does anybody have such experience and give some advices to me? ****
>
>  ****
>
> Thank you very much.****
>
>  ****
>
> Best regards, ****
>
> William****
>



-- 
Best regards,

William Zeng
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/interest/attachments/20120525/5d643005/attachment.html>


More information about the Interest mailing list