Recherche avancée

Médias (91)

Autres articles (87)

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (11876)

  • How to play encrypted video in exoplayer (android app) coming from HLS streamer ?

    2 février 2021, par Harshil Makwana

    I am right now using FFMPEG to stream mp4 file using HLS.
I am using this link to enable encryption : https://hlsbook.net/how-to-encrypt-hls-video-with-ffmpeg/

    


    To play video in my android app, I am using exoplayer, below is my source code to play video :

    


    Player player;
private MediaSource buildMediaSource(Uri uri) {
     TrackSelection.Factory adaptiveTrackSelection = new AdaptiveTrackSelection.Factory(new DefaultBandwidthMeter());
    player = ExoPlayerFactory.newSimpleInstance(
            this,
            new DefaultTrackSelector(adaptiveTrackSelection));
    playerView.setPlayer(player);
    // These factories are used to construct two media sources.
    DefaultBandwidthMeter defaultBandwidthMeter = DefaultBandwidthMeter.getSingletonInstance(this);
    DataSource.Factory dataSourceFactory = new DefaultDataSourceFactory(mContext,
            Util.getUserAgent(mContext, "cookvid"), defaultBandwidthMeter);
    //DataSource.Factory dataSourceFactory =
    //        new DefaultDataSourceFactory(this, "exoplayer-codelab");

    HlsMediaSource.Factory mediaSourceFactory = new HlsMediaSource.Factory(dataSourceFactory);
    return mediaSourceFactory.createMediaSource(uri);
    //return new ProgressiveMediaSource.Factory(dataSourceFactory)
     //       .createMediaSource(uri);
}
private void initializePlayer() {
    Uri uri = Uri.parse(getString(R.string.media_url_hls));
    MediaSource mediaSource = buildMediaSource(uri);
    player.setPlayWhenReady(playWhenReady);
    player.seekTo(currentWindow, playbackPosition);
    player.addListener(playbackStateListener);
    player.prepare(mediaSource, false, false);
}


    


    But with this code, I can not play video in app, If I am not using this encryption ,then exoplayer can play video without any issue.

    


    Please help me on this, I am newbie on exoplayer side.

    


  • How can I demux audio from video playing on HTML browser and mux it back to play

    10 juillet 2012, par symadept

    I have a requirement where I could able to demux audio from the video that was being played in the html browser and want to apply some effects to audio and mux back to play the video with this change. Any could point me to the proper sources or examples would be really great help.

    Regards
    symadept

  • How to play a FFMPEG video in all platforms(Window, iPad/iPhone, and Android)

    11 décembre 2014, par flight

    I have created a video through screen capturing using FFMPEG.
    FFMPEG Command is :

    "ffmpeg -f dshow -i video=\"screen-capture-recorder\" -r 15 -t 20 SC1.mp4"

    This video is playing in only VLC player. Need to play this video in all player and on all platforms.

    Please recommend a feasible approach to solve this problem.