Recherche avancée

Médias (0)

Mot : - Tags -/médias

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (37)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • MediaSPIP Player : problèmes potentiels

    22 février 2011, par

    Le lecteur ne fonctionne pas sur Internet Explorer
    Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
    Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)

  • Keeping control of your media in your hands

    13 avril 2011, par

    The vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
    While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
    MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
    MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...)

Sur d’autres sites (6551)

  • h264_direct : use the reference mask from the actual reference

    2 août 2016, par Anton Khirnov
    h264_direct : use the reference mask from the actual reference
    

    Not from the underlying frame. Fixes races with frame threading in
    field-coded files, where decoding would wait for the wrong field (e.g.
    random failures in mixed-nal-coding).

    Bug-Id : 954

    • [DBH] libavcodec/h264_direct.c
  • matroskadec : parse the channel layout mask for FLAC

    26 mai 2014, par Anton Khirnov
    matroskadec : parse the channel layout mask for FLAC
    

    It is commonly stored in a vorbiscomment block in codec private data.

    • [DBH] libavformat/Makefile
    • [DBH] libavformat/flacdec.c
    • [DBH] libavformat/matroskadec.c
    • [DBH] libavformat/oggdec.h
    • [DBH] libavformat/oggparsecelt.c
    • [DBH] libavformat/oggparseflac.c
    • [DBH] libavformat/oggparseogm.c
    • [DBH] libavformat/oggparseopus.c
    • [DBH] libavformat/oggparsespeex.c
    • [DBH] libavformat/oggparsetheora.c
    • [DBH] libavformat/oggparsevorbis.c
  • How do I know the time left in order to convert to an audio file, to use that to display the remainder for downloading in front of the user

    6 novembre 2020, par Kerols afifi

    I got this code from GITHUB, and this is better for me than using the FFmpeg library, because this library only works at a minimum. Issued 24 APIs, but the code that I got I don't know exactly how to tell me when the conversion is finished and also how much time is left because it's the conversion to appear. In front of the user

    


    @SuppressLint("NewApi")
    public void genVideoUsingMuxer(Context context,String srcPath, String dstPath, int startMs, int endMs, boolean useAudio, boolean useVideo,long time) throws IOException {
        // Set up MediaExtractor to read from the source.
         extractor = new MediaExtractor();
        extractor.setDataSource(srcPath);
        int trackCount = extractor.getTrackCount();
        // Set up MediaMuxer for the destination.

    mediaMuxer = new MediaMuxer(dstPath, MediaMuxer.OutputFormat.MUXER_OUTPUT_MPEG_4);
    // Set up the tracks and retrieve the max buffer size for selected
    // tracks.
    HashMap indexMap = new HashMap(trackCount);
    int bufferSize = -1;
    for (int i = 0; i < trackCount; i++) {
        MediaFormat format = extractor.getTrackFormat(i);
        String mime = format.getString(MediaFormat.KEY_MIME);
        boolean selectCurrentTrack = false;
        if (mime.startsWith("audio/") && useAudio) {
            selectCurrentTrack = true;
        } else if (mime.startsWith("video/") && useVideo) {
            selectCurrentTrack = true;
        }
        if (selectCurrentTrack) {
            extractor.selectTrack(i);
            int dstIndex = mediaMuxer.addTrack(format);
            indexMap.put(i, dstIndex);
            if (format.containsKey(MediaFormat.KEY_MAX_INPUT_SIZE)) {
                int newSize = format.getInteger(MediaFormat.KEY_MAX_INPUT_SIZE);
                bufferSize = newSize > bufferSize ? newSize : bufferSize;
            }
        }
    }
    if (bufferSize < 0) {
        bufferSize = DEFAULT_BUFFER_SIZE;
    }
    // Set up the orientation and starting time for extractor.
    MediaMetadataRetriever retrieverSrc = new MediaMetadataRetriever();
    retrieverSrc.setDataSource(srcPath);
    String degreesString = retrieverSrc.extractMetadata(MediaMetadataRetriever.METADATA_KEY_VIDEO_ROTATION);
    if (degreesString != null) {
        int degrees = Integer.parseInt(degreesString);
        if (degrees >= 0) {
            mediaMuxer.setOrientationHint(degrees);
        }
    }
    if (startMs > 0) {
        extractor.seekTo(startMs * 1000, MediaExtractor.SEEK_TO_CLOSEST_SYNC);
    }
    // Copy the samples from MediaExtractor to MediamediaMuxer. We will loop
    // for copying each sample and stop when we get to the end of the source
    // file or exceed the end time of the trimming.
    int offset = 0;
    int trackIndex = -1;
    time = bufferSize;
    ByteBuffer dstBuf = ByteBuffer.allocate(bufferSize);
    mediaMuxer.start();
    while (true) {
        bufferInfo.offset = offset;
        bufferInfo.size = extractor.readSampleData(dstBuf, offset);
        if (bufferInfo.size < 0) {
            Log.d(TAG, "Saw input EOS.");
            bufferInfo.size = 0;
            break;
        } else {
            bufferInfo.presentationTimeUs = extractor.getSampleTime();
            if (endMs > 0 && bufferInfo.presentationTimeUs > (endMs * 1000)) {
                Log.d(TAG, "The current sample is over the trim end time.");
                break;
            } else {
                bufferInfo.flags = extractor.getSampleFlags();
                trackIndex = extractor.getSampleTrackIndex();
                mediaMuxer.writeSampleData(indexMap.get(trackIndex), dstBuf, bufferInfo);
                extractor.advance();
            }
        }
    }

    mediaMuxer.stop();
    mediaMuxer.release();

    return;
}