Recherche avancée

Médias (1)

Mot : - Tags -/publishing

Autres articles (107)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Le plugin : Gestion de la mutualisation

    2 mars 2010, par

    Le plugin de Gestion de mutualisation permet de gérer les différents canaux de mediaspip depuis un site maître. Il a pour but de fournir une solution pure SPIP afin de remplacer cette ancienne solution.
    Installation basique
    On installe les fichiers de SPIP sur le serveur.
    On ajoute ensuite le plugin "mutualisation" à la racine du site comme décrit ici.
    On customise le fichier mes_options.php central comme on le souhaite. Voilà pour l’exemple celui de la plateforme mediaspip.net :
    < ?php (...)

Sur d’autres sites (8071)

  • Revision 62772 : éviter d’avoir une espace entre la date d’un forum et la virgule qui suit

    20 juin 2012, par maieul@… — Log

    éviter d’avoir une espace entre la date d’un forum et la virgule qui suit

  • Metadata when Remuxing MP3 Audiobooks into Apple-friendly MP4 with FFmpeg

    23 août 2022, par Crissov

    Since there is apparently no way to tell iTunes or iOS that MP3s contain an audiobook (or radioplay) by ID3 tag or file extension, I would like to remux them into MPEG-4 Part 14 containers with an .m4b file extension (without converting, i.e. transcoding or reencoding, the audio stream to AAC) and set the proper media type tag (stik = 2 Audiobook).

    &#xA;&#xA;

    $ ffmpeg -hide_banner -y \&#xA;         -i "infile.mp3" -codec copy -map 0 \&#xA;         "outfile.m4b"&#xA;

    &#xA;&#xA;

    When auto-detecting the intended format from the output filename, FFmpeg (version 4.2.1 at the time of writing) toggles its -f ipod compatibility mode for .m4a and .m4b, which means it will apparently not accept MPEG 1/2 Layer 3 audio within an MP4 container :

    &#xA;&#xA;

    &#xA;

    [ipod @ 00000223bd927e40]
    &#xA; Could not find tag for codec mp3 in stream #0, codec not currently supported in container
    &#xA; Could not write header for output file #0 (incorrect codec parameters ?) : Invalid argument

    &#xA;

    &#xA;&#xA;

    I can override that (or change the file extension afterwards when using "outfile.mp4") :

    &#xA;&#xA;

    $ ffmpeg -hide_banner -y \&#xA;         -i "infile.mp3" -codec copy -map 0 -f mp4 \&#xA;         "outfile.m4b"&#xA;

    &#xA;&#xA;

    The near-zero time required for the conversion and FFprobe assure me that the remuxing was successful :

    &#xA;&#xA;

    &#xA;
    Stream #0:0(und): Audio: mp3 (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 160 kb/s (default)&#xA;

    &#xA;

    &#xA;&#xA;

    Custom ID3v2 tag fields and ones without a known MP4 cognate have been dropped, though. I would like to preserve them !

    &#xA;&#xA;

    How do I do that with -map_metadata, if it is possible at all ?

    &#xA;&#xA;

    How can I use -metadata to add the necessary tag field (atom : stik) which would mark the file as an audiobook &#xA;– phrased more generally :
    &#xA;how do I add a manually specified metadata tag field (e.g. MP4 atom or box) with FFmpeg ?

    &#xA;&#xA;

    $ ffmpeg -hide_banner -y \&#xA;         -i "infile.mp3" -codec copy -map 0 -f mp4 \&#xA;         -metadata:s:a:0 language=deu \&#xA;         -metadata stik=2&#xA;         "outfile.m4b"&#xA;

    &#xA;&#xA;

    FFmpeg documentation

    &#xA;&#xA;

    &#xA;
      &#xA;
    • -metadata[:metadata_specifier] key=value (output,per-metadata)
      &#xA; Set a metadata key/value pair.
    • &#xA;

    • &#xA;

    • -map_metadata[:metadata_spec_out] infile[:metadata_spec_in] (output,per-metadata)
      &#xA; Set metadata information of the next output file from infile. Note that those are file indices (zero-based), not filenames. Optional metadata_spec_in/out parameters specify, which metadata to copy. A metadata specifier can have the following forms :&#xA; &#xA;
        &#xA;
      • g
        &#xA; global metadata, i.e. metadata that applies to the whole file
      • &#xA;

      • s[:stream_spec]
        &#xA; per-stream metadata. stream_spec is a stream specifier as described in the Stream specifiers chapter. In an input metadata specifier, the first matching stream is copied from. In an output metadata specifier, all matching streams are copied to.
      • &#xA;

      • c:chapter_index
        &#xA; per-chapter metadata. chapter_index is the zero-based chapter index.
      • &#xA;

      • p:program_index
        &#xA; per-program metadata. program_index is the zero-based program index.
      • &#xA;

    • &#xA;

    &#xA; &#xA;

    If metadata specifier is omitted, it defaults to global.

    &#xA; &#xA;

    By default, global metadata is copied from the first input file, per-stream and per-chapter metadata is copied along with streams/chapters. These default mappings are disabled by creating any mapping of the relevant type. A negative file index can be used to create a dummy mapping that just disables automatic copying.

    &#xA;

    &#xA;&#xA;

    PS

    &#xA;&#xA;

      &#xA;
    • Apple does not seem to formally document stik. MPMediaType is slightly different. Pointers to the contrary would be greatly appreciated.
    • &#xA;

    • Ideally, I would like to automatically add all *.mp3 files within a subdirectory sorted alphabetically (which share the same encoder settings) as chapters within a single .mp4 container, but that probably deserves a separate question.
    • &#xA;

    &#xA;

  • How to make ffmpeg remux an iPhone MOV (HEVC) that works on Apple products ?

    21 janvier 2024, par Mikael Finstad

    I want to remux a HEVC file (without encoding). I have tried most options, even removing audio, but I cannot get an output file that plays smoothly with Apple products.

    &#xA;&#xA;

    First I AirDrop any MOV from an iPhone recorded with the camera in HEVC.

    &#xA;&#xA;

    Then run :

    &#xA;&#xA;

    ffmpeg -i IMG_4605.MOV -c copy out.mov&#xA;

    &#xA;&#xA;

    Then if I send out.mov back to the iPhone and try to play it back, it plays back with glitches while seeking, like this : (original to the right)

    &#xA;&#xA;

    Result&#xA;Original

    &#xA;&#xA;

    When I try to drag the file into a new iMovie project and try to play it back, it freezes the whole iMovie app and needs a force quit.

    &#xA;&#xA;

    Doing the same with the original causes no issues, so obviously there is something wrong with the way ffmpeg remuxes it, or something wrong with Apple's software.

    &#xA;&#xA;

    ffmpeg -i IMG_4605.MOV &#xA;ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;IMG_4605.MOV&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 0&#xA;    compatible_brands: qt  &#xA;    creation_time   : 2019-12-29T10:20:56.000000Z&#xA;    com.apple.quicktime.location.ISO6709: &#x2B;01.3602&#x2B;103.9897&#x2B;024.438/&#xA;    com.apple.quicktime.make: Apple&#xA;    com.apple.quicktime.model: iPhone 11&#xA;    com.apple.quicktime.software: 13.3&#xA;    com.apple.quicktime.creationdate: 2019-12-29T18:20:56&#x2B;0800&#xA;  Duration: 00:00:09.00, start: 0.000000, bitrate: 24882 kb/s&#xA;    Stream #0:0(und): Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 3840x2160, 24659 kb/s, 29.99 fps, 29.97 tbr, 600 tbn, 600 tbc (default)&#xA;    Metadata:&#xA;      rotate          : 90&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Video&#xA;      encoder         : HEVC&#xA;    Side data:&#xA;      displaymatrix: rotation of -90.00 degrees&#xA;    Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Audio&#xA;    Stream #0:2(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;    Stream #0:3(und): Data: none (mebx / 0x7862656D), 0 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;    Stream #0:4(und): Data: none (mebx / 0x7862656D), 17 kb/s (default)&#xA;    Metadata:&#xA;      creation_time   : 2019-12-29T10:20:56.000000Z&#xA;      handler_name    : Core Media Metadata&#xA;

    &#xA;&#xA;

    ffmpeg -i out.mov&#xA;ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers&#xA;  built with Apple clang version 11.0.0 (clang-1100.0.33.17)&#xA;  configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-librtmp --enable-libspeex --enable-libsoxr --enable-videotoolbox --disable-libjack --disable-indev=jack&#xA;  libavutil      56. 31.100 / 56. 31.100&#xA;  libavcodec     58. 54.100 / 58. 54.100&#xA;  libavformat    58. 29.100 / 58. 29.100&#xA;  libavdevice    58.  8.100 / 58.  8.100&#xA;  libavfilter     7. 57.100 /  7. 57.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  5.100 /  5.  5.100&#xA;  libswresample   3.  5.100 /  3.  5.100&#xA;  libpostproc    55.  5.100 / 55.  5.100&#xA;Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;out.mov&#x27;:&#xA;  Metadata:&#xA;    major_brand     : qt  &#xA;    minor_version   : 512&#xA;    compatible_brands: qt  &#xA;    encoder         : Lavf58.29.100&#xA;  Duration: 00:00:09.00, start: 0.000000, bitrate: 24860 kb/s&#xA;    Stream #0:0: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, bt709), 3840x2160, 24659 kb/s, 29.99 fps, 29.97 tbr, 19200 tbn, 19200 tbc (default)&#xA;    Metadata:&#xA;      rotate          : 90&#xA;      handler_name    : Core Media Video&#xA;      encoder         : HEVC&#xA;    Side data:&#xA;      displaymatrix: rotation of -90.00 degrees&#xA;    Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 192 kb/s (default)&#xA;    Metadata:&#xA;      handler_name    : Core Media Audio&#xA;

    &#xA;&#xA;

    If I open out.mov in QuickTime and do a trim and export it, then it it still "broken", so I'm thinking there's nothing wrong with the actual muxing into MOV, because QuickTime is passing the error on.

    &#xA;&#xA;

    I noticed that out.mov has different parameters 19200 tbn, 19200 tbc (vs original 600 tbn, 600 tbc). However, if I force set these to 600 with -video_track_timescale 600 the output file is still broken.

    &#xA;&#xA;

    Anyone got some insights ?

    &#xA;