Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (97)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Possibilité de déploiement en ferme

    12 avril 2011, par

    MediaSPIP peut être installé comme une ferme, avec un seul "noyau" hébergé sur un serveur dédié et utilisé par une multitude de sites différents.
    Cela permet, par exemple : de pouvoir partager les frais de mise en œuvre entre plusieurs projets / individus ; de pouvoir déployer rapidement une multitude de sites uniques ; d’éviter d’avoir à mettre l’ensemble des créations dans un fourre-tout numérique comme c’est le cas pour les grandes plate-formes tout public disséminées sur le (...)

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (8112)

  • avdevice/dshow : set no-seek flags

    21 décembre 2021, par Diederick Niehorster
    avdevice/dshow : set no-seek flags
    

    avdevice/dshow is a realtime device and as such does not support
    seeking. Therefore, its demuxer format should define the
    AVFMT_NOBINSEARCH, AVFMT_NOGENSEARCH and AVFMT_NO_BYTE_SEEK flags.
    With these flags set, attempting to seek (with, e.g.,
    avformat_seek_file()) correctly yields -1 (operation not permitted)
    instead of -22 (invalid argument).

    This actually seems to apply to many other devices, at least the
    gdigrab, v4l2, vfwcap, x11grab, fbdev, kmsgrab and android_camera
    devices, from reading the source.

    Signed-off-by : Diederick Niehorster <dcnieho@gmail.com>
    Reviewed-by : Roger Pack <rogerdpack2@gmail.com>

    • [DH] libavdevice/dshow.c
  • seek : Fix crashes in ff_seek_frame_binary if built with latest Clang 14

    18 octobre 2021, par Martin Storsjö
    seek : Fix crashes in ff_seek_frame_binary if built with latest Clang 14
    

    Passing an uninitialized variable as argument to a function is
    undefined behaviour (UB). The compiler can assume that UB does not
    happen.

    Hence, the compiler can assume that the variables are never
    uninitialized when passed as argument, which means that the codepaths
    that initializes them must be taken.

    In ff_seek_frame_binary, this means that the compiler can assume
    that the codepaths that initialize pos_min and pos_max are taken,
    which means that the conditions "if (sti->index_entries)" and
    "if (index >= 0)" can be optimized out.

    Current Clang git versions (upcoming Clang 14) enabled an optimization
    that does this, which broke the current version of this function
    (which intentionally left the variables uninitialized, but silencing
    warnings about being uninitialized). See [1] for discussion on
    the matter.

    [1] https://reviews.llvm.org/D105169#3069555

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DH] libavformat/seek.c
  • Formula to get frame display number after seek in FFmpeg

    27 septembre 2021, par ZeroDefect

    For a given AV file, I need to be able to seek to a particular video frame number in the file. Because of how decoding works, I am seeking to the nearest I-Frame before the required frame (which may or may not be the requested frame) and then decoding the frames in the GOP until I get to where I need to be. As such, I need to know my current position after seeking.

    &#xA;

    Having found some posts of a similar nature on SO, I've gone away and collected a few interesting samples to see if I can get a formula to work across many different files, but I'm having a hard time. What works or 1 file may not work for another :

    &#xA;

    File #1 (Podbox)

    &#xA;

    Requested to seek to fame #1500. First video frame reports :

    &#xA;

    AVFrame::pts = 760320&#xA;AVFrame::pkt_duration = 512&#xA;&#xA;AVStream::time_base = {1,12800}&#xA;AVStream::start_time = 0&#xA;AVStream::avg_frame_rate = {25,1}&#xA;

    &#xA;

    File #2 (HTE54959)

    &#xA;

    Requested to seek to fame #1500. First video frame reports :

    &#xA;

    AVFrame::pts = 1500&#xA;AVFrame::pkt_duration = 1&#xA;&#xA;AVStream::time_base = {1,25}&#xA;AVStream::start_time = 0&#xA;AVStream::avg_frame_rate = {25,1}&#xA;

    &#xA;

    File #3 (BuckBunny)

    &#xA;

    Requested to seek to fame #1800. First video frame reports :

    &#xA;

    AVFrame::pts = 1563562&#xA;AVFrame::pkt_duration = 1001&#xA;&#xA;AVStream::time_base = {1,30000}&#xA;AVStream::start_time = 0&#xA;AVStream::avg_frame_rate = {30000,1001}&#xA;

    &#xA;

    File #4 (HouseDance)

    &#xA;

    Requested to seek to fame #1800. First video frame reports :

    &#xA;

    AVFrame::pts = 1800&#xA;AVFrame::pkt_duration = 1&#xA;&#xA;AVStream::time_base = {1001,30000}&#xA;AVStream::start_time = 0&#xA;AVStream::avg_frame_rate = {30000,1001}&#xA;

    &#xA;

    For the above files, the following members are always zero :

    &#xA;

    AVFrame::coded_picture_number&#xA;AVFrame::display_picture_number&#xA;

    &#xA;

    I have thought about merely using AVFrame::pts / AVFrame::pkt_duration, but I'm not sure that is the right way of doing things. I know for some codecs, there can be a variable frame rate (VFR) which would mean that my method is erroneous ? I assume that the AVFrame::pkt_duration could change per AVFrame ?

    &#xA;

    I want to emphasize that my issue is not being able to seek. I am seeking to the correct location - I have verified that visually using timecode. My issue is programmatically identifying the frame number of the seek position

    &#xA;

    Using FFmpeg v4.2.4

    &#xA;