Recherche avancée

Médias (0)

Mot : - Tags -/alertes

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (99)

  • MediaSPIP 0.1 Beta version

    25 avril 2011, par

    MediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
    The zip file provided here only contains the sources of MediaSPIP in its standalone version.
    To get a working installation, you must manually install all-software dependencies on the server.
    If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (11751)

  • concat string within ffmpeg subprocess check_call

    6 juillet 2012, par knishua

    need to replace filename in subprocess command i.e. filename

    filename = '\'D\:/imagesequence/thumbnail.jpg\''


    task = '\"movie= ' + filename + '[watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]\"'

    c = subprocess.check_call(["ffmpeg", "-i", "D :/imagesequence/background222.jpg", "-vf", task, "D :/imagesequence/fwtm108.jpg"],shell=True)

    this gives error

    # Error: CalledProcessError: Command '['ffmpeg', '-i', 'D:/imagesequence/background222.jpg', '-vf', '"movie= \'D\\:/imagesequence/thumbnail.jpg\'[watermark];[in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]"', 'D:/imagesequence/fwtm107.jpg']' returned non-zero exit status 1 #

    when put altogether it works well

    c = subprocess.check_call(["ffmpeg", "-i", "D:/imagesequence/background222.jpg", "-vf", "movie= 'D\:/imagesequence/thumbnail.jpg'[watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]", "D:/imagesequence/fwtm101.jpg"],shell=True)

    even this works

    task = "movie= 'D\:/imagesequence/thumbnail.jpg'[watermark]; [in][watermark] overlay=(main_w-overlay_w)/2:(main_h-overlay_h)/3 [out]"

    c = subprocess.check_call(["ffmpeg", "-i", "D:/imagesequence/background222.jpg", "-vf", task, "D:/imagesequence/fwtm102.jpg"],shell=True)

    any different view. I am not able to see it.

  • Trying to redirect binary stdout of ffmpeg to NeroAacEnc stdin

    2 mai 2017, par Ben

    I am trying to write a program in C# 2010 that converts mp3 files to an audio book in m4a format via ffmpeg.exe and NeroAACenc.exe.
    For doing so I redirect stdout of ffmpeg to stdin of the Nero encoder within my application using the build in Diagnostics.Process class.

    Everything seems to work as expected but for some reason StandardOutput.BaseStream
    of ffmpeg stops receiving data at some time. The process does not exit and the ErrorDataReceived event is also not getting raised.
    The produced output m4a file has always a length of 2 minutes. The same applies if I just encode the mp3 file to a temp wav file without feeding Nero.

    I tried the same via the command line and this works without any problem.

    ffmpeg -i test.mp3 -f wav - | neroAacEnc -ignorelength -if - -of test.m4a

    Can anyone please tell me what I am doing wrong here ?
    Thanks in advance.

    class Encoder
    {
       private byte[] ReadBuffer = new byte[4096];
       private Process ffMpegDecoder = new Process();
       private Process NeroEncoder = new Process();
       private BinaryWriter NeroInput;

       //Create WAV temp file for testing
       private Stream s = new FileStream("D:\\test\\test.wav", FileMode.Create);
       private BinaryWriter outfile;

       public void Encode()
       {
           ProcessStartInfo ffMpegPSI = new ProcessStartInfo("ffmpeg.exe", "-i D:\\test\\test.mp3 -f wav -");
           ffMpegPSI.UseShellExecute = false;
           ffMpegPSI.CreateNoWindow = true;
           ffMpegPSI.RedirectStandardOutput = true;
           ffMpegPSI.RedirectStandardError = true;
           ffMpegDecoder.StartInfo = ffMpegPSI;

           ProcessStartInfo NeroPSI = new ProcessStartInfo("neroAacEnc.exe", "-if - -ignorelength -of D:\\test\\test.m4a");
           NeroPSI.UseShellExecute = false;
           NeroPSI.CreateNoWindow = true;
           NeroPSI.RedirectStandardInput = true;
           NeroPSI.RedirectStandardError = true;
           NeroEncoder.StartInfo = NeroPSI;

           ffMpegDecoder.Exited += new EventHandler(ffMpegDecoder_Exited);
           ffMpegDecoder.ErrorDataReceived += new DataReceivedEventHandler(ffMpegDecoder_ErrorDataReceived);
           ffMpegDecoder.Start();

           NeroEncoder.Start();
           NeroInput = new BinaryWriter(NeroEncoder.StandardInput.BaseStream);

           outfile = new BinaryWriter(s);

           ffMpegDecoder.StandardOutput.BaseStream.BeginRead(ReadBuffer, 0, ReadBuffer.Length, new AsyncCallback(ReadCallBack), null);

       }

       private void ReadCallBack(IAsyncResult asyncResult)
       {
           int read = ffMpegDecoder.StandardOutput.BaseStream.EndRead(asyncResult);
           if (read > 0)
           {

               NeroInput.Write(ReadBuffer);
               NeroInput.Flush();

               outfile.Write(ReadBuffer);
               outfile.Flush();

               ffMpegDecoder.StandardOutput.BaseStream.Flush();

               ffMpegDecoder.StandardOutput.BaseStream.BeginRead(ReadBuffer, 0, ReadBuffer.Length, new AsyncCallback(ReadCallBack), null);
           }
           else
           {
               ffMpegDecoder.StandardOutput.BaseStream.Close();
               outfile.Close();
           }

       }

       private void ffMpegDecoder_Exited(object sender, System.EventArgs e)
       {
           Console.WriteLine("Exit");
       }

       private void ffMpegDecoder_ErrorDataReceived(object sender, DataReceivedEventArgs errLine)
       {
           Console.WriteLine("Error");
       }

    }
  • Compile OpenCV on Mac with FFMPEG instead of Quicktime

    1er juin 2012, par Adam

    I'm developing some code that will run on Linux with OpenCV and FFMPEG. I would like to use my Mac to develop this code and I need the FFMPEG functionality on the Mac.

    I've been able to run configure like this :

    ./configure --without-quicktime --with-ffmpeg --without-python --disable-apps CPPFLAGS=-I/opt/local/include LDFLAGS="-L/opt/local/lib -L/usr/local/share -L/usr/local/lib"

    but when I run make I get this error :

    Extracting /Users/adamb/opencv/trunk/opencv/src/./.libs/lib_cxcore.a
    (cd .libs/libcxcore.lax/lib_cxcore.a && ar x /Users/adamb/opencv/trunk/opencv/src/./.libs/lib_cxcore.a)
    g++ -dynamiclib -single_module  -o .libs/libcxcore.2.dylib  .libs/dummy.o  .libs/libcxcore.lax/lib_cxcore.a/cxalloc.o .libs/libcxcore.lax/lib_cxcore.a/cxarithm.o .libs/libcxcore.lax/lib_cxcore.a/cxarray.o .libs/libcxcore.lax/lib_cxcore.a/cxcmp.o .libs/libcxcore.lax/lib_cxcore.a/cxconvert.o .libs/libcxcore.lax/lib_cxcore.a/cxcopy.o .libs/libcxcore.lax/lib_cxcore.a/cxdatastructs.o .libs/libcxcore.lax/lib_cxcore.a/cxdrawing.o .libs/libcxcore.lax/lib_cxcore.a/cxdxt.o .libs/libcxcore.lax/lib_cxcore.a/cxerror.o .libs/libcxcore.lax/lib_cxcore.a/cximage.o .libs/libcxcore.lax/lib_cxcore.a/cxlapack.o .libs/libcxcore.lax/lib_cxcore.a/cxlogic.o .libs/libcxcore.lax/lib_cxcore.a/cxlut.o .libs/libcxcore.lax/lib_cxcore.a/cxmathfuncs.o .libs/libcxcore.lax/lib_cxcore.a/cxmatmul.o .libs/libcxcore.lax/lib_cxcore.a/cxmatrix.o .libs/libcxcore.lax/lib_cxcore.a/cxmean.o .libs/libcxcore.lax/lib_cxcore.a/cxmeansdv.o .libs/libcxcore.lax/lib_cxcore.a/cxminmaxloc.o .libs/libcxcore.lax/lib_cxcore.a/cxnorm.o .libs/libcxcore.lax/lib_cxcore.a/cxouttext.o .libs/libcxcore.lax/lib_cxcore.a/cxpersistence.o .libs/libcxcore.lax/lib_cxcore.a/cxrand.o .libs/libcxcore.lax/lib_cxcore.a/cxsumpixels.o .libs/libcxcore.lax/lib_cxcore.a/cxsvd.o .libs/libcxcore.lax/lib_cxcore.a/cxswitcher.o .libs/libcxcore.lax/lib_cxcore.a/cxtables.o .libs/libcxcore.lax/lib_cxcore.a/cxutils.o   -L/opt/local/lib -L/usr/local/share -L/usr/local/lib -lavformat -lavcodec -lpthread -ldl -lm  -march=prescott -msse -install_name  /usr/local/lib/libcxcore.2.dylib -Wl,-compatibility_version -Wl,3 -Wl,-current_version -Wl,3.0
        Undefined symbols :
          "_dgesdd_", referenced from :
          _cvSVD in cxsvd.o
          _cvSVD in cxsvd.o
      "_sgelsd_", referenced from :
          _cvSolve in cxlapack.o
          _cvSolve in cxlapack.o
      "_ssyevr_", referenced from :
          _cvEigenVV in cxlapack.o
          _cvEigenVV in cxlapack.o
      "_dgetrf_", referenced from :
          _cvDet in cxlapack.o
          _cvInvert in cxlapack.o
      "_dgetri_", referenced from :
          _cvInvert in cxlapack.o
          _cvInvert in cxlapack.o
      "_sgesdd_", referenced from :
          _cvSVD in cxsvd.o
          _cvSVD in cxsvd.o
      "_dgels_", referenced from :
          _cvSolve in cxlapack.o
          _cvSolve in cxlapack.o
      "_dgesv_", referenced from :
          _cvSolve in cxlapack.o
      "_sgetrf_", referenced from :
          _cvDet in cxlapack.o
          _cvInvert in cxlapack.o
      "_sgetri_", referenced from :
          _cvInvert in cxlapack.o
          _cvInvert in cxlapack.o
      "_dpotrf_", referenced from :
          _cvInvert in cxlapack.o
          _cvSolve in cxlapack.o
      "_dpotri_", referenced from :
          _cvInvert in cxlapack.o
      "_dpotrs_", referenced from :
          _cvSolve in cxlapack.o
      "_sgels_", referenced from :
          _cvSolve in cxlapack.o
          _cvSolve in cxlapack.o
      "_spotrf_", referenced from :
          _cvInvert in cxlapack.o
          _cvSolve in cxlapack.o
      "_spotri_", referenced from :
          _cvInvert in cxlapack.o
      "_sgesv_", referenced from :
          _cvSolve in cxlapack.o
      "_spotrs_", referenced from :
          _cvSolve in cxlapack.o
      "_dgelsd_", referenced from :
          _cvSolve in cxlapack.o
          _cvSolve in cxlapack.o
      "_dsyevr_", referenced from :
          _cvEigenVV in cxlapack.o
          _cvEigenVV in cxlapack.o
    ld : symbol(s) not found
    collect2 : ld returned 1 exit status
    make[2] : *** [libcxcore.la] Error 1
    make[1] : *** [all-recursive] Error 1
    make : *** [all] Error 2
    

    I tried using a newer version of OpenCV, 1.1pre1 and I get a similar error but with different symbols. I'm using the same ./configure as above.

    Extracting /Users/adamb/Downloads/opencv-1.1.0/otherlibs/highgui/./.libs/lib_highgui.a
    (cd .libs/libhighgui.lax/lib_highgui.a && ar x /Users/adamb/Downloads/opencv-1.1.0/otherlibs/highgui/./.libs/lib_highgui.a)
    g++ -dynamiclib  -o .libs/libhighgui.2.0.0.dylib  .libs/dummy.o  .libs/libhighgui.lax/lib_highgui.a/bitstrm.o .libs/libhighgui.lax/lib_highgui.a/cvcap.o .libs/libhighgui.lax/lib_highgui.a/cvcap_ffmpeg.o .libs/libhighgui.lax/lib_highgui.a/cvcap_images.o .libs/libhighgui.lax/lib_highgui.a/grfmt_base.o .libs/libhighgui.lax/lib_highgui.a/grfmt_bmp.o .libs/libhighgui.lax/lib_highgui.a/grfmt_exr.o .libs/libhighgui.lax/lib_highgui.a/grfmt_imageio.o .libs/libhighgui.lax/lib_highgui.a/grfmt_jpeg.o .libs/libhighgui.lax/lib_highgui.a/grfmt_jpeg2000.o .libs/libhighgui.lax/lib_highgui.a/grfmt_png.o .libs/libhighgui.lax/lib_highgui.a/grfmt_pxm.o .libs/libhighgui.lax/lib_highgui.a/grfmt_sunras.o .libs/libhighgui.lax/lib_highgui.a/grfmt_tiff.o .libs/libhighgui.lax/lib_highgui.a/image.o .libs/libhighgui.lax/lib_highgui.a/loadsave.o .libs/libhighgui.lax/lib_highgui.a/precomp.o .libs/libhighgui.lax/lib_highgui.a/utils.o .libs/libhighgui.lax/lib_highgui.a/window.o .libs/libhighgui.lax/lib_highgui.a/window_carbon.o   -L/opt/local/lib -L/usr/local/share -L/usr/local/lib ../../cxcore/src/.libs/libcxcore.dylib /opt/local/lib/libavformat.dylib /opt/local/lib/libavcodec.dylib ../../cv/src/.libs/libcv.dylib /Users/adamb/Downloads/opencv-1.1.0/cxcore/src/.libs/libcxcore.dylib /opt/local/lib/libjasper.dylib /opt/local/lib/libjpeg.dylib -lavformat -lavcodec -lpthread -ldl -lm  -march=prescott -msse2 -framework ApplicationServices -Wl,-framework -Wl,Carbon -install_name  /usr/local/lib/libhighgui.2.dylib -compatibility_version 3 -current_version 3.0 -Wl,-single_module
    Undefined symbols :
      "_av_rescale_q", referenced from :
          icv_av_write_frame_FFMPEG(AVFormatContext*, AVStream*, unsigned char*, unsigned int, AVFrame*)in cvcap_ffmpeg.o
      "_img_convert", referenced from :
          CvCapture_FFMPEG::retrieveFrame()       in cvcap_ffmpeg.o
          CvVideoWriter_FFMPEG::writeFrame(_IplImage const*)  in cvcap_ffmpeg.o
      "_av_free", referenced from :
          icv_alloc_picture_FFMPEG(int, int, int, bool)in cvcap_ffmpeg.o
          CvVideoWriter_FFMPEG::close()      in cvcap_ffmpeg.o
          CvVideoWriter_FFMPEG::close()      in cvcap_ffmpeg.o
          CvVideoWriter_FFMPEG::close()      in cvcap_ffmpeg.o
          CvVideoWriter_FFMPEG::close()      in cvcap_ffmpeg.o
          CvCapture_FFMPEG::close()      in cvcap_ffmpeg.o
      "_av_freep", referenced from :
          CvVideoWriter_FFMPEG::close()      in cvcap_ffmpeg.o
          CvVideoWriter_FFMPEG::close()      in cvcap_ffmpeg.o
      "_av_malloc", referenced from :
          CvVideoWriter_FFMPEG::open(char const*, int, double, CvSize, bool)in cvcap_ffmpeg.o
      "_av_sub_q", referenced from :
          CvVideoWriter_FFMPEG::open(char const*, int, double, CvSize, bool)in cvcap_ffmpeg.o
    ld : symbol(s) not found

    If I add —enable-shared=no and OpenCV will compile, but then my programs won't run...

    Any suggestions as to how to get either of these to compile with the default —enable-shared ?