Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (22)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

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

Sur d’autres sites (5625)

  • How to dump ALL metadata from a media file, including cover image title ? [closed]

    9 avril, par Unideal

    I have an MP3 song :

    


    # ffprobe -hide_banner -i filename.mp3
Input #0, mp3, from 'filename.mp3':
  Metadata:
    composer        : Music Author
    title           : Song Name
    artist          : Singer
    encoder         : Lavf61.7.100
    genre           : Rock
    date            : 2025
  Duration: 00:03:14.04, start: 0.023021, bitrate: 208 kb/s
  Stream #0:0: Audio: mp3 (mp3float), 48000 Hz, stereo, fltp, 192 kb/s
      Metadata:
        encoder         : Lavc61.19
  Stream #0:1: Video: png, rgb24(pc, gbr/unknown/unknown), 600x600 [SAR 1:1 DAR 1:1], 90k tbr, 90k tbn (attached pic)
      Metadata:
        title           : Cover
        comment         : Cover (front)


    


    The task is to save its metadata to a text file and restore from that file later. Both goals should be accomplished with ffmpeg.

    


    The simpliest method is to run :

    


    # ffmpeg -i filename.mp3 -f ffmetadata metadata.txt


    


    After that, metadata.txt contains :

    


    ;FFMETADATA1
composer=Music Author
title=Song Name
artist=Singer
date=2025
genre=Rock
encoder=Lavf61.7.100


    


    I got global metadata only, but stream-specific info (cover image title and comment in my case) are missing.

    


    Google suggested a more complex form of the command above to extract all metadata fields without any exclusions :

    


    # ffmpeg -y -i filename.mp3 -c copy -map_metadata 0 -map_metadata:s:v 0:s:v -map_metadata:s:a 0:s:a -f ffmetadata metadata.txt


    


    But the output is exactly the same :

    


    ;FFMETADATA1
composer=Music Author
title=Song Name
artist=Singer
date=2025
genre=Rock
encoder=Lavf61.7.100


    


    Again, no info about the attached image.

    


    Please explain what am I doing wrong.

    


  • OpenCV on MacOS : Match Camera Index and Name

    15 janvier, par rpi_guru

    I have a builtin camera and a USB webcam connected to my MacOS.

    


    Here is a result of system_profiler SPCameraDataType -xml command :

    


    &lt;?xml version="1.0" encoding="UTF-8"?>&#xA;&#xA;<plist version="1.0">&#xA;<array>&#xA;    <dict>&#xA;        <key>_SPCommandLineArguments</key>&#xA;        <array>&#xA;            <string>/usr/sbin/system_profiler</string>&#xA;            <string>-nospawn</string>&#xA;            <string>-xml</string>&#xA;            <string>SPCameraDataType</string>&#xA;            <string>-detailLevel</string>&#xA;            <string>full</string>&#xA;        </array>&#xA;        <key>_SPCompletionInterval</key>&#xA;        <real>1.1997909545898438</real>&#xA;        <key>_SPResponseTime</key>&#xA;        <real>1.2810090780258179</real>&#xA;        <key>_dataType</key>&#xA;        <string>SPCameraDataType</string>&#xA;        <key>_detailLevel</key>&#xA;        <integer>-1</integer>&#xA;        <key>_items</key>&#xA;        <array>&#xA;            <dict>&#xA;                <key>_name</key>&#xA;                <string>USB Camera</string>&#xA;                <key>spcamera_model-id</key>&#xA;                <string>UVC Camera VendorID_3141 ProductID_25453</string>&#xA;                <key>spcamera_unique-id</key>&#xA;                <string>0x11000000c45636d</string>&#xA;            </dict>&#xA;            <dict>&#xA;                <key>_name</key>&#xA;                <string>FaceTime HD Camera</string>&#xA;                <key>spcamera_model-id</key>&#xA;                <string>FaceTime HD Camera</string>&#xA;                <key>spcamera_unique-id</key>&#xA;                <string>EAB7A68F-EC2B-4487-AADF-D8A91C1CB782</string>&#xA;            </dict>&#xA;        </array>&#xA;        <key>_parentDataType</key>&#xA;        <string>SPHardwareDataType</string>&#xA;        <key>_properties</key>&#xA;        <dict>&#xA;            <key>_name</key>&#xA;            <dict>&#xA;                <key>_isColumn</key>&#xA;                <string>NO</string>&#xA;                <key>_isOutlineColumn</key>&#xA;                <string>NO</string>&#xA;                <key>_order</key>&#xA;                <string>0</string>&#xA;            </dict>&#xA;            <key>spcamera</key>&#xA;            <dict>&#xA;                <key>_order</key>&#xA;                <string>10</string>&#xA;            </dict>&#xA;            <key>spcamera_model-id</key>&#xA;            <dict>&#xA;                <key>_order</key>&#xA;                <string>30</string>&#xA;            </dict>&#xA;            <key>spcamera_unique-id</key>&#xA;            <dict>&#xA;                <key>_order</key>&#xA;                <string>40</string>&#xA;            </dict>&#xA;            <key>volumes</key>&#xA;            <dict>&#xA;                <key>_detailLevel</key>&#xA;                <string>0</string>&#xA;            </dict>&#xA;        </dict>&#xA;        <key>_timeStamp</key>&#xA;        <date>2024-11-29T21:57:28Z</date>&#xA;        <key>_versionInfo</key>&#xA;        <dict>&#xA;            <key>com.apple.SystemProfiler.SPCameraReporter</key>&#xA;            <string>1.2.0</string>&#xA;        </dict>&#xA;    </dict>&#xA;</array>&#xA;</plist>&#xA;

    &#xA;

    As you can see, I have a couple of video input devices : USB Camera & FaceTime HD Camera

    &#xA;

    The problem is that when I use cap = cv2.VideoCapture(0), it uses the FaceTime HD Camera.

    &#xA;

    Can we match the camera index in OpenCV with the camera names ?

    &#xA;

    P.S. I tried ffmpeg, but it returned similar result :

    &#xA;

    enter image description here

    &#xA;

    ioreg | grep -i cam result :

    &#xA;

    enter image description here

    &#xA;

  • libavcodec.so.58 not found when running software compiled with opencv

    22 avril, par Abinaya

    I am using ubuntu 22.04. Now every time I try to run software compiled with Opencv, I get the following error :

    &#xA;

    `libavcodec.so.58 => not found&#xA; libavformat.so.58 => not found&#xA; libavutil.so.56 => not found&#xA; libswscale.so.5 => not found&#xA;`&#xA;

    &#xA;

    Looking around /lib/x86_64-linux-gnu/, I can find libavcodec.so.59, but not libavcodec.so.58.

    &#xA;

    When trying to run sudo apt-get install libavcodec58, I get :

    &#xA;

    Package 'libavcodec58' has no installation candidate

    &#xA;

    I've scoured the internet in search of an answer, but could not find anything at this point. Any help with solving this problem will be very much appreciated.

    &#xA;

    I have tried to recreate symbolic link with&#xA;'ls -l libavcodec.so.59'&#xA;1 root root 23 Aug 10 2024 libavcodec.so.59 ->libavcodec.so.59.37.100`

    &#xA;

    'dconfig -vl libavcodec.so.59.37.100'&#xA;libavcodec.so.59 -> libavcodec.so.59.37.100`

    &#xA;

    But I am still struck

    &#xA;