Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (108)

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Formulaire personnalisable

    21 juin 2013, par

    Cette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
    Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire. (...)

Sur d’autres sites (10304)

  • ffmpeg text overlay both ${frame_num} and :timecode values ?

    2 novembre 2022, par Whome

    Text overlay does not work if framenum 1..n and timecode hh:mm:ss:frame attributes are used together, how do overlay both running values ?

    


    Does not work, only timecode is incrementing and framenum is a as a text:
ffmpeg.exe -hide_banner -nostats ^
  -i "video_25fps.mp4" -threads 4 -preset fast ^
  -c:v libx264 -profile:v main -level 4.0 -s:v 640x360 -b:v 512k -pix_fmt yuv420p ^
  -refs 3 -bf 3 -g 50 -keyint_min 25 -b_strategy 1 -flags +cgop -sc_threshold 0 ^
  -movflags "negative_cts_offsets+faststart" ^
  -vf "drawtext=fontfile=/fonts/Roboto-Regular.ttf:fontcolor=White:fontsize=38:box=1:boxcolor=black:x=(w-text_w)/2:y=text_h-line_h+60:text='H264\ 640x360\ 512k\ frame\: %{frame_num}\ ':start_number=1:timecode=00\\:00\\:00\\:00:rate=25" ^
  -an -sn -t 30 -y output.mp4

Works if framenum only:
  -vf "drawtext=fontfile=/fonts/Roboto-Regular.ttf:fontcolor=White:fontsize=38:box=1:boxcolor=black:x=(w-text_w)/2:y=text_h-line_h+60:text='H264\ 640x360\ 512k\ frame\: %{frame_num}':start_number=1"

Works if timecode only:
  -vf "drawtext=fontfile=/fonts/Roboto-Regular.ttf:fontcolor=White:fontsize=38:box=1:boxcolor=black:x=(w-text_w)/2:y=text_h-line_h+60:text='H264\ 640x360\ 512k\ ':timecode='00\:00\:00\:00':rate=25"


    


  • FFMPEG : using video filter with complex filter

    4 septembre 2019, par Sebastien

    I’m using the fluent-ffmpeg Node.js library to perform batch manipulations on video files. The video filter which crops a 16:9 input, adds padding and burns subtitles into the padding.

    In the next step, I would like to use a complex filter to overlay an image as a watermark.

    ff.input(video.mp4)
    ff.input(watermark.png)
    ff.videoFilter([
     'crop=in_w-2*150:in_h',
     'pad=980:980:x=0:y=0:color=black',
     'subtitles=subtitles.ass'
    ])
    ff.complexFilter([
     'overlay=0:0'
    ])
    ff.output(output.mp4)

    However, running this, I get the following error :

    Filtergraph 'crop=in_w-2*150:in_h,pad=980:980:x=0:y=0:color=black,subtitles=subtitles.ass' was specified through the -vf/-af/-filter option for output stream 0:0, which is fed from a comple.
    -vf/-af/-filter and -filter_complex cannot be used together for the same stream.

    From what I understand the video filter and complex filter options can’t be used together. How does one get around this ?

  • How to combine multiple images horizontally and vertically using ffmpeg [duplicate]

    7 février 2020, par user3625087

    I’m attempting to create a script that can stitch together images side by side. These images are basically letters that I want to create words with (think of those ransom letters in Hollywood movies with randomly cut out letters from magazines). I need to specifically use these images, so I don’t want ffmpeg to type out some words into images itself. I’ve seen some similar answers using hstack and tile filter complexes but those didn’t work for me. Here is what I’ve tried so far :

    ffmpeg -pattern_type glob -i h.png -i e.png -i l.png -i l.png -i o.png -filter_complex tile=5x1 test.png

    For this one, -pattern_type didn’t exist as an option (I’m using ffmpeg 4.2 on Windows), so I removed it and the result was 1 letter and black space for the rest.

    ffmpeg -y -i h.png -i e.png -i l.png -i l.png -i o.png -filter_complex hstack test.png

    For this one, the result was 2 letters side by side, and then black space for the rest.

    All of my images are of the same height and variable width. Is there a command that can achieve this ?