AnsweredAssumed Answered

browser video acceleration

Question asked by Pascal Greliche on Nov 10, 2013
Latest reply on Nov 12, 2013 by Leonardo Sandoval Gonzalez

Hello,

 

I don't understand why seeing a video from a browser (firefox with gstreamer enabled) laggs whereas it works better (some glitches) with a video player (totem)

 

I use a wandboard duo with ubuntu 12.04

 

Here are the outputs

 

With Firefox

pouet78@wandboard-01:~$ firefox file:///home/pouet78/test_video.html

Aiur: 3.0.7

Core: MPEG4PARSER_06.06.01  build on Mar  1 2013 14:21:54

  mime: video/quicktime; audio/x-m4a; application/x-3gp

  file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.1

Content Info:

  Seekable  : Yes

  Size(byte): 99466300

 

 

Movie Info:

  Seekable  : Yes

  Live      : No

  Duration  : 0:01:52.831664000

  ReadMode  : File

  Track    : 2

 

 

Track 00 [video_000000] Enabled

  Duration: 0:01:52.820000000

  Language: und

  Mime:

      video/x-h264, parsed=(boolean)true, width=(int)1280, height=(int)720, framerate=

      (fraction)24000/1001, codec_data=(buffer)0000000167640033ac34e2805005ba10001974f

      004c4b408f18318a80000000168eebce5531cc305d2628d13080214868783a1c0d04e12142c0ac0d

      a02fe10042ad35e9e850b748c778a1410088b172105449ca3050e204448b20a4d8a0818270908098

      48541dc4290a43164215a201900cae8340f81e86f03300b6017002ac05981d61a07802a8400a9020

      87404700bc010506e036404b811805902e07203e0087ff85b

[INFO] Product Info: i.MX6Q/D/S

vpudec versions

  plugin: 3.0.7

  wrapper: 1.0.35(VPUWRAPPER_ARM_LINUX Build on Jul  2 2013 08:38:58)

  vpulib: 5.4.12

  firmware: 2.1.9.36350

Track 01 [audio_000000] Enabled

  Duration: 0:01:52.831664000

  Language: und

  Mime:

      audio/x-ac3, channels=(int)6, rate=(int)48000, bitrate=(int)0, framed=(boolean)t

      rue

[INFO] bitstreamMode 1, chromaInterleave 0, mapType 0, tiled2LinearEnable 0

[WARN] VPU iram is less than needed, some parts don't use iram

[--->FINALIZE aiurdemux

 

With totem

pouet78@wandboard-01:~$ totem --fullscreen --play /home/pouet78/Videos/h264_720p_hp_5.1_6mbps_ac3_planet.mp4

MFW_GST_V4LSINK_PLUGIN 3.0.7 build on Jul  2 2013 09:22:06.

 

 

(totem:5619): GLib-GObject-CRITICAL **: Read/writable property 'object' on class 'ZeitgeistDpPlugin' has type 'TotemObject' which is not exactly equal to the type 'GObject' of the property on the interface 'PeasActivatable'

 

 

Aiur: 3.0.7

Core: MPEG4PARSER_06.06.01  build on Mar  1 2013 14:21:54

  mime: video/quicktime; audio/x-m4a; application/x-3gp

  file: /usr/lib/imx-mm/parser/lib_mp4_parser_arm11_elinux.so.3.1

Content Info:

  URI:

      file:///home/pouet78/Videos/h264_720p_hp_5.1_6mbps_ac3_planet.mp4

  Idx File:

      /home/pouet78/.aiur/.home.pouet78.Videos.h264_720p_hp_5.1_6mbps_ac3_planet.mp4.a

      idx

  Seekable  : Yes

  Size(byte): 99466300

 

 

Movie Info:

  Seekable  : Yes

  Live      : No

  Duration  : 0:01:52.831664000

  ReadMode  : File

  Track    : 2

 

 

Track 00 [video_000000] Enabled

  Duration: 0:01:52.820000000

  Language: und

  Mime:

      video/x-h264, parsed=(boolean)true, width=(int)1280, height=(int)720, framerate=

      (fraction)24000/1001, codec_data=(buffer)0000000167640033ac34e2805005ba10001974f

      004c4b408f18318a80000000168eebce5531cc305d2628d13080214868783a1c0d04e12142c0ac0d

      a02fe10042ad35e9e850b748c778a1410088b172105449ca3050e204448b20a4d8a0818270908098

      48541dc4290a43164215a201900cae8340f81e86f03300b6017002ac05981d61a07802a8400a9020

      87404700bc010506e036404b811805902e07203e0087ff85b

 

 

** (totem:5619): WARNING **: Problem inhibiting the screensaver: GDBus.Error:org.freedesktop.DBus.Error.NameHasNoOwner: Name "org.gnome.SessionManager" does not exist

[INFO] Product Info: i.MX6Q/D/S

vpudec versions

  plugin: 3.0.7

  wrapper: 1.0.35(VPUWRAPPER_ARM_LINUX Build on Jul  2 2013 08:38:58)

  vpulib: 5.4.12

  firmware: 2.1.9.36350

Track 01 [audio_000000] Enabled

  Duration: 0:01:52.831664000

  Language: und

  Mime:

      audio/x-ac3, channels=(int)6, rate=(int)48000, bitrate=(int)0, framed=(boolean)t

      rue

[INFO] bitstreamMode 1, chromaInterleave 1, mapType 0, tiled2LinearEnable 0

[WARN] VPU iram is less than needed, some parts don't use iram

>>V4L_SINK: Actually buffer status:

  hardware buffer : 17

  software buffer : 0

full screen size:1280x720

[V4L Update Display]: left=0, top=0, width=1280, height=720

Running time 0:01:52.834747000 render fps 23.955

 

The html code is simple:

<!DOCTYPE html>

<html>

  <body>

    <video autoplay>

      <source src="Videos/h264_720p_hp_5.1_6mbps_ac3_planet.mp4" type="video/mp4">

      <source src="Videos/h264_720p_hp_5.1_6mbps_ac3_planet.webmhd.webm" type="video/webm">

      Your browser does not support the video tag.

    </video>

  </body>

</html>

 

Thanks for your help

 

PS : if you want to try, the video is a generic sample you should be able to get in Internet

Outcomes