
Recherche avancée
Autres articles (80)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
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 (...) -
Automated installation script of MediaSPIP
25 avril 2011, parTo overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
The documentation of the use of this installation script is available here.
The code of this (...)
Sur d’autres sites (9396)
-
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 !