Recherche avancée

Médias (1)

Mot : - Tags -/belgique

Autres articles (66)

  • Installation en mode ferme

    4 février 2011, par

    Le mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
    C’est la méthode que nous utilisons sur cette même plateforme.
    L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
    Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

  • 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 (...)

Sur d’autres sites (12046)

  • ffmpeg : Convert any Video to padded and scaled 720p

    29 mai 2014, par capitalg

    I looked for 2 hours through the documentation, but I couldn’t figure it out.

    I currently write a script and now I need to concat up to 10 videos with different ratios/framerates/codecs/size etc.

    Currently I work with the following :

    ffmpeg.exe -i part1.mp4 -i part2.mp4 -filter_complex \
    "[0:v]pad=width=1280:height=720:color=black[v1]; \
    [1:v]scale=1280:720[v2]; \
    [v1][0:a][v2][1:a]concat=n=2:v=1:a=1[outv][outa]" \
    -map "[outv]" -map "[outa]" -c:v libx264 -preset ultrafast -qp 0 output.mkv

    This does attach the video but doesn’t upscale the 1st video (which is in 640x480, the 2nd video is in 720p). I can put it somewhere with x and y, but it won’t grow to the full screen.

    And as I’m already asking, here’s another question :

    ffmpeg.exe -i part1.mp4 -i part3.mp4 -i part2.mp4 -filter_complex \
    "movie=part1.mp4, scale=1280:720 [v1] ; \
    amovie=part1.mp4 [a1] ; \
    movie=part3.mp4, pad=width=1280:height=720:x=160:y=0:color=black, scale=1280:720 [v2] ; \
    amovie=part2.mp4 [a2] ; \
    movie=part2.mp4, scale=1280:720 [v3] ; \
    amovie=part2.mp4 [a3] ; \
    [v1] [v3] [v2] concat=n=3 [outv] ; \
    [a1] [a3] [a2] concat=n=3:v=0:a=1 [outa]" \
    -map "[outv]" -map "[outa]" -c:v libx264 -preset ultrafast -qp 16 output.mp4

    why does I have to write concat=n=3:v=0:a=1 [outa] but only concat=n=3 [outv]. When I also write concat=n=3 [outa] it will result in an error.

  • ffmpeg : How to get ffmpeg to ignore or fill in missing frames in the input image sequence [closed]

    6 février 2024, par Greg E

    I have input frames image.0001.png, image.0002.png etc. Converting them to mp4 with

    


    ffmpeg -f image2 -i image.%04d.png -vcodec libx264 -crf 1 -pix_fmt yuv420p out.mp4

    


    However if there are missing frames in the sequence, eg. image.0020.png is missing, ffmpeg stops at frame 19 and makes a truncated movie with 19 frames.

    


    I'd like ffmpeg to just ignore the missing frame 0020, or repeat 0019 as 0020, or anything else sensible (look ahead and pull 0021 back to be 0020 ?).

    


    For context, this is a moving geometric art thing and a skipped frame will be a noticeable jerk in the movie, probably a repeated frame will be smoother.

    


    Thanks for any assistance.

    


    (Environment : Mac M1, Sonoma 14.3, ffmpeg 6.1.1)

    


  • Generating fragmented mp4 ffmpeg is causing the video to have a duration of 0ms in bento4

    23 octobre 2020, par noboss

    Im using ffmpeg to generate a fragmented mp4 with the following command :

    


    ffmpeg -re -i ./input.mp4 -g 52 \
-strict experimental -acodec aac -ab 64k -vcodec libx264 -vb 448k \
-f mp4 -movflags frag_keyframe+empty_moov \
./output.mp4


    


    When I'm playing it in an HTMLMediaElement the video.duration = Infinity.
When I inspect the file with mp4info from bento4 I get :

    


    File:
  major brand:      isom
  minor version:    200
  compatible brand: isom
  compatible brand: iso2
  compatible brand: avc1
  compatible brand: mp41
  fast start:       yes

Movie:
  duration:   612961 ms
  time scale: 1000
  fragments:  no

Found 2 Tracks
Track 1:
  flags:        3 ENABLED IN-MOVIE
  id:           1
  type:         Video
  duration: 0 ms
  language: und
  media:
    sample count: 15322
    timescale:    12800
    duration:     7844864 (media timescale units)
    duration:     612880 (ms)
    bitrate (computed): 2587.007 Kbps
[...]
Track 2:
  flags:        3 ENABLED IN-MOVIE
  id:           2
  type:         Audio
  duration: 0 ms
  language: eng
  media:
    sample count: 26398
    timescale:    44100
    duration:     27031552 (media timescale units)
    duration:     612960 (ms)
    bitrate (computed): 128.584 Kbps
[...]


    


    Has someone any idea what I'm doing wrong ?