Recherche avancée

Médias (91)

Autres articles (89)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

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

Sur d’autres sites (12858)

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

  • Museum of Multimedia Software, Part 3

    18 août 2010, par Multimedia Mike — Software Museum

    Discreet Cleaner 5
    Capture, author, encode, and publish multimedia in Real, QuickTime, Windows Media, MP3, DV, and MPEG formats. This package has a copyright date of 2001 (thus predating Flash video by a few years). This software seems to have since been purchased by Autodesk and is up to version 6.5 (which does support Flash video).



    Discreet Plasma
    "Web 3D Design." Package is copyright 2002. Like the last package, this package also makes reference to Discreet being a division of Autodesk. Sure enough, Autodesk purchased them in 1999 and would later rename them Autodesk Media and Entertainment.



    Debabelizer
    "The Graphics Processing Toolbox." Looking down its list of features on the box copy, I honestly wonder if it can accomplish anything that ImageMagick can’t.



    MatchWare Mediator 7
    "Create Flash, HTML & CD-Rom Presentations." Wow, version 7, and with a latest copyright date of 2002 on the box. There’s still a top-Google-hit web page for MatchWare Mediator 9, this one instead emphasizing interactive CDs, HTML, and then Flash.



    Final Cut Pro v1.2.5
    Promotional copy Apple’s video editing software. No copyright date, but it requires a PowerPC G3 or G4 and Mac OS 9.



    Apple Keynote
    More Apple software that I think can technically be classified as multimedia-related. I’m not sure which version this is.



  • 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);
    })
}