Recherche avancée

Médias (91)

Autres articles (26)

  • Création définitive du canal

    12 mars 2010, par

    Lorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
    A la validation, vous recevez un email vous invitant donc à créer votre canal.
    Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
    A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • Taille des images et des logos définissables

    9 février 2011, par

    Dans beaucoup d’endroits du site, logos et images sont redimensionnées pour correspondre aux emplacements définis par les thèmes. L’ensemble des ces tailles pouvant changer d’un thème à un autre peuvent être définies directement dans le thème et éviter ainsi à l’utilisateur de devoir les configurer manuellement après avoir changé l’apparence de son site.
    Ces tailles d’images sont également disponibles dans la configuration spécifique de MediaSPIP Core. La taille maximale du logo du site en pixels, on permet (...)

Sur d’autres sites (4451)

  • FFMPEG preset is not found ? Linux Cent OS 6

    25 août 2012, par Darius

    I ran this command

    ffmpeg -i v-16418145218d8d7abdaabec46beb22ecffd2f5d1625.flv -y -acodec aac -ac 2 -ab 160k -vcodec libx264 -vpre iPod640 -vpre slow -f mp4 -threads 0 OUTPUT.mp4

    Got this response :

    [flv @ 0x10ff670]Estimating duration from bitrate, this may be inaccurate

    Seems stream 0 codec frame rate differs from container frame rate: 1000.00 (1000/1) -> 25.00 (25/1)
    Input #0, flv, from 'v-16418145218d8d7abdaabec46beb22ecffd2f5d1625.flv':
     Metadata:
       duration        : 14
       width           : 320
       height          : 240
       videodatarate   : 500
       framerate       : 25
       videocodecid    : 2
       audiodatarate   : 0
       audiosamplerate : 22050
       audiosamplesize : 16
       stereo          : true
       audiocodecid    : 2
       filesize        : 912970
     Duration: 00:00:13.92, start: 0.000000, bitrate: 576 kb/s
       Stream #0.0: Video: flv, yuv420p, 320x240, 512 kb/s, 25 tbr, 1k tbn, 1k tbc
       Stream #0.1: Audio: mp3, 22050 Hz, 2 channels, s16, 64 kb/s
    File for preset 'iPod640' not found

    But after doing a find, this is what I found.

    /usr/share/ffmpeg/libx264-ipod320.ffpreset
    /usr/share/ffmpeg/libx264-ipod640.ffpreset **** ITS HERE ******
    /usr/share/ffmpeg/libx264-lossless_fast.ffpreset
    /usr/share/ffmpeg/libx264-lossless_max.ffpreset
    /usr/share/ffmpeg/libx264-lossless_medium.ffpreset
    /usr/share/ffmpeg/libx264-lossless_slow.ffpreset
    /usr/share/ffmpeg/libx264-lossless_slower.ffpreset
    /usr/share/ffmpeg/libx264-lossless_ultrafast.ffpreset
    /usr/share/ffmpeg/libx264-main.ffpreset
    /usr/share/ffmpeg/libx264-max.ffpreset
    /usr/share/ffmpeg/libx264-medium.ffpreset
    /usr/share/ffmpeg/libx264-medium_firstpass.ffpreset
    /usr/share/ffmpeg/libx264-normal.ffpreset
    /usr/share/ffmpeg/libx264-placebo.ffpreset
    /usr/share/ffmpeg/libx264-placebo_firstpass.ffpreset
    /usr/share/ffmpeg/libx264-slow.ffpreset
    /usr/share/ffmpeg/libx264-slow_firstpass.ffpreset
    /usr/share/ffmpeg/libx264-slower.ffpreset

    I alos tried with -vpre libx264-ipod640 and still no luck. I get preset libx264-ipod640 is not found.... Do i have to enable presets somehow ? ffmpeg — enable presets ? or something ?

    ** EDIT : My ffmpeg version info **

    FFmpeg version 0.6.5, Copyright (c) 2000-2010 the FFmpeg developers
     built on Jan 29 2012 17:52:15 with gcc 4.4.5 20110214 (Red Hat 4.4.5-6)
     configuration: --prefix=/usr --libdir=/usr/lib64 --shlibdir=/usr/lib64 --mandir=/usr/share/man --incdir=/usr/include --disable-avisynth --extra-cflags='-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fPIC' --enable-avfilter --enable-avfilter-lavf --enable-libdc1394 --enable-libdirac --enable-libfaac --enable-libfaad --enable-libfaadbin --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-gpl --enable-nonfree --enable-postproc --enable-pthreads --enable-shared --enable-swscale --enable-vdpau --enable-version3 --enable-x11grab
     libavutil     50.15. 1 / 50.15. 1
     libavcodec    52.72. 2 / 52.72. 2
     libavformat   52.64. 2 / 52.64. 2
     libavdevice   52. 2. 0 / 52. 2. 0
     libavfilter    1.19. 0 /  1.19. 0
     libswscale     0.11. 0 /  0.11. 0
     libpostproc   51. 2. 0 / 51. 2. 0
    FFmpeg 0.6.5
    libavutil     50.15. 1 / 50.15. 1
    libavcodec    52.72. 2 / 52.72. 2
    libavformat   52.64. 2 / 52.64. 2
    libavdevice   52. 2. 0 / 52. 2. 0
    libavfilter    1.19. 0 /  1.19. 0
    libswscale     0.11. 0 /  0.11. 0
    libpostproc   51. 2. 0 / 51. 2. 0
  • no c compiler found libx264 build [closed]

    24 août 2012, par kerim yucel

    I have been trying to build ffmpeg for Android and I have managed to do so by using roman10's tutorial.

    However, I needed x264 and I enabled libx264 in the configurations but it wasn't able to find the library. A quick internet search led me to the answer that I have to build x264 seperately and include it to ffmpeg config by editing ExternalLibs flags.

    Currently I am using this script to build x264. Everything is fine except the fact that the error saying "No working C compiler is found" pops up. I have updated and installed build-essential and my gcc version is up to date.

    Any help will be appreciated. Thanks a lot.

    P.S. I am using ndk 4 just to make everything compatible with the tutorial link given above. I am running Ubuntu with VirtualBox from Windows 7.

    Edit : I have been trying this tutorial as well, I am getting the same error along with unknown options error for each configuration options.

    Another edit :
    I have tried this code and obtained the following.

    echo 'int main() return 0 ;' > main.c && arm-eabi-gcc main.c || echo $ ?

    /home/mehmet/Android_NDK_r4/build/prebuilt/linux-x86/arm-eabi-4.4.0/bin/../lib/gcc/arm-eabi/4.4.0/../../../../arm-eabi/bin/ld : crt0.o : No such file : No such file or directory collect2 : ld returned
    1 exit status 1

    I have checked the flags as well, flags seem ok or I can't see the faulty line. Above you may find the build script I am using.

    export ARM_ROOT=/home/mehmet/Android_NDK_r4
    export ARM_INC=$ARM_ROOT/build/platforms/android-8/arch-arm/usr/include/
    export ARM_LIB=$ARM_ROOT/build/platforms/android-8/arch-arm/usr/lib/
    export ARM_TOOL=$ARM_ROOT/build/prebuilt/linux-x86/arm-eabi-4.4.0
    export ARM_LIBO=$ARM_TOOL/lib/gcc/arm-eabi/4.4.0
    export PATH=$ARM_TOOL/bin:$PATH
    export PATH=$ARM_TOOL/arm-eabi/bin:$PATH
    export ARM_PRE=arm-eabi
    ./configure --prefix=/sdcard/arm_and \
    --disable-gpac \
    --extra-cflags=" -I$ARM_INC -fPIC -DANDROID -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-prote
    ctor -fno-short-enums -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -march=armv5te -mtu
    ne=xscale -msoft-float -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -
    MMD -MP " \
    --extra-ldflags=" -nostdlib -Bdynamic -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,nocopyreloc -Wl,-soname,/system
    /lib/libz.so -Wl,-rpath-link=$ARM_LIB,-dynamic-linker=/system/bin/linker -L$ARM_LIB -nostdlib $ARM_LIB/crtbegin_dynamic.o $ARM_LIB/crtend_android.o -lc -lm -ldl -lgcc " \
    --cross-prefix=${ARM_PRE}- \
    --disable-asm\
    --host=arm-linux \

    Third edit :

    Config.log gives the following.

    x264 configure script
    Command line options: "--prefix=/sdcard/arm_and" "--disable-gpac" "--extra-cflags=" "-I/home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/include/" "-fPIC" "-DANDROID" "-fpic" "-mthumb-interwork" "-ffunction-sections" "-funwind-tables" "-fstack-prote" "ctor" "-fno-short-enums" "-D__ARM_ARCH_5__" "-D__ARM_ARCH_5T__" "-D__ARM_ARCH_5E__" "-D__ARM_ARCH_5TE__" "-Wno-psabi" "-march=armv5te" "-mtu" "ne=xscale" "-msoft-float" "-mthumb" "-Os" "-fomit-frame-pointer" "-fno-strict-aliasing" "-finline-limit=64" "-DANDROID" "-Wa,--noexecstack" "-" "MMD" "-MP" "--extra-ldflags=" "-nostdlib" "-Bdynamic" "-Wl,--no-undefined" "-Wl,-z,noexecstack" "-Wl,-z,nocopyreloc" "-Wl,-soname,/system" "/lib/libz.so" "-Wl,-rpath-link=/home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/lib/,-dynamic-linker=/system/bin/linker" "-L/home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/lib/" "-nostdlib" "/home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/lib//crtbegin_dynamic.o" "/home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/lib//crtend_android.o" "-lc" "-lm" "-ldl" "-lgcc" "--cross-prefix=arm-eabi-" "--disable-asm" "--host=arm-linux"

       checking whether arm-eabi-gcc works... no
       Failed commandline was:
       --------------------------------------------------
       arm-eabi-gcc conftest.c -Wall -I. -I$(SRCPATH) -I/home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/include/ -fPIC -DANDROID -fpic -mthumb-interwork -ffunction-sections -funwind-tables -fstack-prote
       ctor -fno-short-enums -D__ARM_ARCH_5__ -D__ARM_ARCH_5T__ -D__ARM_ARCH_5E__ -D__ARM_ARCH_5TE__ -Wno-psabi -march=armv5te -mtu
       ne=xscale -msoft-float -mthumb -Os -fomit-frame-pointer -fno-strict-aliasing -finline-limit=64 -DANDROID -Wa,--noexecstack -
       MMD -MP -nostdlib -Bdynamic -Wl,--no-undefined -Wl,-z,noexecstack -Wl,-z,nocopyreloc -Wl,-soname,/system
       /lib/libz.so -Wl,-rpath-link=/home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/lib/,-dynamic-linker=/system/bin/linker -L/home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/lib/ -nostdlib /home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/lib//crtbegin_dynamic.o /home/mehmet/Android_NDK_r4/build/platforms/android-8/arch-arm/usr/lib//crtend_android.o -lc -lm -ldl -lgcc -lm -o conftest
       arm-eabi-gcc: ctor: No such file or directory
       arm-eabi-gcc: ne=xscale: No such file or directory
       arm-eabi-gcc: MMD: No such file or directory
       arm-eabi-gcc: /lib/libz.so: No such file or directory
       cc1: error: unrecognized command line option "-mtu"
       cc1: error: unrecognized command line option "-fstack-prote"
       cc1: error: to generate dependencies you must specify either -M or -MM
       arm-eabi-gcc: -E or -x required when input is from standard input
       --------------------------------------------------
       Failed program was:
       --------------------------------------------------
       int main () { return 0; }
       --------------------------------------------------
       DIED: No working C compiler found.

    Last edit
    Problem solved. It was just a mistake related to typos. It works well now.

  • Retrieving information from ffmpeg shell_exec command

    29 août 2012, par user1503606

    i am doing the following

    $output = shell_exec('/usr/local/bin/ffmpeg -i intro.mp3 2>&1');
    echo "<pre>$output</pre>";

    This outputs

    ffmpeg version 0.8.5, Copyright (c) 2000-2011 the FFmpeg developers
     built on Aug 20 2012 09:28:43 with clang 3.1 (tags/Apple/clang-318.0.61)
     configuration: --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-swscale --enable-avfilter --enable-libmp3lame --enable-libvorbis --enable-libtheora --enable-libfaac --enable-libxvid --enable-libx264 --enable-libvpx --enable-hardcoded-tables --enable-shared --enable-pthreads --disable-indevs --cc=clang
     libavutil    51.  9. 1 / 51.  9. 1
     libavcodec   53.  7. 0 / 53.  7. 0
     libavformat  53.  4. 0 / 53.  4. 0
     libavdevice  53.  1. 1 / 53.  1. 1
     libavfilter   2. 23. 0 /  2. 23. 0
     libswscale    2.  0. 0 /  2.  0. 0
     libpostproc  51.  2. 0 / 51.  2. 0
    [mp3 @ 0x7f9481807c00] max_analyze_duration 5000000 reached at 5015510
    Input #0, mp3, from &#39;intro.mp3&#39;:
     Metadata:
       album           : Frank
       artist          : Amy Winehouse
       genre           : R&amp;B
       title           : [Intro] Stronger Than Me
       track           : 01
       date            : 2008
     Duration: 00:03:54.71, start: 0.000000, bitrate: 230 kb/s
       Stream #0.0: Audio: mp3, 44100 Hz, stereo, s16, 160 kb/s
    At least one output file must be specified

    i want to get the information to insert into a database album,artist,genre,title etc

    But all seperately

    i can get them by doing the following

    $output = shell_exec(&#39;/usr/local/bin/ffmpeg -i intro.mp3 2>&amp;1&#39;);

    $edit = explode(&#39;  &#39;, $output);
    $edit = implode("@", $edit);
    $edit = explode(&#39;:&#39;, $output);
    echo "<pre>";
    print_r($edit);
    echo "</pre>";

    then running

    &lt;?php echo $edit[9]; ?>

    etc

    but this seems like a really bad way and annoying way to get values and sometimes the output is slightly different which messes with the outputs.

    Whats the best way to do this or am i stuck doing this ?