Recherche avancée

Médias (0)

Mot : - Tags -/interaction

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

Autres articles (102)

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

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

Sur d’autres sites (16287)

  • Video Manipulation with ffmpeg : Troubleshooting Conversion Issues

    26 janvier 2024, par Barno

    I want to manipulate my video using ffmpeg. I retrieve the stream from S3 with the following function :

    


    async function getImageBufferFromS3(imageUrl) {
    const { bucketName, objectKey } = extractS3InfoFromUrl(imageUrl);
    const s3Client = configureS3Client();

    const getObjectCommand = new GetObjectCommand({
        Bucket: bucketName,
        Key: objectKey
    });

    const data = await s3Client.send(getObjectCommand);
    const imageBuffer = await streamToBuffer(data.Body);
    return imageBuffer;
}

async function streamToBuffer(stream) {
    return new Promise((resolve, reject) => {
        const chunks = [];
        stream.on('data', (chunk) => chunks.push(chunk));
        stream.on('error', reject);
        stream.on('end', () => resolve(Buffer.concat(chunks)));
    });
}


    


    Now, I want to use ffmpeg to add text to it. First, I'd like to obtain the "clean" video :

    


    module.exports.createVideoWithTextAndBackground = async (videoBuffer, customText = null) => {
  try {
    if (!customText) {
      return videoBuffer;
    }
    
    const fontPath = __dirname + '/../public/fonts/Satoshi-Medium.ttf';

    try {
      return await new Promise((resolve, reject) => {
        const input = new stream.PassThrough();
        input.end(videoBuffer);

        const output = new stream.Writable();
        const chunks = [];

        output._write = (chunk, encoding, next) => {
          chunks.push(chunk);
          next();
        };

        output.on('finish', () => {
          const resultBuffer = Buffer.concat(chunks);
          resolve(resultBuffer);
        });

        output.on('error', (err) => {
          reject(err);
        });

        ffmpeg()
          .input(input)
          .inputFormat('mp4')
          .toFormat('mp4')
          .pipe(output);
      });
    } catch (error) {
      console.error(error);
      throw error;
    }

  } catch (error) {
    console.error(error);
    throw error;
  }
};


    


    However, I encountered the following error :

    


    Error: ffmpeg exited with code 183: frame=    0 fps=0.0 q=0.0 Lsize=       0kB time=N/A bitrate=N/A speed=N/A


    


    Conversion failed !

    


    I don't face any issues when I don't use ffmpeg. I even tried ffmpeg -i to create a video with text using my console, confirming that ffmpeg works on my computer.

    


  • Having issues finding the options to lower Quality with Animation Codec

    1er octobre 2018, par Necessary Null

    I’m trying to find if its possible to specify quality when converting to animation codec.

    I’ve used this bit of code and don’t see anything about quality.

    ffmpeg -h encoder=qtrle

    I know this is my generic command to get to animation codec

    ffmpeg -i input.mp4 -codec copy -c:v qtrle output.mov

    Any advice ?

  • Issues in python based ffmpeg operation

    28 septembre 2021, par Adideva98

    I am trying to write a script that would automatically take duration values and chop an audio file into smaller splits. To do this I have saved all my start times and durations in a list. And this is the code I am trying to run.

    


    for k in range(0,len(start_time)):
  s=start_time[k]
  e=Duration[k]
  filename = "output%d.mp3" % (k)
  !ffmpeg -i Audio.mp3 -ss s -t e -acodec copy filename
  k=k+1


    


    On running this I get the following error
Invalid duration specification for ss: s
I suspect that this error arises because of the fact that since I am using lists to call elements, the time stamp comes with quotes on both sides. Secondly, I am not sure how to specify the filename, such that each created split has the name of this format Output_1.mp3 and so on. The integer will be an identifier of the split. What could be possible fixes for this piece of code ? Please note that I am running this on Google Colab.