
Recherche avancée
Médias (2)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (100)
-
Les vidéos
21 avril 2011, parComme les documents de type "audio", Mediaspip affiche dans la mesure du possible les vidéos grâce à la balise html5 .
Un des inconvénients de cette balise est qu’elle n’est pas reconnue correctement par certains navigateurs (Internet Explorer pour ne pas le nommer) et que chaque navigateur ne gère en natif que certains formats de vidéos.
Son avantage principal quant à lui est de bénéficier de la prise en charge native de vidéos dans les navigateur et donc de se passer de l’utilisation de Flash et (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (8809)
-
Cannot include ffmpeg.exe using auto-py-to-exe
4 avril 2024, par YYYI'm trying to generate an exe for my PyQT application that uses ffmpeg using auto-py-to-exe.


Within the application, there are calls to ffmpeg as an os command (like 'ffmpeg -i file ... output) .
As I have ffmpeg installed on my machine and accessible from the Windows Path, when I run the app exe on my machine, I don't have any issue.


However, when it's someone that doesn't have ffmpeg installed, he/she encounters an error like "'ffmpeg' is not recognized as an internal or external command, operal program or batch file"


I don't want to put ffmpeg within a folder of the app as I call local modules that already call ffmpeg as an os command.


I have tried first to add ffmpeg.exe as a file (as recommended in one stackoverflow post) and then as a binary but without success



I've already tried with the configuration stated in this


Can anyone help me on this ?


EDIT N°2


It turns out that when I export the exe on my machine by including ffmpeg as a binary either with pyinstaller or auto-py-to-exe, the final exe doesn't recognize the ffmpeg command even if it's in the folder.




However, I've tried the same configuration on another machine and it worked without any error.


I've tried to install another ffmpeg version and link this version on the final exe but without success


-
Using JavaCV/FFMPEG to push byte buffer image via RTMP
6 mai 2022, par ljnoahI have a USB camera that returns frames as a byte buffer type to which I would like to push/send via rtmp using JavaCV library to be viewed using VLC. According to this link : http://bytedeco.org/javacpp-presets/ffmpeg/apidocs/org/bytedeco/ffmpeg/ffmpeg.html. It should be possible, but I don't really have any experience with ffmpeg, but from what I've read in their github it should be possible, only, thus far I was not able to find an example on how to do it. Basically, I would like to store a byte buffer and send an image that is in variable instead of grabbing frames from a camera as my USB camera is not detected by android and needs external libraries to work.


private byte[] FrameData = new byte[384 * 288 * 4];
 //private final Bitmap bitmap = Bitmap.createBitmap(PREVIEW_WIDTH, PREVIEW_HEIGHT, // Bitmap.Config.ARGB_8888); // creates a bitmap with the proper format in-case its needed
 private final IFrameCallback mIFrameCallback = new IFrameCallback() {
 @Override
 public void onFrame(final ByteBuffer frameData) {
 frameData.clear();
 frameData.get(FrameData, 0, frameData.capacity());
 }
 };



This callback gives me the frames from my camera on the fly and writes it to FrameData, which I can compress to a bitmap if needed.


My camera preview where I call the callback above :


public void handleStartPreview(Object surface) {
 if ((mUVCCamera == null)) return;
 try {
 mUVCCamera.setPreviewSize(mWidth, mHeight, 1, 26, UVCCamera.DEFAULT_PREVIEW_MODE, UVCCamera.DEFAULT_BANDWIDTH, 0);
 } catch (IllegalArgumentException e) {
 try {
 mUVCCamera.setPreviewSize(mWidth, mHeight, 1, 26, UVCCamera.DEFAULT_PREVIEW_MODE, UVCCamera.DEFAULT_BANDWIDTH, 0);
 Log.e(TAG, "handleStartPreview4");
 } catch (IllegalArgumentException e1) {
 callOnError(e1);
 return;
 }
 }
 int result = mUVCCamera.startPreview();
 mUVCCamera.setFrameCallback(mIFrameCallback, UVCCamera.PIXEL_FORMAT_RGBX);
 mUVCCamera.startCapture();
 startRecording();
 }



My question is How can I use this example :


String ffmpeg = Loader.load(org.bytedeco.ffmpeg.ffmpeg.class);
 ProcessBuilder pb = new ProcessBuilder(ffmpeg, "-i", "/path/to/input.mp4", "-vcodec", "h264", "/path/to/output.mp4");
 pb.inheritIO().start().waitFor();



to push my frames from the camera that are stored FrameData byte buffer via RTMP/RTSP to my server IP, even If I need to compress it to a bitmap before...


-
From jpg to animated gif
12 mai 2016, par lleounI’m desperate, I need to convert some jpg images into an animated gif.
I’ve tried ffmpeg, but the result has a terrible quality.
Also tried imagemagick, and the result looks great but it weights 511 KB !!
Anyone please can tell me what to use or how to use the before applications to get a final animated gif with a normal quality and a normal weight for a gif ??
As I said I’m desperate, I need to finish this asap :(
Thanks a lot