Announcement

Collapse
No announcement yet.

AMD Lands OpenMAX State Tracker In Mesa Gallium3D

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Code:
    dmesg |grep VCE
    [    0.777918] [drm] Found VCE firmware/feedback version 40.2.2 / 15!
    [    0.976427] [drm] VCE initialized successfully.
    Code:
    omxregister-bellagio -v
    
     Scanning directory /usr/lib64/bellagio/
    
     Scanning library /usr/lib64/bellagio/libomx_r600.so
    Component OMX.r600.video_decoder registered with 0 quality levels
      Specific role OMX.r600.video_decoder.mpeg2 registered
      Specific role OMX.r600.video_decoder.avc registered
    
     Scanning library /usr/lib64/bellagio/libomx_radeonsi.so
    Component OMX.radeonsi.video_decoder registered with 0 quality levels
      Specific role OMX.radeonsi.video_decoder.mpeg2 registered
      Specific role OMX.radeonsi.video_decoder.avc registered
    
     2 OpenMAX IL ST static components in 2 libraries succesfully scanned

    Hardware h264 encoder not yet implemented?

    Comment


    • #32
      Originally posted by Ericg View Post
      All for supporting OpenMAX, just curious if we could settle on one universal API instead of 2 separate ones
      OpenMAX is one universal API, feel free to settle on it

      Comment


      • #33
        Originally posted by Pontostroy View Post
        Code:
          Specific role OMX.r600.video_decoder.avc registered
          Specific role OMX.radeonsi.video_decoder.avc registered
        Hardware h264 encoder not yet implemented?
        H.264 is also called avc.

        Comment


        • #34
          Originally posted by Pontostroy View Post
          Code:
          dmesg |grep VCE
          [    0.777918] [drm] Found VCE firmware/feedback version 40.2.2 / 15!
          [    0.976427] [drm] VCE initialized successfully.
          Code:
          omxregister-bellagio -v
          
           Scanning directory /usr/lib64/bellagio/
          
           Scanning library /usr/lib64/bellagio/libomx_r600.so
          Component OMX.r600.video_decoder registered with 0 quality levels
            Specific role OMX.r600.video_decoder.mpeg2 registered
            Specific role OMX.r600.video_decoder.avc registered
          
           Scanning library /usr/lib64/bellagio/libomx_radeonsi.so
          Component OMX.radeonsi.video_decoder registered with 0 quality levels
            Specific role OMX.radeonsi.video_decoder.mpeg2 registered
            Specific role OMX.radeonsi.video_decoder.avc registered
          
           2 OpenMAX IL ST static components in 2 libraries succesfully scanned

          Hardware h264 encoder not yet implemented?
          What mesa branch are you using? I only pushed the decoder upstream, the encoder can be found here: http://cgit.freedesktop.org/~deathsi...?h=vce-release

          Cheers,
          Christian.

          Comment


          • #35
            Will this be enabled in Oibaf's PPA?

            Comment


            • #36
              Originally posted by Deathsimple View Post
              What mesa branch are you using? I only pushed the decoder upstream, the encoder can be found here: http://cgit.freedesktop.org/~deathsi...?h=vce-release

              Cheers,
              Christian.
              Code:
              omxregister-bellagio -v
              
               Scanning directory /usr/lib64/bellagio/
              
               Scanning library /usr/lib64/bellagio/libomx_r600.so
              Component OMX.r600.video_decoder registered with 0 quality levels
                Specific role OMX.r600.video_decoder.mpeg2 registered
                Specific role OMX.r600.video_decoder.avc registered
              Component OMX.r600.video_encoder registered with 0 quality levels
                Specific role OMX.r600.video_encoder.avc registered
              
               Scanning library /usr/lib64/bellagio/libomx_radeonsi.so
              Component OMX.radeonsi.video_decoder registered with 0 quality levels
                Specific role OMX.radeonsi.video_decoder.mpeg2 registered
                Specific role OMX.radeonsi.video_decoder.avc registered
              Component OMX.radeonsi.video_encoder registered with 0 quality levels
                Specific role OMX.radeonsi.video_encoder.avc registered
              
               4 OpenMAX IL ST static components in 2 libraries succesfully scanned
              Much better, but how i can use this encoder.

              I need to change /etc/xdg/gstomx.conf?

              Code:
              [omxh264dec]
              type-name=GstOMXH264Dec
              core-name=/usr/lib64/libomxil-bellagio.so.0
              component-name=OMX.radeonsi.video_decoder.avc
              rank=256
              in-port-index=0
              out-port-index=1
              hacks=event-port-settings-changed-ndata-parameter-swap;event-port-settings-changed-port-0-to-1

              Comment


              • #37
                Originally posted by Pontostroy View Post
                Much better, but how i can use this encoder.

                I need to change /etc/xdg/gstomx.conf?
                Yes, here is my gstomx.conf:

                Code:
                [omxh264dec]
                type-name=GstOMXH264Dec
                core-name=/usr/lib/libomxil-bellagio.so.0
                component-name=OMX.radeonsi.video_decoder.avc
                rank=256
                in-port-index=0
                out-port-index=1
                
                [omxmpeg2dec]
                type-name=GstOMXMPEG2VideoDec
                core-name=/usr/lib/libomxil-bellagio.so.0
                component-name=OMX.radeonsi.video_decoder.mpeg2
                rank=256
                in-port-index=0
                out-port-index=1
                
                [omxh264enc]
                type-name=GstOMXH264Enc
                core-name=/usr/lib/libomxil-bellagio.so.0
                component-name=OMX.radeonsi.video_encoder.avc
                rank=256
                in-port-index=0
                out-port-index=1
                And an example gst pipeline looks like this:
                Code:
                gst-launch-1.0 -f \
                        filesrc location=in.mp4 ! qtdemux ! \
                        h264parse ! omxh264dec ! \
                        omxh264enc ! \
                        avimux ! filesink location=out.avi
                I'm going to write up some documentation how to use it in the next days or so.

                Comment


                • #38
                  Originally posted by Deathsimple View Post
                  Yes, here is my gstomx.conf:

                  Code:
                  [omxh264dec]
                  type-name=GstOMXH264Dec
                  core-name=/usr/lib/libomxil-bellagio.so.0
                  component-name=OMX.radeonsi.video_decoder.avc
                  rank=256
                  in-port-index=0
                  out-port-index=1
                  
                  [omxmpeg2dec]
                  type-name=GstOMXMPEG2VideoDec
                  core-name=/usr/lib/libomxil-bellagio.so.0
                  component-name=OMX.radeonsi.video_decoder.mpeg2
                  rank=256
                  in-port-index=0
                  out-port-index=1
                  
                  [omxh264enc]
                  type-name=GstOMXH264Enc
                  core-name=/usr/lib/libomxil-bellagio.so.0
                  component-name=OMX.radeonsi.video_encoder.avc
                  rank=256
                  in-port-index=0
                  out-port-index=1
                  And an example gst pipeline looks like this:
                  Code:
                  gst-launch-1.0 -f \
                          filesrc location=in.mp4 ! qtdemux ! \
                          h264parse ! omxh264dec ! \
                          omxh264enc ! \
                          avimux ! filesink location=out.avi
                  I'm going to write up some documentation how to use it in the next days or so.

                  Code:
                  omxregister-bellagio -v
                  
                   Scanning directory /usr/lib64/bellagio/
                  
                   Scanning library /usr/lib64/bellagio/libomx_r600.so
                  Component OMX.r600.video_decoder registered with 0 quality levels
                    Specific role OMX.r600.video_decoder.mpeg2 registered
                    Specific role OMX.r600.video_decoder.avc registered
                  Component OMX.r600.video_encoder registered with 0 quality levels
                    Specific role OMX.r600.video_encoder.avc registered
                  
                   Scanning library /usr/lib64/bellagio/libomx_radeonsi.so
                  Component OMX.radeonsi.video_decoder registered with 0 quality levels
                    Specific role OMX.radeonsi.video_decoder.mpeg2 registered
                    Specific role OMX.radeonsi.video_decoder.avc registered
                  Component OMX.radeonsi.video_encoder registered with 0 quality levels
                    Specific role OMX.radeonsi.video_encoder.avc registered
                  
                   4 OpenMAX IL ST static components in 2 libraries succesfully scanned
                  
                  
                  GST_DEBUG=*:2 gst-inspect-1.0 /usr/lib64/gstreamer-1.0/libgstomx.so 
                  Plugin Details:
                    Name                     omx
                    Description              GStreamer OpenMAX Plug-ins
                    Filename                 /usr/lib64/gstreamer-1.0/libgstomx.so
                    Version                  1.0.0.1
                    License                  LGPL
                    Source module            gst-omx
                    Source release date      2014-02-06 20:02 (UTC)
                    Binary package           GStreamer OpenMAX Plug-ins git
                    Origin URL               Unknown package origin
                  
                    omxh264dec: OpenMAX H.264 Video Decoder
                    omxmpeg2dec: OpenMAX MPEG2 Video Decoder
                    omxh264enc: OpenMAX H.264 Video Encoder
                  
                    3 features:
                    +-- 3 elements
                  Code:
                  GST_DEBUG=*:1 gst-inspect-1.0 |grep omx
                  Code:
                  GST_DEBUG=*:1 gst-launch-1.0 -f         filesrc location=/home/OLD/tmp/films/Unity-720p-AAC\(tAy.son\).mp4 ! qtdemux !  h264parse ! omxh264dec !         omxh264enc !         avimux ! filesink location=out.avi
                  0:00:00.017181924  3737      0x1dbd870 ERROR           GST_PIPELINE ./grammar.y:672:priv_gst_parse_yyparse: no element "omxh264dec"
                  0:00:00.017227018  3737      0x1dbd870 ERROR           GST_PIPELINE ./grammar.y:672:priv_gst_parse_yyparse: no element "omxh264enc"
                  WARNING: erroneous pipeline: no element "omxh264dec"


                  Code:
                  0:00:00.286405941  3732       0xe5ba00 DEBUG    GST_ELEMENT_FACTORY gstelementfactory.c:391:gst_element_factory_create: created element "h264parse"
                  0:00:00.286413950  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:141:priv_gst_parse_yylex: flex: SPACE: [ ]
                  0:00:00.286420797  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:115:priv_gst_parse_yylex: flex: LINK: !
                  0:00:00.286427858  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:141:priv_gst_parse_yylex: flex: SPACE: [ ]
                  0:00:00.286434376  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:107:priv_gst_parse_yylex: flex: IDENTIFIER: omxh264dec
                  0:00:00.286441284  3732       0xe5ba00 LOG      GST_ELEMENT_FACTORY gstelementfactory.c:439:gst_element_factory_make: gstelementfactory: make "omxh264dec" "(NULL)"
                  0:00:00.286449233  3732       0xe5ba00 LOG      GST_ELEMENT_FACTORY gstelementfactory.c:144:gst_element_factory_find: no such element factory "omxh264dec"
                  0:00:00.286455757  3732       0xe5ba00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "omxh264dec"!
                  0:00:00.286463352  3732       0xe5ba00 ERROR           GST_PIPELINE ./grammar.y:672:priv_gst_parse_yyparse: no element "omxh264dec"
                  0:00:00.286473165  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:141:priv_gst_parse_yylex: flex: SPACE: [ ]
                  0:00:00.286480001  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:115:priv_gst_parse_yylex: flex: LINK: !
                  0:00:00.286486506  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:141:priv_gst_parse_yylex: flex: SPACE: [ ]
                  0:00:00.286493084  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:107:priv_gst_parse_yylex: flex: IDENTIFIER: omxh264enc
                  0:00:00.286499693  3732       0xe5ba00 LOG      GST_ELEMENT_FACTORY gstelementfactory.c:439:gst_element_factory_make: gstelementfactory: make "omxh264enc" "(NULL)"
                  0:00:00.286507223  3732       0xe5ba00 LOG      GST_ELEMENT_FACTORY gstelementfactory.c:144:gst_element_factory_find: no such element factory "omxh264enc"
                  0:00:00.286513904  3732       0xe5ba00 INFO     GST_ELEMENT_FACTORY gstelementfactory.c:456:gst_element_factory_make: no such element factory "omxh264enc"!
                  0:00:00.286520980  3732       0xe5ba00 ERROR           GST_PIPELINE ./grammar.y:672:priv_gst_parse_yyparse: no element "omxh264enc"
                  0:00:00.286527798  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:141:priv_gst_parse_yylex: flex: SPACE: [ ]
                  0:00:00.286534364  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:115:priv_gst_parse_yylex: flex: LINK: !
                  0:00:00.286540881  3732       0xe5ba00 DEBUG           GST_PIPELINE parse.l:141:priv_gst_parse_yylex: flex: SPACE: [ ]

                  Comment


                  • #39
                    Originally posted by Pontostroy View Post

                    Code:
                    GST_DEBUG=*:1 gst-inspect-1.0 |grep omx
                    Code:
                    GST_DEBUG=*:1 gst-launch-1.0 -f         filesrc location=/home/OLD/tmp/films/Unity-720p-AAC\(tAy.son\).mp4 ! qtdemux !  h264parse ! omxh264dec !         omxh264enc !         avimux ! filesink location=out.avi
                    0:00:00.017181924  3737      0x1dbd870 ERROR           GST_PIPELINE ./grammar.y:672:priv_gst_parse_yyparse: no element "omxh264dec"
                    0:00:00.017227018  3737      0x1dbd870 ERROR           GST_PIPELINE ./grammar.y:672:priv_gst_parse_yyparse: no element "omxh264enc"
                    WARNING: erroneous pipeline: no element "omxh264dec"
                    libgstomx.so was blacklisted, rebuilding gstreamer registry solved the problem.

                    Comment


                    • #40
                      Some test

                      Code:
                      gst-launch-1.0 filesrc location=./Serenity\ -\ HD\ DVD\ Trailer.mp4  ! qtdemux  !   h264parse ! omxh264dec !  omxh264enc ! progressreport  ! fakesink
                      Setting pipeline to PAUSED ...
                      Pipeline is PREROLLING ...
                      OMX-In RM_getResource No resource to be handled
                      OMX-In RM_getResource No resource to be handled
                      Pipeline is PREROLLED ...
                      Setting pipeline to PLAYING ...
                      New clock: GstSystemClock
                      progressreport0 (00:00:05): 18 / 139 seconds (12.9 %)
                      progressreport0 (00:00:10): 41 / 139 seconds (29.5 %)
                      progressreport0 (00:00:15): 64 / 139 seconds (46.0 %)
                      progressreport0 (00:00:20): 87 / 139 seconds (62.6 %)
                      progressreport0 (00:00:25): 110 / 139 seconds (79.1 %)
                      progressreport0 (00:00:30): 133 / 139 seconds (95.7 %)
                      ^Chandling interrupt.
                      Interrupt: Stopping pipeline ...
                      Execution ended after 0:01:56.829096905
                      Setting pipeline to PAUSED ...
                      Setting pipeline to READY ...
                      ^C

                      Code:
                      gst-launch-1.0 filesrc location=./Serenity\ -\ HD\ DVD\ Trailer.mp4  ! qtdemux  !   h264parse ! avdec_h264  !  x264enc  !  progressreport  ! fakesink
                      Setting pipeline to PAUSED ...
                      Pipeline is PREROLLING ...
                      Redistribute latency...
                      Redistribute latency...
                      Pipeline is PREROLLED ...
                      Setting pipeline to PLAYING ...
                      New clock: GstSystemClock
                      progressreport0 (00:00:05): 15 / 139 seconds (10.8 %)
                      progressreport0 (00:00:10): 27 / 139 seconds (19.4 %)
                      progressreport0 (00:00:15): 37 / 139 seconds (26.6 %)
                      progressreport0 (00:00:20): 48 / 139 seconds (34.5 %)
                      progressreport0 (00:00:25): 58 / 139 seconds (41.7 %)
                      progressreport0 (00:00:30): 68 / 139 seconds (48.9 %)
                      progressreport0 (00:00:35): 78 / 139 seconds (56.1 %)
                      progressreport0 (00:00:40): 88 / 139 seconds (63.3 %)
                      progressreport0 (00:00:45): 99 / 139 seconds (71.2 %)
                      progressreport0 (00:00:50): 110 / 139 seconds (79.1 %)
                      progressreport0 (00:00:55): 121 / 139 seconds (87.1 %)
                      progressreport0 (00:01:00): 131 / 139 seconds (94.2 %)
                      progressreport0 (00:01:02): 139 / 139 seconds (100.0 %)
                      Got EOS from element "pipeline0".
                      Execution ended after 0:01:02.340124078
                      Setting pipeline to PAUSED ...
                      Setting pipeline to READY ...
                      Setting pipeline to NULL ...
                      Freeing pipeline ...

                      Comment

                      Working...
                      X