Recherche avancée

Médias (1)

Mot : - Tags -/Christian Nold

Autres articles (67)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • 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

Sur d’autres sites (8113)

  • FFmpeg problems on Android

    7 février 2015, par Scott

    Having realised that MediaPlayer will not do what I need in my application I decided to see if I could make FFmpegMediaPlayer work. I need to be able to seek to a specified point in milliseconds and Android MediaPlayer only seeks to the next key frame after the given time in milliseconds.

    I have written a small test app and added the pre built libraries from here :

    FFmpegMediaPlayer

    The code I am using to test is below, basically the same code from the sample at the link above. The issue I have is when I try to play the video file I just get an endless stream of logcat output until I kill the application :

    import java.io.IOException;    
    import wseemann.media.FFmpegMediaPlayer;
    import android.app.Activity;
    import android.graphics.PixelFormat;
    import android.media.MediaPlayer;
    import android.os.Bundle;
    import android.os.Environment;
    import android.util.Log;
    import android.view.SurfaceHolder;
    import android.view.SurfaceView;
    import android.view.View;
    import android.view.View.OnClickListener;
    import android.widget.Button;

    public class MainActivity extends Activity {

       Button btnPlay;
       public String TAG = "PlayerTest";
       public static String path = Environment.getExternalStorageDirectory().toString();
       public static String fileName = "/TestVideos/Five minute sync test.mp4";
       private SurfaceView mPreview;
       private SurfaceHolder holder;

       //private MediaPlayer mp;
       private FFmpegMediaPlayer mp;

       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_main);  
           btnPlay     = (Button)      findViewById(R.id.play);
           mPreview    = (SurfaceView) findViewById(R.id.surface);
           btnPlay.setOnClickListener(new OnClickListener(){
               @Override
               public void onClick(View v) {
                   playVideo();
               }
           });
           getWindow().setFormat(PixelFormat.TRANSPARENT);
           holder = mPreview.getHolder();
           holder.setFixedSize(400, 300);          
       }

       public void playVideo(){        
           mp = new FFmpegMediaPlayer();
           mp.setDisplay(mPreview.getHolder());        
           mp.setOnPreparedListener(new FFmpegMediaPlayer.OnPreparedListener() {
               @Override
               public void onPrepared(FFmpegMediaPlayer mp) {
                   mp.start();        
               }
           });
           mp.setOnErrorListener(new FFmpegMediaPlayer.OnErrorListener() {
               @Override
               public boolean onError(FFmpegMediaPlayer mp, int what, int extra) {
                   mp.release();
                   return false;
               }
           });

           try {
               mp.setDataSource(path+fileName);
               mp.prepareAsync();
           } catch (IllegalArgumentException e) {
               e.printStackTrace();
           } catch (SecurityException e) {
               e.printStackTrace();
           } catch (IllegalStateException e) {
               e.printStackTrace();
           } catch (IOException e) {
               e.printStackTrace();
           }
       }
    }

    Logcat output :

    TAG Fill buffer: 0 -> 30104

    If I change FFmpegMediaPlayer to MediaPlayer it runs fine. Is there something obvious that I am missing ?

  • RTMP stream in Android using Vitamio with librtmp

    8 septembre 2015, par user3774795

    I need to play some rtmp video in android app. I found solution here. But when my video played more than 1 minutes, I got errors and video stopped.

    Code

    private String path;
    private int streamId;
    @Bind(R.id.streamVideoView) VideoView mVideoView;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_view_stream);
       ButterKnife.bind(this);
       setupVideoView();        
    }

    private void setupVideoView() {
       path = getIntent().getStringExtra("streamURL");
       streamId = getIntent().getIntExtra("streamId", 0);
       if (!io.vov.vitamio.LibsChecker.checkVitamioLibs(this))
           return;
       mVideoView.setVideoPath(path + " live=1");
       mVideoView.setBufferSize(2048);
       mVideoView.start();        
    }

    Errors

    D/HybiParser﹕ Creating frame for : [B@53686940 op : 10 err : -1

    I/Vitamio﹕ Info (901, 107) D/Vitamio﹕ onInfo : (901, 107)

    I/Vitamio﹕ Info (901, 84) D/Vitamio﹕ onInfo : (901, 84)

    D/HybiParser﹕ Sending pong !!

    D/HybiParser﹕ Creating frame for : [B@53675358 op : 10 err : -1

    I/Vitamio﹕ Info (901, 119) D/Vitamio﹕ onInfo : (901, 119)

    E/Vitamio[Player]﹕ [h264 @ 0xb8705270] sps_id (32) out of range

    E/Vitamio[Player]﹕ [h264 @ 0xb8705270] sps_id out of range

    E/Vitamio[Player]﹕ [h264 @ 0xb8705270] non-existing PPS 35 referenced

    E/Vitamio[Player]﹕ [h264 @ 0xb8705270] decode_slice_header error

    E/Vitamio[Player]﹕ [h264 @ 0xb8705270] no frame !

    E/Vitamio[Player]﹕ FFMPEG NATIVE avcodec_decode_video2

    E/Vitamio[Player]﹕ [h264 @ 0xb8705270] non-existing PPS 35 referenced

    E/Vitamio[Player]﹕ [h264 @ 0xb8705270] decode_slice_header error

    E/Vitamio[Player]﹕ [h264 @ 0xb8705270] no frame !

    E/Vitamio[Player]﹕ FFMPEG NATIVE avcodec_decode_video2

    Please, help me !!

  • Anomalie #4706 (Fermé) : safehtml vire des trucs légitimes

    5 juillet 2021, par b b

    Super, on ferme :)