Recherche avancée

Médias (1)

Mot : - Tags -/ipad

Autres articles (68)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

  • 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

Sur d’autres sites (11444)

  • I am trying add text and image over video using FFmpeg lib in androoid studio

    21 juin 2019, par vikram

    I am using FFmpeg lib for add text over video and add image over video but could not get successful. I am testing this one in a real device.

    I am have already tried 2 commands for add text and add image over video but could not get proper output

    String command[]={"ffmpeg","-i",inputpath,"-vf", "drawtext="+"\""+"fontfile=/sdcard/retro.ttf: text='Test Text'"+"\"",outputpath};


    String addimg[]={"ffmpeg","-i", inputpath,"-i", imagepath ,"-filter_complex", "[0:v][1:v] overlay=25:25:enable='between(t,0,10)'" ,"-pix_fmt", "yuv420p", "-c:a copy",outputpath};

    public void LoadFFmpegLibrary()
    {
       if(ffmpeg==null)
       {
           ffmpeg = FFmpeg.getInstance(MainActivity.this);
           try {
               ffmpeg.loadBinary(new LoadBinaryResponseHandler() {

                   @Override
                   public void onStart() {
                       Log.e("ffmpeg","Start to load");
                   }

                   @Override
                   public void onFailure() {
                       Log.e("ffmpeg","failed to load");
                   }

                   @Override
                   public void onSuccess() {
                       Log.e("ffmpeg","load Successfully");
                       ExcuteFfmpefLibrabry(command);
                       //    Toast.makeText(MainActivity.this,"Success",Toast.LENGTH_LONG).show();
                   }

                   @Override
                   public void onFinish() {
                       Log.e("ffmpeg","failed to load");
                   }
               });
           } catch (FFmpegNotSupportedException e) {
               // Handle if FFmpeg is not supported by device
               Log.e("ffmpeg",e.toString());
           }

       }


    }

    public void ExcuteFfmpefLibrabry(String command[])
    {

       ffmpeg = FFmpeg.getInstance(MainActivity.this);
       try {
           // to execute "ffmpeg -version" command you just need to pass "-version"
           ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {

               @Override
               public void onStart() {
                   Log.e("ffmpeg","Exaction Start");
               }

               @Override
               public void onProgress(String message) {}

               @Override
               public void onFailure(String message) {
                   Log.e("ffmpeg","failed to Excute Command");
                   Log.e("ok",message);
               }

               @Override
               public void onSuccess(String message) {
                   Log.e("ffmpeg","Video Edited Successfully");
                   Log.e("ok",message);
                   // ExcuteFfmpefLibrabry(tetxcommand);
                   Toast.makeText(MainActivity.this,"Success",Toast.LENGTH_LONG).show();

               }

               @Override
               public void onFinish() {

               }
           });
       } catch (FFmpegCommandAlreadyRunningException e) {
           Log.e("ffmpeg",e.toString());
       }
    }

    Unable to find a suitable output format for ’ffmpeg’
    ffmpeg : Invalid argument

    I am getting an error ---> Unable to find a suitable output format for 'ffmpeg' ffmpeg: Invalid argument

  • How to display progress bar while ffmpeg commad executing in android using android studio

    23 juillet 2017, par Hemanth Kumar

    Im having a problem to display progress bar with progress percentage like kb/s or 1-100% ,while ffmpeg command is executing .
    Here im doing video trimming using ffmpeg command
    I want to display a progressbar to the user when the process is going on
    But i can’t able to do this.
    Im developeing code in androidstudio
    Please tell mehow to extract process infortation of ffmpeg command and display using progressbar .
    Any one have solution for this please share .
    Thanks in advance.

  • Converting video to GIF in Android Studio

    21 novembre 2019, par Wolfiebae

    I am trying to make my app to accept videos from the phone’s library to be uploaded and converted into GIF format. My code is giving out this build error though :-

    error: <anonymous> is not abstract and does not override abstract method onReschedule(String,ErrorInfo) in UploadCallback
    </anonymous>

    and also this warning on my onActivityResult method :-

    Overriding method should call super.onActivityResult

    The code is as below : -

    public class Video2gif extends AppCompatActivity {

       private Button uploadBtn;
       private ProgressBar progressBar;
       private int SELECT_VIDEO = 2;
       private ImageView img1;
       private DownloadManager downloadManager;
       private Button download_btn;
       private String gifUrl;

       @Override
       protected void onCreate(Bundle savedInstanceState) {
           super.onCreate(savedInstanceState);
           setContentView(R.layout.activity_video2gif);
           MediaManager.init(this);

           progressBar = findViewById(R.id.progress_bar);
           MediaManager.init(this);
           img1 = findViewById(R.id.img1);
           uploadBtn = findViewById(R.id.uploadBtn);

           uploadBtn.setOnClickListener(new View.OnClickListener() {
               @Override
               public void onClick(View view) {
                   pickVideoFromGallery();

               }
               private void pickVideoFromGallery() {
                   Intent GalleryIntent = new Intent();
                   GalleryIntent.setType("video/*");
                   GalleryIntent.setAction(Intent.ACTION_GET_CONTENT);
                   startActivityForResult(Intent.createChooser(GalleryIntent,
                           "select video"), SELECT_VIDEO);
               }
           });
       }
       @Override
       protected void onActivityResult(int requestCode, int resultCode, final Intent data) {

           if (requestCode == SELECT_VIDEO &amp;&amp; resultCode == RESULT_OK) {
               Uri selectedVideo = data.getData();
               MediaManager.get()
                       .upload(selectedVideo)
                       .unsigned("myid")
                       .option("resource_type", "video")
                       .callback(new UploadCallback(){
                           @Override
                           public void onStart(String requestId) {
                               progressBar.setVisibility(View.VISIBLE);
                               Toast.makeText(Video2gif.this,
                                       "Upload Started...", Toast.LENGTH_SHORT).show();
                           }

                           public void onProgress() {
                           }

                           public void onSuccess(String requestId, Map resultData) {

                               Toast.makeText(Video2gif.this, "Uploaded Succesfully",
                                       Toast.LENGTH_SHORT).show();
                               progressBar.setVisibility(View.GONE);
                               uploadBtn.setVisibility(View.INVISIBLE);

                               String publicId = resultData.get("public_id").toString();

                               gifUrl = MediaManager.get().url().resourceType("video")
                                       .transformation(new Transformation().videoSampling("25")
                                               .delay("200").height(200).effect("loop:10").crop("scale"))
                                       .resourceType("video").generate(publicId+".gif");

                               Glide.with(getApplicationContext()).asGif().load(gifUrl).into(img1);
                               download_btn.setVisibility(View.VISIBLE);

                           }
                           public void onError(String requestId, ErrorInfo error) {
                               Toast.makeText(Video2gif.this,
                                       "Upload Error", Toast.LENGTH_SHORT).show();
                               Log.v("ERROR!!", error.getDescription());
                           }


           });
       }
    }

    }

    I am also using Cloudinary to help process the video to GIF. Any help would be appreciated, many thanks !