
Recherche avancée
Autres articles (73)
-
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 (5988)
-
How to set specific minimal bitrate of video with light_compressor package in Flutter ?
21 juin 2023, par Giant BrainI tried using flutter's light_compressor package to compress a video I shot with my phone or downloaded from YouTube.


I refer to the article below.
https://morioh.com/p/ac6f0d2c176b
In this article, the minimum bit rate can be set and the default value is 2mbps.


However, in the sample code, only the flag isMinBitrateCheckEnabled exists, and there is no parameter to set a specific bit rate.


How do I compress the video to my desired bitrate ?


Below is a part of the sample code.


import 'package:light_compressor/light_compressor.dart';


final LightCompressor _lightCompressor = LightCompressor();
final dynamic response = await _lightCompressor.compressVideo(
 path: _sourcePath,
 destinationPath: _destinationPath,
 videoQuality: VideoQuality.medium,
 isMinBitrateCheckEnabled: false,
 frameRate: 24 /* or ignore it */);



-
Burning text to video in Android
17 juillet 2014, par SebastianGI want to "burn" some GPS coordinates on a video file in Android programatically on the device, without using other apps (similar to the picture below, but with coordinates instead)
I have done some research, and the only solution for Android seems to use FFmpeg. I have figured out two approaches :
- Adding the coordinates in the form of subtitles. Drawback : as far as I’ve figured out, you can not place the subtitles wherever you want in the video frame
- Drawing text using "drawtext". Drawback : it seems to me that this puts a static text on all frames of the video, although I need to put dynamic text on it (GPS coordinates)
ffmpeg -i i.mp4 -vcodec libx264 -f mp4
-vf drawtext="fontfile=/[...]/share/fonts/freefont-ttf/FreeSans.ttf
:text=’....So my questions are : are there any other approaches to doing this ? They do not have to use FFmpeg, but the encoding must be done on the device. Am I mistaken in my approaches ?
-
Unable to run a program in PATH from Java code
17 novembre 2012, par user1831004I am developing a Red5 media server application on a Mac (Dynamic Web Project in Eclipse). The app has to invoke FFMPEG to convert the video to a different format.
I added "/Applications/FFMPEG" to PATH variable by running the following command in Terminal :
echo 'export PATH=/Applications/FFMPEG:$PATH' >> ~/.profile
When I invoke FFMPEG from terminal, it works fine. However, every time I run it from Java code with :
Process p = Runtime.getRuntime().exec("ffmpeg");
p.waitFor();I get the following error :
Cannot run program "ffmpeg": error=2, No such file or directory
I thought this might be a security limitation specific to the type of project, but even a simple Java program produces the same result. What am I missing ?
Changing "ffmpeg" to full path of the application works, but I don't want to upload FFMPEG into the same directory as Red5 on a production server.