
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (41)
-
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (5959)
-
I couldn't embed ffmpeg package while trying to create an exe file for my python script
1er juillet 2024, par Abdelrahman ZakiI'm trying to create a
python script
that deals withaudios and videos
.
so, I need to useffmpeg
and it works -for details, I used a CLI program that deals with it, not me-, but when I tried to create an exe file usingpyinstaller
, it doesn't contain ffmpeg packages within it !
Now, if anyone want to use the app, he couldn't until he downloads ffmpeg independently, and it's a further step that makes it harder reach my app.
What is the solution/the way to embed ffmpeg with my app ?

- 

- What I'm expecting is to find a solution...
- What I've tried is that :
- I tried to search on google, but I found nothing.
- I tried to ask chatGPT and it gives me a script that doesn't work :)











# my_app.spec
# Run with: pyinstaller my_app.spec

# Basic PyInstaller configuration
block_cipher = None

a = Analysis(['main.py'], # Replace 'main.py' with your Python script
 pathex=['.'],
 binaries=[('C:\\ffmpeg\\bin\\ffmpeg.exe', '.'), 
 ('C:\\ffmpeg\\bin\\ffplay.exe', '.'),
 ('C:\\ffmpeg\\bin\\ffprobe.exe', '.')],
 ...

 # Rest of the Analysis configuration goes here

 pyz = PYZ(a.pure, a.zipped_data,
 cipher=block_cipher)

 exe = EXE(pyz,
 a.scripts,
 a.binaries,
 a.zipfiles,
 ...

 # Rest of the EXE configuration goes here
)




-
Batch script to convert, youtube-dl webm file to mp3 with ffmpeg
1er avril 2024, par SneakyShrikeI'm using youtube-dl to extract the best possible audio quality from youtube videos. However the best quality audio usually turns out to be the webm format, which isn't useful. I would like to write a batch script that converts the webm file to an mp3 with ffmpeg. I've already tried using this guide on reddit to do it, but it doesn't seem to work. It appears to create an empty mp3 file that displays an error when i try to play it and the meta data is also completly blank.



Here is the batch script :



for %%a in ("Downloaded\*.*") do %CD%\ffmpeg\bin\ffmpeg.exe -i "%%a" -vn -ar 44100 -ac 2 -ab 192k -f mp3 "Converted\%%~na.mp3" pause




I'll also give an explanation of how the whole thing should work.



The idea is, is that you use youtube-dl to extract the best possible audio, then put that file into the Downloaded folder (see pic below) and then you run the mp3 script (which uses commands from ffmpeg) to convert the webm file in the Downloaded folder to a mp3 file, and place it in the Converted folder. The mp3 script is the code above. But it doesn't seem to work properly.



I'm not very familiar with batch scripting, nor with ffmpeg so any help would be appreicated.



Here is the picture to complement the explanation part.





-
Revision e1574b94e6 : Small script to scrape json for waterfall Change-Id : I879fcd3203c84fa83125e0666
28 mars 2014, par Joshua LittChanged Paths :
Add /test/android/scrape_gtest_log.py
Small script to scrape json for waterfallChange-Id : I879fcd3203c84fa83125e06662009d308bc2dbb6