Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (17)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Other interesting software

    13 avril 2011, par

    We don’t claim to be the only ones doing what we do ... and especially not to assert claims to be the best either ... What we do, we just try to do it well and getting better ...
    The following list represents softwares that tend to be more or less as MediaSPIP or that MediaSPIP tries more or less to do the same, whatever ...
    We don’t know them, we didn’t try them, but you can take a peek.
    Videopress
    Website : http://videopress.com/
    License : GNU/GPL v2
    Source code : (...)

Sur d’autres sites (4565)

  • Error initializing complex filters. Invalid argument error when running ffmpeg from Kotlin

    17 janvier 2020, par int_32

    I’m creating a wrapper for ffmpeg, and it has the following methods :

    fun executeCommand(args: Array<string>): AppRunner.AppResult {
       return appRunner.run(ffmpegPath, args)
    }


    class AppRunner {

       fun run(
           app: String,
           args: Array<string>,
           timeoutAmount: Long = 60000,
           timeoutUnit: TimeUnit = TimeUnit.SECONDS
       ): AppResult {
           val command = mutableListOf(app)
           command.addAll(args)

           val processResult = ProcessBuilder(command)
               .redirectOutput(ProcessBuilder.Redirect.PIPE)
               .redirectError(ProcessBuilder.Redirect.PIPE)
               .start()
               .apply {
                   waitFor(timeoutAmount, timeoutUnit)
               }

           val exitCode = processResult.exitValue()
           val stdOut = processResult.inputStream.bufferedReader().readText()
           val stdErr = processResult.errorStream.bufferedReader().readText()

           return AppResult(exitCode, stdOut, stdErr)
       }

    }
    </string></string>

    And :

    fun concatenateAudioFiles(files: Collection<file>, outFile: File) {
       val args = mutableListOf<string>()

       files.forEach { file ->
           args.add("-i")
           args.add(file.absolutePath)
       }

       // Create filter
       val filterStringBuilder = StringBuilder()
       filterStringBuilder.append("'")
       files.forEachIndexed { index, _ ->
           filterStringBuilder.append("[$index:0]")
       }
       filterStringBuilder.append("concat=n=")
       filterStringBuilder.append(files.size)
       filterStringBuilder.append(":v=0:a=1[out]")
       filterStringBuilder.append("'")

       args.add("-filter_complex")
       args.add(filterStringBuilder.toString())
       args.add("-map")
       args.add("'[out]'")
       args.add(outFile.absolutePath)
       logger.info { "Filter: ${args.joinToString(" ")}" }
       val result = executeCommand(args.toTypedArray())
       if (!result.isSuccessful()) {
           throw FfmpegException(result.toString())
       }
    }
    </string></file>

    Args generated by this method are OK :

    -i silence-0.5.mp3 -i vo_1543189276830.mp3 -i silence-0.5.mp3 -filter_complex '[0:0][1:0][2:0]concat=n=3:v=0:a=1[out]' -map '[out]' vo_final_1543189276833.mp3

    And if I run ffmpeg with this args from command line it works fine.

    But when running within Kotlin app, it gives the following error :

    [AVFilterGraph @ 0x7fd134071500] No such filter: '[0:0][1:0][2:0]concat=n=3:v=0:a=1[out]'
    Error initializing complex filters.
    Invalid argument

    I’ve already tried to :

    1. Check similar questions
    2. Escape ' with \
    3. Replace ' with "

    Result is the same.

    FFMPEG 4.1, Kotlin 1.3, Java 1.8, macOS 10.13.6

  • How to use ffmpeg with laravel 5.7 on a shared hosting with limited resources/access

    29 novembre 2018, par DestinyB

    I have search through different forums and online resources on how I can use ffmpeg on my laravel 5.7 application on a shared host but have not gotten any solution. I actually installed ffmpeg on my project following the instructions from this link How to Install FFMPEG in Laravel.

    I also downloaded the binary files and save them to my local drive C :// in my system with windows 8.1 Operating System. Then I connected my binary as show bellow ;

     $ffprobe = FFMpeg\FFProbe::create([
           'ffmpeg.binaries'  => 'C:/FFmpeg/bin/ffmpeg.exe', // the path to the FFMpeg binary
           'ffprobe.binaries' => 'C:/FFmpeg/bin/ffprobe.exe', // the path to the FFProbe binary
           'timeout'          => 3600, // the timeout for the underlying process
           'ffmpeg.threads'   => 12,   // the number of threads that FFMpeg should use
       ]);

    I also did the path setting in the system environmental variables settings and everything was working great while serving the website from XAMPP Server.

    The problem I have is that I have uploaded the project to a shared host that I dont have access to check if they have the ffmpeg on the server or not and the host provider could not really give me a helpful information about that. So, I uploaded the binary files into a folder in my filemanger on the cpanel and named it "binary files". Then I changed my codes as given bellow ;

    $ffmpeg = FFMpeg\FFMpeg::create([
           'ffmpeg.binaries'  => '/home/username/binary_files/bin/ffmpeg.exe', // the path to the FFMpeg binary
           'ffprobe.binaries' => '/home/username/binary_files/bin/ffprobe.exe',  // the path to the FFProbe binary
           'timeout'          => 3600, // the timeout for the underlying process
           'ffmpeg.threads'   => 1,   // the number of threads that FFMpeg should use
       ]);

    But still I get error that Unable to load FFProbe as shown in this Image from the code

       public static function create($configuration, LoggerInterface $logger = null)
    {
       if (!$configuration instanceof ConfigurationInterface) {
           $configuration = new Configuration($configuration);
       }

       $binaries = $configuration->get('ffprobe.binaries', array('avprobe', 'ffprobe'));

       try {
           return static::load($binaries, $logger, $configuration);
       } catch (BinaryDriverExecutableNotFound $e) {
           throw new ExecutableNotFoundException('Unable to load FFProbe', $e->getCode(), $e);
       }
    }

    The major thing I am doing on my project is to convert video into proper encoded streaming video as well as automatically generate a .png or .jpg thumbnail from the video while uploading. So in case if there is an alternative other than ffmpeg to solve this or anyone that have use the ffmpeg library on a shared hosted before should help.
    Please !

  • How to redirect -progress option output of ffmpeg to stderr ?

    27 janvier 2019, par gerrBen

    I’m writing my own wraping for ffmpeg on Python 3.7.2 now and want to use it’s "-progress" option to read current progress since it’s highly machine-readable. The problem is "-progress" option of ffmpeg accepts as its parameter file names and urls only. But I don’t want to create additional files not to setup the whole web-server for this purpose.

    I’ve google a lot about it, but all the "progress bars for ffmpeg" projects rely on generic stderr output of ffmpeg only. Other answers here on Stackoverflow and on Superuser are being satisfied with just "-v quiet -stats", since "progress" is not very convenient name for parameter to google exactly it’s cases.

    The best solution would be to force ffmpeg write it’s "-progress" output to separate pipe, since there is some useful data in stderr as well regarding file being encoded and I don’t want to throw it away with "-v quiet". Though if there is a way to redirect "-progress" output to stderr, it would be cool as well ! Any pipe would be ok actually, I just can’t figure out how to make ffmpeg write it’s "-progress" not to file in Windows. I tried "ffmpeg -progress stderr ...", but it just create the file with this name.