Installation guid for Ubuntu 11.04 (32-bit)

本文提供了一个详细的MCU安装步骤说明,包括下载依赖项、清理系统并安装依赖项、编译安装ffmpeg、mcu及mcuWeb等关键组件。此外还记录了在不同Linux发行版上遇到的问题及解决方法。
1 2 > >> (Page 1 of 2)
  • Bernd Krumböck

    Bernd Krumböck - 2011-10-15

    This guide may work for other versions and distributions with small changes.

    1) Download all dependencies:

    cd /usr/local/src

    wget http://mp4v2.googlecode.com/files/mp4v2-trunk-r479.tar.bz2
    wget ftp://ftp.videolan.org/pub/x264/snapshots/last_x264.tar.bz2
    wget http://ffmpeg.org/releases/ffmpeg-
    snapshot.tar.bz2

    wget http://www.apache.org/dist//ws/xmlrpc/binaries/apache-
    xmlrpc-3.1.3-bin.tar.bz2

    wget http://download.java.net/javaee5/sailfin/v2_branch/promoted/Linux
    /sailfin-installer-v2-b31g-
    linux.jar

    svn co https://mcumediaserver.svn.sourceforge.net/svnroot/mcumediaserver mcu

    2) Cleanup system and install dependencies:

    apt-get purge libavcodec52 libavcodec-extra-52 libavdevice52 libavdevice-
    extra-52 libavfilter0 libavfilter-extra-0 libavformat52 libavformat-extra-52
    libavutil49 libavutil-extra-49 libpostproc51 libpostproc-extra-51 libswscale0
    libswscale-extra-0 libavutil-dev

    apt-get autoremove

    Edit /etc/apt/sources.list:
    Add --> deb
    http://archive.canonical.com/ubuntu
    natty partner

    apt-get update
    apt-get install sun-java6-jdk libnb-java4-java
    apt-get install subversion
    apt-get install libxmlrpc-c3-dev libxmlrpc-core-c3-dev libgsm1-dev binutils-
    dev checkinstall libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-
    amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev libssl-dev libspeex-dev
    libspeexdsp-dev libcurl4-openssl-dev yasm libdc1394-22-dev libschroedinger-dev
    libvpx-dev

    3) Compile and install ffmpeg:

    tar -jxf last_x264.tar.bz2
    cd x264-snapshot-20111012-2245/
    ./configure --prefix=/usr --enable-shared --enable-pic
    make
    checkinstall --pkgname=x264 --pkgversion="0.118.2245~checkinstall" --default

    tar -jxf mp4v2-trunk-r479.tar.bz2
    cd mp4v2-trunk-r479
    ./configure --prefix=/usr
    make
    checkinstall --pkgname=libmp4v2 --pkgversion="1:1.9.1~checkinstall" --default

    tar -jxf ffmpeg-snapshot.tar.bz2
    cd ffmpeg
    ./configure --prefix=/usr --enable-avfilter --enable-vdpau \
    --enable-bzlib --enable-libgsm --enable-libschroedinger \
    --enable-libspeex --enable-libtheora --enable-libvorbis \
    --enable-pthreads --enable-zlib --disable-stripping --enable-runtime-cpudetect
    \
    --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-gpl \
    --enable-postproc --enable-swscale --enable-x11grab \
    --enable-libxvid --enable-libx264 --enable-libopencore-amrnb \
    --enable-version3 --enable-libopencore-amrwb --enable-version3 \
    --enable-libdc1394 --enable-libvpx --enable-shared --enable-pic
    make
    checkinstall --pkgname=ffmpeg --pkgversion="4:0.8.5~checkinstall" --default

    4) Compile and install mcu:

    cd mcu
    make
    make install

    5) Install sailfin:

    mkdir -p /srv/www
    cd /srv/www
    java -jar /<path-to-sailfin-installer>/sailfin-installer-v2-b31g-linux.jar
    cd sailfin
    chmod -R +x lib/ant/bin

    Edit setup.xml:
    Change ports and admin account

    lib/ant/bin/ant -f setup.xml

    6) Compile mcuWeb (you can skip this step and download mcuWeb.sar from
    sourceforge.net):

    cd /usr/local/src
    tar -jxf apache-xmlrpc-3.1.3-bin.tar.bz2

    cd mcu/XmlRpcMcuClient

    Edit nbproject/project.properties:
    Change following references
    file.reference.commons-logging-1.1.jar=/prod/software/apache-xmlrpc-3.1.3/lib
    /commons-logging-1.1.jar
    file.reference.ws-commons-util-1.0.2.jar=/prod/software/apache-
    xmlrpc-3.1.3/lib/ws-commons-util-1.0.2.jar
    file.reference.xmlrpc-client-3.1.3.jar=/prod/software/apache-xmlrpc-3.1.3/lib
    /xmlrpc-client-3.1.3.jar
    file.reference.xmlrpc-common-3.1.3.jar=/prod/software/apache-xmlrpc-3.1.3/lib
    /xmlrpc-common-3.1.3.jar
    file.reference.xmlrpc-server-3.1.3.jar=/prod/software/apache-xmlrpc-3.1.3/lib
    /xmlrpc-server-3.1.3.jar

    ant
    cd /usr/local/src/mcu/mcuWeb

    Edit nbproject/project.properties:
    Change following references
    file.reference.commons-logging-1.1.jar=/prod/software/apache-xmlrpc-3.1.3/lib
    /commons-logging-1.1.jar
    file.reference.ssa-api.jar=/srv/www/sailfin/lib/ssa-api.jar
    file.reference.ws-commons-util-1.0.2.jar=/prod/software/apache-
    xmlrpc-3.1.3/lib/ws-commons-util-1.0.2.jar
    file.reference.xmlrpc-client-3.1.3.jar=/prod/software/apache-xmlrpc-3.1.3/lib
    /xmlrpc-client-3.1.3.jar
    file.reference.xmlrpc-common-3.1.3.jar=/prod/software/apache-xmlrpc-3.1.3/lib
    /xmlrpc-common-3.1.3.jar
    file.reference.XmlRpcMcuClient.jar=../XmlRpcMcuClient/dist/XmlRpcMcuClient.jar

    ant -Dj2ee.server.home=/srv/www/sailfin
    -Dlibs.CopyLibs.classpath=/usr/share/netbeans/java4/ant/extra/org-netbeans-
    modules-java-j2seproject-copylibstask.jar

    7) Install mcuWeb:

    User your webbrowser and login to sailfin administration console (port 4848)
    Click on "Converged SIP Modules" and deploy
    /usr/local/src/mcu/mcuWeb/dist/mcuWeb.sar

    A small configuration guide will follow later...

    Good luck!!

    regards,
    Bernd

     
  • Samat Toibazarov

    Samat Toibazarov - 2011-12-09

    I am using ubuntu 10.04, and followed the instructions but when compiling the
    mcu getting this type of error:

    root@ubuntu:/usr/local/src/mcu# make
    mkdir -p bin
    make -C media
    make[1]: Entering directory `/usr/local/src/mcu/media'
    mkdir -p /usr/local/src/mcu/media/build/debug
    mkdir -p /usr/local/src/mcu/bin//debug
    g++ -I/usr/local/src/mcu/media/include/  -g -O0 -DLOG_ -D_UNIX -D__STDC_CONSTANT_MACROS -fPIC -c /usr/local/src/mcu/media/src/xmlrpcserver.cpp -o /usr/local/src/mcu/media/build/debug/xmlrpcserver.o
    /usr/local/src/mcu/media/src/xmlrpcserver.cpp: In constructor ‘XmlRpcServer::XmlRpcServer(int)’:
    /usr/local/src/mcu/media/src/xmlrpcserver.cpp:38: error: ‘ServerReqHandler3’ was not declared in this scope
    /usr/local/src/mcu/media/src/xmlrpcserver.cpp:38: error: expected ‘;’ before ‘abbysHndlr’
    /usr/local/src/mcu/media/src/xmlrpcserver.cpp:41: error: ‘abbysHndlr’ was not declared in this scope
    /usr/local/src/mcu/media/src/xmlrpcserver.cpp:47: error: ‘ServerAddHandler3’ was not declared in this scope
    make[1]: *** [xmlrpcserver.o] Error 1
    make[1]: Leaving directory `/usr/local/src/mcu/media'
    make: *** [all] Error 2
    

    Maybe the header files are old in my distr? can you help?

     
  • Samat Toibazarov

    Samat Toibazarov - 2011-12-09

    Thanks drazielr it solved the issue, but no it shows me this kind of error:

    /usr/local/src/mcu/media/src/xmlrpcserver.cpp:47: undefined reference to `ServerAddHandler3'
    /usr/local/src/mcu/media/src/xmlrpcserver.cpp:47: undefined reference to `ServerAddHandler3'
    /usr/local/src/mcu/media/build/debug/xmlhandler.o: In function `XmlHandler::ProcessRequest(TRequestInfo*, _TSession*)':
    /usr/local/src/mcu/media/src/xmlhandler.cpp:131: undefined reference to `xmlrpc_limit_get'
    /usr/local/src/mcu/media/build/debug/h264encoder.o: In function `~H264Encoder':
    /usr/local/src/mcu/media/src/h264/h264encoder.cpp:52: undefined reference to `x264_encoder_close'
    /usr/local/src/mcu/media/src/h264/h264encoder.cpp:52: undefined reference to `x264_encoder_close'
    /usr/local/src/mcu/media/src/h264/h264encoder.cpp:52: undefined reference to `x264_encoder_close'
    /usr/local/src/mcu/media/build/debug/h264encoder.o: In function `H264Encoder::OpenCodec()':
    /usr/local/src/mcu/media/src/h264/h264encoder.cpp:116: undefined reference to `x264_param_default'
    /usr/local/src/mcu/media/src/h264/h264encoder.cpp:119: undefined reference to `x264_param_default_preset'
    /usr/local/src/mcu/media/src/h264/h264encoder.cpp:152: undefined reference to `x264_param_apply_profile'
    /usr/local/src/mcu/media/src/h264/h264encoder.cpp:155: undefined reference to `x264_encoder_open_120'
    /usr/local/src/mcu/media/build/debug/h264encoder.o: In function `H264Encoder::EncodeFrame(unsigned char*, unsigned int)':
    /usr/local/src/mcu/media/src/h264/h264encoder.cpp:207: undefined reference to `x264_encoder_encode'
    collect2: ld returned 1 exit status
    make[1]: *** [mcu] Error 1
    make[1]: Leaving directory `/usr/local/src/mcu/media'
    make: *** [all] Error 2
    
     
  • rgpsourceforge

    rgpsourceforge - 2012-02-06

    Hello I have an error compiling mcu

    root@intercity:/usr/local/src/mcu# make
    mkdir -p bin
    make -C media
    make: Entering directory /usr/local/src/mcu/media' mkdir -p /usr/local/src/mcu/media/build/debug mkdir -p /usr/local/src/mcu/bin//debug g++ -I/usr/local/src/mcu/media/include/ -g -O0 -DLOG_ -D_UNIX -D__STDC_CONSTANT_MACROS -fPIC -c /usr/local/src/mcu/media/src/audiomixer.cpp -o /usr/local/src/mcu/media/build/debug/audiomixer.o In file included from /usr/local/src/mcu/media/include/audio.h:4:0, from /usr/local/src/mcu/media/include/audiomixer.h:5, from /usr/local/src/mcu/media/src/audiomixer.cpp:6: /usr/local/src/mcu/media/include/media.h: In constructor âMediaFrame::MediaFrame(MediaFrame::Type, uint32_t)â: /usr/local/src/mcu/media/include/media.h:58:37: error: âmallocâ was not declared in this scope /usr/local/src/mcu/media/include/media.h: In destructor âvirtual MediaFrame::~MediaFrame()â: /usr/local/src/mcu/media/include/media.h:68:14: error: âfreeâ was not declared in this scope /usr/local/src/mcu/media/include/media.h: In member function âbool MediaFrame::Alloc(uint32_t)â: /usr/local/src/mcu/media/include/media.h:106:45: error: âreallocâ was not declared in this scope make: *** Error 1 make: Leaving directory/usr/local/src/mcu/media'
    make: *** Error 2

     
  • Lamsao

    Lamsao - 2012-02-07

    root@intercity:/usr/local/src/mcu# make
    mkdir -p bin
    make -C media
    make: Entering directory /usr/local/src/mcu/media' mkdir -p /usr/local/src/mcu/media/build/debug mkdir -p /usr/local/src/mcu/bin//debug g++ -I/usr/local/src/mcu/media/include/ -g -O0 -DLOG_ -D_UNIX -D__STDC_CONSTANT_MACROS -fPIC -c /usr/local/src/mcu/media/src/audiomixer.cpp -o /usr/local/src/mcu/media/build/debug/audiomixer.o In file included from /usr/local/src/mcu/media/include/audio.h:4:0, from /usr/local/src/mcu/media/include/audiomixer.h:5, from /usr/local/src/mcu/media/src/audiomixer.cpp:6: /usr/local/src/mcu/media/include/media.h: In constructor âMediaFrame::MediaFrame(MediaFrame::Type, uint32_t)â: /usr/local/src/mcu/media/include/media.h:58:37: error: âmallocâ was not declared in this scope /usr/local/src/mcu/media/include/media.h: In destructor âvirtual MediaFrame::~MediaFrame()â: /usr/local/src/mcu/media/include/media.h:68:14: error: âfreeâ was not declared in this scope /usr/local/src/mcu/media/include/media.h: In member function âbool MediaFrame::Alloc(uint32_t)â: /usr/local/src/mcu/media/include/media.h:106:45: error: âreallocâ was not declared in this scope make: *** Error 1 make: Leaving directory/usr/local/src/mcu/media'
    make: *** Error 2

    I encountered the same error. Inserting #include <stdlib.h> to the media.h
    fixed the problem but then I encountered a different one:

    /home/cdvoip/workspace/mcumediaserver/media/src/h264/h264decoder.cpp: In
    constructor ‘H264Decoder::H264Decoder()’:
    /home/cdvoip/workspace/mcumediaserver/media/src/h264/h264decoder.cpp:42:
    warning: ‘AVCodecContext avcodec_alloc_context()’ is deprecated (declared at
    /usr/local/include/libavcodec/avcodec.h:3538)
    /home/cdvoip/workspace/mcumediaserver/media/src/h264/h264decoder.cpp:42:
    warning: ‘AVCodecContext
    avcodec_alloc_context()’ is deprecated (declared at
    /usr/local/include/libavcodec/avcodec.h:3538)
    /home/cdvoip/workspace/mcumediaserver/media/src/h264/h264decoder.cpp:54:
    warning: ‘int avcodec_open(AVCodecContext, AVCodec)’ is deprecated (declared
    at /usr/local/include/libavcodec/avcodec.h:3663)
    /home/cdvoip/workspace/mcumediaserver/media/src/h264/h264decoder.cpp:54:
    warning: ‘int avcodec_open(AVCodecContext, AVCodec)’ is deprecated (declared
    at /usr/local/include/libavcodec/avcodec.h:3663)
    make: No rule to make target h264depacketizer.o', needed bymcu'. Stop.
    make: Leaving directory `/home/cdvoip/workspace/mcumediaserver/media'
    make:
    Error 2

    I followed the instructions here http://www.medooze.com/products/media-mixer-
    server/installation.aspx
    . BTW, I was compiling on RHEL 6 machine and you may
    have noticed I had the MCU source files in a different directory
    /home/cdvoip/workspace/mcumediaserver. Does anyone here know what I was
    missing? Thanks in advance.

    --lamsao

     
  • Sergio Garcia Murillo

    Should be fixed now, checkout the new version from repo.

    BR
    Sergio

     
  • Lamsao

    Lamsao - 2012-02-07

    Right after I posted, I saw the missing files h264depacketizer.cpp/h were just
    added to the SVN. Checking out the missing files and everything was compiled
    and built successfully :)

     
  • Lamsao

    Lamsao - 2012-02-07

    Hi Sergio,

    Thanks for your quick reply.

    Since you are monitoring this thread, did you have the same with media.h and
    was adding #include <stdlib.h> the right fix for it? Again, thanks.

     
  • Nahuel

    Nahuel - 2012-02-09

    Hi,

    I've installed mcu in Ubuntu 11.10. After all, when I start the mediamixer
    service in mcu log appears this error:

    /usr/local/src/mcu/bin/debug/mcu: relocation error:
    /usr/local/lib/libavformat.so.54: symbol av_realloc_f, version LIBAVUTIL_51
    not defined in file libavutil.so.51 with link time reference

    What could be the problem?

    thanks in advance

     
  • klez22

    klez22 - 2012-02-10

    root@videoserv:/usr/local/src/mcu# make

    mkdir -p bin
    make -C media
    make[1]: Entering directory `/usr/local/src/mcu/media'
    mkdir -p /usr/local/src/mcu/media/build/debug
    mkdir -p /usr/local/src/mcu/bin//debug
    g++ -o /usr/local/src/mcu/bin//debug/mcu /usr/local/src/mcu/media/build/debug/codecs.o /usr/local/src/mcu/media/build/debug/video.o /usr/local/src/mcu/media/build/debug/mcu.o /usr/local/src/mcu/media/build/debug/multiconf.o /usr/local/src/mcu/media/build/debug/rtpparticipant.o /usr/local/src/mcu/media/build/debug/rtmpparticipant.o /usr/local/src/mcu/media/build/debug/videomixer.o /usr/local/src/mcu/media/build/debug/audiomixer.o /usr/local/src/mcu/media/build/debug/xmlrpcserver.o /usr/local/src/mcu/media/build/debug/xmlhandler.o /usr/local/src/mcu/media/build/debug/xmlstreaminghandler.o /usr/local/src/mcu/media/build/debug/statushandler.o /usr/local/src/mcu/media/build/debug/xmlrpcmcu.o /usr/local/src/mcu/media/build/debug/tools.o /usr/local/src/mcu/media/build/debug/rtpsession.o /usr/local/src/mcu/media/build/debug/audiostream.o /usr/local/src/mcu/media/build/debug/videostream.o /usr/local/src/mcu/media/build/debug/pipeaudioinput.o /usr/local/src/mcu/media/build/debug/pipeaudiooutput.o /usr/local/src/mcu/media/build/debug/pipevideoinput.o /usr/local/src/mcu/media/build/debug/pipevideooutput.o /usr/local/src/mcu/media/build/debug/framescaler.o /usr/local/src/mcu/media/build/debug/mosaic.o /usr/local/src/mcu/media/build/debug/partedmosaic.o /usr/local/src/mcu/media/build/debug/asymmetricmosaic.o /usr/local/src/mcu/media/build/debug/logo.o /usr/local/src/mcu/media/build/debug/amf.o /usr/local/src/mcu/media/build/debug/rtmpmessage.o /usr/local/src/mcu/media/build/debug/rtmpchunk.o /usr/local/src/mcu/media/build/debug/rtmpstream.o /usr/local/src/mcu/media/build/debug/rtmpconnection.o /usr/local/src/mcu/media/build/debug/rtmpserver.o /usr/local/src/mcu/media/build/debug/broadcaster.o /usr/local/src/mcu/media/build/debug/broadcastsession.o /usr/local/src/mcu/media/build/debug/rtmpflvstream.o /usr/local/src/mcu/media/build/debug/flvrecorder.o /usr/local/src/mcu/media/build/debug/FLVEncoder.o /usr/local/src/mcu/media/build/debug/xmlrpcbroadcaster.o /usr/local/src/mcu/media/build/debug/mediagateway.o /usr/local/src/mcu/media/build/debug/mediabridgesession.o /usr/local/src/mcu/media/build/debug/xmlrpcmediagateway.o /usr/local/src/mcu/media/build/debug/textmixer.o /usr/local/src/mcu/media/build/debug/textmixerworker.o /usr/local/src/mcu/media/build/debug/textstream.o /usr/local/src/mcu/media/build/debug/pipetextinput.o /usr/local/src/mcu/media/build/debug/pipetextoutput.o /usr/local/src/mcu/media/build/debug/mp4player.o /usr/local/src/mcu/media/build/debug/mp4streamer.o /usr/local/src/mcu/media/build/debug/audioencoder.o /usr/local/src/mcu/media/build/debug/textencoder.o /usr/local/src/mcu/media/build/debug/mp4recorder.o /usr/local/src/mcu/media/build/debug/rtmpmp4stream.o /usr/local/src/mcu/media/build/debug/avcdescriptor.o /usr/local/src/mcu/media/build/debug/RTPSmoother.o /usr/local/src/mcu/media/build/debug/g711.o /usr/local/src/mcu/media/build/debug/pcmucodec.o /usr/local/src/mcu/media/build/debug/pcmacodec.o /usr/local/src/mcu/media/build/debug/h263.o /usr/local/src/mcu/media/build/debug/h263codec.o /usr/local/src/mcu/media/build/debug/mpeg4codec.o /usr/local/src/mcu/media/build/debug/h263-1996codec.o /usr/local/src/mcu/media/build/debug/gsmcodec.o /usr/local/src/mcu/media/build/debug/h264encoder.o /usr/local/src/mcu/media/build/debug/h264decoder.o /usr/local/src/mcu/media/build/debug/h264depacketizer.o /usr/local/src/mcu/media/build/debug/flv1codec.o /usr/local/src/mcu/media/build/debug/speexcodec.o /usr/local/src/mcu/media/build/debug/NellyCodec.o /usr/local/src/mcu/media/build/debug/RTPEndpoint.o /usr/local/src/mcu/media/build/debug/Player.o /usr/local/src/mcu/media/build/debug/Endpoint.o /usr/local/src/mcu/media/build/debug/MediaSession.o /usr/local/src/mcu/media/build/debug/JSR309Manager.o /usr/local/src/mcu/media/build/debug/RTPMultiplexer.o /usr/local/src/mcu/media/build/debug/xmlrpcjsr309.o /usr/local/src/mcu/media/build/debug/AudioDecoderWorker.o /usr/local/src/mcu/media/build/debug/AudioEncoderWorker.o /usr/local/src/mcu/media/build/debug/AudioMixerResource.o /usr/local/src/mcu/media/build/debug/VideoDecoderWorker.o /usr/local/src/mcu/media/build/debug/VideoEncoderWorker.o /usr/local/src/mcu/media/build/debug/VideoMixerResource.o /usr/local/src/mcu/media/build/debug/RTPMultiplexerSmoother.o /usr/local/src/mcu/media/build/debug/main.o -lavcodec -lgsm -lpthread -lswscale -lavformat -lavutil -lx264 -lssl -lmp4v2 -lspeex -lspeexdsp -lxmlrpc -lxmlrpc_xmlparse -lxmlrpc_xmltok -lxmlrpc_abyss -lxmlrpc_server
    /usr/local/src/mcu/media/build/debug/xmlrpcserver.o: In function `XmlRpcServer':
    /usr/local/src/mcu/media/src/xmlrpcserver.cpp:47: undefined reference to `ServerAddHandler3'
    /usr/local/src/mcu/media/src/xmlrpcserver.cpp:47: undefined reference to `ServerAddHandler3'
    /usr/local/src/mcu/media/build/debug/xmlhandler.o: In function `XmlHandler::ProcessRequest(TRequestInfo*, _TSession*)':
    /usr/local/src/mcu/media/src/xmlhandler.cpp:131: undefined reference to `xmlrpc_limit_get'
    collect2: ld returned 1 exit status
    make[1]: *** [mcu] Error 1
    make[1]: Leaving directory `/usr/local/src/mcu/media'
    make: *** [all] Error 2
    

    ubunta 11.04 (32bit)

    how resolve it ?

     
  • Sergio Garcia Murillo

    For libavcoded problem, check you don't have any precompiled version are you
    are using latest git repo compiled one.

    For the xmlprc problem, mostly the same, make sure you don't have an older
    version preinstalled in your server and have installed the correct xmlrpc lib
    version.

    Best regards
    Sergio

     
  • klez22

    klez22 - 2012-02-14

    Hi Sergio !

    I was able to successfully compiled mcu. But i have next problem : i use this
    instruction http://www.medooze.com/products/media-mixer-
    server/installation.aspx

    and next installation step is create autostart script. I successfully create
    it. Next i try to do this step :

    Let’s configure the service to start automatically at the desired runlevels and start the mixer in the default port:
    
    chmod 777 /etc/init.d/mediamixer
    /sbin/chkconfig --level 35 mediamixer on
    service  mediamixer start
    

    and i get this:

    root@videoserver:/etc/init.d# chmod 777 /etc/init.d/mediamixer
    root@videoserver:/etc/init.d# /sbin/chkconfig --level 35 mediamixer on
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'plymouth-log' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'udev' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'plymouth-splash' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'hostname' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'plymouth' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'plymouth-stop' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'irqbalance' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'dbus' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'ufw' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'avahi-daemon' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'procps' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'udevtrigger' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'cron' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'atd' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'module-init-tools' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'console-setup' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'network-interface-security' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'failsafe-x' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'hwclock-save' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'udevmonitor' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'udev-finish' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'rsyslog' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'apport' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'hwclock' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'network-interface' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'dmesg' missing LSB tags and overrides
    insserv: There is a loop between service rsyslog and rsyncd if stopped
    insserv:  loop involving service rsyncd at depth 3
    insserv:  loop involving service rsyslog at depth 2
    insserv:  loop involving service udev at depth 1
    insserv: There is a loop between service rsyncd and rsyslog if stopped
    insserv: exiting now without changing boot order!
    /sbin/insserv failed, exit code 1
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'screen-cleanup' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'plymouth-log' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'udev' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'plymouth-splash' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'hostname' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'plymouth' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'plymouth-stop' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'irqbalance' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'dbus' missing LSB tags and overrides
    insserv: warning: current start runlevel(s) (6) of script `reboot' overwrites defaults (empty).
    insserv: warning: current start runlevel(s) (0 6) of script `umountroot' overwrites defaults (empty).
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'ufw' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'avahi-daemon' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'procps' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'udevtrigger' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'cron' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'atd' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'module-init-tools' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'console-setup' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'network-interface-security' missing LSB tags and overrides
    insserv: warning: current start runlevel(s) (0 6) of script `umountnfs.sh' overwrites defaults (empty).
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'failsafe-x' missing LSB tags and overrides
    insserv: warning: current start runlevel(s) (0 6) of script `wpa-ifupdown' overwrites defaults (empty).
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'hwclock-save' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'udevmonitor' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'udev-finish' missing LSB tags and overrides
    insserv: warning: current start runlevel(s) (0 6) of script `umountfs' overwrites defaults (empty).
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'rsyslog' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'apport' missing LSB tags and overrides
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'hwclock' missing LSB tags and overrides
    insserv: warning: current start runlevel(s) (0 6) of script `sendsigs' overwrites defaults (empty).
    insserv: warning: current start runlevel(s) (0 6) of script `networking' overwrites defaults (empty).
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'network-interface' missing LSB tags and overrides
    insserv: warning: current start runlevel(s) (0) of script `halt' overwrites defaults (empty).
    The script you are attempting to invoke has been converted to an Upstart
    job, but lsb-header is not supported for Upstart jobs.
    insserv: warning: script 'dmesg' missing LSB tags and overrides
    insserv: There is a loop between service rsyslog and rsyncd if stopped
    insserv:  loop involving service rsyncd at depth 3
    insserv:  loop involving service rsyslog at depth 2
    insserv:  loop involving service udev at depth 1
    insserv: There is a loop between service rsyncd and rsyslog if stopped
    insserv: exiting now without changing boot order!
    /sbin/insserv failed, exit code 1
    

    then i do

    service  mediamixer start
    

    and get

    root@videoserver:/etc/init.d# service  mediamixer start
     * Starting MCU mixer mcu
       ...done.
    

    but in "top" i no see mcu service :

    root@videoserver:/etc/init.d# top
    
    top - 10:29:38 up  1:06,  1 user,  load average: 0.00, 0.04, 0.08
    Tasks: 111 total,   1 running, 110 sleeping,   0 stopped,   0 zombie
    Cpu(s):  0.0%us,  0.2%sy,  0.0%ni, 99.8%id,  0.0%wa,  0.0%hi,  0.0%si,  0.0%st
    Mem:   1025896k total,   156992k used,   868904k free,    19524k buffers
    Swap:  1757176k total,        0k used,  1757176k free,   104252k cached
    
      PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                         
     1267 root      20   0  2544 1172  900 R    0  0.1   0:00.08 top                                             
        1 root      20   0  2780 1584 1168 S    0  0.2   0:01.08 init                                            
        2 root      20   0     0    0    0 S    0  0.0   0:00.00 kthreadd                                        
        3 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/0                                     
        4 root      20   0     0    0    0 S    0  0.0   0:00.00 ksoftirqd/0                                     
        5 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/0                                      
        6 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/1                                     
        7 root      20   0     0    0    0 S    0  0.0   0:00.00 ksoftirqd/1                                     
        8 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/1                                      
        9 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/2                                     
       10 root      20   0     0    0    0 S    0  0.0   0:00.00 ksoftirqd/2                                     
       11 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/2                                      
       12 root      RT   0     0    0    0 S    0  0.0   0:00.00 migration/3                                     
       13 root      20   0     0    0    0 S    0  0.0   0:00.00 ksoftirqd/3                                     
       14 root      RT   0     0    0    0 S    0  0.0   0:00.00 watchdog/3                                      
       15 root      20   0     0    0    0 S    0  0.0   0:00.45 events/0                                        
       16 root      20   0     0    0    0 S    0  0.0   0:00.04 events/1                                        
       17 root      20   0     0    0    0 S    0  0.0   0:00.00 events/2                                        
       18 root      20   0     0    0    0 S    0  0.0   0:00.03 events/3                                        
       19 root      20   0     0    0    0 S    0  0.0   0:00.00 cpuset                                          
       20 root      20   0     0    0    0 S    0  0.0   0:00.00 khelper                                         
       21 root      20   0     0    0    0 S    0  0.0   0:00.00 async/mgr                                       
       22 root      20   0     0    0    0 S    0  0.0   0:00.00 pm                                              
       24 root      20   0     0    0    0 S    0  0.0   0:00.01 sync_supers                                     
       25 root      20   0     0    0    0 S    0  0.0   0:00.01 bdi-default                                     
       26 root      20   0     0    0    0 S    0  0.0   0:00.00 kintegrityd/0                                   
       27 root      20   0     0    0    0 S    0  0.0   0:00.00 kintegrityd/1                                   
       28 root      20   0     0    0    0 S    0  0.0   0:00.00 kintegrityd/2                                   
       29 root      20   0     0    0    0 S    0  0.0   0:00.00 kintegrityd/3                                   
       30 root      20   0     0    0    0 S    0  0.0   0:00.00 kblockd/0                                       
       31 root      20   0     0    0    0 S    0  0.0   0:00.00 kblockd/1                                       
       32 root      20   0     0    0    0 S    0  0.0   0:00.00 kblockd/2                                       
       33 root      20   0     0    0    0 S    0  0.0   0:00.00 kblockd/3                                       
       34 root      20   0     0    0    0 S    0  0.0   0:00.00 kacpid                                          
       35 root      20   0     0    0    0 S    0  0.0   0:00.00 kacpi_notify                                    
       36 root      20   0     0    0    0 S    0  0.0   0:00.00 kacpi_hotplug                                   
       37 root      20   0     0    0    0 S    0  0.0   0:00.00 ata/0                                           
       38 root      20   0     0    0    0 S    0  0.0   0:00.00 ata/1                                           
       39 root      20   0     0    0    0 S    0  0.0   0:00.00 ata/2                                           
       40 root      20   0     0    0    0 S    0  0.0   0:00.00 ata/3                                           
       41 root      20   0     0    0    0 S    0  0.0   0:00.00 ata_aux                                         
       42 root      20   0     0    0    0 S    0  0.0   0:00.00 ksuspend_usbd                                   
       43 root      20   0     0    0    0 S    0  0.0   0:00.00 khubd                                           
       44 root      20   0     0    0    0 S    0  0.0   0:00.00 kseriod                                         
       45 root      20   0     0    0    0 S    0  0.0   0:00.00 kmmcd                                           
       50 root      20   0     0    0    0 S    0  0.0   0:00.00 khungtaskd                                      
       51 root      20   0     0    0    0 S    0  0.0   0:00.00 kswapd0                                         
       52 root      25   5     0    0    0 S    0  0.0   0:00.00 ksmd                                            
       53 root      20   0     0    0    0 S    0  0.0   0:00.00 aio/0                                           
       54 root      20   0     0    0    0 S    0  0.0   0:00.00 aio/1                                           
       55 root      20   0     0    0    0 S    0  0.0   0:00.00 aio/2                                           
       56 root      20   0     0    0    0 S    0  0.0   0:00.00 aio/3                                           
       57 root      20   0     0    0    0 S    0  0.0   0:00.00 ecryptfs-kthrea                                 
       58 root      20   0     0    0    0 S    0  0.0   0:00.00 crypto/0                                        
    root@videoserver:/etc/init.d# service  mediamixer status
     * MCU mixer is running
    
     
  • Sergio Garcia Murillo

    Please add a new thread with each different problem, do not overload the
    tread.. :)

    I believe that some latest linux distros have changed the init script
    behavior, and it seems that when trying to enable the mcu script has trigger
    some nasty conversion procedures.. I am not an expert on that topic, so I will
    have to investigate it further to give a reply..

    BR
    Sergio

     
  • Jerry George

    Jerry George - 2012-03-24

    Hi Bernd,

    I get the following when I try to install using make install on
    /usr/local/src/mcu/

    make[1]: Leaving directory `/usr/local/src/mcu/media'
    root@ubuntu:/usr/local/src/mcu# make install
    make -C media install
    make[1]: Entering directory `/usr/local/src/mcu/media'
    mkdir -p  /usr/local/lib
    mkdir -p  /usr/local/include/mcu
    make[1]: Leaving directory `/usr/local/src/mcu/media'
    

    and after I create init.d/mediamixer script,

    I try

    service mediamixer start
    

    But I do not receive any output.

    Thanks.

     
  • Jerry George

    Jerry George - 2012-03-24

    Hi Bernd,

    Atlast I got the mediamixer init.d working, however, the following error just
    as the other user.

    Please help

    root@ubuntu:/usr/local/src/mcu/bin/debug# ./mcu
    ./mcu: relocation error: /usr/local/lib/libavformat.so.54: symbol av_realloc_f, version LIBAVUTIL_51 not defined in file libavutil.so.51 with link time reference
    

    I could not find any help on the net. Hence.

     
  • Bernd Krumböck

    Bernd Krumböck - 2012-04-08

    Hi!

    It seems your ffmpeg installation is broken. Maybe you forgot to remove Ubuntu
    version before you installed the new version...

    regards,
    Bernd

     
  • Sergio Garcia Murillo

    Yes, that is the most probable reason.

    Try export LD_LIBRARY_PAHT=/usr/local/lib before running the mcu to override
    the loading of the precompiled ffmpeg libraries.

    BR
    Sergio

     
  • eddiechen

    eddiechen - 2012-08-15

    please help me
    I reference manual installation compile ffmpeg, report the error

    root@ubuntu:/usr/local/src/ffmpeg# cd ..
    root@ubuntu:/usr/local/src# cd ffmpeg/
    root@ubuntu:/usr/local/src/ffmpeg# ./configure --prefix=/usr --enable-avfilter
    --enable-vdpau \

    --enable-bzlib --enable-libgsm --enable-libschroedinger \
    --enable-libspeex --enable-libtheora --enable-libvorbis \
    --enable-pthreads --enable-zlib --disable-stripping --enable-runtime-
    cpudetect \
    --enable-libmp3lame --enable-libfaac --enable-nonfree --enable-gpl \
    --enable-postproc --enable-swscale --enable-x11grab \
    --enable-libxvid --enable-libx264 --enable-libopencore-amrnb \
    --enable-version3 --enable-libopencore-amrwb --enable-version3 \
    --enable-libdc1394 --enable-libvpx --enable-shared --enable-pic
    ERROR: X11 not found

    If you think configure made a mistake, make sure you are using the latest
    version from Git. If the latest version fails, report the problem to the
    ffmpeg-user@ffmpeg.org mailing list or IRC #ffmpeg on irc.freenode.net.
    Include the log file "config.log" produced by configure as this will help
    solving the problem.

     
  • Jerry George

    Jerry George - 2012-08-15

    Hi chengui,

    Try,
    sudo apt-get libx11-dev

    or in case that does not work try,

    sudo apt-get update
    sudo apt-get install ubuntu-desktop
    sudo reboot

    Regards.

     
  • eddiechen

    eddiechen - 2012-08-15

    thanks jerrygb.

    I meet a new problem, make ffmpeg and checkinstall --pkgname=ffmpeg
    --pkgversion="4:0.8.5~checkinstall" --default
    in error. Do you have a superior know solution.
    my os:ubuntu server 11.04 x83. thanks

    make
    .......
    ...
    .....
    HOSTCC doc/print_options.o
    In file included from doc/print_options.c:104:0:
    ./libavcodec/options_table.h: In function show_codec_opts:
    ./libavcodec/options_table.h:84:1: warning: sub_id is deprecated (declared at
    ./libavcodec/avcodec.h:1473)
    ./libavcodec/options_table.h:148:1: warning: luma_elim_threshold is deprecated
    (declared at ./libavcodec/avcodec.h:1705)
    ./libavcodec/options_table.h:149:1: warning: chroma_elim_threshold is
    deprecated (declared at ./libavcodec/avcodec.h:1712)
    ./libavcodec/options_table.h:283:1: warning: color_table_id is deprecated
    (declared at ./libavcodec/avcodec.h:1951)
    ./libavcodec/options_table.h:306:1: warning: inter_threshold is deprecated
    (declared at ./libavcodec/avcodec.h:2014)
    ./libavcodec/options_table.h:311:1: warning: quantizer_noise_shaping is
    deprecated (declared at ./libavcodec/avcodec.h:2021)
    HOSTCC doc/print_options
    GENTEXI doc/avoptions_format.texi
    GENTEXI doc/avoptions_codec.texi
    POD doc/ffmpeg.pod
    POD doc/ffprobe.pod
    POD doc/ffserver.pod
    MAN doc/ffmpeg.1
    MAN doc/ffprobe.1
    MAN doc/ffserver.1
    CC cmdutils.o
    CC ffmpeg_opt.o
    CC ffmpeg_filter.o
    CC ffmpeg.o
    ffmpeg.c: In function process_input:
    ffmpeg.c:2718:17: warning: unused variable j
    LD ffmpeg_g
    CP ffmpeg
    STRIP ffmpeg
    skipping strip ffmpeg
    CC ffprobe.o
    LD ffprobe_g
    CP ffprobe
    STRIP ffprobe
    skipping strip ffprobe
    CC ffserver.o
    ffserver.c: In function extract_mpeg4_header:
    ffserver.c:3565:9: warning: av_read_packet is deprecated (declared at
    libavformat/avformat.h:1494)
    ffserver.c: In function parse_ffconfig:
    ffserver.c:4501:17: warning: luma_elim_threshold is deprecated (declared at
    ./libavcodec/avcodec.h:1705)
    ffserver.c:4505:17: warning: chroma_elim_threshold is deprecated (declared at
    ./libavcodec/avcodec.h:1712)
    ffserver.c: In function main:
    ffserver.c:4727:20: warning: ignoring return value of dup, declared with
    attribute warn_unused_result
    ffserver.c:4730:16: warning: ignoring return value of dup, declared with
    attribute warn_unused_result
    ffserver.c:4738:14: warning: ignoring return value of chdir, declared with
    attribute warn_unused_result
    LD ffserver_g
    CP ffserver
    STRIP ffserver
    skipping strip ffserver
    root@ubuntu:/usr/local/src/ffmpeg# checkinstall --pkgname=ffmpeg
    --pkgversion="4:0.8.5~checkinstall" --default

    checkinstall 1.6.2, Copyright 2009 Felipe Eduardo Sanchez Diaz Duran
    This software is released under the GNU GPL.


    * Debian package creation selected
    *****
    *
    *

    This package will be built according to these values:

    0 - Maintainer:
    1 - Summary:
    2 - Name:
    3 - Version:
    4 - Release:
    5 - License:
    6 - Group:
    7 - Architecture:
    8 - Source location:
    9 - Alternate source location:
    10 - Requires:
    11 - Provides:
    12 - Conflicts:
    13 - Replaces:

    Enter a number to change any of them or press ENTER to continue:

    Installing with make install...

    ========================= Installation results ===========================
    INSTALL libavdevice/libavdevice.a
    INSTALL libavdevice/libavdevice.so
    STRIP install-libavdevice-shared
    skipping strip /usr/lib/libavdevice.so.54.2.100
    INSTALL libavfilter/libavfilter.a
    INSTALL libavfilter/libavfilter.so
    STRIP install-libavfilter-shared
    skipping strip /usr/lib/libavfilter.so.3.9.100
    INSTALL libavformat/libavformat.a
    INSTALL libavformat/libavformat.so
    STRIP install-libavformat-shared
    skipping strip /usr/lib/libavformat.so.54.23.100
    INSTALL libavcodec/libavcodec.a
    INSTALL libavcodec/libavcodec.so
    STRIP install-libavcodec-shared
    skipping strip /usr/lib/libavcodec.so.54.52.100
    INSTALL libpostproc/libpostproc.a
    INSTALL libpostproc/libpostproc.so
    STRIP install-libpostproc-shared
    skipping strip /usr/lib/libpostproc.so.52.0.100
    INSTALL libswresample/libswresample.a
    INSTALL libswresample/libswresample.so
    STRIP install-libswresample-shared
    skipping strip /usr/lib/libswresample.so.0.15.100
    INSTALL libswscale/libswscale.a
    INSTALL libswscale/libswscale.so
    STRIP install-libswscale-shared
    skipping strip /usr/lib/libswscale.so.2.1.101
    INSTALL libavutil/libavutil.a
    INSTALL libavutil/libavutil.so
    STRIP install-libavutil-shared
    skipping strip /usr/lib/libavutil.so.51.69.100
    INSTALL doc/ffmpeg.1
    INSTALL doc/ffprobe.1
    INSTALL doc/ffserver.1
    INSTALL install-progs-yes
    INSTALL ffmpeg
    INSTALL ffprobe
    INSTALL ffserver
    mkdir: cannot create directory `/usr/share/ffmpeg': No such file or directory
    make: *** Error 1

    **** Installation failed. Aborting package creation.

    Cleaning up...OK

    Bye.

     
  • eddiechen

    eddiechen - 2012-08-15

    i make install try again , is success .but i enter the : ffmpeg --help , last
    display :
    ffmpeg: relocation error: ffmpeg: symbol av_opt_child_class_next, version
    LIBAVUTIL_51 not defined in file libavutil.so.51 with link time reference

    help,help ,I feel dizzy ~.~

     
  • Sergio Garcia Murillo

    Hi Chengui,

    I beleive that you have the precompiled version of ffmpeg also instaled on
    your system, and the compiled version is loading the wrong library. Uninstall
    the precompiled version and make install again.

    BR
    Sergio

     

  • eddiechen

    eddiechen - 2012-08-16

    hello, i found i run svn muc , execution to the fourth step, not in the
    directory that make the command, the directory only two folders : branches
    trunk
    Who knows this mistake in fourth step

    root@ubuntu:/usr/local/src/mcu# ls
    branches trunk

    svn co https://mcumediaserver.svn.sourceforge.net/svnroot/mcumediaserver mcu

    4) Compile and install mcu:
    cd mcu
    make
    make install

    • Bernd Krumböck

      Bernd Krumböck - 2012-08-23

      Hi Chen!

      Please use "chmod 755 /etc/init.d/mediamixer" instead of "chmod 777
      /etc/init.d/mediamixer".

      @Sergio: Will this ever be fixed in your instructions?

      regards,
      Bernd

       

    • eddiechen

      eddiechen - 2012-08-23

      Thank you for your help
      But I still don't have the success of the installation
      I see three installation manual, I want to know the final success can be
      installed installation manual, ask ace to send a link or have installed a
      installation records, thank you

      now, i accordance with the manual installation to MCU, error, I have not found
      and any of the MCU this file. Thank you!

      library-inclusion-in-archive:

      BUILD FAILED
      /usr/local/src/mcu/trunk/mcuWeb/nbproject/build-impl.xml:645: Warning: Could
      not find file
      /usr/local/src/mcu/trunk/XmlRpcMcuClient/dist/XmlRpcMcuClient.jar to copy.

      Total time: 2 seconds

       
     
