Recherche avancée

Médias (0)

Mot : - Tags -/publication

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

Autres articles (65)

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

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

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

  • ffmpeg crop with negative offset

    12 août 2020, par Ajouve

    I have a nodejs application which is cropping videos using ffmpeg

    


    From time to time I have an error because I am trying to crop out of the video, see attached image where the black is the video and in red the crop zone. My final video has to be a square.

    


    enter image description here

    


    If I am replacing the negative offset with 0 the final result will not be a square.

    


    I just need to add a black background on the non-existing part

    


    This is my actual code

    


    const cropVideo = (buffer, width, height, x, y) => {

    const inputFile = tmp.fileSync();
    const outputFile = tmp.fileSync();

    fs.writeFileSync(inputFile.name, buffer);

    return new Promise((resolve, reject) => {
        ffmpeg(inputFile.name)
            .videoFilters(`crop=${width}:${height}:${x}:${y}`)
            .format('mp4')
            .on('error', reject)
            .on('end', () => resolve(fs.readFileSync(outputFile.name)))
            .save(outputFile.name);
    })
}


    


  • How to add subtitle in Video using Ffmpeg Command

    8 mai 2014, par Sanket990

    I m executing below command and getting Stream #0:0 : Subtitle : unknown_codec
    (codec unknown_codec) not found for output stream #0:0

    FFmpeg command :

    final String demoVideoPath =   "/sdcard/b.mp4";
    final String subTitlePath="/sdcard/srtf.srt";
    String ffmpegCommand[] = { "ffmpeg", "-i", demoVideoPath, "-i", subTitlePath,
                           "-map","1", "-c", "copy","-strict", "experimental","-c:v","mpeg","-crf","23","-preset","veryfast",
                             "/sdcard/output.avi" };

    LogCat

    Shellout[srt @ 0xc03930] Estimating duration from bitrate, this may be inaccurate
    ShelloutInput #1, srt, from '/sdcard/srtf.srt':
    Shellout  Duration: N/A, bitrate: N/A
    Shellout    Stream #1:0: Subtitle: srt
    ShelloutPlease use -b:a or -b:v, -b is ambiguous
    ShelloutOutput #0, avi, to '/sdcard/output.avi':
    Shellout  Metadata:
    Shellout    major_brand     : isom
    Shellout    minor_version   : 512
    Shellout    compatible_brands: isomiso2mp41

    Shellout    creation_time   : 2013-12-20 11:33:07
    Shellout    encoder         : Lavf51.12.1
    Shellout    Stream #0:0: Subtitle: unknown_codec
    ShelloutStream mapping:
    Shellout  Stream #1:0 -> #0:0 (srt -> ?)
    ShelloutEncoder (codec unknown_codec) not found for output stream #0:0

    How to handle unknown_codec error.

  • How to avoid stopping or record all dynamic videos in the process of capturing screen video with ffmpeg from a python program ?

    3 décembre 2020, par fengnix

    I have many robotframework test cases and in the first case, a ffmpeg command like the following is invoked to record the whole running process :

    


    ffmpeg -framerate 30 -f gdigrab -i desktop -c:v libx264rgb -crf 0 -preset ultrafast output.mkv


    


    Whenever I firstly run all cases and then manuually run the above command from an addition command console, the recorded video always looks fine, it looks like all contents on the screen can be correctly captured.

    


    However, once I execute the command the same as the above one in the first case by call the following code :

    


    p=subprocess.Popen(cmd, shell=True, stdin=subprocess.PIPE, stdout=subprocess.PIPE, stderr=subprocess.PIPE)


    


    and then in the final test case the record process is stopped by calling the following code to tell ffmpeg that we want to stop the recording :

    


    p.stdin.write(bytes("q",'UTF-8'))  


    


    the final result video only contain correct contents of the "start" and the "end" of the whole process, but all other contents no longer changed and seemd just a static image, which means all the dynamic effects on the screen cannot be captured.

    


    Could anyone be so kind as to let me know what the matter is and how to solve it ?