Run video on html5 using QT Webkit on IMX 53



  • I am trying to run video on html5 using QT Webkit over IMX 53 using ltib as root file system..
    video tag is enabled.... and video layout is visble with controls on screen when html5 page with video tag is opened....
    When video is played .... only audio is heard but video is not displayed..
    Same case with qmediaplayer demo.. when i try to run a MP4 video only audio is heard and not video..
    So.. If anyone knows the solution or faced this before ... suggest me..



  • I'm not very great at this - but; have you tried formats other than .MP4?



  • i was able to play mp4 with gstreamer on the same device...
    yeah.. i tried other formats too .ogg and .webm.. same result..



  • I guess the problem is either with phonon or phonon backend bcoz probelem persists with both qmediaplayer demo and browser demo



  • I am providing logs for reference....
    when i play the same video using gst-launch video plays fine .... these are the logs
    gst-launch-0.10 playbin2 uri=file:///home/test/htmlvideo/Chrome_ImF.mp4
    Setting pipeline to PAUSED ...
    Aiur Core Info:
    mime: video/quicktime; audio/x-m4a; application/x-3gp
    file: lib_mp4_parser_arm11_elinux.3.0.so
    ver : MPEG4PARSER_06.03.05 build on Jul 12 2010 15:30:52
    Pipeline is PREROLLING ...
    BLN_MAD-MMCODECS_AACD_ARMUnhandled fault: external abort on non-linefetch (0x101

    1. at 0x2aacc054
      _03.05.00 build on Nov 25 2009 15:02:24.
      MFW_GST_AAC_PLUGIN 1.9.0 build on Sep 5 2011 19:41:37.
      [INFO] Product Info: i.MX53
      VPU Version: firmware 13.4.0; libvpu: 5.1.0
      MFW_GST_VPU_DECODER_PLUGIN 1.9.0 build on Sep 5 2011 19:41:47.
      Movie Info:
      Seekable: Yes
      Live: No
      Duration: 0:00:34.200868000
      ReadMode: File

    Total Track: 2
    Track 00[Audio]:
    Duration: 0:00:34.200868000
    Language: eng
    Mime:
    audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100,
    framed=(boolea
    n)true, codec_data=(buffer)1210
    Track 01[Video]:
    Duration: 0:00:34.200868000
    Language: eng
    Mime:
    video/x-h264, width=(int)640, height=(int)320, framerate=(fraction
    )2997/100, cod
    ec_data=(buffer)00000001274d401ea91814053600d418041adb0ad7bdf01000
    00000128de09c8
    MFW_GST_V4LSINK_PLUGIN 1.9.0 build on Sep 5 2011 19:42:00.

    V4L_SINK: Actually buffer status:
    hardware buffer : 18
    software buffer : 0
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    [V4L Update Display]: left=0, top=0, width=640, height=320
    New clock: GstAudioSinkClock
    mxc_ipu mxc_ipu: Channel already disabled 10
    mxc_ipu mxc_ipu: Channel already uninitialized 10
    mxc_ipu mxc_ipu: Channel already disabled 10
    mxc_ipu mxc_ipu: Channel already uninitialized 10



  • when i try to play the video using html5 from qtwebkit..
    these are the logs

    ./browser /home/test/htmlvideo/vid.html -qws
    Initializing QFontEngineQPF failed for /usr/local/Trolltech/Qt-target-4.8.3/lib/
    fonts/DejaVuSans.ttf
    Initializing QFontEngineQPF failed for /usr/local/Trolltech/Qt-target-4.8.3/lib/
    fonts/DejaVuSans-Bold.ttf
    Initializing QFontEngineQPF failed for /usr/local/Trolltech/Qt-target-4.8.3/lib/
    fonts/DejaVuSans.ttf
    Initializing QFontEngineQPF failed for /usr/local/Trolltech/Qt-target-4.8.3/lib/
    fonts/DejaVuSans.ttf
    Initializing QFontEngineQPF failed for /usr/local/Trolltech/Qt-target-4.8.3/lib/
    fonts/DejaVuSans-Bold.ttf
    Aiur Core Info:
    mime: video/quicktime; audio/x-m4a; application/x-3gp
    file: lib_mp4_parser_arm11_elinux.3.0.so
    ver : MPEG4PARSER_06.03.05 build on Jul 12 2010 15:30:52
    BLN_MAD-MMCODECS_AACD_ARMUnhandled fault: external abort on non-linefetch (0x101

    1. at 0x31bfe054
      _03.05.00 build on Nov 25 2009 15:02:24.
      MFW_GST_AAC_PLUGIN 1.9.0 build on Sep 5 2011 19:41:37.
      [INFO] Product Info: i.MX53
      VPU Version: firmware 13.4.0; libvpu: 5.1.0
      MFW_GST_VPU_DECODER_PLUGIN 1.9.0 build on Sep 5 2011 19:41:47.
      Movie Info:
      Seekable: Yes
      Live: No
      Duration: 0:00:34.200868000
      ReadMode: File

    Total Track: 2
    Track 00[Audio]:
    Duration: 0:00:34.200868000
    Language: eng
    Mime:
    audio/mpeg, mpegversion=(int)4, channels=(int)2, rate=(int)44100,
    framed=(boolea
    n)true, codec_data=(buffer)1210
    Track 01[Video]:
    Duration: 0:00:34.200868000
    Language: eng
    Mime:
    video/x-h264, width=(int)640, height=(int)320, framerate=(fraction
    )2997/100, cod
    ec_data=(buffer)00000001274d401ea91814053600d418041adb0ad7bdf01000
    00000128de09c8



  • clearly we can see that in case of playing video using QtWebkit these logs are missing

    MFW_GST_V4LSINK_PLUGIN 1.9.0 build on Sep 5 2011 19:42:00.

    V4L_SINK: Actually buffer status: hardware buffer : 18 software buffer : 0
    Pipeline is PREROLLED …
    Setting pipeline to PLAYING …

    some how V4L_SINK plug in is not being initialized



  • I've been trying to dig through phonon / gstreamer stack with qt 4.8.3 and found something interesting recently which affected video playback differently for browser vs qmediaplayer demos.

    When modifying the phonon gstreamer plugin's VideoWidget class to test YUV support instead of RGB, the video stream didn't playing through that object when browser with the browser app, but did with the qmediaplayer app. The audio stream played through the plugin's audio sink in both instances.

    You can see this when PHONON_GST_DEBUG is set = 3, and also if PHONON_GST_FPS=1. There's no VideoWidget tracers in the browser case.

    Searching through WebKit source shows there are additional gstreamer video components and multiple MediaPlayer class variations.

    Is there any reference on how to build QtWebKit with compatible options for QtMultimedia options?



  • Dear the_bear_jew,
    which video tag should be enabled to support QtWebKit playing HTML5 video without installing flash player?
    Qt Version:4.8.1
    QtWebKit2.2

    I open the ENABLE_VIDEO and WTF_USE_QT_MULTIMEDIA macro in WebCore.pro,
    DEFINES += ENABLE_VIDEO=1
    DEFINES +=WTF_USE_QT_MULTIMEDIA=1
    but the QtWebKit compile fail, the error is : "platform/graphics/qt/MediaPlayerPrivateQt.h:25: fatal error: QMediaPlayer: No such file or directory"

    Can you give me some suggestion?
    Thanks



  • platform: linux


Log in to reply
 

Looks like your connection to Qt Forum was lost, please wait while we try to reconnect.