Recherche avancée

Médias (2)

Mot : - Tags -/documentation

Autres articles (20)

  • 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

  • Personnaliser les catégories

    21 juin 2013, par

    Formulaire de création d’une catégorie
    Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
    Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
    On peut modifier ce formulaire dans la partie :
    Administration > Configuration des masques de formulaire.
    Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
    Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (6337)

  • png_parser : Fix parsing on big endian

    18 décembre 2013, par Martin Storsjö
    png_parser : Fix parsing on big endian
    

    Since pc.state is populated by shifting in from the end of the
    32 bit word, the content within pc.state is already in native endian
    and should not be read with the AV_RL,B functions.

    This was already done correctly for state64 above.

    This fixes the fate-corepng test on big endian.

    Signed-off-by : Martin Storsjö <martin@martin.st>

    • [DBH] libavcodec/png_parser.c
  • Adding mp3 metadata with space in ffmpeg using bash [duplicate]

    15 septembre 2019, par ctrlnot

    This question already has an answer here :

    I have this bash script on downloading youtube videos then convert it to mp3 using youtube-dl and ffmpeg.

    #!/bin/bash

    ytlink=""
    outputFileName=""
    title=""
    artist=""
    album=""

    while getopts l:o:t:r:b: flag; do
     case "${flag}" in
       l) ytlink="${OPTARG}";;
       o) outputFileName="${OPTARG}";;
       t) title="${OPTARG}";;
       r) artist="${OPTARG}";;
       b) album="${OPTARG}";;
     esac
    done

    youtube-dl "$ytlink" --add-metadata --extract-audio --audio-format mp3 --output "temp.%(ext)s"

    tempFilename="temp.mp3"
    outputFileName="$outputFileName.mp3"

    args+=("-i" "$tempFilename" "-metadata" "title='$title'" "-metadata" "artist='$artist'" "-metadata" "album='$album'" "-metadata" "comment=Source:$ytlink")
    ffmpeg -loglevel debug ${args[@]} -acodec copy "$outputFileName"
    rm "$tempFilename"

    This script is fine if I have one word title/artist/album. However, if I have a space, ffmpeg interprets each word before space as another parameter. This is how I use this on command line :

    ./yttomp3.sh -l "https://www.youtube.com/watch?v=KwQnSHAilOQ" -o "Lee - Autumn Day" -t "Autumn Day" -r "Lee" -b "(Free) Lo-fi Type Beat - Autumn Day"

    The debug output of ffmpeg :

    Splitting the commandline.
    Reading option '-loglevel' ... matched as option 'loglevel' (set logging level) with argument 'debug'.
    Reading option '-i' ... matched as input url with argument 'temp.mp3'.
    Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'title='Autumn'.
    Reading option 'Day'' ... matched as output url.
    Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'artist='Lee''.
    Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'album='(Free)'.
    Reading option 'Lo-fi' ... matched as output url.
    Reading option 'Type' ... matched as output url.
    Reading option 'Beat' ... matched as output url.
    Reading option '-' ... matched as output url.
    Reading option 'Autumn' ... matched as output url.
    Reading option 'Day'' ... matched as output url.
    Reading option '-metadata' ... matched as option 'metadata' (add metadata) with argument 'comment=Source:https://www.youtube.com/watch?v=KwQnSHAilOQ'.
    Reading option '-acodec' ... matched as option 'acodec' (force audio codec ('copy' to copy stream)) with argument 'copy'.
    Reading option 'Lee - Autumn Day.mp3' ... matched as output url.
    Finished splitting the commandline.

    I tried enclosing the arguments to quotes on the script but it’s still not working. How should I deal with this ? Thanks.

  • Using Windows named pipes with ffmpeg pipes (Doesnt work)

    25 octobre 2019, par Estr

    I’m trying to send audio and video RAW through c# pipes to FFMPEG, I’ve been reading and trying to follow what’s shown here : https://docs.microsoft.com/en-us/dotnet/api/system.io.pipes.namedpipeserverstream?view=netframework-4.8

    This a fragment of the code...

           NamedPipeServerStream p_1;
           NamedPipeServerStream p_2;
           p_1 = new NamedPipeServerStream("p_1", PipeDirection.Out, 1, PipeTransmissionMode.Byte);
           p_2 = new NamedPipeServerStream("p_2", PipeDirection.Out, 1, PipeTransmissionMode.Byte);

           p_1.WaitForConnection();

           p_2.WaitForConnection();

    .......

    I run this command in FFMPEG : ffmpeg.exe -i \.\pipe\p_1 -vcodec hevc -r 8 -f alaw -ar:a 16000 -ac:a 1 -i \.\pipe\p_2 o.mp4

    But the program stays on the line : p_2.WaitForConnection() ;

    How can I solve it ?