Recherche avancée

Médias (1)

Mot : - Tags -/MediaSPIP

Autres articles (57)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (9709)

  • avcodec/nvenc : hardcode color characteristics for internal RGB2YUV conversion

    6 août 2022, par Timo Rothenpieler
    avcodec/nvenc : hardcode color characteristics for internal RGB2YUV conversion
    

    nvenc does not appear to use these values as inputs for its built in RGB
    to YUV conversion, but instead sets them on the output as-is.

    Testing indicates the input is expected to be sRGB, with the output
    ending up as limited range bt.470.

    • [DH] libavcodec/nvenc.c
  • avcodec/internal : Move ff_thread_can_start_frame() to threadframe.h

    1er août 2022, par Andreas Rheinhardt
    avcodec/internal : Move ff_thread_can_start_frame() to threadframe.h
    

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@outlook.com>

    • [DH] libavcodec/internal.h
    • [DH] libavcodec/threadframe.h
  • POST http://localhost:3000/api/video/thumbnail 500 (Internal Server Error) MongoDB and FFmpeg

    5 juillet 2022, par VoicedCreator

    I am trying to insert a thumbnail on my page using POST and im getting this error&#xA;I want to screenshot a video using FFmpeg

    &#xA;

    const express = require(&#x27;express&#x27;);&#xA;const router = express.Router();&#xA;const multer = require(&#x27;multer&#x27;);&#xA;var ffmpeg = require(&#x27;fluent-ffmpeg&#x27;);&#xA;const { User } = require("../models/User");&#xA;&#xA;const { auth } = require("../middleware/auth");&#xA;const storage = multer.diskStorage({&#xA;    destination: function (req, file, cb) {&#xA;      cb(null, &#x27;uploads/&#x27;)&#xA;    },&#xA;    filename: function (req, file, cb) {&#xA;      cb(null, `${Date.now()}_${file.originalname}`)&#xA;    },&#xA;    fileFilter: (req, file, cb) => {&#xA;        const ext = path.extname(file.originalname);&#xA;        if(ext !== &#x27;.mp4&#x27; || ext !== &#x27;.mov&#x27; || ext !== &#x27;.wmv&#x27;){&#xA;            return cb(res.status(400).end(&#x27;Solo archivos mp4-mov-wmv son aceptados&#x27;), false);&#xA;        }&#xA;        cb(null, true)&#xA;    }&#xA;  })&#xA;  &#xA;  const upload = multer({ storage: storage }).single("file")&#xA;&#xA;&#xA;//=================================&#xA;//             User&#xA;//=================================&#xA;&#xA;router.post("/uploadfiles", (req, res) => {&#xA;&#xA;    upload(req, res, err => {&#xA;        if(err) {&#xA;            return res.json({ success: false, err })&#xA;        }&#xA;        return res.json({ success: true, filePath: res.req.file.path, fileName: res.req.file.filename })&#xA;    })&#xA;&#xA;});&#xA;&#xA;router.post("/thumbnail", (req, res) => {&#xA;&#xA;&#xA;    let filePath = ""&#xA;    let fileDuration = ""&#xA;&#xA;&#xA;    ffmpeg.ffprobe(req.body.url, function (err, metadata) {&#xA;        console.dir(metadata); // all metadata&#xA;        console.log(metadata.format.duration);&#xA;        console.log(metadata) &#xA;        fileDuration = metadata.format.duration&#xA;    });&#xA;&#xA;&#xA;    ffmpeg(req.body.url)&#xA;        .on(&#x27;filenames&#x27;, function (filenames) {&#xA;            console.log(&#x27;Will generate &#x27; &#x2B; filenames.join(&#x27;, &#x27;))&#xA;            console.log(filenames)&#xA;&#xA;&#xA;            filePath = "uploads/thumbnails/" &#x2B; filenames[0]&#xA;        })&#xA;        .on(&#x27;end&#x27;, function () {&#xA;            console.log(&#x27;Screenshots taken&#x27;);&#xA;            return res.json({ success: true, url: filePath, fileName: filenames, fileDuration: fileDuration });&#xA;        })&#xA;        .on(&#x27;error&#x27;, function (err) {&#xA;            console.error(err);&#xA;            return res.json({ success: false, err });&#xA;        })&#xA;        .screenshots({&#xA;            // Will take screenshots at 20%, 40%, 60% and 80% of the video&#xA;            count: 3,&#xA;            folder: &#x27;uploads/thumbnails&#x27;,&#xA;            size: &#x27;320x240&#x27;,&#xA;            //&#x27;%b&#x27;: input basename (filename w/o extension)&#xA;            filename: &#x27;thumbnail-%b.png&#x27;&#xA;        })&#xA;});&#xA;&#xA;&#xA;&#xA;&#xA;router.post("/thumbnail", (req, res) => {&#xA;&#xA;&#xA;    let filePath = ""&#xA;    let fileDuration = ""&#xA;&#xA;&#xA;    ffmpeg(req.body.url)&#xA;        .on(&#x27;filenames&#x27;, function (filenames) {&#xA;            console.log(&#x27;Will generate &#x27; &#x2B; filenames.join(&#x27;, &#x27;))&#xA;            console.log(filenames)&#xA;&#xA;&#xA;            filePath = "uploads/thumbnails/" &#x2B; filenames[0]&#xA;        })&#xA;        .on(&#x27;end&#x27;, function () {&#xA;            console.log(&#x27;Screenshots taken&#x27;);&#xA;            return res.json({ success: true, url: filePath, fileName: filenames, fileDuration: fileDuration });&#xA;        })&#xA;        .on(&#x27;error&#x27;, function (err) {&#xA;            console.error(err);&#xA;            return res.json({ success: false, err });&#xA;        })&#xA;        .screenshots({&#xA;            // Will take screenshots at 20%, 40%, 60% and 80% of the video&#xA;            count: 3,&#xA;            folder: &#x27;uploads/thumbnails&#x27;,&#xA;            size: &#x27;320x240&#x27;,&#xA;            //&#x27;%b&#x27;: input basename (filename w/o extension)&#xA;            filename: &#x27;thumbnail-%b.png&#x27;&#xA;        })&#xA;});&#xA;&#xA;&#xA;&#xA;module.exports = router;&#xA;

    &#xA;

    Error : POST http://localhost:3000/api/video/thumbnail 500 (Internal Server Error)&#xA;TypeError : Cannot read properties of undefined (reading 'format')

    &#xA;

    I think is because ffmpeg is not connecting to mongodb

    &#xA;