Recherche avancée

Médias (2)

Mot : - Tags -/plugins

Autres articles (51)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (11240)

  • Q : ffmpeg drawtext "localtime" video filter - display in custom format

    24 mars 2016, par Kārlis K.

    I’m having issues escaping ’ :’ symbol and displaying localtime in a hms(HH:MM:SS) format for overlay over a Live input(MPEG-TS) which is then pushed out as Live output - I’ve fumbled my way to displaying ’localtime’ in a format which achieves about half of what I’m trying to get to, the code sample of that is :

    ffmpeg -re -hide_banner -i LIVE_INPUT -vf drawtext="fontsize=90:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='%{localtime\:%H %M %S}'" -f LIVE_OUTPUT

    What it achieves is that it displays local time in a "HH MM SS" format instead of "HH:MM:SS"...


    I did try escaping ’ :’ by writing it like this :

    ffmpeg -re -hide_banner -i LIVE_INPUT -vf drawtext="fontsize=90:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='%{localtime\:%H\\:%M\\:%S}'" -f LIVE_OUTPUT

    and this :

    ffmpeg -re -hide_banner -i LIVE_INPUT -vf drawtext="fontsize=90:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='%{localtime\:%H\:%M\:%S}'" -f LIVE_OUTPUT

    as well as like this :

    ffmpeg -re -hide_banner -i LIVE_INPUT -vf drawtext="fontsize=90:fontcolor=white:fontfile=/Windows/Fonts/arial.ttf:text='%{localtime\:%H \: %M \: %S}'" -f LIVE_OUTPUT

    But none of the above helped as it returns different errors because ffmpeg tries to either parse ’%H’ ’%M’ and ’%S’ as multiple, separate arguments for localtime (localtime then complains that it can only accept x1 argument at most), or ffmpeg complains that there are loose ’%’ characters near "H" ... clearly I’m not escaping it correctly or my argument order is incorrect...

  • colored TV-Noise with windows

    8 janvier 2024, par LookAndSee

    I have some question to the colored noise at image 2 of the following thread :

    


    Simulating TV noise

    


      

    • how can i get this in windows ? I like a random pattern consisting of red, green, blue, white and black points, like 255:0:0, 0:255:0, 0:0:255, 255:255:0, 0:0:0 and 255:255:255 - no pink, no orange, no cyan ... at the first step.
    • 


    


    but random in all 3 places always delievers (with ceil, floor or round) whole black, or whole white or bw-noise :-(
does it mean, the random(1) per point is 3 times the same in one computing-cycle ?

    


    Any suggestion ?

    


    This is what i tried :

    


    ffmpeg -y -f lavfi -i nullsrc=s=1280x720 -filter_complex "geq=r=(round(random(1)))*255:g=(round(random(1)))*255:b=(round(random(1)))*255;aevalsrc=-2+random(0)" -t 5 output.mkv


    


  • Change the Sample/Pixel aspect ratio of video with least possible video re-encoding

    27 août 2022, par PiTao

    I need to have some mp4 videos with square sample (pixel) aspect ratio (1:1) i.e. square pixels. However, as ffprobe shows my video has PAR of 59:54.

    


    I have tried using this command :

    


    ffmpeg  -i in.mp4 -c copy -bsf:v "h264_metadata=sample_aspect_ratio=1/1" out.mp4


    


    but still the PAR has not changed in my downstream applicaiton or as I checked it with the ffprobe :

    


    ffprobe version n5.1 Copyright (c) 2007-2022 the FFmpeg developers
  built with gcc 12.1.1 (GCC) 20220730
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-amf --enable-avisynth --enable-cuda-llvm --enable-lto --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librav1e --enable-librsvg --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-libzimg --enable-nvdec --enable-nvenc --enable-shared --enable-version3
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'vimeo_11261121.mp4':
  Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf59.27.100
  Duration: 00:00:52.36, start: 0.000000, bitrate: 519 kb/s
  Stream #0:0[0x1](eng): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv444p(progressive), 720x576 [SAR 1:1 DAR 5:4], 382 kb/s, SAR 59:54 DAR 295:216, 25 fps, 25 tbr, 12800 tbn (default)
    Metadata:
      handler_name    : Apple Video Media Handler
      vendor_id       : [0][0][0][0]
  Stream #0:1[0x2](eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 130 kb/s (default)
    Metadata:
      handler_name    : Apple Sound Media Handler
      vendor_id       : [0][0][0][0]


    


    If I not mistaken, the ffmpeg only changes the metadata and not the actual PAR. Is it possible to change the PAR (sample aspect ratio) preferably without much re-encoding ?