Recherche avancée

Médias (1)

Mot : - Tags -/école

Autres articles (63)

  • 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

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

Sur d’autres sites (8117)

  • PHP add whitespaces in string with an URL

    25 juin 2021, par Alberto Valerio

    Problem

    


    I have a temporary url to access an object from AWS-S3

    


    $source = "http://mybucket...";


    


    If I do a var_dump($source) it shows me the correct URL

    


    string(407) "https://mybucket.s3.amazonaws.com/storage/..."


    


    So I try to use this url in a ffmpeg command in this way (double quotes are required in ffmpeg)

    


    $cmd = 'ffmpeg -i "' . $source . '" ...
shell_exec($cmd);


    


    This do not work, and when I do a var_dump($cmd) the url shows like this (whitespace beetween https: and the // )

    


     "https: //mybucket.s3.amazonaws.com/storage/..."


    


    It works fine when I specify the url with the S3 protocol

    


    "s3://mybucket...."


    


    So maybe the problem is with the https protocol

    


    What I tried(It didn't work)

    


      

    • I tried $url = str_replace(' ', '', $source);
    • 


    • I tried $url = str_replace('%20', '', $source);
    • 


    • I tried $url = str_replace('https: //', 'https://', $source);
    • 


    • I tried $url = preg_replace("/\s+/", "", $source);
    • 


    • I tried addslashes($source) instead '"' . $source . '"'
    • 


    • I tried $url = escapeshellarg($source);
    • 


    


    What I'm using

    


      

    • Php 7
    • 


    • Laravel 4
    • 


    • AWS-S3
    • 


    


  • Display a specific string in each frame with ffmpeg

    22 septembre 2020, par Robyc

    I'm creating a video from a set of images like this

    


        ffmpeg -f concat -safe 0 -r 1 -i video_file.txt -crf 0 video_file.mkv


    


    where video_file.txt contains the filepath of the images, which looks like this :

    


        file '/path/to/image1.tif'
    duration 0.5
    file_packet_metadata name=image1_name
    file '/path/to/image2.tif'
    duration 0.5
    file_packet_metadata name=image2_name
    ...


    


    Concat reads all the lines starting with file '...' and correctly creates the output video.

    


    I want that for each frame a specific string appears on screen, e.g. the filename or part of it.

    


    I tried different options but none worked :

    


      

    1. adding -vf drawtext=textfile='path/to/frame.txt to the ffmpeg command

        

      • where frame.txt contains in each line the text I want for each frame.
      • 


      • This fails because the entire text in the file is displayed over each frame.
      • 


      


    2. 


    3. adding -vf drawtext=text=%{metadata\\:name} to read the metadata name=image1_name in video_file.txt source here

        

      • this simply displays the string 'name' in the output
      • 


      • I tried metadata\:name, metadata:name, and metadata:name
      • 


      


    4. 


    


    How can I display a specific string for each frame ?

    


  • avformat/dashdec : Fix leak of string on error when parsing representation

    19 septembre 2020, par Andreas Rheinhardt
    avformat/dashdec : Fix leak of string on error when parsing representation
    

    The DASH demuxer currently extracts several strings at once from an xml
    document before processing them one by one ; these strings are allocated,
    stored in local variables and need to be freed by the demuxer itself.
    So if an error happens when processing one of them, all strings need to
    be freed before returning. This has simply not been done, leading to
    leaks.

    A simple fix would be to add the necessary code for freeing ; yet there is
    a better solution : Avoid having several strings at the same time by
    extracting a string, processing it and immediately freeing it. That way
    one only has to free at most one string on error.

    Reviewed-by : Steven Liu <lq@chinaffmpeg.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavformat/dashdec.c