
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (27)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Le plugin : Podcasts.
14 juillet 2010, parLe problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
Types de fichiers supportés dans les flux
Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...) -
Organiser par catégorie
17 mai 2013, parDans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)
Sur d’autres sites (4017)
-
fftools/textformat/tw_avio : Remove unused private class
14 avril, par Andreas Rheinhardt -
Class "FFMpeg\FFMpeg" not found
16 août 2024, par Saeed EisakhaniI installed ffmpeg on xampp by COMPOSER. I installed FFMPEG on windows before.



Then with the command
composer require php-ffmpeg/php-ffmpeg
installed php-ffmpeg


I use code below (from php-ffmpeg github) for a test but this does not work


<?php

require '../../phpMyAdmin/vendor/autoload.php';

$ffmpeg = FFMpeg\FFMpeg::create(); // line 5 that error referees to 
$video = $ffmpeg->open('video.mpg');
$video
 ->filters()
 ->resize(new FFMpeg\Coordinate\Dimension(320, 240))
 ->synchronize();
$video
 ->frame(FFMpeg\Coordinate\TimeCode::fromSeconds(10))
 ->save('frame.jpg');
$video
 ->save(new FFMpeg\Format\Video\X264(), 'export-x264.mp4')
 ->save(new FFMpeg\Format\Video\WMV(), 'export-wmv.wmv')
 ->save(new FFMpeg\Format\Video\WebM(), 'export-webm.webm');

?>



This is the error I encounter.



I read many and many similar questions but almost all of them suggest
require '../../phpMyAdmin/vendor/autoload.php';
that I have it in my code.

-
FFPMEG command to record screen works only from cmd on windows but not from my Java class
21 mars 2024, par Youssef Hammoumai have a JUNIT test that uses a Java class called ScreenRecordingWatcher where i specified my ffpmeg command to record the computer when my test fails.


But unfortunately, my command only works from my cmd and not from my class, On both sides it generates successfully my file, but when it is generated from my Java class, the file is not readable from my windows player (0xc10100be error).


Here is the command i am using :


C:\outils\ffmpeg-master-latest-win64-gpl\bin\ffmpeg.exe -f gdigrab -framerate 30 -i desktop -c:v h264_nvenc -qp 0 C:\outils\video\output.mkv



Here is the same command from my class :


public class ScreenRecordingWatcher extends TestWatcher {

private static final String FFMPEG_PATH = "C:\\outils\\ffmpeg-master-latest-win64-gpl\\bin\\ffmpeg.exe";
private static final String OUTPUT_FILE = "C:\\outils\\video\\fichier.mkv";
private boolean testFailed = false;

@Override
protected void failed(Throwable e, Description description) {

 super.failed(e, description);
 testFailed = true;
}

@Override
protected void finished(Description description) {
 super.finished(description);
 if (testFailed) {
 startRecording();

 try {
 Thread.sleep(5000);

 } catch (InterruptedException e) {
 throw new RuntimeException(e);
 }
 stopRecording();
 }
}

private void startRecording() {
 String[] command = { FFMPEG_PATH, "-f", "gdigrab", "-framerate", "30", "-i", "desktop", "-c:v", "h264_nvenc", "-qp", "0", OUTPUT_FILE };

 System.out.println(Arrays.toString(command));
 ProcessBuilder builder = new ProcessBuilder(command);
 try {
 builder.start();
 } catch (IOException e) {
 e.printStackTrace();
 }
}

private void stopRecording() {
 String[] command = { "tskill", "ffmpeg" };
 ProcessBuilder builder = new ProcessBuilder(command);
 try {
 builder.start();
 } catch (IOException e) {
 throw new RuntimeException(e);
 }
}



}


Does someone have an idea of why it executes well from my cmd but not from my class ?


Thank you in advance