Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (71)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

Sur d’autres sites (4390)

  • avcodec/ac3dec : Use frame_size if superframe_size is 0

    18 mai 2018, par Michael Niedermayer
    avcodec/ac3dec : Use frame_size if superframe_size is 0
    

    Fixes : Infinite loop
    Fixes : 7669/clusterfuzz-testcase-ffmpeg_AV_CODEC_ID_AC3_FIXED_fuzzer-4689042185650176
    Fixes : 7670/clusterfuzz-testcase-ffmpeg_AV_CODEC_ID_AC3_fuzzer-4706306762997760
    Fixes : 7672/clusterfuzz-testcase-ffmpeg_AV_CODEC_ID_EAC3_fuzzer-4702108499574784

    Found-by : continuous fuzzing process https://github.com/google/oss-fuzz/tree/master/projects/ffmpeg
    Signed-off-by : Michael Niedermayer <michael@niedermayer.cc>

    • [DH] libavcodec/ac3dec.c
  • Revision 96419 : La librairie en version 1.9.2 v1.9.12 Add support for Direct Stream ...

    11 juin 2018, par kent1@… — Log

    La librairie en version 1.9.2
    v1.9.12
    Add support for Direct Stream Digital (DSD) / DSD Storage Facility (DSF) file format
    Add detection (not parsing) of WebP image format
    bugfix #1910 : Quicktime embedded images
    v1.9.11
    #64 - update constructor syntax for PHP 7
    #62 - infinite loop in large PNG files
    #61 - ID3v2 remove BOM from frame descriptions
    #60 - missing "break" in module.audio-video.quicktime.php
    #59 - .gitignore comments
    #58 - inconsistency in relation to module.tag.id3v2.php
    #57 - comparing instead of assign
    #56 - unsupported MIME type "audio/x-wave"
    #55 - readme.md variable reference
    #54 - QuickTime ? false 1000fps
    #53 - Quicktime / ID3v2 multiple genres
    #52 - sys_get_temp_dir in GetDataImageSize ?
    demo.joinmp3.php enhancements
    m4b (audiobook) chapters not parsed correctly
    sqlite3 caching not working
    bugfix #1903 - Quicktime meta atom not parsed

  • What's the purpose of the END field in files containing metadata for ffmpeg ?

    15 juillet 2023, par rdrg109

    Table of contents

    &#xA;

      &#xA;
    • The context
    • &#xA;

    • Minimal working example&#xA;
        &#xA;
      • no. 1
      • &#xA;

      • no. 2
      • &#xA;

      • no. 3
      • &#xA;

      &#xA;

    • &#xA;

    • The questions
    • &#xA;

    &#xA;

    &#xA;

    The context

    &#xA;

    I'm aware that it is possible to insert metadata of chapters into a video using ffmpeg (link to documentation). Minimal working example no. 1 shows this point.

    &#xA;

    When I insert chapters that are not consecutive, ffmpeg doesn't use the end time that is specified in the metadata file through the END field. "Minimal working example no. 2" shows this point. In "Minimal working example no. 3", the END field of all chapters is 1 millisecond, yet we get the same result of Minimal working example no. 2. What is worth noting is that the END of the last chapter is the only one that is added correctly.

    &#xA;

    &#xA;

    Minimal working example

    &#xA;

    &#xA;

    no. 1

    &#xA;

    Consider the following ffmpeg metadata file. It creates chapters in the following time ranges

    &#xA;

      &#xA;
    • From 0 to millisecond 9999, the chapter is This is my chapter one
    • &#xA;

    • From 10000 to millisecond 19999, the chapter is This is my chapter two
    • &#xA;

    • From 20000 to millisecond 29999, the chapter is This is my chapter three
    • &#xA;

    • From 30000 to millisecond 39999, the chapter is This is my chapter four
    • &#xA;

    &#xA;

    ;FFMETADATA1&#xA;title=The title of my video&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0&#xA;END=10000&#xA;title=This is my chapter one&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=10000&#xA;END=20000&#xA;title=This is my chapter two&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=20000&#xA;END=30000&#xA;title=This is my chapter three&#xA;

    &#xA;

    The following command creates a simple video and inserts the metadata shown above into that video.

    &#xA;

    ffmpeg -v error -y -f lavfi -i &#x27;testsrc=d=120:size=100x100&#x27; -i metadata.txt -map_metadata 1 output.mp4&#xA;

    &#xA;

    The following command shows information about the metadata in the video file that was created by the previous command.

    &#xA;

    ffprobe -v error -show_chapters -print_format json output.mp4 | jq&#xA;

    &#xA;

    {&#xA;  "chapters": [&#xA;    {&#xA;      "id": 0,&#xA;      "time_base": "1/1000",&#xA;      "start": 0,&#xA;      "start_time": "0.000000",&#xA;      "end": 10000,&#xA;      "end_time": "10.000000",&#xA;      "tags": {&#xA;        "title": "This is my chapter one"&#xA;      }&#xA;    },&#xA;    {&#xA;      "id": 1,&#xA;      "time_base": "1/1000",&#xA;      "start": 10000,&#xA;      "start_time": "10.000000",&#xA;      "end": 20000,&#xA;      "end_time": "20.000000",&#xA;      "tags": {&#xA;        "title": "This is my chapter two"&#xA;      }&#xA;    },&#xA;    {&#xA;      "id": 2,&#xA;      "time_base": "1/1000",&#xA;      "start": 20000,&#xA;      "start_time": "20.000000",&#xA;      "end": 30000,&#xA;      "end_time": "30.000000",&#xA;      "tags": {&#xA;        "title": "This is my chapter three"&#xA;      }&#xA;    }&#xA;  ]&#xA;}&#xA;

    &#xA;

    No problem until here.

    &#xA;

    &#xA;

    no. 2

    &#xA;

    ;FFMETADATA1&#xA;title=The title of my video&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0&#xA;END=5000&#xA;title=This is my chapter one&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=10000&#xA;END=15000&#xA;title=This is my chapter two&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=20000&#xA;END=25000&#xA;title=This is my chapter three&#xA;

    &#xA;

    The following command creates a simple video and inserts the metadata shown above into that video.

    &#xA;

    ffmpeg -v error -y -f lavfi -i &#x27;testsrc=d=120:size=100x100&#x27; -i metadata.txt -map_metadata 1 output.mp4&#xA;

    &#xA;

    The following command shows information about the metadata in the video file that was created by the previous command.

    &#xA;

    ffprobe -v error -show_chapters -print_format json output.mp4 | jq&#xA;

    &#xA;

    {&#xA;  "chapters": [&#xA;    {&#xA;      "id": 0,&#xA;      "time_base": "1/1000",&#xA;      "start": 0,&#xA;      "start_time": "0.000000",&#xA;      "end": 10000,&#xA;      "end_time": "10.000000",&#xA;      "tags": {&#xA;        "title": "This is my chapter one"&#xA;      }&#xA;    },&#xA;    {&#xA;      "id": 1,&#xA;      "time_base": "1/1000",&#xA;      "start": 10000,&#xA;      "start_time": "10.000000",&#xA;      "end": 20000,&#xA;      "end_time": "20.000000",&#xA;      "tags": {&#xA;        "title": "This is my chapter two"&#xA;      }&#xA;    },&#xA;    {&#xA;      "id": 2,&#xA;      "time_base": "1/1000",&#xA;      "start": 20000,&#xA;      "start_time": "20.000000",&#xA;      "end": 25000,&#xA;      "end_time": "25.000000",&#xA;      "tags": {&#xA;        "title": "This is my chapter three"&#xA;      }&#xA;    }&#xA;  ]&#xA;}&#xA;

    &#xA;

    From the output above, we can notice the following :

    &#xA;

      &#xA;
    • The end time of the chapter with title This is my chapter one is 10000 which should be 15000, since that is the value we specified in the END field
    • &#xA;

    • The end time of the chapter with title This is my chapter two is 20000 which should be 25000, since that is the value we specified in the END field
    • &#xA;

    • The end time of the last chapter is the only one that is the same to the value that we wrote in the metadata file
    • &#xA;

    &#xA;

    I consider this unexpected behavior because ffmpeg should use the end time that we have specified in the metadata file.

    &#xA;

    &#xA;

    no. 3

    &#xA;

    ;FFMETADATA1&#xA;title=The title of my video&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=0&#xA;END=1&#xA;title=This is my chapter one&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=10000&#xA;END=10001&#xA;title=This is my chapter two&#xA;&#xA;[CHAPTER]&#xA;TIMEBASE=1/1000&#xA;START=20000&#xA;END=20001&#xA;title=This is my chapter three&#xA;

    &#xA;

    The following command creates a simple video and inserts the metadata shown above into that video.

    &#xA;

    ffmpeg -v error -y -f lavfi -i &#x27;testsrc=d=120:size=100x100&#x27; -i metadata.txt -map_metadata 1 output.mp4&#xA;

    &#xA;

    The following command shows information about the metadata in the video file that was created by the previous command.

    &#xA;

    ffprobe -v error -show_chapters -print_format json output.mp4 | jq&#xA;

    &#xA;

    {&#xA;  "chapters": [&#xA;    {&#xA;      "id": 0,&#xA;      "time_base": "1/1000",&#xA;      "start": 0,&#xA;      "start_time": "0.000000",&#xA;      "end": 10000,&#xA;      "end_time": "10.000000",&#xA;      "tags": {&#xA;        "title": "This is my chapter one"&#xA;      }&#xA;    },&#xA;    {&#xA;      "id": 1,&#xA;      "time_base": "1/1000",&#xA;      "start": 10000,&#xA;      "start_time": "10.000000",&#xA;      "end": 20000,&#xA;      "end_time": "20.000000",&#xA;      "tags": {&#xA;        "title": "This is my chapter two"&#xA;      }&#xA;    },&#xA;    {&#xA;      "id": 2,&#xA;      "time_base": "1/1000",&#xA;      "start": 20000,&#xA;      "start_time": "20.000000",&#xA;      "end": 20001,&#xA;      "end_time": "20.001000",&#xA;      "tags": {&#xA;        "title": "This is my chapter three"&#xA;      }&#xA;    }&#xA;  ]&#xA;}&#xA;

    &#xA;

    From the output above, we can notice the following :

    &#xA;

      &#xA;
    • The end time of the chapter with title This is my chapter one is 10000, but it should be 15000, since that is the value we specified in the END field in the metadata file
    • &#xA;

    • The end time of the chapter with title This is my chapter two is 20000, but it should be 25000, since that is the value we specified in the END field in the metadata file
    • &#xA;

    • The end time of the last chapter is the only one that is the same to the value that we wrote in the metadata file
    • &#xA;

    &#xA;

    I consider this unexpected behavior because ffmpeg should use the end time that we have specified in the metadata file.

    &#xA;

    &#xA;

    The questions

    &#xA;

    In minimal working example no. 2 and minimal working example no. 3, we could see that although the metadata file sets END for each chapter, a different time is used (except for the last chapter). My questions are :

    &#xA;

      &#xA;
    • What's the purpose of having a field called END when it only serves a purpose in the last chapter ?
    • &#xA;

    • Given that ffmpeg only adds the correct value for END for the last chapter ? Wouldn't a better name for END be END_ONLY_FOR_LAST_CHAPTER ?
    • &#xA;

    • Am I doing something wrong that is casuing ffmpeg to use a different value for END in all chapters but the last one ?
    • &#xA;

    &#xA;