Recherche avancée

Médias (91)

Autres articles (111)

  • De l’upload à la vidéo finale [version standalone]

    31 janvier 2010, par

    Le chemin d’un document audio ou vidéo dans SPIPMotion est divisé en trois étapes distinctes.
    Upload et récupération d’informations de la vidéo source
    Dans un premier temps, il est nécessaire de créer un article SPIP et de lui joindre le document vidéo "source".
    Au moment où ce document est joint à l’article, deux actions supplémentaires au comportement normal sont exécutées : La récupération des informations techniques des flux audio et video du fichier ; La génération d’une vignette : extraction d’une (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

Sur d’autres sites (13128)

  • matroskaenc : write correct Display{Width, Height} in stereo encoding

    22 octobre 2014, par Vittorio Giovara
    matroskaenc : write correct DisplayWidth, Height in stereo encoding
    

    should be the raw amount of pixels (for example 3840x1080 for full HD side by
    side) and the DisplayWidth/Height in pixels should be the amount of pixels for
    one plane (1920x1080 for that full HD stream)."

    So, move the aspect ratio check in the mkv_write_stereo_mode() function
    and always write the embl when stereo format and/or aspect ration is set.
    Also add a few comments to that function.

    CC : libav-stable@libav.org
    Found-by : Asan Usipov <asan.usipov@gmail.com>

    • [DH] libavformat/matroskaenc.c
  • How much the duration of an mp3 file given by Ffprobe is precise ?

    24 septembre 2024, par Julien Larget-Piet

    I have an mp3 file at a sample rate value of 44100, let's name it a.mp3.

    &#xA;

    So i get the duration of a.mp3 with the following ffprobe command :

    &#xA;

    ffprobe -v error -show_entries format=duration -of default=noprint_wrappers=1:nokey=1 a.mp3

    &#xA;

    I get 7.752 seconds.

    &#xA;

    Because the sample rate is per second, in theory the total amount of samples should be,

    &#xA;

    44100 * 7.752 = 341863.2

    &#xA;

    Let's round it to 341863

    &#xA;

    But using python library ffmpegio with the following code, i get a total amount of sample equal to 340560.

    &#xA;

    with ffmpegio.open(file, &#x27;ra&#x27;, blocksize = 16, sample_fmt = &#x27;dbl&#x27;) as file_opened:&#xA;&#xA;        for i, indata in enumerate(file_opened):&#xA;&#xA;            do some stuff&#xA;    print(i * 16)&#xA;

    &#xA;

    So there is a non-negligible difference between 341863 and 340560.

    &#xA;

    I think it comes from the duration value given by Ffmpeg.&#xA;What do you thin ?

    &#xA;

    I search in ffmpegio documentation, but found nothing that trigered my attention :

    &#xA;

    https://python-ffmpegio.github.io/python-ffmpegio/

    &#xA;

    Thanks.

    &#xA;

    Search for answers about the precision of the ffprobe command.

    &#xA;

  • get consistent 60fps while recording X screen with ffmpeg

    28 janvier 2021, par thelmuxkriovar

    I wrote the following script to record an X screen for a specified amount of time, to make sure that it's lossless I've separated it into two steps

    &#xA;

      &#xA;
    1. record for the specified amount in a codec that requires almost no compression (so there's no overhead that might cause frames to be dropped)
    2. &#xA;

    3. re-encode the original video into HEVC to make the filesize significantly smaller
    4. &#xA;

    &#xA;

    ffmpeg -hwaccel cuda -hwaccel_output_format cuda -vsync 1 -f x11grab -probesize 128M -s 1920x1080 -r 60 -i :0.0 -qscale 0 -vcodec huffyuv -t 00:01:13 "$video.avi" # record the screen losslessly&#xA;ffmpeg -hwaccel cuvid -vsync 1 -i "$video.avi" -map 0:0 -c:v:0 hevc_nvenc -crf 23 -preset medium "$video-clean.mp4"&#xA;

    &#xA;

    This works just like I expect it to some of the time, but very often it drops a lot of frames (I've seen as many as 10000 frames dropped on occasion)

    &#xA;

    The gpu is a 1080 TI that's being used just for rendering an X server with a chrome window and recording it, according to nvidia-smi the usage never goes to higher than 50% even in the most extreme cases.

    &#xA;

    I don't know what else to try, I thought about using a ramdisk to write the file to as it might be an IO problem, but ffmpeg refuses to write to tmpfs (for some reason I can't explain)

    &#xA;