Recherche avancée

Médias (2)

Mot : - Tags -/media

Autres articles (70)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

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

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (8000)

  • Anomalie #3495 : Il manque peut-être un accent à icône

    3 juillet 2015

    wikipedia préfère icône
    https://fr.wikipedia.org/wiki/Ic%C3%B4ne

    je serais pour laisser le chapeau pour éviter la confusion avec l’anglais

  • Playing With File

    8 septembre 2011, par Multimedia Mike — General

    I played with the ‘file’ utility a long time ago because I wanted to make it recognize a large number of multimedia formats. I had trouble getting my changes to take. But I’m prepared to try again after many years.

    Aiming at the Corpus
    In my local mirror of the MPlayerHQ samples archive, I find 9853 unique files. So I run all of them through the ‘file’ command :

      ’find /path/to/samples -type f -print0 | xargs -0 file —no-pad’
    

    My Ubuntu installation has file v5.04. I also tested against 5.07 and the latest, 5.08. Here is the number of files each version was unable to identify (generically marking as ‘data’) :

    5.04  1521
    5.07  1405
    5.08  1501
    

    That seems like a regression for v5.08 until I dug into the details and saw quite a few items like this, indicating that the MPEG detection could use some work :


    - mov/mov-demux-infinite-loop.mpg : DOS-executable ( +mov/mg-‹demux-infinite-loop.mpg : data
    - image-samples/UNeedQT4.pntg : DOS-executable ( +imY- samples/UNeedQT4.pntg : data

    Workflow
    These are just notes to myself and perhaps anyone else who wants to add new file formats to be identified by the ‘file’ command.

    First, download either the latest release from the FTP or clone from Github. Do the usual unpack, ‘./configure’, ‘make’ routine. To use this newly-built version and its associated magic file :

      ./src/file —magic-file magic/magic.mgc <file>
    

    To add a new format for ID, first, run the foregoing command to ensure that it’s not already identified. Then, check over the files in magic/Magdir and see which one might pertain to what you’re doing (it’s unlikely that your format will merit a new file in this directory). For example, for this round, I modified animation, audio, iff, and riff. Add or modify existing specs based on the copious examples in the directory and by consulting the appropriate man page (‘man 5 magic’).

    Finally, run ‘make’ again which will regenerate the magic file. Invoke the above command again to use the modified magic file.

    Before and After
    On a selection of formats taken from the samples archive (renamed and cut down to a kilobyte because detection typically only relies on the first few bytes), here is the “before” :

    amv :            RIFF (little-endian) data
    armovie :        data
    bbc-dirac :      data
    interplay-mve :  data
    mtv :            data
    nintendo-thp :   data
    nullsoft-video : data
    redcode :        data
    sega-film :      data
    smacker :        data
    trueaudio :      data
    vqa :            IFF data
    wavpack :        data
    wc3-mve :        IFF data
    wtv :            data
    

    And the “after” :

    amv :            RIFF (little-endian) data, AMV
    armovie :        ARMovie
    bbc-dirac :      BBC Dirac Video
    interplay-mve :  Interplay MVE Movie
    mtv :            MTV Multimedia File
    nintendo-thp :   Nintendo THP Multimedia
    nullsoft-video : Nullsoft Video
    redcode :        REDCode Video
    sega-film :      Sega FILM/CPK Multimedia, 320 x 224
    smacker :        RAD Game Tools Smacker Multimedia version 2, 320 x 200, 100 frames
    trueaudio :      True Audio Lossless Audio
    vqa :            IFF data, Westwood Studios VQA Multimedia, 418 video frames, 320 x 200
    wavpack :        WavPack Lossless Audio
    wc3-mve :        IFF data, Wing Commander III Video, PC version
    wtv :            Windows Television DVR Media
    

    After rerunning ‘file’ on the mphq corpus using the modified magic file, only 1329 files remain unidentified (down from 1501).

    Going Forward
    As mentioned, MPEG detection could probably be strengthened. However, a major weakness is QuickTime/MP4. Many files are not detected, probably owing to the many ways that QuickTime files can begin.

  • FFMpeg embedding .srt file into hls stream playlist as WebVTT

    11 mai 2020, par user1503606

    I had an srt subtitle file see below.

    &#xA;&#xA;

    1&#xA;00:00:06,840 --> 00:00:10,320&#xA;once long ago in the deep blue below&#xA;&#xA;2&#xA;00:00:12,360 --> 00:00:14,370&#xA;Don&#x27;t be silly, Gran Mother&#xA;&#xA;3&#xA;00:00:14,870 --> 00:00:16,700&#xA;Everybody knows there&#x27;s no such thing as&#xA;&#xA;4&#xA;00:00:16,700 --> 00:00:17,200&#xA;Mermaids&#xA;&#xA;5&#xA;00:00:17,620 --> 00:00:21,570&#xA;You wouldn&#x27;t say that if you has meet one. You&#x27;ve meet a Mermaid&#xA;&#xA;6&#xA;00:00:24,250 --> 00:00:25,180&#xA;This just came in&#xA;&#xA;7&#xA;00:00:25,480 --> 00:00:26,630&#xA;I wanted to take priority&#xA;&#xA;8&#xA;00:00:27,180 --> 00:00:28,500&#xA;And we followed stories like this before&#xA;&#xA;9&#xA;00:00:28,640 --> 00:00:31,620&#xA;Would witches working mummies. No not like this&#xA;&#xA;10&#xA;00:00:31,630 --> 00:00:33,190&#xA;Hundreds of people are testifying&#xA;&#xA;11&#xA;00:00:33,370 --> 00:00:34,600&#xA;Welcome to Mississippi&#xA;&#xA;12&#xA;00:00:42,390 --> 00:00:47,270&#xA;There&#x27;s a powerful magic in you the spirit of the ocean&#xA;&#xA;13&#xA;00:00:47,690 --> 00:00:53,940&#xA;Let me introduce you to your dreams, The Little Mermaid, off the Mississippi&#xA;&#xA;14&#xA;00:01:01,880 --> 00:01:03,580&#xA;She was so beautiful&#xA;&#xA;15&#xA;00:01:04,040 --> 00:01:05,270&#xA;And I know she was real&#xA;&#xA;16&#xA;00:01:07,850 --> 00:01:08,550&#xA;I&#x27;m skeptical&#xA;&#xA;17&#xA;00:01:13,460 --> 00:01:14,410&#xA;You shouldn&#x27;t be here&#xA;&#xA;18&#xA;00:01:17,560 --> 00:01:24,130&#xA;Mermaids do not exist&#xA;&#xA;19&#xA;00:01:31,420 --> 00:01:34,300&#xA;Look isn&#x27;t it beautiful? Sorry I have to go.&#xA;&#xA;20&#xA;00:01:35,340 --> 00:01:48,570&#xA;Elizabeth, How can this be? It&#x27;s Lock he knows i&#x27;m here he summoned me.&#xA;&#xA;21&#xA;00:01:48,570 --> 00:01:50,570&#xA;We have to save here.&#xA;&#xA;22&#xA;00:02:03,570 --> 00:02:05,570&#xA;Here soul is mine&#xA;&#xA;23&#xA;00:02:05,570 --> 00:02:06,570&#xA;Take it&#xA;&#xA;24&#xA;00:02:10,570 --> 00:02:12,570&#xA;It&#x27;s the only way&#xA;&#xA;25&#xA;00:02:15,000 --> 00:02:17,570&#xA;I believe&#xA;&#xA;26&#xA;00:02:23,000 --> 00:02:25,570&#xA;Mississippi has always been magic&#xA;&#xA;27&#xA;00:02:36,000 --> 00:02:38,000&#xA;Elizabeth please&#xA;

    &#xA;&#xA;

    If I use AWS Media convert to add this to my playlist it outputs the following.

    &#xA;&#xA;

    #EXTM3U&#xA;#EXT-X-VERSION:3&#xA;#EXT-X-TARGETDURATION:300&#xA;#EXT-X-MEDIA-SEQUENCE:1&#xA;#EXT-X-PLAYLIST-TYPE:VOD&#xA;#EXTINF:170,&#xA;masterCaptionsEnglish/English.vtt&#xA;#EXT-X-ENDLIST&#xA;

    &#xA;&#xA;

    And the WebVTT file looks like this.

    &#xA;&#xA;

    WEBVTT  #Elemental Media Engine(TM) 2.16.0.602399&#xA;X-TIMESTAMP-MAP=LOCAL:00:00:00.000,MPEGTS:191970&#xA;&#xA;00:00:06.840 --> 00:00:10.320&#xA;once long ago in the deep blue below&#xA;&#xA;00:00:12.360 --> 00:00:14.370&#xA;Don&#x27;t be silly, Gran Mother&#xA;&#xA;00:00:14.870 --> 00:00:16.700&#xA;Everybody knows there&#x27;s no such thing as&#xA;&#xA;00:00:16.700 --> 00:00:17.200&#xA;Mermaids&#xA;&#xA;00:00:17.620 --> 00:00:21.570&#xA;You wouldn&#x27;t say that if you has meet one. You&#x27;ve meet a Mermaid&#xA;&#xA;00:00:24.250 --> 00:00:25.180&#xA;This just came in&#xA;&#xA;00:00:25.480 --> 00:00:26.630&#xA;I wanted to take priority&#xA;&#xA;00:00:27.180 --> 00:00:28.500&#xA;And we followed stories like this before&#xA;&#xA;00:00:28.640 --> 00:00:31.620&#xA;Would witches working mummies. No not like this&#xA;&#xA;00:00:31.630 --> 00:00:33.190&#xA;Hundreds of people are testifying&#xA;&#xA;00:00:33.370 --> 00:00:34.600&#xA;Welcome to Mississippi&#xA;&#xA;00:00:42.390 --> 00:00:47.270&#xA;There&#x27;s a powerful magic in you the spirit of the ocean&#xA;&#xA;00:00:47.690 --> 00:00:53.940&#xA;Let me introduce you to your dreams, The Little Mermaid, off the Mississippi&#xA;&#xA;00:01:01.880 --> 00:01:03.580&#xA;She was so beautiful&#xA;&#xA;00:01:04.040 --> 00:01:05.270&#xA;And I know she was real&#xA;&#xA;00:01:07.850 --> 00:01:08.550&#xA;I&#x27;m skeptical&#xA;&#xA;00:01:13.460 --> 00:01:14.410&#xA;You shouldn&#x27;t be here&#xA;&#xA;00:01:17.560 --> 00:01:24.130&#xA;Mermaids do not exist&#xA;&#xA;00:01:31.420 --> 00:01:34.300&#xA;Look isn&#x27;t it beautiful? Sorry I have to go.&#xA;&#xA;00:01:35.340 --> 00:01:48.570&#xA;Elizabeth, How can this be? It&#x27;s Lock he knows i&#x27;m here he summoned me.&#xA;&#xA;00:01:48.570 --> 00:01:50.570&#xA;We have to save here.&#xA;&#xA;00:02:03.570 --> 00:02:05.570&#xA;Here soul is mine&#xA;&#xA;00:02:05.570 --> 00:02:06.570&#xA;Take it&#xA;&#xA;00:02:10.570 --> 00:02:12.570&#xA;It&#x27;s the only way&#xA;&#xA;00:02:15.000 --> 00:02:17.570&#xA;I believe&#xA;&#xA;00:02:23.000 --> 00:02:25.570&#xA;Mississippi has always been magic&#xA;&#xA;00:02:36.000 --> 00:02:38.000&#xA;Elizabeth please&#xA;

    &#xA;&#xA;

    I am trying to replicate this with FFMpeg. I have tried the following command.

    &#xA;&#xA;

    ffmpeg -i little-mermaid.mov -i little-mermaid.srt -c copy -c:s webvtt -start_number 0 -hls_time 10000 -f hls mermaid/Eng/master.m3u8&#xA;

    &#xA;&#xA;

    This creates a WebVTT file but it is completely wrong and out of sync. See below.

    &#xA;&#xA;

    All the times have changed and it's removed the first two digits from each section.

    &#xA;&#xA;

    WEBVTT&#xA;&#xA;00:06.882 --> 00:10.362&#xA;once long ago in the deep blue below&#xA;&#xA;00:12.402 --> 00:14.412&#xA;Don&#x27;t be silly, Gran Mother&#xA;&#xA;00:14.912 --> 00:16.742&#xA;Everybody knows there&#x27;s no such thing as&#xA;&#xA;00:16.742 --> 00:17.242&#xA;Mermaids&#xA;&#xA;00:00:17.620 -- 00:00:21.570&#xA;You wouldn&#x27;t say that if you has meet one. You&#x27;ve meet a Mermaid&#xA;&#xA;00:24.292 --> 00:25.222&#xA;This just came in&#xA;&#xA;00:25.522 --> 00:26.672&#xA;I wanted to take priority&#xA;&#xA;00:27.222 --> 00:28.542&#xA;And we followed stories like this before&#xA;&#xA;00:28.682 --> 00:31.662&#xA;Would witches working mummies. No not like this&#xA;&#xA;00:31.672 --> 00:33.232&#xA;Hundreds of people are testifying&#xA;&#xA;00:33.412 --> 00:34.642&#xA;Welcome to Mississippi&#xA;&#xA;00:42.432 --> 00:47.312&#xA;There&#x27;s a powerful magic in you the spirit of the ocean&#xA;&#xA;00:47.732 --> 00:53.982&#xA;Let me introduce you to your dreams, The Little Mermaid, off the Mississippi&#xA;&#xA;01:01.922 --> 01:03.622&#xA;She was so beautiful&#xA;&#xA;01:04.082 --> 01:05.312&#xA;And I know she was real&#xA;&#xA;01:07.892 --> 01:08.592&#xA;I&#x27;m skeptical&#xA;&#xA;01:13.502 --> 01:14.452&#xA;You shouldn&#x27;t be here&#xA;&#xA;01:17.602 --> 01:24.172&#xA;Mermaids do not exist&#xA;&#xA;01:31.462 --> 01:34.342&#xA;Look isn&#x27;t it beautiful? Sorry I have to go.&#xA;&#xA;01:35.382 --> 01:48.612&#xA;Elizabeth, How can this be? It&#x27;s Lock he knows i&#x27;m here he summoned me.&#xA;&#xA;01:48.612 --> 01:50.612&#xA;We have to save here.&#xA;&#xA;02:03.612 --> 02:05.612&#xA;Here soul is mine&#xA;&#xA;02:05.612 --> 02:06.612&#xA;Take it&#xA;&#xA;02:10.612 --> 02:12.612&#xA;It&#x27;s the only way&#xA;&#xA;02:15.042 --> 02:17.612&#xA;I believe&#xA;&#xA;02:23.042 --> 02:25.612&#xA;Mississippi has always been magic&#xA;&#xA;02:36.042 --> 02:38.042&#xA;Elizabeth please&#xA;

    &#xA;&#xA;

    I am trying to decide if it just makes sense to convert the .srt to WebVTT and use that file without encoding with FFMPEG just create a .m3u8 file with -hls_flag single_file that points to it but not sure what implementation this might cause.

    &#xA;&#xA;

    Can anyone suggest how I could do this or where I might be going wrong ?

    &#xA;&#xA;

    Here is the video file I am using if anyone wants to run the FFMPEG command above to test.

    &#xA;&#xA;

    http://www.hd-trailers.net/movie/the-little-mermaid/

    &#xA;&#xA;

    Thanks

    &#xA;