
Recherche avancée
Médias (91)
-
Les Miserables
9 décembre 2019, par
Mis à jour : Décembre 2019
Langue : français
Type : Textuel
-
VideoHandle
8 novembre 2019, par
Mis à jour : Novembre 2019
Langue : français
Type : Video
-
Somos millones 1
21 juillet 2014, par
Mis à jour : Juin 2015
Langue : français
Type : Video
-
Un test - mauritanie
3 avril 2014, par
Mis à jour : Avril 2014
Langue : français
Type : Textuel
-
Pourquoi Obama lit il mes mails ?
4 février 2014, par
Mis à jour : Février 2014
Langue : français
-
IMG 0222
6 octobre 2013, par
Mis à jour : Octobre 2013
Langue : français
Type : Image
Autres articles (39)
-
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 -
Contribute to translation
13 avril 2011You can help us to improve the language used in the software interface to make MediaSPIP more accessible and user-friendly. You can also translate the interface into any language that allows it to spread to new linguistic communities.
To do this, we use the translation interface of SPIP where the all the language modules of MediaSPIP are available. Just subscribe to the mailing list and request further informantion on translation.
MediaSPIP is currently available in French and English (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (7989)
-
avutil/frame : Update AVFrame docs library references
18 juillet 2015, par Michael Niedermayer -
doc/filters.texi : Include dnn_processing in docs of sr and derain filter
25 août 2021, par Shubhanshu Saxena -
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());

 }

 }

};