Recherche avancée

Médias (0)

Mot : - Tags -/serveur

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

Autres articles (39)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Contribute to documentation

    13 avril 2011

    Documentation is vital to the development of improved technical capabilities.
    MediaSPIP welcomes documentation by users as well as developers - including : critique of existing features and functions articles contributed by developers, administrators, content producers and editors screenshots to illustrate the above translations of existing documentation into other languages
    To contribute, register to the project users’ mailing (...)

Sur d’autres sites (5372)

  • Unable play Audio AC3 in Exoplayer + FFmpeg, i read the guide correctly, should I be wrong ?

    24 mars 2020, par mOsCpU0

    I would like to implement FFmpeg in Exoplayer in my App, in order to read video formats with AC3 Audio track.

    I followed these steps, but I still don’t hear Audio AC3 and I can’t enable Exoplayer to play the audio track via Software.

    I have my code if needed and the guide I used is this :

    https://github.com/google/ExoPlayer/tree/release-v2/extensions/ffmpeg

    I hope for your help !

    package com.omegasus_test.myapplication;

    import androidx.appcompat.app.AppCompatActivity;

    import android.app.Dialog;
    import android.net.Uri;
    import android.os.Bundle;
    import android.os.Environment;
    import android.view.View;
    import android.view.Window;
    import android.widget.Button;
    import android.widget.RelativeLayout;
    import android.widget.TextView;
    import android.widget.Toast;

    import com.google.android.exoplayer2.DefaultRenderersFactory;
    import com.google.android.exoplayer2.ExoPlaybackException;
    import com.google.android.exoplayer2.ExoPlayer;
    import com.google.android.exoplayer2.ExoPlayerFactory;
    import com.google.android.exoplayer2.PlaybackParameters;
    import com.google.android.exoplayer2.Player;
    import com.google.android.exoplayer2.Timeline;
    import com.google.android.exoplayer2.source.ExtractorMediaSource;
    import com.google.android.exoplayer2.source.MediaSource;
    import com.google.android.exoplayer2.source.TrackGroupArray;
    import com.google.android.exoplayer2.source.hls.HlsMediaSource;
    import com.google.android.exoplayer2.trackselection.AdaptiveTrackSelection;
    import com.google.android.exoplayer2.trackselection.DefaultTrackSelector;
    import com.google.android.exoplayer2.trackselection.TrackSelection;
    import com.google.android.exoplayer2.trackselection.TrackSelectionArray;
    import com.google.android.exoplayer2.ui.AspectRatioFrameLayout;
    import com.google.android.exoplayer2.ui.SimpleExoPlayerView;
    import com.google.android.exoplayer2.upstream.BandwidthMeter;
    import com.google.android.exoplayer2.upstream.DefaultBandwidthMeter;
    import com.google.android.exoplayer2.upstream.DefaultDataSourceFactory;
    import com.google.android.exoplayer2.util.Util;

    import java.io.File;
    import java.io.FileOutputStream;

    public class MainActivity extends AppCompatActivity {
       String LINK_TO_PLAY="";
       ExoPlayer player;
       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_main);
           Uri uri=Uri.parse(LINK_TO_PLAY);
           final SimpleExoPlayerView pv=findViewById(R.id.player_view);
           pv.setVisibility(View.GONE);
           pv.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_FIT);
           BandwidthMeter bandwidthMeter = new DefaultBandwidthMeter();
           TrackSelection.Factory videoTrackSelectionFactory =new AdaptiveTrackSelection.Factory(bandwidthMeter);
           DefaultTrackSelector trackSelector =new DefaultTrackSelector(videoTrackSelectionFactory);
           trackSelector.setParameters( trackSelector.getParameters().buildUpon().setPreferredAudioLanguage("ita"));
           DefaultRenderersFactory rf = new DefaultRenderersFactory(getApplicationContext()).setExtensionRendererMode(DefaultRenderersFactory.EXTENSION_RENDERER_MODE_PREFER);
           player = ExoPlayerFactory.newSimpleInstance(getApplicationContext(),rf, trackSelector);
           pv.setPlayer(player);
           MediaSource source;
           if(LINK_TO_PLAY.contains("file://")){
               DefaultDataSourceFactory dataSourceFactory = new DefaultDataSourceFactory(getApplicationContext(), Util.getUserAgent(getApplicationContext(), "com.omegasus_test.myapplication"));
               source = new ExtractorMediaSource.Factory(dataSourceFactory).createMediaSource(uri);
           }else if(LINK_TO_PLAY.contains(".m3u8")){
               DefaultDataSourceFactory dataSourceFactory = new DefaultDataSourceFactory(getApplicationContext(),Util.getUserAgent(getApplicationContext(), "com.omegasus_test.myapplication"));
               source = new HlsMediaSource.Factory(dataSourceFactory).createMediaSource(uri);
           }else{
               DefaultDataSourceFactory dataSourceFactory = new DefaultDataSourceFactory(getApplicationContext(),Util.getUserAgent(getApplicationContext(), "com.omegasus_test.myapplication"));
               source = new ExtractorMediaSource.Factory(dataSourceFactory).createMediaSource(uri);
           }
           player.prepare(source);
           player.addListener(new Player.EventListener(){
               public void onSeekProcessed(){}
               public void onPlayerStateChanged(boolean playWhenReady, int playbackState) {
                   if(playbackState == ExoPlayer.STATE_READY){
                       pv.setVisibility(View.VISIBLE);
                       pv.setResizeMode(AspectRatioFrameLayout.RESIZE_MODE_FIT);
                   }else if(playbackState==ExoPlayer.STATE_BUFFERING){
                   }else if(playbackState==ExoPlayer.STATE_ENDED){
                   }
               }
               public void onTimelineChanged(Timeline p1, Object p2, int p3){

               }
               public void onTracksChanged(TrackGroupArray p1, TrackSelectionArray p2){

               }
               public void onShuffleModeEnabledChanged(boolean p1){

               }
               public void onPositionDiscontinuity(int p1){

               }
               public void onPlaybackParametersChanged(PlaybackParameters p1){

               }
               public void onLoadingChanged(boolean p1){

               }
               public void onPlayerError(ExoPlaybackException p1){
                   if(p1.getMessage()==null){
                       Toast.makeText(getApplicationContext(),"Errore sconosciuto",Toast.LENGTH_SHORT).show();
                   }else{
                       Toast.makeText(getApplicationContext(),"Player Error: "+p1.getMessage(),Toast.LENGTH_SHORT).show();
                   }
                   player.setPlayWhenReady(false);
                   player.stop();
                   player.seekTo(0);
                   player.release();
                   finish();
               }
               public void onRepeatModeChanged(int p1){

               }
           });
           player.setPlayWhenReady(true);
       }

    }
  • We're Creating a New AI tool and Got Stuck on This 1 Step [closed]

    22 février 2024, par Daniel

    Thanks for helping with this question,

    


    Anybody who knows PHP, React js, FFmpeg, or Open AI API can help here :

    


    We are currently creating a tool with PHP laravel and React JS. It lets normal creators input a simple text prompt and they'll get a fully original short (30 video fast-paced video) for their channel. But we have an output problem :

    


      

    • On the output of the videos, there's supposed to be AI generated images that have cool animations in order to make everything more fast paced. But our developers are making animations that are super slow and not dynamic or interesting enough. What open source library/tech could we use to create stunning animations and more action ?! Any suggestions would help here,
    • 


    



    


    We are currently using an FFmpeg to create a video automatically for our users. The videos consists of [images, captions, voiceover, background music, and animations) all generated by our AI tool and put together.

    


    Here's what we want as a video (dynamic, fast paced, and many animations) : https://drive.google.com/file/d/1ONCczJh_Uk9m6oRDPGFQYjJPWUhy8hdV/view?usp=sharing

    


    Here's what we're getting : https://drive.google.com/file/d/1sMKGB88ouTHsEdahc0Zyt8rKEvZWhTco/view?usp=sharing

    


    Thanks for any help here.

    


  • Revision 55040 : Et toujours sur une idée trouvée sur ...

    1er décembre 2011, par real3t@… — Log

    Et toujours sur une idée trouvée sur http://www.ghacks.net/2011/11/30/embed-facebook-twitter-google-plus-without-javascript/ : la forme la plus basique de l’interaction sociale : imprimer la page.