
Recherche avancée
Médias (1)
-
The Slip - Artworks
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (66)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 (9512)
-
JavaCV Video Player with FFmpeg and JavaFx
2 juin 2021, par ِِYazdan NaderiI want to create a media player using Java CV, but I can not adjust the frame rate
And because of this, some videos play fast and some play slow


Is it possible to read the information of a video through a FFmpegFrameGrraber object and set it in another object to solve the problem ?
Of course, I did this and did not get an answer, but if there is another way, please help


playThread = new Thread(new Runnable() {
 public void run() {
 try {
 final String videoFilename = "E:\\Java\\s1\\3.mp4";
 final String videoFilename2 = "E:AudioVideo.mp4";
 final String videoFilename3 = "E:\\1.mp4";
 final String videoFilename4 = "E:\\Java\\s1\\3.mp4";


 FFmpegFrameGrabber grabber = new FFmpegFrameGrabber(videoFilename);



 grabber.start();

 grabber.setFrameRate(30.00);


 primaryStage.setWidth(grabber.getImageWidth());
 primaryStage.setHeight(grabber.getImageHeight());

 final AudioFormat audioFormat = new AudioFormat(grabber.getSampleRate(), 16, grabber.getAudioChannels(), true, true);

 final DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);
 final SourceDataLine soundLine = (SourceDataLine) AudioSystem.getLine(info);
 soundLine.open(audioFormat);
 soundLine.start();

 JavaFXFrameConverter converter = new JavaFXFrameConverter();

 ExecutorService executor = Executors.newSingleThreadExecutor();

 while (!Thread.interrupted()) {
 Frame frame = grabber.grab();
 if (frame == null) {
 break;
 }
 if (frame.image != null) {
 final Image image = converter.convert(frame);//
 Platform.runLater(() -> {
 
 imageView.setImage(image);

 });
 }
 else if (frame.samples != null) {
 final ShortBuffer channelSamplesShortBuffer = (ShortBuffer) frame.samples[0];
 channelSamplesShortBuffer.rewind();

 final ByteBuffer outBuffer = ByteBuffer.allocate(channelSamplesShortBuffer.capacity() * 2);

 for (int i = 0; i < channelSamplesShortBuffer.capacity(); i++) {
 short val = channelSamplesShortBuffer.get(i);
 outBuffer.putShort(val);
 }

 try {



 executor.execute(() -> {
 soundLine.write(outBuffer.array(), 0, outBuffer.capacity());
 outBuffer.clear();
 });
 } catch (Exception interruptedException) {
 Thread.currentThread().interrupt();
 }
 }

 }
 executor.shutdownNow();
 executor.awaitTermination(10, TimeUnit.SECONDS);

 soundLine.stop();
 grabber.stop();
 grabber.release();
 Platform.exit();
 } catch (Exception exception) {
 LOG.log(Level.SEVERE, null, exception);
 System.exit(1);
 }
 }
 });
 playThread.start();
 }



-
Flutter ffmpeg_kit_flutter_full_gpl-6.0.3 PluginRegistry.Registrar flutter version 3.29
30 avril, par LisaI am using ffmpeg_kit_flutter_full_gpl-6.0.3 for flutter version 3.27 but when upgrading to flutter 3.29, with android, there is an error PluginRegistry.Registrar registrar. Is there any solution to replace the current
ffmpeg_kit_flutter_full_gpl
because I see this library was updated 17 months ago

/Users/pamcd/.pub-cache/hosted/pub.dev/ffmpeg_kit_flutter_full_gpl-6.0.3/android/src/main/java/com/arthenica/ffmpegkit/flutter/FFmpegKitFlutterPlugin.java:157: error: cannot find symbol
 public static void registerWith(final io.flutter.plugin.common.PluginRegistry.Registrar registrar) {
 ^
 symbol: class Registrar
 location: interface PluginRegistry
/Users/pamcd/.pub-cache/hosted/pub.dev/ffmpeg_kit_flutter_full_gpl-6.0.3/android/src/main/java/com/arthenica/ffmpegkit/flutter/FFmpegKitFlutterPlugin.java:651: error: cannot find symbol
 protected void init(final BinaryMessenger messenger, final Context context, final Activity activity, final io.flutter.plugin.common.PluginRegistry.Registrar registrar, final ActivityPluginBinding activityBinding) {
 ^
 symbol: class Registrar
 location: interface PluginRegistry
2 errors

FAILURE: Build failed with an exception.

* What went wrong:
Execution failed for task ':ffmpeg_kit_flutter_full_gpl:compileReleaseJavaWithJavac'.
> Compilation failed; see the compiler error output for details.

* Try:
> Run with --info option to get more log output.
> Run with --scan to get full insights.



Is there any alternative ?


-
Joining three videos with FFMpeg [duplicate]
4 novembre 2016, par M. SaezThis question is an exact duplicate of :
I’m trying to merge/join three mp4 videos with ffmpeg ; the first one is a 5 seconds intro without an audio track, then it is the main video and at the end there is a 6 seconds mp4 video also without an audio track.
All videos are encoded with exactly the same settings, so far i’m trying the concat option and i can join them just fine, the problem is the final video doesn’t have the audio track from the main video.
This is the command i’m using :
ffmpeg -f concat -i mylist.txt -c copy output.mp4
Needless to say, the final video must respect the first 5 seconds without audio and the last 6 seconds.
Any idea ?, if i prefer something where i don’t need to reencode at all, but if i must, i don’t really mind.
Thanks !