
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (24)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Qu’est ce qu’un éditorial
21 juin 2013, parEcrivez votre de point de vue dans un article. Celui-ci sera rangé dans une rubrique prévue à cet effet.
Un éditorial est un article de type texte uniquement. Il a pour objectif de ranger les points de vue dans une rubrique dédiée. Un seul éditorial est placé à la une en page d’accueil. Pour consulter les précédents, consultez la rubrique dédiée.
Vous pouvez personnaliser le formulaire de création d’un éditorial.
Formulaire de création d’un éditorial Dans le cas d’un document de type éditorial, les (...)
Sur d’autres sites (4618)
-
ffmpeg error that causes songs to be skipped in discord.py music bot
28 septembre 2022, par WolfyI'm making a music bot in python. Sometimes when the music is playing, such an error may come out


[tls @ 0x56540863c280] Error in the pull function.
[matroska,webm @ 0x565408639460] Read error
[tls @ 0x56540863c280] The specified session has been invalidated for some reason.



[https @ 0x55ef3042ae80] HTTP error 403 Forbidden
https://rr5---sn-qxoedne7.googlevideo.com/videoplayback?expire=1643908737&ei=ILr7YYvvOfeA_tcP1P-O6AE&ip=34.70.213.61&id=o-AP2Y_3KL9ByYzaHpK9BTYU-rXEdyhVBdmAya4-RDcnhA&itag=249&source=youtube&requiressl=yes&mh=up&mm=31%2C26&mn=sn-qxoedne7%2Csn-5goeen7d&ms=au%2Conr&mv=u&mvi=5&pl=20&vprv=1&mime=audio%2Fwebm&ns=R7IIdhU6N1T67hOi5mk4h1gG&gir=yes&clen=1237668&dur=200.101&lmt=1643350535759614&mt=1643886547&fvip=4&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=f5o7FLev4k11Jt4&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AG3C_xAwRQIhAI7fuWyVPY7zdiGm2FemrcqsDuQWjcqfSnLKxw66QoSwAiBOJHGVpoRCKu2ZnW3DPGxK8bKS-FfvyyxG2hRgg2TRVw%3D%3D&sig=AOq0QJ8wRQIgOWU5ecufOjhtuwQNdWX5l140N5cW7Hu01SfC9b6Zkg4CIQC0ZzrrXwUtf4qkvWZaQCEfWpOmZJhBmca0sYqqmxh75A==: Server returned 403 Forbidden (access denied)



[dash @ 0x5596ac7e6460] Could not read complete fragment.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5596acb12940] Stream #0: not enough frames to estimate rate; consider increasing probesize
[dash @ 0x5596ac7e6460] Could not read complete fragment.



A piece of code to launch a song :


YDL_OPTIONS = {'format': 'bestaudio/best','outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s','restrictfilenames': True,'noplaylist': True,'nocheckcertificate': True,'ignoreerrors': False,'logtostderr': False,'quiet': True,'no_warnings': True, 'forceipv4': True,'cookies': True, 'default_search': 'auto','encoding': 'utf-8', "simulate": True, 'audioformat': "mp3",'audioquality': 5,'source_address': '0.0.0.0',"bitrate": 320000,"prefer_ffmpeg": True,"usenetrc": True,"verbose": False}
FFMPEG_OPTIONS = {'options': '-vn'}
vc.play(discord.FFmpegPCMAudio( source = URL, **FFMPEG_OPTIONS))
vc.source = discord.PCMVolumeTransformer(vc.source)
vc.source.volume = 1



How do I catch these errors or how do I fix them ?


-
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


-
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 ?