Recherche avancée

Médias (91)

Autres articles (34)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

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

  • How can I check whether an RTMP live stream is working on the server side ?

    10 juin 2015, par Moyersy

    I have a site where users can broadcast their own live streams. They are provided with a URL to push their stream to over RTMP. Viewers have an embedded flash player to watch each stream.

    I need to be able to determine whether a particular stream is broadcasting. It doesn’t need to do any analysis, simply to check that there’s an actual stream at the RTMP URL.

    It seems that VLC doesn’t support RMTP.
    I’ve tried ffmpeg but not managed to solve the problem yet.

    Server is running Ubuntu.

    Bonus : How can I update the database based on the results of this stream test ?

  • Creating automated ffmpeg converter

    27 janvier 2019, par Jeffrey Moser

    I am trying to create an automated process using ffmpeg and am having issues understanding how to adapt the code to automator.

    The code works beautifully in the terminal, but requires each filename to me entered manually. I am trying to automate the process.

    for f in "$@"
    do

    FILE= "$f"
    OUT=${FILE/mp4/png}
    OUT_WIDTH=10800
    OUT_HEIGHT=3600

    eval $(ffprobe -v error -of flat=s=_ -select_streams v:0 -show_entries stream=height,width "${FILE}")
    IN_WIDTH=${streams_stream_0_width}
    IN_HEIGHT=${streams_stream_0_height}

    eval $(ffprobe -v error -of flat=s=_ -count_frames -select_streams v:0 -show_entries stream=nb_read_frames "${FILE}")
    IN_FRAMES=${streams_stream_0_nb_read_frames}

    W_TILES=$(bc <<< "(sqrt($OUT_WIDTH*$IN_FRAMES*$IN_HEIGHT/($IN_WIDTH*$OUT_HEIGHT))+3)")
    H_TILES=$(bc <<< "(sqrt($OUT_HEIGHT*$IN_FRAMES*$IN_WIDTH/($OUT_WIDTH*$IN_HEIGHT)))")

    W_SHRUNK=$(bc <<< "$OUT_WIDTH/$W_TILES")
    H_SHRUNK=$(bc <<< "$OUT_HEIGHT/$H_TILES")

    ffmpeg -i "${FILE}" -vf "hflip,transpose=cclock,scale=${H_SHRUNK}:${W_SHRUNK},tile=${H_TILES}x${W_TILES},transpose=clock,hflip,scale=${OUT_WIDTH}x${OUT_HEIGHT}" -an -sn -vsync 0 "${OUT}"


    done

    I expected the code to produce an image of every frame of the film. But instead I got a massive error message.

    The action “Run Shell Script” encountered an error: “-: line 5: /Users/jeffreymoser/21 A New Dawn.mp4: Permission denied
    -: line 14: ffprobe: command not found
    -: line 18: ffprobe: command not found
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 2: parse error
    (standard_in) 2: parse error
    -: line 29: ffmpeg: command not found
    -: line 5: /Users/jeffreymoser/22 Battle Hymn.mp4: Permission denied
    -: line 14: ffprobe: command not found
    -: line 18: ffprobe: command not found
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 2: parse error
    (standard_in) 2: parse error
    -: line 29: ffmpeg: command not found
    -: line 5: /Users/jeffreymoser/23 Reckless.mp4: Permission denied
    -: line 14: ffprobe: command not found
    -: line 18: ffprobe: command not found
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 2: parse error
    (standard_in) 2: parse error
    -: line 29: ffmpeg: command not found
    -: line 5: /Users/jeffreymoser/24 Showdown.mp4: Permission denied
    -: line 14: ffprobe: command not found
    -: line 18: ffprobe: command not found
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 2: parse error
    (standard_in) 2: parse error
    -: line 29: ffmpeg: command not found
    -: line 5: /Users/jeffreymoser/25 Wedding Bells.mp4: Permission denied
    -: line 14: ffprobe: command not found
    -: line 18: ffprobe: command not found
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 1: parse error
    (standard_in) 2: parse error
    (standard_in) 2: parse error
    -: line 29: ffmpeg: command not found
  • Anomalie #3407 (Nouveau) : La colonne "extension" est vide concernant certaine url distante

    12 mars 2015, par Franck Dalot

    Bonjour :-)

    SPIP 3.1.0-alpha [21937] (neuf et vierge)
    Php 5.6.6
    prefix des tables : spipdev25
    Installation faite en MySQL

    Si je vais dans ecrire/ ?exec=documents&ajouter=oui que je clique sur "internet" que je fait un copier/coller d’une adresse youtube comme :
    https://youtu.be/_h1N8MDaVXA
    Puis, je clique sur "choisir", le doc n’est pas visible sous l’onglet "autres" de la médiathèque
    L’unique chose qui montre bien, que le doc est dans la base de données, est que l’onglet "autres" s’affiche "Autres (1)"
    Dans la base de données, la colonne "extension" est vide concernant ce doc
    Je vois rien dans les logs :-(
    L’unique chose qui m’apparait, ce sont trois notices, donc, je doute que que cela soit le problème
    Notice : Undefined index : extension in /.../ecrire/inc/distant.php on line 942
    Notice : Undefined index : extension in /.../plugins-dist/medias/action/ajouter_documents.php on line 120
    Notice : Undefined index : extension in /.../plugins-dist/medias/action/ajouter_documents.php on line 188

    A savoir que cela me fait pareil, avec l’adresse :
    https://www.youtube.com/watch?v=_h1N8MDaVXA

    Mais que cela fonctionne très bien avec cette adresse (même pas de notice) :
    http://contrib.spip.net