Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (16)

  • Participer à sa documentation

    10 avril 2011

    La documentation est un des travaux les plus importants et les plus contraignants lors de la réalisation d’un outil technique.
    Tout apport extérieur à ce sujet est primordial : la critique de l’existant ; la participation à la rédaction d’articles orientés : utilisateur (administrateur de MediaSPIP ou simplement producteur de contenu) ; développeur ; la création de screencasts d’explication ; la traduction de la documentation dans une nouvelle langue ;
    Pour ce faire, vous pouvez vous inscrire sur (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

  • Pas question de marché, de cloud etc...

    10 avril 2011

    Le vocabulaire utilisé sur ce site essaie d’éviter toute référence à la mode qui fleurit allègrement
    sur le web 2.0 et dans les entreprises qui en vivent.
    Vous êtes donc invité à bannir l’utilisation des termes "Brand", "Cloud", "Marché" etc...
    Notre motivation est avant tout de créer un outil simple, accessible à pour tout le monde, favorisant
    le partage de créations sur Internet et permettant aux auteurs de garder une autonomie optimale.
    Aucun "contrat Gold ou Premium" n’est donc prévu, aucun (...)

Sur d’autres sites (4382)

  • How to synchronize audio and video using ffmpeg libraries ?

    21 octobre 2013, par jsp99

    Stuck writing a very basic media player in C, using SDL and ffmpeg libraries. Initially, followed the theory in this page to get an idea about the entire program and the usage of libraries. After coding from scratch, thanks to that tutorial and many other resources, finally I made my code work, using the latest libraries of ffmpeg and SDL (2.0). But my code lacks a proper synchronization mechanism (actually it lacks a sync mechanism !).

    I still don't have a clear idea on how to synchronize the audio and video together as the theory provided in the link is only very partially correct (atleast when it comes to using the latest dev libraries).
    For example, a sentence in this page is as follows :

    However, ffmpeg reorders the packets so that the DTS of the packet being processed by avcodec_decode_video() will always be the same as the PTS of the frame it returns.

    I am using avcodec_decode_video2() and the DTS of the packet is definitely not the same as pts of the frame it decodes (in general).

    I read this very informative BBC report and it makes complete sense. I have a clear idea about PTS and DTS. But the PTS and DTS values that ffmpeg is using for packets and decoded frames is confusing. I wish there were some documentation on that aspect.

    Can someone explain the steps to synchronize audio and video ? I only need the steps. I am quite comfortable implementing them. Any help is greatly appreciated. Thanks !

    PS : Here's a screenshot of what I am talking about :

    enter image description here

    The huge negative value is, I assume AV_NOPTS_VALUE.

  • Merge commit ’05a4bacbf7ece618553d339afe1d0b57bc87aea8’

    9 juillet 2016, par Clément Bœsch
    Merge commit ’05a4bacbf7ece618553d339afe1d0b57bc87aea8’
    

    * commit ’05a4bacbf7ece618553d339afe1d0b57bc87aea8’ :
    avpacket : Error out when creating 0-sized side data

    This commit is a noop, see 5a633ec2dd453c67ff23819c28d98e6b09c47295

    AV_PKT_DATA_METADATA_UPDATE can be zero sized in order to clear old
    meta.

    Note : maybe we could add a start or end marker.

    Merged-by : Clément Bœsch <u@pkh.me>

  • Rendering video by ffmpeg.wasm in browser occured an error

    15 septembre 2022, par James Bor

    When a local video renderer uses the ffmpeg.wasm library in the Chrome browser, very often an error with the SBOX_FATAL_MEMORY_EXCEEDED code occurs during the rendering process. The standard command set is used. The code below is half fake because it is very long, but describes an approximate action algorithm. Computer performance and RAM capacity do not affect the video, files used - minimal size. Has anyone experienced this and how can we solve it ?&#xA;Error screen

    &#xA;

    const videoGenerate = async (project) => {&#xA;  const ffmpeg = createFFmpeg({&#xA;      corePath: &#x27;ffmpeg/ffmpeg-core.js&#x27;,&#xA;      workerPath: &#x27;ffmpeg/ffmpeg-core.worker.js&#x27;&#xA;  });&#xA;  await loadFfmpeg(ffmpeg);&#xA;  project.projectName = "Default";&#xA;  project.fileType = "video/mp4";&#xA;&#xA;  const resultVideo = {&#xA;    title: `${project.projectName}ConcatenatedVideo.mp4`,&#xA;  };&#xA;  // *For fetchFile method and ffmpeg.FS(&#x27;writeFile&#x27;, title, file);&#xA;  await uploadObjects(project.projectName, ffmpeg);&#xA;  // *&#xA;  const command = [&#x27;-i&#x27;, project.video, resultVideo.title];&#xA;  await ffmpeg.run(...command);&#xA;  await ffmpeg.FS("unlink", resultVideo.title);&#xA;  resultVideo["blob"] = ffmpeg.FS(&#x27;readFile&#x27;, title);&#xA;  return resultVideo.blob;&#xA;};&#xA;

    &#xA;

    These dependencies are used : "@ffmpeg/core" : " 0.8.5", "@ffmpeg/ffmpeg" : " 0.9.7". Upgrading the library to the latest version does not work either.

    &#xA;