
Recherche avancée
Autres articles (79)
-
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 (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, 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 (...)
Sur d’autres sites (14606)
-
Problem with ffmpeg (saving mp4) AttributeError : 'NoneType' object has no attribute 'dpi' [closed]
29 avril 2023, par CompletenoobieHello when I try to save the following mp4 i get an error message. Code worked on another pc.


AttributeError : 'NoneType' object has no attribute 'dpi'


-
Encoding failed during converting and saving video using php-ffmpeg in laravel
6 octobre 2020, par mohammadreza mardanii'm using https://github.com/PHP-FFMpeg/PHP-FFMpeg package to convert user video uploads to
mp4
format, note that I'm using Laravel framework for development process.

But I'm facing error for this and Im not really sure what im doing wrong because all it says is that Encoding is failed. I attached the errors image below you can see that at the bottom.


This is my function which handles user uploads :



public function upload()
 {
 $this->putVideoIntoStorage();
 $this->ffmpeg->saveVideo($this->storageManager->getAbsolutePathOf($this->video->getClientOriginalName()));

 return $this->saveVideoIntoDatabase();
 }





This is the function which handles saving and converting video to
mp4
usingphp-ffmpeg



public function saveVideo(String $path)
 {

 $ffmpeg = FFMpeg::create([
 'ffmpeg.binaries' => config('services.ffmpeg.ffmpeg_path'),
 'ffprobe.binaries' => config('services.ffmpeg.ffprobe_path'),
 'timeout' => 3600, // The timeout for the underlying process
 'ffmpeg.threads' => 12, // The number of threads that FFMpeg should use
 ]);


 $video = $ffmpeg->open($path);

 $video->save(new X264(), 'video.mp4');
 }





This is the error im getting : Errors Image

I can provide more details if you need just ask me, I would be really glad if someone can help me through this.

-
A cast to int has gone wrong. android
24 février 2021, par Tanveerbynim having an issue while video mixing with audio. everytime when I try to make it.
That always give me an error which is




Java.lang.RuntimeException : A cast to int has gone wrong. Please contact the mp4parser discussion group.




Im using googlecode mp4 parser :
implementation com.googlecode.mp4parser:isoparser:1.1.22
and also tried that but no successimplementation 'org.mp4parser:isoparser:1.9.41'


Also on forum there's no proper answer on that question.


here's my code


public Track CropAudio(String videopath, Track fullAudio) {
 try {

 IsoFile isoFile = new IsoFile(videopath);

 double lengthInSeconds = (double)
 isoFile.getMovieBox().getMovieHeaderBox().getDuration() /
 isoFile.getMovieBox().getMovieHeaderBox().getTimescale();


 Track audioTrack = (Track) fullAudio;


 double startTime1 = 0;
 double endTime1 = lengthInSeconds;


 long currentSample = 0;
 double currentTime = 0;
 double lastTime = -1;
 long startSample1 = -1;
 long endSample1 = -1;


 for (int i = 0; i < audioTrack.getSampleDurations().length; i++) {
 long delta = audioTrack.getSampleDurations()[i];


 if (currentTime > lastTime && currentTime <= startTime1) {
 // current sample is still before the new starttime
 startSample1 = currentSample;
 }
 if (currentTime > lastTime && currentTime <= endTime1) {
 // current sample is after the new start time and still before the new endtime
 endSample1 = currentSample;
 }

 lastTime = currentTime;
 currentTime += (double) delta / (double) audioTrack.getTrackMetaData().getTimescale();
 currentSample++;
 }

 CroppedTrack cropperAacTrack = new CroppedTrack(fullAudio, startSample1, endSample1);

 return cropperAacTrack;

 } catch (IOException e) {
 e.printStackTrace();
 }

 return fullAudio;
}


public Runnable runnable = new Runnable() {
 @Override
 public void run() {

 try {


 Movie m = MovieCreator.build(video);


 List nuTracks = new ArrayList<>();

 for (Track t : m.getTracks()) {
 if (!"soun".equals(t.getHandler())) {
 nuTracks.add(t);
 }
 }

 Track nuAudio = new AACTrackImpl(new FileDataSourceImpl(audio));
 Track crop_track = CropAudio(video, nuAudio);
 nuTracks.add(crop_track);
 m.setTracks(nuTracks);


 Container mp4file = new DefaultMp4Builder().build(m);
 FileChannel fc = new FileOutputStream(new File(output)).getChannel();
 mp4file.writeContainer(fc);
 fc.close();

 try {
 Variables.closeProgressDialog();
 } catch (Exception e) {
 Log.d(Variables.tag, e.toString());
 } finally {
 Go_To_preview_Activity();
 }

 } catch (Exception e) {
 Variables.closeProgressDialog();
 // Toast.makeText(context, "Something went wrong"+ e.toString(), Toast.LENGTH_SHORT).show();
 //Go_To_preview_Activity();
 e.printStackTrace();
 Log.d(Variables.tag, e.toString());

 }

 }

};