Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (84)

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

  • do uploaded files to lambda persist ?

    24 novembre 2023, par Sam Leurs

    I have a node.js function where users kan upload a video file. The video file is uploaded to an S3-bucket. I have a lambda function which listens to the bucket for every upload. Every video that gets uploaded, gets converted via ffmpeg and stored into another bucket, and the original file is deleted.

    


    I messed around with ffmpeg in lambda, quiet difficult. I now have it working, but there is one problem : I'm using fluent-ffmpeg, and streaming data in and out from a bucket doesn't work.

    


    This is my code :

    


    promise...
ffmpeg().input(`https://s3.eu-central-1.amazonaws.com/mybucket.mywebsite.com/${key}`)
        .addInputOption('-analyzeduration 100M')
        .addInputOption('-probesize 100M')
        .toFormat('mp4')
        .addOutputOption("-preset veryfast")
        .addOutputOption("-movflags frag_keyframe+empty_moov")
        .addOutputOption("-crf 28")
        .output('/tmp/output.mp4')
        .on('error', (err, stdout, stderr) => {
            console.log(err);
            console.log('Stdout: %o', stdout);
            console.log('Stderr: %o', stderr);
            reject(err);
        })
        .on('end', () => {
          resolve();
        });
.run();


    


    As you can see, as an input file, I directly read the url of the video file. I wanted to create a readstream (I do this with images), but that didn't work.

    


    I temporary store the created video file as /tmp/output.mp4. After the code is done, I do this :

    


    await putObjectToS3(process.env.MY_NEW_BUCKET, newKey, '/tmp/output.mp4', mimeType);


    


    This works.

    


    My question now is : when the lambda function is done, what happens with the file in /tmp/output.mp4 ? Is it deleted, or is it stored somewhere until I deleted it. I don't need it anymore so I don't want to pay for the storage of it.

    


    Thanks in advance.

    


  • FFmpeg with m3u8 playlist : Invalid data found when processing input [closed]

    15 mai 2023, par anthnyprschka

    I get the following error when I try to open a playlist with FFmpeg :

    


    ffmpeg version 2023-03-05-git-912ac82a3c-essentials_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
  built with gcc 12.2.0 (Rev10, Built by MSYS2 project)
  configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-bzlib --enable-lzma --enable-zlib --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-sdl2 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-mediafoundation --enable-libass --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libvpl --enable-libgme --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libtheora --enable-libvo-amrwbenc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-librubberband
  libavutil      58.  3.100 / 58.  3.100
  libavcodec     60.  6.100 / 60.  6.100
  libavformat    60.  4.100 / 60.  4.100
  libavdevice    60.  2.100 / 60.  2.100
  libavfilter     9.  4.100 /  9.  4.100
  libswscale      7.  2.100 /  7.  2.100
  libswresample   4. 11.100 /  4. 11.100
  libpostproc    57.  2.100 / 57.  2.100
playlist.m3u8: Invalid data found when processing input


    


    Command I use :

    


    ffmpeg [-allowed_extensions ALL] -i playlist.m3u8 -c copy playlist.mp4


    


    Playlist file :

    


    #EXTM3U
#EXTINF:-1,0
https://20230515.s3.eu-central-1.amazonaws.com/output0000f.mp4
#EXTINF:-1,1
https://20230515.s3.eu-central-1.amazonaws.com/output0001f.mp4
#EXTINF:-1,2
https://20230515.s3.eu-central-1.amazonaws.com/output0002f.mp4


    


    The playlist plays fine in VLC player

    


  • Is it a way to seek videos faster with ffmpeg while applying some filters ?

    21 mars 2023, par Peter.k

    I use parameters to cut a fragment from a video which in normal circumstances works well, but when I apply some filters, which may cause processors to be a bit busy, the seeking method seems to work very long. For example :

    


    ffmpeg -i "i:\longmovie.mp4" -vf "subtitles=longmovie.srt:force_style='FontName=Central European Time 13\:37,FontSize=20,PrimaryColour=&H00171771,OutlineColour=&HFFFFFFFF,BorderStyle=4,BackColour=&H33FFFFFF,Outline=5,Shadow=0,MarginV=10'" -b:v 1000k -ss 02:01:54.0 -to 02:02:13.0 -preset ultrafast e:/tt147+3.mp4


    


    I put those -ss and -to parameters at the end of the command, because it doesn't work in other places. It either produces very long video or skips the whole filter.

    


    Can I use some trick to make it faster. The problem is in jumping to the desired 02:01:54 time - the rest works ok.