Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (45)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (7783)

  • Compiling FFmpeg staticly using NDK error - Not position independent executable

    27 février 2017, par David Barishev

    I have been trying to compile ffmpeg into a static library in order to use it in my android application, but i couldn’t get it to work.

    Im working with FFmpeg 3.2.4, and ndk r13b, using bash on windows 10(Ubuntu 14.04).

    Here is what i did :

    • I made a stand alone toolchain for x86_64 and api 21 using :
      python make_standalone_toolchain.py --api 21 --arch x86_64 --install-dir {}

    • Made a configuration script :

      ./configure \
      --target-os=android                                     \
      --arch=x86_64                                              \
      --prefix=/home/david/ffmpeg_x86_64_build                          \
      --cross-prefix=/home/david/x86_64_toolchain/bin/x86_64-linux-android-\
      --sysroot=/home/david/x86_64_toolchain/sysroot                    \
      --enable-cross-compile                                  \
      --pkg-config-flags="--static"                           \
      --enable-ffmpeg                                         \
      --disable-ffplay                                        \
      --disable-ffprobe                                       \
      --disable-ffserver                                      \
      --disable-doc                                           \
      --disable-htmlpages                                     \
      --disable-manpages                                      \
      --disable-podpages                                      \
      --disable-txtpages                                      \
      --extra-cflags="-fPIC"                                  \
      --extra-cxxflags="-fPIC"
      --disable-shared --enable-static \
      --enable-yasm

      make
      make install

    It produced an FFmpeg executable, however when i ran it on my API 23 emulator, i got an error message :error: only position independent executables (PIE) are supported.
    Even that i used -fPic

    How can i fix it ? Also i’m not sure about my configuration, there wasn’t up to date sources on how to compile it correctly for every ABI (arm,arm64,x86,x86_64,mips,mips64) that i need for my application.
    I have seen many script, and im not too familiar with compiling native code, so i wasn’t sure what settings i need, for example like C flags and etc.

    To be precise on how i tried to configure FFmpeg :

    • I need a static library
    • I Only need the ffmpeg command line utility
    • I want to compile the library for every ABI i listed above.This configuration tried to compile for x86_64.
    • Running on android of course

    I would greatly appreciate some help on how to configure and compile this correctly.

  • Compiling FFmpeg staticly using NDK error - Not position independent executables executable

    27 février 2017, par David Barishev

    I have been trying to compile ffmpeg into a static library in order to use it in my android application, but i couldn’t get it to work.

    Im working with FFmpeg 3.2.4, and ndk r13b, using bash on windows 10(Ubuntu 14.04).

    Here is what i did :

    • I made a stand alone toolchain for x86_64 and api 21 using :
      python make_standalone_toolchain.py --api 21 --arch x86_64 --install-dir {}

    • Made a configuration script :

      ./configure \
      --target-os=android                                     \
      --arch=x86_64                                              \
      --prefix=/home/david/ffmpeg_x86_64_build                          \
      --cross-prefix=/home/david/x86_64_toolchain/bin/x86_64-linux-android-\
      --sysroot=/home/david/x86_64_toolchain/sysroot                    \
      --enable-cross-compile                                  \
      --pkg-config-flags="--static"                           \
      --enable-ffmpeg                                         \
      --disable-ffplay                                        \
      --disable-ffprobe                                       \
      --disable-ffserver                                      \
      --disable-doc                                           \
      --disable-htmlpages                                     \
      --disable-manpages                                      \
      --disable-podpages                                      \
      --disable-txtpages                                      \
      --extra-cflags="-fPIC"                                  \
      --extra-cxxflags="-fPIC"
      --disable-shared --enable-static \
      --enable-yasm

      make
      make install

    It produced an FFmpeg executable, however when i ran it on my API 23 emulator, i got an error message :error: only position independent executables (PIE) are supported.
    Even that i used -fPic

    How can i fix it ? Also i’m not sure about my configuration, there wasn’t up to date sources on how to compile it correctly for every ABI (arm,arm64,x86,x86_64,mips,mips64) that i need for my application.
    I have seen many script, and im not too familiar with compiling native code, so i wasn’t sure what settings i need, for example like C flags and etc.

    To be precise on how i tried to configure FFmpeg :

    • I need a static library
    • I Only need the ffmpeg command line utility
    • I want to compile the library for every ABI i listed above.This configuration tried to compile for x86_64.
    • Running on android of course

    I would greatly appreciate some help on how to configure and compile this correctly.

  • Calling python script using a php script accessed by the browser

    16 novembre 2014, par lfalmeida

    I have a php script which will receives uploaded videos and I would like to convert these videos using ffmpeg.

    I created a python script that receives parameters from php and calls ffmpeg to do the conversion.

    index.php

    <?php

    $data = array('filePath' => 'video.mov');

    $result = shell_exec('/usr/bin/python /home/fernando/Workspace/lab1/public_html/converter.py ' . escapeshellarg(json_encode($data)));

    converter.py

    #!/usr/bin/env python

    import os, sys, json, subprocess, string, random

    class Converter():

    WORK_DIR = '/home/fernando/Workspace/lab1/public_html'
    DESTINATION_DIR = '/home/fernando/Workspace/lab1/public_html/videos/'
    NEW_AUDIO = 'audio.mp3'

    def __init__(self, data):
       try:
           os.chdir(self.WORK_DIR)
           self.arg = data
       except:
           print "ERROR"
           sys.exit(1)    


    def generateId():
       return ''.join(random.choice(string.ascii_uppercase + string.digits + string.ascii_lowercase ) for _ in range(12))      


    def convertVideo(self, type):

       convertedFileName = self.DESTINATION_DIR + self.generateId() + '.' + type

       typesDic = {
                   'mp4': ['/usr/bin/ffmpeg', '-loglevel', 'quiet', '-i', self.arg['filePath'], '-i', self.NEW_AUDIO, '-map', '0:0', '-map', '1', '-shortest', '-codec', 'copy', convertedFileName, '-y'],
                   'ogv': ['/usr/bin/ffmpeg', '-loglevel', 'quiet', '-i', self.arg['filePath'], '-i', self.NEW_AUDIO, '-map', '0:0', '-map', '1', '-shortest', '-vcodec', 'libtheora', '-acodec', 'libvorbis',  convertedFileName, '-y']
                  }

       sp = subprocess.Popen(typesDic[type], shell=True)

       out, err = sp.communicate()

       if err:
           return {'status': 'error'}

       return {'status': 'success', 'filename': convertedFileName}




    data = json.loads(sys.argv[1])

    c = Converter(data)
    print c.convertVideo('mp4')
    print c.convertVideo('ogv')

    These codes are working the way I need, but only if I call them
     via the command line.
    Ex : $ php index.php
    ou : $ ./converter.py '{"fileName": "video.avi"}'

    If I access via browser, which was my main intention, does not work.

    I wonder what is wrong ?
    You can do this via browser ?
    Would have a better approach ?

    edited :
    Output from apache error log

    Use -h to get full help or, even better, run 'man ffmpeg'

    ffmpeg version 1.2.6-7:1.2.6-1 trusty1 Copyright (c) 2000-2014 the FFmpeg developers
    built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
    configuration : —arch=amd64 —disable-stripping —enable-avresample —enable-pthreads —enable-runtime-cpudetect —extra-version=’7:1.2.6-1 trusty1’ —libdir=/usr/lib/x86_64-linux-gnu —prefix=/usr —enable-bzlib —enable-libdc1394 —enable-libfreetype —enable-frei0r —enable-gnutls —enable-libgsm —enable-libmp3lame —enable-librtmp —enable-libopencv —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-vaapi —enable-vdpau —enable-libvorbis —enable-libvpx —enable-zlib —enable-gpl —enable-postproc —enable-libcdio —enable-x11grab —enable-libx264 —shlibdir=/usr/lib/x86_64-linux-gnu —enable-shared —disable-static
    libavutil 52. 18.100 / 52. 18.100
    libavcodec 54. 92.100 / 54. 92.100
    libavformat 54. 63.104 / 54. 63.104
    libavdevice 53. 5.103 / 53. 5.103
    libavfilter 3. 42.103 / 3. 42.103
    libswscale 2. 2.100 / 2. 2.100
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 2.100 / 52. 2.100
    Hyper fast Audio and Video encoder
    usage : ffmpeg [options] [[infile options] -i infile]... [outfile options] outfile...

    Use -h to get full help or, even better, run ’man ffmpeg’
    ffmpeg version 1.2.6-7:1.2.6-1 trusty1 Copyright (c) 2000-2014 the FFmpeg developers
    built on Apr 26 2014 18:52:58 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
    configuration : —arch=amd64 —disable-stripping —enable-avresample —enable-pthreads —enable-runtime-cpudetect —extra-version=’7:1.2.6-1 trusty1’ —libdir=/usr/lib/x86_64-linux-gnu —prefix=/usr —enable-bzlib —enable-libdc1394 —enable-libfreetype —enable-frei0r —enable-gnutls —enable-libgsm —enable-libmp3lame —enable-librtmp —enable-libopencv —enable-libopenjpeg —enable-libopus —enable-libpulse —enable-libschroedinger —enable-libspeex —enable-libtheora —enable-vaapi —enable-vdpau —enable-libvorbis —enable-libvpx —enable-zlib —enable-gpl —enable-postproc —enable-libcdio —enable-x11grab —enable-libx264 —shlibdir=/usr/lib/x86_64-linux-gnu —enable-shared —disable-static
    libavutil 52. 18.100 / 52. 18.100
    libavcodec 54. 92.100 / 54. 92.100
    libavformat 54. 63.104 / 54. 63.104
    libavdevice 53. 5.103 / 53. 5.103
    libavfilter 3. 42.103 / 3. 42.103
    libswscale 2. 2.100 / 2. 2.100
    libswresample 0. 17.102 / 0. 17.102
    libpostproc 52. 2.100 / 52. 2.100
    Hyper fast Audio and Video encoder
    usage : ffmpeg [options] [[infile options] -i infile]... [outfile options] outfile...

    Use -h to get full help or, even better, run ’man ffmpeg’