
Recherche avancée
Autres articles (74)
-
Gestion générale des documents
13 mai 2011, parMédiaSPIP ne modifie jamais le document original mis en ligne.
Pour chaque document mis en ligne il effectue deux opérations successives : la création d’une version supplémentaire qui peut être facilement consultée en ligne tout en laissant l’original téléchargeable dans le cas où le document original ne peut être lu dans un navigateur Internet ; la récupération des métadonnées du document original pour illustrer textuellement le fichier ;
Les tableaux ci-dessous expliquent ce que peut faire MédiaSPIP (...) -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.
Sur d’autres sites (7838)
-
[ffmpeg C++ API] : How to copy a music file's cover image into another music file ?
22 avril 2022, par AnantaI 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 showkeyList all the cards in my pc :


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


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

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



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


-
How to Extract Lyrics (USLT frame) from Mp3 using FFmpeg ?
1er mai 2022, par WondererI'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 :


-i "%_path%" -f ffmetadata "%_folderpath%\%_filename%.txt"



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


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


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


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

date=2020
encoder=Lavf59.23.100



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


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


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


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 :


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



with the original EOL characters from lyrics such as CRLF