Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (62)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

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

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

Sur d’autres sites (7227)

  • [ffmpeg C++ API] : How to copy a music file's cover image into another music file ?

    22 avril 2022, par Ananta

    I am having difficulties in copying a source music file's cover image into a destination music file. These two music files are in different formats (i.e, either mp3, flac, wav, or wma, different sampling rate). How should I implement the code for this ? I created a minimal code for this task below :

    


    const char* src_path = "source.mp3";
const char* dest_path = "destination.flac";
AVPacket src_pic; 

// open the source path
AVFormatContext *src_ctx = avformat_alloc_context();
avformat_open_input(&src_ctx, src_path, NULL, NULL);

// find the first attached picture, if available
for (i = 0; i < src_ctx->nb_streams; i++)
   if (src_ctx->streams[i]->disposition & AV_DISPOSITION_ATTACHED_PIC) {
      src_pic = src_ctx->streams[i]->attached_pic;

// open the destination path
AVFormatContext *dest_ctx = avformat_alloc_context();
avformat_open_input(&dest_ctx, dest_path, NULL, NULL);

// Then, how to embed the 'src_pic' into 'dest_ctx'?

  


    


  • How can record music playing on headphone ?

    27 avril 2022, par showkey

    List all the cards in my pc :

    


    pacmd list-cards &#xA;2 card(s) available.&#xA;    index: 1&#xA;    name: &#xA;    driver: &#xA;    owner module: 7&#xA;    properties:&#xA;        alsa.card = "0"&#xA;        alsa.card_name = "HD-Audio Generic"&#xA;        alsa.long_card_name = "HD-Audio Generic at 0xfccc8000 irq 59"&#xA;        alsa.driver_name = "snd_hda_intel"&#xA;        device.bus_path = "pci-0000:09:00.1"&#xA;        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:09:00.1/sound/card0"&#xA;        device.bus = "pci"&#xA;        device.vendor.id = "1002"&#xA;        device.vendor.name = "Advanced Micro Devices, Inc. [AMD/ATI]"&#xA;        device.product.id = "15de"&#xA;        device.product.name = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"&#xA;        device.string = "0"&#xA;        device.description = "Raven/Raven2/Fenghuang HDMI/DP Audio Controller"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card-pci"&#xA;    profiles:&#xA;        output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5900, available: no)&#xA;        output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 800, available: no)&#xA;        output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 800, available: no)&#xA;        output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5700, available: no)&#xA;        output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 600, available: no)&#xA;        output:hdmi-surround71-extra1: Digital Surround 7.1 (HDMI 2) Output (priority 600, available: no)&#xA;        output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5700, available: no)&#xA;        output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 600, available: no)&#xA;        output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 600, available: no)&#xA;        off: Off (priority 0, available: unknown)&#xA;    active profile: <off>&#xA;    ports:&#xA;        hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "video-display"&#xA;        hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "video-display"&#xA;        hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "video-display"&#xA;    index: 2&#xA;    name: &#xA;    driver: &#xA;    owner module: 8&#xA;    properties:&#xA;        alsa.card = "2"&#xA;        alsa.card_name = "HD-Audio Generic"&#xA;        alsa.long_card_name = "HD-Audio Generic at 0xfccc0000 irq 60"&#xA;        alsa.driver_name = "snd_hda_intel"&#xA;        device.bus_path = "pci-0000:09:00.6"&#xA;        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:09:00.6/sound/card2"&#xA;        device.bus = "pci"&#xA;        device.vendor.id = "1022"&#xA;        device.vendor.name = "Advanced Micro Devices, Inc. [AMD]"&#xA;        device.product.id = "15e3"&#xA;        device.product.name = "Family 17h (Models 10h-1fh) HD Audio Controller"&#xA;        device.string = "2"&#xA;        device.description = "Family 17h (Models 10h-1fh) HD Audio Controller"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card-pci"&#xA;    profiles:&#xA;        input:analog-stereo: Analog Stereo Input (priority 65, available: no)&#xA;        output:analog-stereo: Analog Stereo Output (priority 6500, available: unknown)&#xA;        output:analog-stereo&#x2B;input:analog-stereo: Analog Stereo Duplex (priority 6565, available: no)&#xA;        output:analog-surround-40: Analog Surround 4.0 Output (priority 1200, available: unknown)&#xA;        output:analog-surround-40&#x2B;input:analog-stereo: Analog Surround 4.0 Output &#x2B; Analog Stereo Input (priority 1265, available: no)&#xA;        output:analog-surround-51: Analog Surround 5.1 Output (priority 1300, available: unknown)&#xA;        output:analog-surround-51&#x2B;input:analog-stereo: Analog Surround 5.1 Output &#x2B; Analog Stereo Input (priority 1365, available: no)&#xA;        output:iec958-stereo: Digital Stereo (IEC958) Output (priority 5500, available: unknown)&#xA;        output:iec958-stereo&#x2B;input:analog-stereo: Digital Stereo (IEC958) Output &#x2B; Analog Stereo Input (priority 5565, available: no)&#xA;        output:iec958-ac3-surround-51: Digital Surround 5.1 (IEC958/AC3) Output (priority 300, available: unknown)&#xA;        output:iec958-ac3-surround-51&#x2B;input:analog-stereo: Digital Surround 5.1 (IEC958/AC3) Output &#x2B; Analog Stereo Input (priority 365, available: no)&#xA;        off: Off (priority 0, available: unknown)&#xA;    active profile: &#xA;    sinks:&#xA;        alsa_output.pci-0000_09_00.6.analog-stereo/#0: Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo&#xA;    sources:&#xA;        alsa_output.pci-0000_09_00.6.analog-stereo.monitor/#1: Monitor of Family 17h (Models 10h-1fh) HD Audio Controller Analog Stereo&#xA;    ports:&#xA;        analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "audio-input-microphone"&#xA;        analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                device.icon_name = "audio-input-microphone"&#xA;        analog-input-linein: Line In (priority 8100, latency offset 0 usec, available: no)&#xA;            properties:&#xA;                &#xA;        analog-output-lineout: Line Out (priority 9000, latency offset 0 usec, available: yes)&#xA;            properties:&#xA;                &#xA;        analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: yes)&#xA;            properties:&#xA;                device.icon_name = "audio-headphones"&#xA;        iec958-stereo-output: Digital Output (S/PDIF) (priority 0, latency offset 0 usec, available: unknown)&#xA;            properties:&#xA;</off>

    &#xA;

    Playing a music on speaker,record it with ffmpeg and save as music.mp3 in current directory.

    &#xA;

    device_speaker="alsa_output.pci-0000_09_00.6.analog-stereo.monitor"&#xA;ffmpeg -f pulse -i $device_speaker   music.mp3&#xA;

    &#xA;

    I turn off the speaker and play the music on my headphone,how can record it with ffmpeg ?

    &#xA;

  • How to Extract Lyrics (USLT frame) from Mp3 using FFmpeg ?

    1er mai 2022, par Wonderer

    I'm using Mp3tag's "Tools" feature to batch run FFmpeg in Windows, in order to batch extract the embedded lyrics content (USLT frame of ID3v2 tag) from MP3 files, I know with FFmpeg I can do something like :

    &#xA;

    -i "%_path%" -f ffmetadata "%_folderpath%\%_filename%.txt"&#xA;

    &#xA;

    "%_path%" = full path of the MP3 file

    &#xA;

    "%_folderpath%%_filename%.txt" = path and filename of the exported txt file.

    &#xA;

    The command above extracts all the metadata from MP3 file and export them into a txt file with the following cotent for example :

    &#xA;

    ;FFMETADATA1&#xA;album=name of the album&#xA;artist=name of the artist&#xA;title=name of the title&#xA;lyrics-eng=[00:01.23]line1 of lyrics&#xA;\&#xA;[00:04.56]line2 of lyrics&#xA;\&#xA;[00:07.89]line3 of lyrics&#xA;\&#xA;[01:03.12]3rd last line of lyrics&#xA;\&#xA;[02:04.34]2nd last line of lyrics&#xA;\&#xA;[03:05.67]Last line of lyrics&#xA;\&#xA;&#xA;date=2020&#xA;encoder=Lavf59.23.100&#xA;

    &#xA;

    (the original lyrics uses Simple LRC format with timestamps in each line, certain lines contain only the timestamp with empty lyrics)

    &#xA;

    (There might (or might not) be additional metadata (e.g. date and encoder in the example above) following the lyrics part)

    &#xA;

    As seen above, the backslash "\" (which is not present in the original lyrics) is somehow added after each line of lyrics, between CR (CarriageReturn) and LF (LineFeed) as seen in Notepad++ (the original lyrics use CRLF as EOL characters).

    &#xA;

    So how do I modify the given command line to export only the lyrics part (exluding all other metadata and the extra backslash "\"), an example of the expected text file content is shown below :

    &#xA;

    [00:01.23]line1 of lyrics&#xA;[00:04.56]line2 of lyrics&#xA;[00:07.89]line3 of lyrics&#xA;[01:03.12]3rd last line of lyrics&#xA;[02:04.34]2nd last line of lyrics&#xA;[03:05.67]Last line of lyrics&#xA;

    &#xA;

    with the original EOL characters from lyrics such as CRLF

    &#xA;