Recherche avancée

Médias (1)

Mot : - Tags -/3GS

Autres articles (36)

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-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

  • Configuration spécifique d’Apache

    4 février 2011, par

    Modules spécifiques
    Pour la configuration d’Apache, il est conseillé d’activer certains modules non spécifiques à MediaSPIP, mais permettant d’améliorer les performances : mod_deflate et mod_headers pour compresser automatiquement via Apache les pages. Cf ce tutoriel ; mode_expires pour gérer correctement l’expiration des hits. Cf ce tutoriel ;
    Il est également conseillé d’ajouter la prise en charge par apache du mime-type pour les fichiers WebM comme indiqué dans ce tutoriel.
    Création d’un (...)

  • L’agrémenter visuellement

    10 avril 2011

    MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
    Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté.

Sur d’autres sites (5988)

  • doc/examples/output : Cast pointer to the right (const) type

    22 avril 2017, par Diego Biurrun
    doc/examples/output : Cast pointer to the right (const) type
    

    doc/examples/output.c:512:33 : warning : passing argument 2 of ‘sws_scale’ from incompatible pointer type

    • [DBH] doc/examples/output.c
  • libFLAC/md5 : Fix for cast-align warnings on ARM.

    29 juin 2014, par Erik de Castro Lopo
    libFLAC/md5 : Fix for cast-align warnings on ARM.
    

    Rather than the buffer into format_input_() as a FLAC__byte pointer, pass
    it as a pointer to a union of three pointers, one each for for FLAC__byte,
    FLAC__int16 and FLAC_int32.
    This should have zero measurable performance impact.

    • [DH] src/libFLAC/include/private/md5.h
    • [DH] src/libFLAC/md5.c
  • A cast to int has gone wrong. android

    24 février 2021, par Tanveerbyn

    im 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 success implementation '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());

        }

    }

};