Sunday, December 11, 2016

Binaries for POT 5.4.0 on Qt 5.7.0 and Experimental Accelerated QtWebKit

So far, no real complains about POT 5.4.0-beta1 so I suppose it is sufficiently safe to consider it POT 5.4.0. Refer to this article for more info.

6 comments:

  1. Nice job!
    Did you update FFMPEG in this version?

    I have issue that FFMPEG does not send TEARDOWN to RTSP stream on stop.

    ReplyDelete
    Replies
    1. This is identical to 5.4.0-beta1. ffmpeg version is 3.1.

      Delete
  2. Hi!
    I copied qtdeps and Qt-rasp2-5.7.0 to RPI, added these folders to ldconf and ran Qt-rasp2-5.7.0/bin/qmlscene with simple qml:

    import QtMultimedia 5.7
    import QtWebKit 3.0
    import QtQuick 2.2

    Item {
    WebView {
    anchors.fill: parent
    url: "https://www.youtube.com/watch?v=YE7VzlLtp-4"
    }
    }


    Browser is loading page, but when video starts to play, instead of the video i get black rect and in logs there are lot of spam appearing for each frame:
    10:53:46.031 WARN: Cannot get client.
    10:53:46.685 WARN: One frame couldn't be shown.
    10:53:46.724 WARN: Cannot get client.
    10:53:46.724 WARN: Cannot get client.

    What can be the issue? Rpi is on Jessie Lite.

    ReplyDelete
    Replies
    1. Did you try this? https://github.com/carlonluca/pi/blob/master/piomxtextures_samples/webkit_simple.qml

      Delete
    2. Sorry, how should i run qmlscene to pass additional args to qml?
      When i rewrite your code to
      import QtQuick 2.0
      import QtWebKit 3.0

      WebView {
      id: main
      url: "https://www.youtube.com/watch?v=YE7VzlLtp-4"
      }

      ---Removed onCompleted handler - Ive got the same issue. Audio is fine but video doesnt show up.
      In logs i have multiple warnings like this:
      13:50:40.809 WARN: Cannot get client.
      13:50:40.809 WARN: Cannot get client.
      13:50:40.810 WARN: Cannot get client.
      13:50:40.810 WARN: Cannot get client.
      13:50:40.810 WARN: Cannot get client.
      13:50:40.810 WARN: Cannot get client.

      Delete
    3. Oh I see what you're trying to do. No, you can't do that sorry. You are using WebKit2. I only implemented hw acceleration for WebKit1. If you want software decoded video you'll have to build QtWebKit from sources yourself.

      Delete