
Recherche avancée
Médias (1)
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (111)
-
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 (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...) -
XMP PHP
13 mai 2011, parDixit Wikipedia, XMP signifie :
Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)
Sur d’autres sites (14286)
-
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.


-
ffmpeg convert images to video and add audio in one command
9 novembre 2022, par user2108258I have two commands that I would like consilidate to a 1 liner.
Here are the two queries.


Here are the steps i need help


- 

- create a video based on a directory of jpegs




ffmpeg -f image2 -pix_fmt yuv420p -r 10 -s 1080x1920 -i 'Roach spray high-25263/%d.jpg' -vf "pad=ceil(iw/2)*2:ceil(ih/2)*2" -crf 25 -vcodec h264 'Roach spray high.mp4' -y



- 

- Merge audio with video from step 1




ffmpeg -stream_loop -1 -i 'Roach spray high.mp4' -i '/beats/2022/Roach spray high.mp3' -shortest -map 0:v:0 -map 1:a:0 '/videos/Roach spray high/Roach spray high.mp4' -y



Is there a way to combine these two steps into 1 ?


-
FFMPEG convert GIF to MP4 is cutting GIF short
31 août 2019, par JayI have this command line to run ffmpeg from aws lambda.
The code is suppose to convert a GIF to a black background mp4.
On my local PC it works perfectly.
For whatever reason the ouput out of AWS Lambda is missing some of the GIF frames.
Any Ideas ?????
I have checked to make sure /tmp/2.gif is an accurate input and it is.
os.system("/tmp/ffmpeg -f lavfi -i color=black -i /tmp/2.gif -movflags faststart -pix_fmt yuv420p -filter_complex '[0][1]scale2ref[bg][gif];[bg]scale=2*trunc(iw/2):2*trunc(ih/2),setsar=1[bg];[bg][gif]overlay=1' -c:v libx264 -preset veryslow /tmp/black.mp4")