done Bytes transferred = 185741312 (b123000 hex) => mmc part Partition Map for MMC device 0 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00004000 0x00005fff "uboot" attrs: 0x0000000000000000 type: f4330000-0000-4040-8000-11ed00007455 guid: d5740000-0000-462a-8000-623000000e5b 2 0x00006000 0x00007fff "misc" attrs: 0x0000000000000000 type: 66200000-0000-4b31-8000-194200005b36 guid: 75100000-0000-4b25-8000-2511000062e2 3 0x00008000 0x00027fff "boot" attrs: 0x0000000000000000 type: 0f290000-0000-4363-8000-46c900007e9d guid: 7a3f0000-0000-446a-8000-702f00006273 4 0x00028000 0x00067fff "recovery" attrs: 0x0000000000000000 type: 56070000-0000-4f68-8000-4de900007a72 guid: 5e5d0000-0000-4d48-8000-65ea00005746 5 0x00068000 0x00077fff "backup" attrs: 0x0000000000000000 type: a5240000-0000-4746-8000-16090000629d guid: 77670000-0000-4a7d-8000-33b300001df3 6 0x00078000 0x00c77fff "rootfs" attrs: 0x0000000000000000 type: 631f0000-0000-4377-8000-3e9300003f06 guid: 614e0000-0000-4b53-8000-1d28000054a9 7 0x00c78000 0x00cb7fff "oem" attrs: 0x0000000000000000 type: f74e0000-0000-4b69-8000-16ee00000a95 guid: fb5d0000-0000-4432-8000-7b02000047cc 8 0x00cb8000 0x03a3ffde "userdata" attrs: 0x0000000000000000 type: cb360000-0000-477f-8000-228200003233 guid: 35590000-0000-4176-8000-7f5a000008c7 => Partition Map for MMC device 0 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00004000 0x00005fff "uboot" attrs: 0x0000000000000000 type: f4330000-0000-4040-8000-11ed00007455 guid: d5740000-0000-462a-8000-623000000e5b 2 0x00006000 0x00007fff "misc" attrs: 0x0000000000000000 type: 66200000-0000-4b31-8000-194200005b36 guid: 75100000-0000-4b25-8000-2511000062e2 3 0x00008000 0x00027fff "boot" attrs: 0x0000000000000000 type: 0f290000-0000-4363-8000-46c900007e9d guid: 7a3f0000-0000-446a-8000-702f00006273 4 0x00028000 0x00067fff "recovery" attrs: 0x0000000000000000 type: 56070000-0000-4f68-8000-4de900007a72 guid: 5e5d0000-0000-4d48-8000-65ea00005746 5 0x00068000 0x00077fff "backup" attrs: 0x0000000000000000 type: a5240000-0000-4746-8000-16090000629d guid: 77670000-0000-4a7d-8000-33b300001df3 6 0x00078000 0x00c77fff "rootfs" attrs: 0x0000000000000000 type: 631f0000-0000-4377-8000-3e9300003f06 guid: 614e0000-0000-4b53-8000-1d28000054a9 7 0x00c78000 0x00cb7fff "oem" attrs: 0x0000000000000000 type: f74e0000-0000-4b69-8000-16ee00000a95 guid: fb5d0000-0000-4432-8000-7b02000047cc 8 0x00cb8000 0x03a3ffde "userdata" attrs: 0x0000000000000000 type: cb360000-0000-477f-8000-228200003233 guid: 35590000-0000-4176-8000-7f5a000008c7 => Partition Map for MMC device 0 -- Partition Type: EFI Part Start LBA End LBA Name Attributes Type GUID Partition GUID 1 0x00004000 0x00005fff "uboot" attrs: 0x0000000000000000 type: f4330000-0000-4040-8000-11ed00007455 guid: d5740000-0000-462a-8000-623000000e5b 2 0x00006000 0x00007fff "misc" attrs: 0x0000000000000000 type: 66200000-0000-4b31-8000-194200005b36 guid: 75100000-0000-4b25-8000-2511000062e2 3 0x00008000 0x00027fff "boot" attrs: 0x0000000000000000 type: 0f290000-0000-4363-8000-46c900007e9d guid: 7a3f0000-0000-446a-8000-702f00006273 4 0x00028000 0x00067fff "recovery" attrs: 0x0000000000000000 type: 56070000-0000-4f68-8000-4de900007a72 guid: 5e5d0000-0000-4d48-8000-65ea00005746 5 0x00068000 0x00077fff "backup" attrs: 0x0000000000000000 type: a5240000-0000-4746-8000-16090000629d guid: 77670000-0000-4a7d-8000-33b300001df3 6 0x00078000 0x00c77fff "rootfs" attrs: 0x0000000000000000 type: 631f0000-0000-4377-8000-3e9300003f06 guid: 614e0000-0000-4b53-8000-1d28000054a9 7 0x00c78000 0x00cb7fff "oem" attrs: 0x0000000000000000 type: f74e0000-0000-4b69-8000-16ee00000a95 guid: fb5d0000-0000-4432-8000-7b02000047cc 8 0x00cb8000 0x03a3ffde "userdata" attrs: 0x0000000000000000 type: cb360000-0000-477f-8000-228200003233 guid: 35590000-0000-4176-8000-7f5a000008c7 => mmc erase 6 409600 MMC erase: dev # 0, block # 6, count 4232704 ... 4232704 blocks erased: OK => mmc write ${ramdisk_addr_r} 6 362777 MMC write: dev # 0, block # 6, count 3549047 ... mmc write failed mmc write failed 0 blocks written: ERROR
最新发布
11-24
<think> 首先,理解用户的问题。用户在尝试解决MMC设备写入失败的问题。MMC设备是EFI分区类型,用户执行了写入操作:将内存地址 `${ramdisk_addr_r}` 的数据写入设备0的第6块,写入数量为3549047块。在此之前,用户执行了擦除操作:擦除设备0的第6块,数量为4232704块。写入失败,用户需要解决方案。 从引用中,我有关于MMC命令的信息: - `mmc write addr blk# cnt`:将内存中的数据写入MMC。`addr` 是内存地址,`blk#` 是MMC的块偏移(以块为单位),`cnt` 是写入的块数。 - `mmc erase blk# cnt`:擦除MMC的指定块。 - 块大小通常是512字节,如引用[2]和[3]所示。 用户的具体操作: - 擦除:`mmc erase 6 4232704`(设备0的第6块开始,4232704块) - 写入:`mmc write ${ramdisk_addr_r} 6 3549047`(设备0的第6块开始,3549047块) 但写入失败。失败的原因可能与EFI分区类型相关,因为MMC设备是EFI分区类型。 EFI分区类型通常用于UEFI系统,分区格式是FAT或类似的文件系统。直接写入块设备可能会破坏文件系统结构,导致写入失败。 从引用[1]中,有一个例子:写入MMC的0位置(分区表)后,uboot检测不到分区了,因为写入了乱数据。这表明直接写入块设备可能会破坏分区表或文件系统。 现在,分析用户的操作: - 用户擦除了从块6开始的4232704块。 - 然后尝试写入3549047块到相同位置。 可能的写入失败原因: 1. **分区边界问题**:EFI分区可能没有足够的空间来容纳写入的数据。擦除操作覆盖了4232704块,但写入只有3549047块,这看起来写入量小于擦除量,但用户指定了起始块6。需要确认EFI分区的实际大小和起始位置是否匹配。 2. **文件系统问题**:EFI分区通常是FAT32格式。直接使用`mmc write`写入块设备而不是文件系统级别可能会导致文件系统损坏或写入失败,因为文件系统有元数据(如FAT表、目录结构)。 3. **权限或保护**:EFI分区可能有写保护或需要特定权限。 4. **大小不匹配**:写入块数3549047可能超出分区的大小。擦除操作指定了4232704块,但写入是3549047块,这小于擦除量,所以空间问题可能不是直接原因,但分区大小可能不足。 5. **块大小不匹配**:块大小通常是512字节,但用户的数据大小(从内存地址)必须与块大小对齐。 6. **设备状态**:MMC设备可能处于错误状态,或者需要重新初始化。 从用户的描述,设备0是MMC设备,用户使用了`mmc dev 0`来切换到它。 解决方案步骤: 1. **验证分区信息**:使用命令如`mmc part`或`fdisk`来查看设备0的分区表。确认EFI分区的起始块和大小。用户指定起始块为6,但EFI分区的实际起始块可能不是6。 2. **检查文件系统**:既然分区是EFI类型,应该使用文件系统命令来写入数据,而不是原始块写入。例如,在U-Boot中,可以使用`fatwrite`或`ext4write`命令来写入文件到FAT分区。 3. **确认数据大小**:写入块数为3549047,块大小512字节,总数据大小约为1.78GB(因为3549047 * 512 / 1024^2 ≈ 1.78GB)。擦除操作指定4232704块,约2.16GB。所以写入量小于擦除量,但需要确保分区大小足够。 4. **使用文件系统命令**:建议使用`fatwrite`命令来写入数据,因为它会处理文件系统结构。命令格式如`fatwrite mmc 0:1 ${ramdisk_addr_r} filename ${filesize}`,其中`mmc 0:1`表示设备0分区1。 5. **重新初始化设备**:如果设备有问题,尝试重新初始化MMC设备:`mmc rescan`或`mmc dev 0`。 6. **错误消息**:用户没有提供具体的错误消息,但如果有,它可能给出线索。例如,写入失败可能有“write error”或“invalid block”等。 从引用[3],`mmc info` 可以显示设备信息,如容量。设备0的容量是58.3 GiB,约62500 MB,块大小512字节,所以总块数 = 58.3 * 1024 * 1024 * 1024 / 512 ≈ 122,683,392 块(计算:58.3 * 2^30 / 512 = 58.3 * 2097152 ≈ 122,683,392)。擦除4232704块约2.16GB,写入3549047块约1.78GB,都在设备容量范围内,但分区大小可能更小。 关键点:EFI分区的大小可能小于擦除/写入的范围。用户指定起始块6,但EFI分区的起始块可能不是6。例如,分区表可能从块0开始,EFI分区从块2048开始(常见于MBR或GPT)。 建议: - 使用`mmc part`来打印分区表,确认EFI分区的起始块和大小。 - 然后,确保写入操作在分区范围内。 - 由于是EFI分区,使用文件系统写入命令。 在U-Boot中,文件系统支持: - 对于FAT分区,使用`fatload`、`fatsave`或`fatwrite`。 - 命令如`fatwrite interface dev:part addr filename size`。 例如: ``` fatwrite mmc 0:6 ${ramdisk_addr_r} ramdisk.img ${filesize} ``` 但用户没有指定文件名,数据是从内存地址写入原始块。既然分区是文件系统类型,写入文件更合适。 如果用户确实需要写入原始块,可能是用于低级操作如写入kernel或initramfs,但EFI分区通常存储文件。 写入失败的可能原因:起始块6可能无效,因为分区可能从更高块号开始。 步骤总结: 1. 检查分区表:`mmc part` 2. 确认EFI分区的起始块和大小。 3. 如果使用块写入,确保起始块和块数在分区边界内。 4. 使用文件系统命令写入文件。 如果用户坚持使用块写入,确保没有写保护,设备正常。 生成相关问题: - 如何检查MMC设备的分区表? - 什么是正确的命令来写入文件到EFI分区? - 如何解决MMC写入错误? 回答结构: - 逐步解释原因和解决方案。 - 引用提供的引用。 </think> ### MMC设备EFI分区类型写入失败解决方案 您的MMC设备(设备0)是EFI分区类型,您在U-Boot环境下尝试执行写入操作时失败。操作细节如下: - **擦除操作**:擦除设备0的第6块起始的4232704块(`mmc erase 6 4232704`)。 - **写入操作**:将内存地址 `${ramdisk_addr_r}` 的数据写入设备0的第6块起始的3549047块(`mmc write ${ramdisk_addr_r} 6 3549047`)。 - 写入失败的原因很可能与EFI分区的特性和操作边界问题有关。EFI分区通常是FAT32文件系统格式,直接使用`mmc write`进行块级写入可能破坏文件系统元数据(如FAT表或目录结构),导致失败[^1]。此外,分区边界、块大小对齐或设备状态也可能导致问题。下面我将逐步解释原因并提供解决方案。 --- ### 失败原因分析 1. **EFI分区特性问题**: - EFI分区(如FAT32)需要文件系统级别的操作,而非直接块写入。直接使用`mmc write`会绕过文件系统管理层,可能导致元数据损坏或写入冲突[^1][^2]。 - 您的写入起始块为6,但EFI分区的实际起始块可能不是6(常见起始块是2048或更高,取决于分区表),这会导致写入位置无效。 2. **分区边界不匹配**: - 擦除操作指定4232704块(约2.16 GB),写入操作指定3549047块(约1.78 GB),但需要验证EFI分区的实际大小是否足够容纳写入数据。 - 块大小默认为512字节(如`mmc info`所示)[^2][^3],但EFI分区大小可能小于擦除范围。例如: - 如果EFI分区实际大小小于1.78 GB,写入会失败。 - 起始块6可能不在EFI分区内(分区表通常占用前几个块)。 3. **操作顺序和设备状态**: - 擦除操作后立即写入是合理的,但大范围擦除(4232704块)可能导致设备临时锁死或需要重新初始化。 - MMC设备可能有写保护或错误状态(如使用`mmc info`检查时显示的“Erase Group Size”或“HC WP Group Size”)[^3]。 4. **数据对齐问题**: - 内存地址 `${ramdisk_addr_r}` 的数据必须与512字节块大小对齐。如果数据大小不是512字节的整数倍,写入会失败。 --- ### 解决方案步骤 #### 步骤1: 验证分区信息和设备状态 在U-Boot中运行以下命令,确认设备0的分表表和EFI分区细节: ```bash # 切换到设备0 mmc dev 0 # 查看分区表(确认EFI分区的起始块和大小) mmc part # 检查设备信息(包括容量、块大小和状态) mmc info ``` - **预期输出**:`mmc part` 会显示分区列表,例如: ``` Partition Map for MMC device 0 -- Partition Type: EFI Part Start Block Num Blocks Partition Type 1 2048 4096000 EFI System ``` 这里,EFI分区的起始块可能是2048(不是6),大小4096000块(约2 GB)。确保您的写入起始块(6)和大小(3549047块)在分区范围内[^3]。 - **如果分区表损坏**:您之前的擦除操作可能破坏了分区表(如引用[1]的例子)。使用`mmc write`恢复分区表或重新分区。 #### 步骤2: 使用文件系统命令写入数据(推荐) 既然EFI分区是文件系统类型(FAT32),避免直接块写入。改用U-Boot的文件系统命令: ```bash # 确保文件系统支持已启用(在U-Boot配置中) # 使用 fatwrite 写入文件 fatwrite mmc 0:1 ${ramdisk_addr_r} ramdisk.img ${filesize} ``` - **参数说明**: - `mmc 0:1`:设备0的分区1(根据`mmc part`输出调整分区号,如`0:1`表示第一个分区)。 - `${ramdisk_addr_r}`:源内存地址。 - `ramdisk.img`:目标文件名(根据实际内容命名)。 - `${filesize}`:自动获取数据大小变量(需提前设置,如通过`setenv filesize 0x...`)。 - **优点**:`fatwrite` 会处理文件系统元数据,避免破坏EFI分区结构[^2]。 #### 步骤3: 如果必须使用块写入,确保边界对齐 如果低级块写入是必要的(例如写入原始镜像),请: 1. 确认起始块正确: - 从`mmc part`获取EFI分区的实际起始块(例如2048)。 - 重新运行写入命令,例如: ```bash mmc write ${ramdisk_addr_r} 2048 3549047 ``` 确保起始块和块数在分区范围内。 2. 检查数据对齐: - 数据大小必须是512字节的整数倍。使用`printenv`检查 `${ramdisk_addr_r}` 的数据大小: ```bash # 设置 filesize 变量(例如数据大小是181,752,064字节) setenv filesize 0xAD7C000 # 验证块数:filesize / 512 = 3549047(需整除) ``` 如果大小不匹配,调整数据源或块数。 3. 擦除后重新初始化设备: ```bash # 重新扫描MMC设备 mmc rescan # 重新选择设备 mmc dev 0 ``` #### 步骤4: 处理设备错误 - **写保护检查**:运行`mmc info`,查看“HC WP Group Size”项。如果写保护启用,尝试禁用或使用`mmc partconf`调整分区配置。 - **错误日志**:如果U-Boot输出错误消息(如“write error”),分享具体消息以进一步诊断。 #### 通用建议 - **备份分区表**:操作前备份分区表(例如使用`mmc read`读取块0到内存)。 - **测试小范围写入**:先写入小数据块(例如`mmc write ${ramdisk_addr_r} 2048 10`)验证功能。 - **数据验证**:写入后使用`mmc read`读取回数据比较。 如果以上步骤无效,请提供U-Boot的错误输出或`mmc info`/`mmc part`的完整输出,以便更精准诊断。 --- ### 相关问题 1. 如何检查MMC设备的分区表并确认EFI分区的起始块? 2. 在U-Boot中,如何正确使用`fatwrite`命令写入文件到EFI分区? 3. MMC擦除操作后设备无响应,如何重新初始化和恢复? 4. 如何解决MMC块写入时的“write error”或“invalid block”错误? 5. EFI分区的文件系统(FAT32)在U-Boot中如何进行格式化和修复? [^1]: 引用[1]提到`mmc write`直接写入块设备可能破坏分区表或文件系统,尤其是在元数据区域。 [^2]: 引用[2]强调MMC操作以512字节块为单位,但文件系统命令更安全。 [^3]: 引用[3]显示`mmc info`可获取设备容量和块大小,用于验证写入范围。
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值