Can not run omxvideoenctest.

nikhil
2009-02-27
2013-06-05
  • nikhil

    nikhil - 2009-02-27

    Hi all,
    I am having trouble with using bellagio. I want to run the encoder component and have built the bellagio code as specified in the readme. Whenever i do run the file after the make, make install and make check, the output says No encoder component found. Is that what it is ? That there is no encoder component in the code! For the readme clearly mentions a decoder and encoder component. Or the problem is with the FFmpeg build. I hope of a response.

    Thanks and regards.
    Nikhil.

     
    • Giulio Urlini

      Giulio Urlini - 2009-02-27

      Hi,
          if you are using the latest version of the code in subversion you need also to compile and install hte components that are located in http://omxil.svn.sourceforge.net/viewvc/omxil/omxextcomp/.
      If you are using a package released (0.9.1 for instance) you should executed also the omxregister-bellagio program. It should be executed once to register the existing components in a file.
      You should check in the file $HOME/.omxregister if the component 'OMX.st.video_encoder' is listed.

      Regards,
      Giulio

       
    • nikhil

      nikhil - 2009-03-02

      Hi Giulio,

      Thanks for the reply.
      I am using the package release that you mentioned. I have executed the omxregister-bellagio program too. But I can't find the file .omxregister. I think the registry is not being executed for some reason. Any insight ?

      Thanks and regards.
      Nikhil.

       
    • nikhil

      nikhil - 2009-03-02

      Hi,

      This is what it shows after the registry :::::

      Scanning directory /usr/local/lib/bellagio/

      Scanning openMAX libary /usr/local/lib/bellagio/libomxvideosrc.so
      Component OMX.st.video_src registered
        Specific role OMX.st.video_src registered

      Scanning openMAX libary /usr/local/lib/bellagio/libomxfbdev.so
      Component OMX.st.fbdev.fbdev_sink registered
        Specific role OMX.st.fbdev.fbdev_sink registered

      Scanning openMAX libary /usr/local/lib/bellagio/libomxcamera.so
      Component OMX.st.v4l.camera_source registered
        Specific role OMX.st.v4l.camera_source registered

      Scanning openMAX libary /usr/local/lib/bellagio/libomxaudio_effects.so
      Component OMX.st.volume.component registered
        Specific role OMX.st.volume.component registered
      Component OMX.st.audio.mixer registered
        Specific role OMX.st.audio.mixer registered

      Scanning openMAX libary /usr/local/lib/bellagio/libomximagejpeg.so
      Component OMX.st.image_decoder.jpeg registered
        Specific role OMX.st.image_decoder.jpeg registered
      Component OMX.st.image_encoder.jpeg registered
        Specific role OMX.st.image_encoder.jpeg registered

      Scanning openMAX libary /usr/local/lib/bellagio/libomxclocksrc.so
      Component OMX.st.clocksrc registered
        Specific role OMX.st.clocksrc registered

      8 OpenMAX IL ST static components with 8 roles succesfully scanned

      Thanks and regards,
      Nikhil.

       
      • Giulio Urlini

        Giulio Urlini - 2009-03-02

        Hi,
            unfortunately here all the components related to ffmpeg are missing.
        Did you noticed in the log of configure in FFMPEG was YES or NO?
        If NO there is something wrong with the detection of ffmpeg. Let me know so that we can go through it.

        Regards,
        Giulio

         
    • nikhil

      nikhil - 2009-03-02

      You are right. The log says No for FFmpeg.
      It will be very helpful if you can suggest a way. I am stuck here.

      Thanks and Regards,
      Nikhil.

       
      • Giulio Urlini

        Giulio Urlini - 2009-03-02

        Hi,
           the configure for ffmpeg checks the existence of the following libraries:
        libavcodec libavformat libavutil libswscale
        You should check that are all present, and that the configure program is able to find them, so if the library search path is correct.
        the header file libavformat/avformat.h should also be found.
        If you are missing some of these files you probably have an old ffmpeg installation.
        In this case let me knoe the version, and if you have installed a package or you compiled it from source code.
        Regards,
        Giulio

         
    • Pankaj Sen

      Pankaj Sen - 2009-03-02

      Hi Nikhil,

      In addition to what Giulio said, Please check or set the following variable.

      export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/ (or where your libavcodec.pc, libavdevice.pc  libavformat.pc  libavutil.pc    libswscale.pc files are present )

      export LD_LIBRARY_PATH=/usr/local/lib (or where your libavcodec.so, libavdevice.so libavformat.so libavutil.so libswscale.so files are present )

      And then reconfigure bellagio.

      Regards,
      Pankaj

       
    • nikhil

      nikhil - 2009-03-03

      Hi ..
      Thanks for the replies.
      I can't find libswscale.
      Also there is no libswscale.pc in /usr/local/lib/pkgconfig/ ...and there are no shared libraries for the ffmpeg libraries. (none of the lib*.so s are present.)
      I used this package to install ffmpeg :http://ffmpeg.org/download.html.
      libavformat/avformat.h is there though.

      I also tried installing Mplayer just so that it will install ffmpeg in process. That did not work too.

      Thanks and regards,
      Nikhil.

       
    • Pankaj Sen

      Pankaj Sen - 2009-03-03

      Hi,

      I hope you have configured ffmpeg and make it.

      Use following to configure.

      ./configure --prefix=/home/psen/usr --arch=x86_32 --extra-cflags="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m32 -march=i386 -mtune=generic -fasynchronous-unwind-tables" --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --enable-swscale

      Objective is to enabled-shared so that shared libraries are build.

      Regards,
      Pankaj

       
    • nikhil

      nikhil - 2009-03-10

      Hi,

      I configured it with the shared libraries enabled. The problem now is with make install.
      When I try to make install :
      make install
      install -d "/home/psen/usr/lib"
      install -m 755 libswscale/libswscale.so "/home/psen/usr/lib/libswscale.so.0.7.1"
      install: cannot remove `/home/psen/usr/lib/libswscale.so.0.7.1': Permission denied
      make: *** [install-libswscale-shared] Error 1

      Thanks and regards,
      Nikhil.

       
    • nikhil

      nikhil - 2009-03-10

      Oops...
      Trivial mistake.
      Works now.

      Thanks and Regards,
      Nikhil.

       

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks