Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (71)

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

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

Sur d’autres sites (11869)

  • mmaldec : be more tolerant against MMAL not returning decoded output

    23 septembre 2015, par wm4
    mmaldec : be more tolerant against MMAL not returning decoded output
    

    In some situations, MMAL won’t return a decoded frame for certain input
    frames. This can happen if a frame fails to decode, or if a packet does
    not actually contain a complete frame. In these situations, we would
    deadlock (or actually timeout) waiting for an expected output frame,
    which is not ideal. On the other hand, there are situations where we
    definitely have to block to avoid deadlocks. (This mess is a
    consequence of trying to map MMAL’s asynchronous and flexible
    dataflow to libavcodec, which is more static and rigid.)

    Solve this by doing a blocking wait only if the amount of buffered data
    is too big. The whole purpose of the blocking wait is to avoid excessive
    buffering of input data, so we can skip it if it appears to be low. The
    consequence is that libavcodec can gracefully return no frame to the
    API user.

    We want to track the number of full packets to make our heuristic work.
    But MMAL buffers are fixed-size, requiring splitting large packets. This
    is why the previous commit is needed. We use the ..._FRAME_END flag to
    remember packet boundaries, but MMAL does not preserve these buffer
    flags when returning buffers to the user.

    Signed-off-by : Luca Barbato <lu_zero@gentoo.org>

    • [DBH] libavcodec/mmaldec.c
  • ffmpeg/libav easy way to set options for muxer, codec, format, etc [closed]

    14 mars 2023, par Patrick

    Edit (shorter question) :

    &#xA;

    In the ff tools (e.g. ffplay) I can set all kinds of options by simply providing a list of arguments in cmd. Id like to do that programmatically as well and without having to look up where it belongs and insert it in the different AVDictionary by hand every time. Is there a way to do this easily ?

    &#xA;

    Long question :

    &#xA;

    I recently messed around with ffplay code to see how it works and I noticed it uses a very straight forward way to parse and set all the command line options using the library internal cmdutils.h. I personally find the av_opt_set used in other examples of av wrappers quite confusing (Some args are explicitly stored in the struct, some in priv_data ? Im allowed/supposed to modify void*priv_data ? Which objects can I use av_opt_set on ? Which args go in which object and are they declared or in priv_data ? Where is this documented ?).&#xA;In ffplay all args are simply stored in an array and distributed to the right codec/muxer/format instance using cmdutil.&#xA;Id like to have exactly this functionality for my program (so that i can simply read a json config and don't need to care about it any further). Apparently the necessary OptionDef arrays are already defined in different implementation files.

    &#xA;

    However my actual question : I noticed the OptionDef array definition in ffplay does not contain all options (only some from cmdutil included via macro). But other options e.g. fflags are not included anywhere (only defined somewhere else) and yet they work. So how does cmdutil set/parse them ?

    &#xA;

    I hope someone can answer this, since simply adapting cmdutil would be a quite simple solution for me. Id also really appreciate some general guidance regarding my previous questions.

    &#xA;

    Many Thanks in advance !

    &#xA;

    I tried looking into the ffmpeg source and expected all OptionDef array definitions to be connected/collected inside a single array such that cmdutil can parse them easily. However this isn't the case and still some cmd options work. Therefore Im confused on how cmtutil is able to parse them

    &#xA;

  • Accuracy of trimming/concatenating parts of videos with ffmpeg

    10 mai 2020, par Circonflexe

    I am adjusting a video (with audio track) using ffmpeg, with the goal being to move the time position of some given points of the video as precisely as possible in time (ideally, with an accuracy of 1ms), by using a piecewise affine transform on the time of the video.&#xA;For this I use ffmpeg with a combination of trim, setpts, atrim, atempo, and concat filters, such as :

    &#xA;&#xA;

    ffmpeg -i input.mp4 -filter_complex \&#xA;&#x27;[0:v]trim=start=0:end=162.328554216868,setpts=1.194377385743*(PTS-STARTPTS)[v0];&#x27;\&#xA;&#x27;[0:a]atrim=start=0:end=162.328554216868,asetpts=PTS-STARTPTS,atempo=.837256307710[a0];&#x27;\&#xA;&#x27;[0:v]trim=start=162.328554216868:end=173.161445783132,setpts=1.135513218334*(PTS-STARTPTS)[v1];&#x27;\&#xA;&#x27;[0:a]atrim=start=162.328554216868:end=173.161445783132,asetpts=PTS-STARTPTS,atempo=.880659056939[a1];&#x27;\&#xA;&#x27;[0:v]trim=start=173.161445783132:end=197.842554216868,setpts=1.093796435691*(PTS-STARTPTS)[v2];&#x27;\&#xA;&#x27;[0:a]atrim=start=173.161445783132:end=197.842554216868,asetpts=PTS-STARTPTS,atempo=.914246899486[a2];&#x27;\&#xA;&#x27;[0:v]trim=start=197.842554216868:end=208.505445783132,setpts=1.145926645725*(PTS-STARTPTS)[v3];&#x27;\&#xA;&#x27;[0:a]atrim=start=197.842554216868:end=208.505445783132,asetpts=PTS-STARTPTS,atempo=.872656206861[a3];&#x27;\&#xA;&#x27;[0:v]trim=start=208.505445783132:end=212.61,setpts=PTS-STARTPTS[v4];&#x27;\&#xA;&#x27;[0:a]atrim=start=208.505445783132:end=212.61,asetpts=PTS-STARTPTS,atempo=1[a4];&#x27;\&#xA;&#x27;[v0][a0][v1][a1][v2][a2][v3][a3][v4][a4]concat=n=5:v=1:a=1[v][a]&#x27; \&#xA;-map &#x27;[v]&#x27; -map &#x27;[a]&#x27; output.mp4&#xA;

    &#xA;&#xA;

    (the numeric values above are obviously generated by another script, not by hand !). However I find that the resulting audio track has some “whitespace” inserted wherever two parts are joined. For example, when joining a longer file (about 4 minutes with 31 parts in total), I found that the duration of the file had increased by about 0.3 second in total, which obviously defeats the “millisecond-accuracy” goal.

    &#xA;&#xA;

    How could I tell ffmpeg to make the transitions as exact as possible ?

    &#xA;