Recherche avancée

Médias (0)

Mot : - Tags -/signalement

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

Autres articles (111)

  • 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 (...)

  • MediaSPIP version 0.1 Beta

    16 avril 2011, par

    MediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
    Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
    Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
    Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

Sur d’autres sites (9846)

  • Bad argument for fluent-ffmpeg video compression at ChildProcess.spawn()

    22 novembre 2018, par Just A Bad Programmer

    I am using fluent-ffmpeg library in node.js in Firebase for compressing videos uploaded by users through an android app, but the following code yield an error :

    ffmpeg(tempFilePath).videoBitrate('1000k', true)
                         .on('error', function(err) {
                           console.log('An error occurred: ' + err.message);
                         })
                         .on('end', function() {
                           console.log('Processing finished !');
                         })
                         .save(compressedVideoFilePath);

    The error is :

    TypeError: Bad argument
    at TypeError (native)
    at ChildProcess.spawn (internal/child_process.js:303:26)
    at exports.spawn (child_process.js:370:9)
    at /user_code/node_modules/fluent-ffmpeg/lib/processor.js:152:24
    at FfmpegCommand.proto._getFfmpegPath (/user_code/node_modules/fluent-ffmpeg/lib/capabilities.js:90:14)
    at FfmpegCommand.proto._spawnFfmpeg (/user_code/node_modules/fluent-ffmpeg/lib/processor.js:132:10)
    at FfmpegCommand.proto.availableFormats.proto.getAvailableFormats (/user_code/node_modules/fluent-ffmpeg/lib/capabilities.js:517:10)
    at /user_code/node_modules/fluent-ffmpeg/lib/capabilities.js:568:14
    at nextTask (/user_code/node_modules/fluent-ffmpeg/node_modules/async/dist/async.js:5324:14)
    at Object.waterfall (/user_code/node_modules/fluent-ffmpeg/node_modules/async/dist/async.js:5334:5)

    The tempFilePath is from downloading the user uploaded file onto the temp folder of firebase (/tmp/test-4d68b02f-a6ef-4ff3-a5c9-52687fd3f0c4.mp4) :

    const tempFilePath = path.join(os.tmpdir(), filePath);
    destBucket.file(filePath).download({
             destination: tempFilePath // Download the file to destFilePath
           }

    While the compressedVideoFilePath is the destination I want the compressed file to be saved (/tmp/compressed-test-4d68b02f-a6ef-4ff3-a5c9-52687fd3f0c4.mp4) :

    var compressedVideoFilePath = path.join(path.dirname(tempFilePath),"compressed-" + path.basename(tempFilePath));

    After the compressed file is saved, I would upload the file to firebase storage with (But probably this is not the place that caused the error) :

    destBucket.upload(compressedVideoFilePath, {
       destination: 'compressed-' + path.basename(filePath),
       metadata: metadata
     })

    I don’t know how to fix it, any one knows why this keeps happening ? Thanks. :)

  • How to reduce conversion/compression time in FFmpeg and How to merge command ?

    21 novembre 2018, par Patel Pinkal

    I want to reduce time taken to create new video after adding text in original video using FFmpeg
    I had tried to search and I found this code given below for reducing time.

    -y -i /sdcard/videokit/in.mp4 -strict experimental -vcodec libx264 -preset ultrafast -crf 24 -acodec aac -ar 44100 -ac 2 -b 36000k -s 1280x720 -aspect 16:9 -metadata:s:v:0 rotate=0 /sdcard/videokit/out3.mp4

    Now, I want to add text in video and it is done in FFmpeg, by this command and its 100% working.

     String[] addTextCommand = {
               "-i",
               "" + realFilePath,
               "-vf",
               "drawtext=fontsize=50:fontfile=/storage/emulated/0/Download/Cerbetica-regular.ttf:fontcolor=red:text='"
                       + strText +
                       "':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2",
               "-strict",
               "-2",
               outputFilePath};

    Now my problem is how do I merge this two code and make one single command to make an edited video and also take less time to create a new video. In this, I have tried this command but it’s not working.

      String[] addTextCommand = {
               "-i",
               "" + realVideoPath,
               "-vf",
               "-c:v", "libx264",
               "-preset", "ultrafast",
               "-crf", "24",
               "-acodec", "aac",
               "-ar", "44100",
               "-ac", "2",
               "-b", "36000k",
               "-s", "1280x720",
               "-aspect", "16:9",
               "-metadata:s:v:0 rotate=0",
               "drawtext=fontsize=50:fontfile=/storage/emulated/0/Download/Cerbetica-regular.ttf:fontcolor=red:text='"
                       + strText +
                       "':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2",
               "-strict",
               "-2",
               outputFilePath};

    If anyone has an idea how to make command of FFmpeg please describe it and explain how to use it.

    Using command of @Mulvya I got this in the console.

        D/MainActivity: FAILED with output : WARNING: linker: /data/user/0/com.inheritx.videoprocessing/files/ffmpeg has text relocations. This is wasting memory and prevents security hardening. Please fix.
                      ffmpeg version n3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
                        built with gcc 4.8 (GCC)
                        configuration: --target-os=linux --cross-prefix=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/bin/i686-linux-android- --arch=x86 --cpu=i686 --enable-runtime-cpudetect --sysroot=/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/vagrant/SourceCode/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/vagrant/SourceCode/ffmpeg-android/build/x86 --extra-cflags='-I/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -march=i686' --extra-ldflags='-L/home/vagrant/SourceCode/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
                        libavutil      55. 17.103 / 55. 17.103
                        libavcodec     57. 24.102 / 57. 24.102
                        libavformat    57. 25.100 / 57. 25.100
                        libavdevice    57.  0.101 / 57.  0.101
                        libavfilter     6. 31.100 /  6. 31.100
                        libswscale      4.  0.100 /  4.  0.100
                        libswresample   2.  0.101 /  2.  0.101
                        libpostproc    54.  0.100 / 54.  0.100
                      Unrecognized option '2'.
                      Error splitting the argument list: Option not found
      D/MainActivity: Finished command : ffmpeg -i
      D/MainActivity: Finished command : ffmpeg /storage/emulated/0/Download/spacetestSMALL_512kb.mp4
      D/MainActivity: Finished command : ffmpeg -vf
      D/MainActivity: Finished command : ffmpeg drawtext=fontsize=50:fontfile=/system/fonts/DroidSans.ttf:fontcolor=red:text='Hello':x=0:y=0: box=1: boxcolor=black@0.5:boxborderw=10: x=0: y=(h-text_h)/2
      D/MainActivity: Finished command : ffmpeg -c:v
      D/MainActivity: Finished command : ffmpeg libx264
      D/MainActivity: Finished command : ffmpeg -preset
      D/MainActivity: Finished command : ffmpeg ultrafast
      D/MainActivity: Finished command : ffmpeg -crf
      D/MainActivity: Finished command : ffmpeg 24
      D/MainActivity: Finished command : ffmpeg -acodec
      D/MainActivity: Finished command : ffmpeg aac
      D/MainActivity: Finished command : ffmpeg -ar
      D/MainActivity: Finished command : ffmpeg 44100
      D/MainActivity: Finished command : ffmpeg -s
      D/MainActivity: Finished command : ffmpeg 1280x720
      D/MainActivity: Finished command : ffmpeg -aspect
      D/MainActivity: Finished command : ffmpeg 16:9
      D/MainActivity: Finished command : ffmpeg -metadata:s:v:0 rotate=0
      D/MainActivity: Finished command : ffmpeg -strict
      D/MainActivity: Finished command : ffmpeg -2
      D/MainActivity: Finished command : ffmpeg /storage/emulated/0/Movies/add_text25.mp4
  • Suppress compression failure message if it is not an error

    1er février 2019, par Karthik Periagaram
    Suppress compression failure message if it is not an error
    

    If the user specifies `—no-error-on-compression-fail`, there is no need
    to treat compression failure as an error. Hence, the failure message
    should be suppressed along with the non-zero exit code (which already
    is suppressed).

    • [DH] src/flac/encode.c