
Recherche avancée
Autres articles (38)
-
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 (...) -
MediaSPIP Player : les contrôles
26 mai 2010, parLes contrôles à la souris du lecteur
En plus des actions au click sur les boutons visibles de l’interface du lecteur, il est également possible d’effectuer d’autres actions grâce à la souris : Click : en cliquant sur la vidéo ou sur le logo du son, celui ci se mettra en lecture ou en pause en fonction de son état actuel ; Molette (roulement) : en plaçant la souris sur l’espace utilisé par le média (hover), la molette de la souris n’exerce plus l’effet habituel de scroll de la page, mais diminue ou (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (6598)
-
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 ?


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

 



-
About Soundcloud scraping for uploading music to telegram group
16 juin 2021, par so saI am trying to automatically download the new uploaded file from the below soundcloud link and upload it to a telegram group :


https://soundcloud.com/radio-hamrah-1


so I have googled the :




python script to download from soundcloud and import to telegram
group




and tried the scdl python module by its instruction, but when I have tried its on this colab page I get this error :


!pip3 install git+https://github.com/flyingrub/scdl
!scdl -l https://soundcloud.com/pandadub/sets/the-lost-ship --download-archive archive.txt -c

Collecting git+https://github.com/flyingrub/scdl
 Cloning https://github.com/flyingrub/scdl to /tmp/pip-req-build-0g64ql2f
 Running command git clone -q https://github.com/flyingrub/scdl /tmp/pip-req-build-0g64ql2f
Requirement already satisfied (use --upgrade to upgrade): scdl==1.6.12 from git+https://github.com/flyingrub/scdl in /usr/local/lib/python3.7/dist-packages
Requirement already satisfied: docopt in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (0.6.2)
Requirement already satisfied: mutagen in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (1.45.1)
Requirement already satisfied: termcolor in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (1.1.0)
Requirement already satisfied: requests in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (2.23.0)
Requirement already satisfied: clint in /usr/local/lib/python3.7/dist-packages (from scdl==1.6.12) (0.5.1)
Requirement already satisfied: chardet<4,>=3.0.2 in /usr/local/lib/python3.7/dist-packages (from requests->scdl==1.6.12) (3.0.4)
Requirement already satisfied: urllib3!=1.25.0,!=1.25.1,<1.26,>=1.21.1 in /usr/local/lib/python3.7/dist-packages (from requests->scdl==1.6.12) (1.24.3)
Requirement already satisfied: idna<3,>=2.5 in /usr/local/lib/python3.7/dist-packages (from requests->scdl==1.6.12) (2.10)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/dist-packages (from requests->scdl==1.6.12) (2021.5.30)
Requirement already satisfied: args in /usr/local/lib/python3.7/dist-packages (from clint->scdl==1.6.12) (0.1.0)
Building wheels for collected packages: scdl
 Building wheel for scdl (setup.py) ... done
 Created wheel for scdl: filename=scdl-1.6.12-cp37-none-any.whl size=19143 sha256=27ca560a7f3947830289d0df167db84137d1554fe1ab740c2afab3db0abedd74
 Stored in directory: /tmp/pip-ephem-wheel-cache-agspvyq5/wheels/49/44/6e/a5f6f709e7b231f3639ea9f9fc48a4699b958850715556e7f6
Successfully built scdl
Soundcloud Downloader
Failed to get item...





and when I try by the Docker VPS by this commands :


pip3 install git+https://github.com/flyingrub/scdl
pip3 install ffmpeg
scdl -l https://soundcloud.com/pandadub/sets/the-lost-ship --download-archive archive.txt -c



pip3 install git+https://github.com/flyingrub/scdl pip3 install ffmpeg
scdl -l https://soundcloud.com/pandadub/sets/the-lost-ship —download-archive archive.txt -c


I get this error :


FileNotFoundError: [Errno 2] No such file or directory: 'ffmpeg'





So I asked abut how could i do it by scdl and soundcloude python module.


Update :


Based of my two comment on this question I get different result by using the scdl python module via the above colab page, sometimes it is working and sometimes not, which i guess it is because of soudncloud server setting for preventing huge scraping and needs some delay during the music scraping form the soundcloud.


Thanks.