Recherche avancée

Médias (1)

Mot : - Tags -/bug

Autres articles (56)

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

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (3201)

  • avformat/dashdec : Remove redundant checks

    19 septembre 2020, par Andreas Rheinhardt
    avformat/dashdec : Remove redundant checks
    

    This commit removes two always-true checks as well as a dead default
    case of a switch. The check when parsing manifests is always true,
    because we now jump to the cleaning code in case the format of the
    representation is unknown. The default case of the switch is dead,
    because the type of the representation is already checked at the
    beginning of parse_manifest_representation(). The check when reading
    the header is dead, because we error out if an error happened before.

    Reviewed-by : Steven Liu <lq@chinaffmpeg.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/dashdec.c
  • avcodec/utils : Only call codec->close if init has been called

    24 septembre 2020, par Andreas Rheinhardt
    avcodec/utils : Only call codec->close if init has been called
    

    avcodec_open2() also called the AVCodec's close function if an error
    happened before init had ever been called if the AVCodec has the
    FF_CODEC_CAP_INIT_CLEANUP flag set. This is against the documentation of
    said flag : "The codec allows calling the close function for deallocation
    even if the init function returned a failure."

    E.g. the SVQ3 decoder is not ready to be closed if init has never been
    called.

    Fixes : NULL dereference
    Fixes : 25762/clusterfuzz-testcase-minimized-ffmpeg_AV_CODEC_ID_SVQ3_fuzzer-5716279070294016

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg

    Reviewed-by : Paul B Mahol <onemda@gmail.com>
    Reviewed-by : Michael Niedermayer <michael@niedermayer.cc>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/utils.c
  • Express - FFMPEG : Serve transcoded video instead of static video file

    30 septembre 2020, par No stupid questions

    I am creating a website to host videos downloaded on my computer online. However, many of these videos are not in a web friendly format (like .mkv or .flv). It is not an option to convert these files on the disk and then serve them as static files, converting needs to be done live by the server. I want to transcode these videos with ffmpeg to a web friendly format like webm.

    &#xA;

    So far, I have been able to somewhat successfully transcode a video and serve it :

    &#xA;

    import express from &#x27;express&#x27;;&#xA;import cors from &#x27;cors&#x27;;&#xA;import ffmpeg from &#x27;fluent-ffmpeg&#x27;;&#xA;&#xA;const app = express();&#xA;&#xA;app.use(cors());&#xA;app.use(express.json());&#xA;&#xA;app.use(&#x27;/static/videos&#x27;, globalPasswordMiddleware, (req, res) => {&#xA;    res.contentType(&#x27;webm&#x27;);&#xA;    const videoPath = path.join(&#x27;C:/videos&#x27;, decodeURIComponent(req.path));&#xA;    ffmpeg(videoPath)&#xA;        .format(&#x27;webm&#x27;)&#xA;        .on(&#x27;end&#x27;, function () {&#xA;            console.log(&#x27;file has been converted succesfully&#x27;);&#xA;        })&#xA;        .on(&#x27;error&#x27;, function (err) {&#xA;            console.log(&#x27;an error happened: &#x27; &#x2B; err.message);&#xA;        })&#xA;        .pipe(res, { end: true });&#xA;});&#xA;

    &#xA;

    However, I am still encountering three different issues :

    &#xA;

    Firstly, while this code seems to work for transcoding something like a flash video into webm, there are still a number of videos I cannot get to play. For example, a number of videos that play in Chrome will still not play in Firefox or a number of videos that play on my PC won't on my ancient iPad. Are there more arguments I need to be passing to ffmpeg to transcode the video in a way that it will work on a greater number or devices/browsers ?

    &#xA;

    Second, there is no ability to seek on the video or see how much time remains. When viewing a transcoded video it behaves more like a livestream than if I were serving it as a static file. How can I fix this ?

    &#xA;

    And finally third, the transcoding is massively slow. Running in production mode, video playback has to buffer for a few seconds every five or so seconds. I am aware transcoding video is an intense process but I believe given my computer's hardware (i9 9900K) and how much faster it is at transcoding videos on Plex that I should be able to transcode videos faster than this.

    &#xA;