Recherche avancée

Médias (91)

Autres articles (97)

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

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (8369)

  • trying to use fluent-ffpmeg on raspberry pi

    3 septembre 2018, par cdoern

    I am trying to use fluent ffmpeg to make a h264 file into an mp4 file. However, installing regular ffmpeg did not work since ti downloaded a very old version onto my pi. through some research i stumbled upon an ffmpeg installer on npm that installers a newer version and allows you to use it : https://www.npmjs.com/package/@ffmpeg-installer/ffmpeg however, when incorporating this into my project, PM2, the process manager I am using to run my files, throws a very stranger error :

    err._length = err.length;
    TypeError: Cannot create property '_length' on string 'Unsupported platform/architecture: linux-arm

    below is my code for converting the file

    const ffmpegPath = require('@ffmpeg-installer/ffmpeg').path;
    var ffmpeg = require('fluent-ffmpeg');
    ffmpeg.setFfmpegPath(ffmpegPath);
    ffmpeg('/home/pi/Videos/video.h264').format('mp4');
    ffmpeg.on('error', function(err) {
     console.log('an error happened: ' + err.message);
    })
    // save to file
    ffmpeg.save('/home/pi/Videos/testmovie.mp4');
  • Using C# and ffmpeg to rip audio from an .mp4, ffmpeg stuck until closing the calling application

    19 juillet 2018, par user3806186

    I happened to find this answer :
    https://stackoverflow.com/questions/44981454/c-sharp-extract-mp3-file-from-mp4-file#=

    And it seems to work, However, the conversion process gets stuck, and it only resumes after I have closed the application that called ffmpeg to run.

    The following code is responsible for the launch of ffmpeg :
    (The commented lines are just from testing on how to fix the hanging)

           public static string ConvertToMp3(string inputFile, string outputFile = "extracted_audio.mp3")
       {
           Console.WriteLine("Converting mp3 to " + Path.GetFullPath("extracted_audio.mp3"));
           string mp3out = "";

           try
           {
               if (ffmpegProcess != null)
                   ffmpegProcess.Kill();

               ffmpegProcess = new Process();
               ffmpegProcess.StartInfo.UseShellExecute = false;
               ffmpegProcess.StartInfo.RedirectStandardInput = true;
               ffmpegProcess.StartInfo.RedirectStandardOutput = true;
               ffmpegProcess.StartInfo.RedirectStandardError = true;
               ffmpegProcess.StartInfo.CreateNoWindow = true;
               ffmpegProcess.StartInfo.FileName = Path.GetDirectoryName(System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName) + @"\bin\ffmpeg.exe";
               ffmpegProcess.StartInfo.Arguments = "-i " + Path.GetFullPath(inputFile) + " -vn -f mp3 -ab 320k output " + Path.GetFullPath(outputFile);
               ffmpegProcess.Start();
               ffmpegProcess.StandardOutput.ReadToEnd();
               mp3out = ffmpegProcess.StandardError.ReadToEnd();
               //ffmpegProcess.WaitForExit();
               if (!ffmpegProcess.HasExited)
               {
                   //ffmpegProcess.Kill();
               }
           }
           catch (InvalidOperationException e)
           {
               Console.WriteLine("mp3 conversion failed: " + e.Message);
               return "";
           }

           return mp3out;
       }

    I have no idea what causes the halting, any ideas ?

  • How to use Intel QSV record screen based on ffmpeg

    18 octobre 2020, par zonda

    I want to record my screen with ffmpeg.
    
I succeeded in the normal way.
    
ffmpeg -f gdigrab -framerate 30 -draw_mouse 1 -i desktop -c:v h264 -r 30 -preset ultrafast -tune zerolatency -pix_fmt yuv420p "record.mp4"

    



    But I want use GPU record my screen now.
    
I'm trying to use Intel QSV on ffmpeg.
    
ffmpeg -f gdigrab -framerate 30 -draw_mouse 1 -i desktop -c:v h264_qsv -r 30 -tune zerolatency -pix_fmt yuv420p "record.mp4"

    



    It does not work and show :
    
[h264_qsv @ 0000000000479080] Error initializing the encoder: invalid video parameters (-15)
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

I don't know what happened.

    



    And I'm trying simple way.
    
ffmpeg -i test_input.mp4 -c:v h264_qsv -preset:v faster test_output.mp4
    
It does not work too.

    



    My computer information :
    
acer notebook : TravelMate P243-MG
    
OS : windows 7 64bits
    
CPU : Intel i5-3210M
    
Graphics card : Nvidia GT-630M

    



    Thanks in advance !