Jump to content

beautynow

Members
  • Posts

    1
  • Joined

  • Last visited

Posts posted by beautynow

  1.  

    Spoiler

     

    14 hours ago, JMCC said:

     

    I followed your steps and didn't work. I did my tests on an Odroid C2, not sure if that would make a difference. It fails when opening vaapi, and keeps doing SW decoding:

      Reveal hidden contents
    
    
    
    vlc bbb_sunflower_2160p_30fps_normal.mp4 
    VLC media player 3.0.4 Vetinari (revision 3.0.4-0-gf615db6332)
    [0000aaaaee170580] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    QXcbConnection: XCB error: 8 (BadMatch), sequence: 536, resource id: 52428809, major code: 2 (ChangeWindowAttributes), minor code: 0
    [0000ffff58009fb0] main filter error: Failed to create video converter
    libva info: VA-API version 1.1.0
    libva info: va_getDriverName() returns -1
    libva error: va_getDriverName() failed with unknown libva error,driver_name=(null)
    [0000ffff540be0d0] vaapi_drm generic error: vaInitialize: unknown libva error
    [h264 @ 0xffff6cdcf3f0] co located POCs unavailable
    [h264 @ 0xffff6cdb3ed0] mmco: unref short failure
    QObject::~QObject: Timers cannot be stopped from another thread
    

     

     

     

    I also tried with ffmpeg, and the device is recognized but it does not decode any frame. This is the output:

      Reveal hidden contents
    
    
    
    ffmpeg -c:v h264_v4l2m2m -i bbb_sunflower_2160p_30fps_normal.mp4 -f rawvideo output_nv12
    ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
      built with gcc 7 (Ubuntu/Linaro 7.3.0-16ubuntu3)
      configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
      libavutil      55. 78.100 / 55. 78.100
      libavcodec     57.107.100 / 57.107.100
      libavformat    57. 83.100 / 57. 83.100
      libavdevice    57. 10.100 / 57. 10.100
      libavfilter     6.107.100 /  6.107.100
      libavresample   3.  7.  0 /  3.  7.  0
      libswscale      4.  8.100 /  4.  8.100
      libswresample   2.  9.100 /  2.  9.100
      libpostproc    54.  7.100 / 54.  7.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'bbb_sunflower_2160p_30fps_normal.mp4':
      Metadata:
        major_brand     : isom
        minor_version   : 1
        compatible_brands: isomavc1
        creation_time   : 2013-12-18T14:43:04.000000Z
        title           : Big Buck Bunny, Sunflower version
        artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
        comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
        genre           : Animation
        composer        : Sacha Goedegebure
      Duration: 00:10:34.53, start: 0.000000, bitrate: 7980 kb/s
        Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], 7498 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
        Metadata:
          creation_time   : 2013-12-18T14:43:04.000000Z
          handler_name    : GPAC ISO Video Handler
        Stream #0:1(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, s16p, 160 kb/s (default)
        Metadata:
          creation_time   : 2013-12-18T14:43:06.000000Z
          handler_name    : GPAC ISO Audio Handler
        Stream #0:2(und): Audio: ac3 (ac-3 / 0x332D6361), 48000 Hz, 5.1(side), fltp, 320 kb/s (default)
        Metadata:
          creation_time   : 2013-12-18T14:43:06.000000Z
          handler_name    : GPAC ISO Audio Handler
        Side data:
          audio service type: main
    [h264_v4l2m2m @ 0xaaaaff943250] driver 'meson-vdec' on card 'Amlogic Video Decoder'
    [h264_v4l2m2m @ 0xaaaaff943250] Using device /dev/video0
    [h264_v4l2m2m @ 0xaaaaff943250] driver 'meson-vdec' on card 'Amlogic Video Decoder'
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
    Press [q] to stop, [?] for help
    [h264_v4l2m2m @ 0xaaaaff943250] output  POLLERR
    frame=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbframe=    0 fps=0.0 q=0.0 size=       0kB time=-577014:32:22.77 bitrate=  -0.0kbFinishing stream 0:0 without any data written to it.
    Output #0, rawvideo, to 'output_nv12':
      Metadata:
        major_brand     : isom
        minor_version   : 1
        compatible_brands: isomavc1
        composer        : Sacha Goedegebure
        title           : Big Buck Bunny, Sunflower version
        artist          : Blender Foundation 2008, Janus Bager Kristensen 2013
        comment         : Creative Commons Attribution 3.0 - http://bbb3d.renderfarming.net
        genre           : Animation
        encoder         : Lavf57.83.100
        Stream #0:0(und): Video: rawvideo (I420 / 0x30323449), yuv420p, 3840x2160 [SAR 1:1 DAR 16:9], q=2-31, 2985984 kb/s, 30 fps, 30 tbn, 30 tbc (default)
        Metadata:
          creation_time   : 2013-12-18T14:43:04.000000Z
          handler_name    : GPAC ISO Video Handler
          encoder         : Lavc57.107.100 rawvideo
    frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
    Exiting normally, received signal 2.
    juan@odroidc2:/media/juan/ESD-USB/Video$ ffmpeg -c:v h264_v4l2m2m -i tears_of_steel_1080p.mov -f rawvideo output_nv12
    ffmpeg version 3.4.4-0ubuntu0.18.04.1 Copyright (c) 2000-2018 the FFmpeg developers
      built with gcc 7 (Ubuntu/Linaro 7.3.0-16ubuntu3)
      configuration: --prefix=/usr --extra-version=0ubuntu0.18.04.1 --toolchain=hardened --libdir=/usr/lib/aarch64-linux-gnu --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
      libavutil      55. 78.100 / 55. 78.100
      libavcodec     57.107.100 / 57.107.100
      libavformat    57. 83.100 / 57. 83.100
      libavdevice    57. 10.100 / 57. 10.100
      libavfilter     6.107.100 /  6.107.100
      libavresample   3.  7.  0 /  3.  7.  0
      libswscale      4.  8.100 /  4.  8.100
      libswresample   2.  9.100 /  2.  9.100
      libpostproc    54.  7.100 / 54.  7.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'tears_of_steel_1080p.mov':
      Metadata:
        major_brand     : qt  
        minor_version   : 512
        compatible_brands: qt  
        encoder         : Lavf53.32.100
      Duration: 00:12:14.17, start: 0.000000, bitrate: 6361 kb/s
        Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], 6162 kb/s, 24 fps, 24 tbr, 24 tbn, 48 tbc (default)
        Metadata:
          handler_name    : DataHandler
          encoder         : libx264
        Stream #0:1(eng): Audio: mp3 (.mp3 / 0x33706D2E), 44100 Hz, stereo, s16p, 191 kb/s (default)
        Metadata:
          handler_name    : DataHandler
    File 'output_nv12' already exists. Overwrite ? [y/N] y
    [h264_v4l2m2m @ 0xaaaaf27dba00] driver 'meson-vdec' on card 'Amlogic Video Decoder'
    [h264_v4l2m2m @ 0xaaaaf27dba00] Using device /dev/video0
    [h264_v4l2m2m @ 0xaaaaf27dba00] driver 'meson-vdec' on card 'Amlogic Video Decoder'
    Stream mapping:
      Stream #0:0 -> #0:0 (h264 (h264_v4l2m2m) -> rawvideo (native))
    Press [q] to stop, [?] for help
    [h264_v4l2m2m @ 0xaaaaf27dba00] output  POLLERR
    Finishing stream 0:0 without any data written to it.14:32:22.77 bitrate=  -0.0kbits/s speed=N/A    
    Output #0, rawvideo, to 'output_nv12':
      Metadata:
        major_brand     : qt  
        minor_version   : 512
        compatible_brands: qt  
        encoder         : Lavf57.83.100
        Stream #0:0(eng): Video: rawvideo (I420 / 0x30323449), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], q=2-31, 442368 kb/s, 24 fps, 24 tbn, 24 tbc (default)
        Metadata:
          handler_name    : DataHandler
          encoder         : Lavc57.107.100 rawvideo
    frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=00:00:00.00 bitrate=N/A speed=   0x    
    video:0kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Output file is empty, nothing was encoded (check -ss / -t / -frames parameters if used)
    Exiting normally, received signal 2.
    

     

     

     

    However, I was successful in getting gles to work on X11, using the module from here: https://github.com/superna9999/meson_gx_mali_450. See attached image.

    It was just good enough for running glmark2-es2, when I tried to run Chromium with egl, it failed with EGL_BAD_ALLOC.

    [EDIT]: No, it was just a bad flag! Chromium WebGL is also working! See attached pic

     

    @Neil Armstrong @TonyMac32 Is there any chance that we patch this mali module into the kernel, so we can test it without the need to compile it separately?

     

     

     

     

    Hello @JMCC

     

    Could you  kindly tell me how to get gles to work on X11? I want to try mainline kernel with gles on my C2.

     

    Thanks so much.

×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines