
Recherche avancée
Médias (91)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
-
Les Miserables
4 juin 2012, par
Mis à jour : Février 2013
Langue : English
Type : Texte
-
Ne pas afficher certaines informations : page d’accueil
23 novembre 2011, par
Mis à jour : Novembre 2011
Langue : français
Type : Image
-
The Great Big Beautiful Tomorrow
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Richard Stallman et la révolution du logiciel libre - Une biographie autorisée (version epub)
28 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Texte
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (80)
-
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 (...) -
Support de tous types de médias
10 avril 2011Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)
-
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (10713)
-
Revision 4cf636a60e : Removed redundant local variables in the forward hybrid transforms. Change-Id :
8 janvier 2015, par Zoe LiuChanged Paths :
Modify /vp9/encoder/vp9_dct.c
Removed redundant local variables in the forward hybrid transforms.Change-Id : I60f7ccbbc8dc624134e325bdce6042bc183075b6
-
avcodec/vp3 : Reuse local variable in unpack_superblocks()
28 octobre 2018, par Michael Niedermayer -
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.