
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (58)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)
Sur d’autres sites (8380)
-
Having issues making an app with py2app ffmpeg and ffprobe
23 septembre 2024, par Nuno MesquitaI have made an app in OSX Python, that uses FFMEG and
ffprobe
.

It runs fine in my VS Code.


I want to make a self sustained app, that others can use, without needed to install anything themselves. So, I manually included the static libraries in the bin folder of my main app, and am able to run the app using the libraries inside my bin folder.


I have lost many hours trying to figure this out, and am always getting the same error.


My best shot was being able to open the app inside app/contents/resources and running via Python, but still have the issue saying that
ffprobe
is not available.

I´m losing my mind...


Should I try a completely different approach ?


For now, I just want my OSX friends to be able to use the app, then I will want it to run on Windows too, but baby steps.


I am not quite sure what to include in
setup.py
, so I would love to include everything that is in my app folder, to avoid all sorts of errors in missing .pngs and stuff.

I also made sure that libraries are executable (they are about 80MB each (ffmpeg and ffprobe))


Can anyone help =D ???


I described above, tested different ways, checked stuff like redirecting the libraries to the folders of the app :


For the last try my setup.py was :


from setuptools import setup

APP = ['mpc.py']
DATA_FILES = [
 ('bin', ['./bin/ffmpeg', './bin/ffprobe']),
 ('theme/dark', ['./theme/dark/*.png']),
 ('theme/light', ['./theme/light/*.png']),
 ('theme', ['./theme/dark.tcl', './theme/light.tcl']),
 '.', # Add current directory to ensure everything is included
]

OPTIONS = {
 'argv_emulation': False,
 'packages': ['pydub', 'pygame', 'requests', 'freesound'],
 'includes': ['pydub', 'pygame', 'requests', 'freesound'],
 'resources': ['./bin/ffmpeg', './bin/ffprobe', './theme/dark/*.png', './theme/light/*.png', './theme/dark.tcl', './theme/light.tcl'],
}

setup(
 app=APP,
 data_files=DATA_FILES,
 options={'py2app': OPTIONS},
 setup_requires=['py2app'],
)



And I also had this in the beginning of my Python script :


# Set ffmpeg and ffprobe paths relative to the app's Resources/bin directory
app_dir = os.path.dirname(os.path.abspath(__file__)) 

# Set ffmpeg and ffprobe paths relative to the app's Resources/bin directory
ffmpeg_path = os.path.join(app_dir, 'bin', 'ffmpeg')
ffprobe_path = os.path.join(app_dir, 'bin', 'ffprobe') 
AudioSegment.converter = ffmpeg_path
AudioSegment.ffprobe = ffprobe_path



Don't know what else to try.


-
Revision 4e4e7fa912 : Make x86inc support local variable array This commit modifies the x86inc to all
15 mai 2014, par Jingning HanChanged Paths :
Modify /third_party/x86inc/x86inc.asm
Make x86inc support local variable arrayThis commit modifies the x86inc to allow explicit local buffer
allocation and the corresponding stack pointer adjustment.Change-Id : I3cb2174e0242b5869a4ba0ca0cd240ee066836c3
-
configure : loongson enabled local aligned 32
6 juillet 2015, par 周晓勇