Recherche avancée

Médias (1)

Mot : - Tags -/Rennes

Autres articles (44)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Librairies et binaires spécifiques au traitement vidéo et sonore

    31 janvier 2010, par

    Les logiciels et librairies suivantes sont utilisées par SPIPmotion d’une manière ou d’une autre.
    Binaires obligatoires FFMpeg : encodeur principal, permet de transcoder presque tous les types de fichiers vidéo et sonores dans les formats lisibles sur Internet. CF ce tutoriel pour son installation ; Oggz-tools : outils d’inspection de fichiers ogg ; Mediainfo : récupération d’informations depuis la plupart des formats vidéos et sonores ;
    Binaires complémentaires et facultatifs flvtool2 : (...)

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

  • parsing different ffmpeg -i output

    11 août 2012, par Jizbo Jonez

    I have a bit of code that gets a video files duration, width, height and framerate which works fine for some videos -

    $output = `ffmpeg -i /var/thismovie.avi`;
    preg_match('/Duration: (.*?),.*?Video:.*?0x.*?([0-9]+)x([[0-9]+).*?([0-9]+) fps/i'
    ,$output , $result);

    The problem is there are other videos that give a slightly different output information, for example the above code works with this output -

    Input #0, avi, from '/var/www/vhosts/thissite.com/httpdocs/video1.avi':
    Duration: 00:00:10.76, start: 0.000000, bitrate: 5180 kb/s
    Stream #0:0: Video: h264 (High) (H264 / 0x34363248), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 25 tbn, 50 tbc
    Stream #0:1: Audio: ac3 ([0] [0][0] / 0x2000), 48000 Hz, stereo, s16, 128 kb/s

    but another video gives this info and will not give any results when used with the above code -

    Input #0, avi, from '/var/www/vhosts/thissite.com/httpdocs/video2.avi':
    Duration: 00:00:05.68, start: 0.000000, bitrate: 887 kb/s
    Stream #0:0: Video: mpeg4 (Advanced Simple Profile) (XVID / 0x44495658), yuv420p, 640x272 [SAR 1:1 DAR 40:17], 25 tbr, 25 tbn, 25 tbc
    Stream #0:1: Audio: mp3 (U[0][0][0] / 0x0055), 48000 Hz, stereo, s16, 128 kb/s

    The difference between the two outputs is in the Stream #0:0 part. The fist output shows 7 different pieces of information separated by a comma, the last output only shows 6 bits. The missing piece of info in the last output is the frame rate (fps) but apparently I can use the value for tbr instead.

    So my question is, how can I modify the code I am using to cover both types of outputs ?

  • Trying to identify global metadata

    29 mai 2021, par the_steve_randolph

    I am pretty new to ffmpeg and using it to convert/change a large number of video files. I typically use VLC to find out some (all ?) of the information that I am interested in changing. But, one piece of information I can't seem to identify.

    


    I know that within a video file, each audio and video track have titles that I can change with ffmpeg. Also, I know that I can change the metadata tag "title" that would seem to encompass the entire file. This "title" value is displayed on the top line in VLC and displays in Windows Explorer in the "Title" column. This seems to be the same tag when you right-click on the file, click the "Details" tab, and, look at the "Title" tag under "Description".

    


    But, in some video files, in VLC I click on "Playback" and then "Title", there is different "title" information. Most of the time it is blank, but, other times there is one or two names that indicates it came from the "title" information of a DVD. That is, a DVD that has multiple titles (different/separate movies on the same disc). Well, I want to erase or change that "title" information, but, I cannot seem to determine where/how in ffmpeg to access it. This information is not shown with the "ffmpeg -i file.mp4" or "ffprobe -1 file.mp4".

    


    Since this "title" information is not directly related to a specific video track, I am assuming that it fits under the category of "global" metadata. Googling "ffmpeg global metadata tags", I can find some of the tags I typically change (i.e "frame height" and "frame width"), as well as the "title" that is the Windows Explorer "title" column. But, none of those search results mention this other "title" information/tag, or, that a DVD can have multiple titles that show up when converted to a MP4/MKV and viewed it in VLC.

    


    So, WTH is that tag name and is it something that ffmpeg can see and/or change ?

    


  • Anomalie #4362 (Nouveau) : [Sécurité] Injection d’en-tête de réponse HTTP - Faille CRLF

    16 juillet 2019, par Christophe Laffont

    Bonjour,

    J’ai effectué un audit de sécurité sur le site d’un client et celui-ci me remonte une faille de sécurité CRLF critique (Cf.pièce jointe).
    Après analyse du code, je constate que SPIP ajoute dans des champs cachés chaque paramètre et valeur d’une URL.

    La balise balise_ACTION_FORMULAIRE() utilise la fonction form_hidden() (fichier ecrire/inc/filtre.php) qui vient crée des tags HTML input hidden pour chaque paramètre et valeur d’une URL.
    Celle-ci ne semble pas rejeter les champs contenant un retour chariot et/ou un saut de ligne !!!
    (Ex : https://www.monsite.fr/?welcome_message=q%0d%0a%20SCAN_resp_hdr_injection :%20Vulner%20able)

    Pour des raisons de sécurité, il faudrait :
    - Solution 1 : Eviter de créer des tags HTML input "hidden" pour chaque paramètre et valeur d’une URL
    - Solution 2 : Tester et rejeter (dans la fonction form_hidden) les paramètres contenant une valeur corrompue

    Vous en pensez quoi ?
    Cordialement
    Christophe