
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)
-
Bash : Create copy of music files in different format and folder
13 mai 2021, par Brett SjoholmI'm trying to create a bash scipt to simply automate finding my flac files and creating an alac copy of them in a separate folder. Just so I have my little itunes folder. Want to automate because so many.


So I find my flac folders within my Eminem folder....


:~$ find /mnt/music/Eminem -type d -name *FLAC
 /mnt/music/Eminem/2009 Relapse FLAC
 /mnt/music/Eminem/1996 Infinite FLAC
 /mnt/music/Eminem/1999 The Slim Shady LP FLAC
 /mnt/music/Eminem/2000 Marshall Mathers LP FLAC



Now instead of going into each folder and converting manually using something like


ffmpeg -i track.flac -acodec alac track.m4a...



How do I, within a bash script, take these multiple folders. Create an ALAC copy of the contents in /mnt/music/iTunes using FFMpeg ?


New folder will be...


/mnt/music/iTunes/Eminem/2009 Relapse ALAC/track.m4a



All flac folders have FLAC at the end in the same folder structure.


/mnt/music/Artist/Year Album FLAC



I understand most of the locating, copying, converting, manually terminal command stuff but when it comes to putting it into a bash script. I don't understand how I take the output of each command and use it for another. The list of folder for example. Don't know how to automate doing all the steps for each.


Kind of long winded but any help will be much appreciated. Even some videos you recommend for learning.


-
How do I install FFmpeg for my bot to play music ?
28 juin 2023, par Shiqi WangI followed a Youtube Tortual on how to make a music bot, and every piece of code made sense, there is just one problem. I thought I installed FFmpeg which is the thingy which makes the bot play audio I believe, the way I installed it was running the following command : pip install ffmpeg


So I waited it to finish up, and attempted to play music, and here is the error message


Traceback (most recent call last):
 File "C:\Users\Shiqi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\bot.py", line 902, in invoke
 await ctx.command.invoke(ctx)
 File "C:\Users\Shiqi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\core.py", line 864, in invoke
 await injected(*ctx.args, **ctx.kwargs)
 File "C:\Users\Shiqi\AppData\Local\Packages\PythonSoftwareFoundation.Python.3.8_qbz5n2kfra8p0\LocalCache\local-packages\Python38\site-packages\discord\ext\commands\core.py", line 94, in wrapped
 raise CommandInvokeError(exc) from exc
discord.ext.commands.errors.CommandInvokeError: Command raised an exception: DownloadError: ERROR: ffprobe/avprobe and ffmpeg/avconv not found. Please install one.



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