Recherche avancée

Médias (1)

Mot : - Tags -/embed

Autres articles (62)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

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

  • Videos created using FFmpeg are not being displayed in web browsers such as Chrome, Firefox, and Safari

    2 février 2023, par vijay

    I am attempting to generate an MP4 video by combining images and audio with FFmpeg-Kit-React-Native but it is not being displayed in web browsers.

    


    For your reference I'm attaching the package link below :
ffmpeg-kit-react-native

    


    The commands I utilized to produce the video are as follows :

    


      

    1. -i ${imageFile} -i ${audioFile?.uri} -vf scale=480:360 -f mp4 ${outputFile}
    2. 


    3. -loop 1 -i ${imageFile} -i ${audioFile.uri} -shortest -acodec copy ${outputFile}
    4. 


    5. -i ${imageFile} -i ${audioFile?.uri} -b:v 2M -vf scale=480:360:force_original_aspect_ratio=decrease,pad=480:360:-1:-1 -pix_fmt yuv420p ${outputFile}
    6. 


    7. -i ${imageFile} -i ${audioFile?.uri} -vf scale=480:360:force_original_aspect_ratio=decrease,pad=480:360:-1:-1 -f mp4 ${outputFile}
    8. 


    


    I have attached a link to the video I generated using a single image and one audio file

    


    Additionally, I am unable to install external encoding packages such as full-gpl, full, https-gpl, and min-gpl on the Android side.

    


  • Firefox, Chrome, Safari have grey background for MP4 HTML5 video

    28 mars 2023, par James

    Any video (that I can make) with a white background becomes grey in Firefox, Chrome, and Safari (it is white in IE). Well, on my Windows machine it is grey, on my Android phone/tablet and Mac it is white...

    



    I am using ffmpeg to encode the video. If I encode it as webm, the background is white.

    



    See : https://jsfiddle.net/Lbg8f6ck/

    



    I found a hack that fixes it for Chrome :

    



    <video style="-webkit-filter:brightness(108.5%);"></video>code>

    &#xA;&#xA;

    But it does not work for Firefox or Safari.

    &#xA;&#xA;

    Another hack for Firefox :

    &#xA;&#xA;

    filter:brightness(1.085)&#xA;

    &#xA;&#xA;

    But for some reason setting it through JavaScript does not work.

    &#xA;&#xA;

    A few versions ago the background was white for Chrome, then became grey again...

    &#xA;&#xA;

    The question is : Why is white grey ?

    &#xA;&#xA;

    Is it an issue with the video or with Chrome, Firefox, Safari in general ? (How can they not support white ?)

    &#xA;&#xA;

    Is it possible to get a white background ?

    &#xA;&#xA;

    Any hacks, workarounds ?

    &#xA;

  • FFMPEG Problem with Filter_Complex with Chain Filters

    11 avril 2023, par James

    This script combined three filters into one being drawgrid, drawbox and drawtext. The result had added the text and not added the grid and box.

    &#xA;

    My script :

    &#xA;

    Set "BXW=1000"  ::Box width&#xA;Set "BXH=1008"  ::Box height&#xA;&#xA;set "TEXT1=360" :: Text lefthand side (no space characters allowed, see next example)&#xA;set "TEXT2=180" :: Text bottom and center&#xA;set "TEXT3=0" :: Text righthand side&#xA;set "TEXT4=0" :: Text top and center&#xA;&#xA;&#xA;set "COLOR=red" :: Text color&#xA;set "SIZE=200" :: Font size&#xA;set "POS_X1=0" ::X1 position of text&#xA;set "POS_Y1=(h-th)/2" :: Y1 position of text, use (h-th)/2 for centering&#xA;set "POS_X2=(w-tw)/2" :: X2 position of text, use (w-tw)/2 for centering&#xA;set "POS_Y2=(h-th)" ::Y2 position of text&#xA;set "POS_X3=(w-tw)" ::X3 position of text&#xA;set "POS_Y3=(h-th)/2" ::Y3 position of text, use (h-th)/2 for centering&#xA;set "POS_X4=(w-tw)/2" :: X4 position of text, use (w-tw)/2 for centering&#xA;set "POS_Y4=0" ::Y4 position of text&#xA;&#xA;&#xA;&#xA;ffmpeg -i %1 -filter_complex   [0:v]"drawgrid=color=red:width=iw/8:height=0:thickness=6,drawgrid=color=blue:width=0:height=ih/12:thickness=6"[grid_s]; [grid_s]"format=rgb24,drawbox=x=((iw/2)-%BXW%/2):y=((ih/2)-%BXH%/2):width=%BXW%:height=%BXH%:thickness=40:color=white"[box_s]; [box_s]drawtext="fontfile=&#x27;c\:/windows/fonts/arial.ttf&#x27;:fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT1%:x=%POS_X1%:y=%POS_Y1%",drawtext="fontfile=&#x27;c\:/windows/fonts/arial.ttf&#x27;:fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT2%:x=%POS_X2%:y=%POS_Y2%,drawtext="fontfile=&#x27;c\:/windows/fonts/arial.ttf&#x27;:fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT3%:x=%POS_X3%:y=%POS_Y3%,drawtext="fontfile=&#x27;c\:/windows/fonts/arial.ttf&#x27;:fontcolor=%COLOR%:fontsize=%SIZE%:text=%TEXT4%:x=%POS_X4%:y=%POS_Y4%"[text_s] -frames 1 -y temptxt.png&#xA;&#xA;&#xA;ffmpeg -i temptxt.png -vf scale=iw/8:-1 -f nut - | ffplay -&#xA;

    &#xA;