Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (73)

  • 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 (...)

  • XMP PHP

    13 mai 2011, par

    Dixit Wikipedia, XMP signifie :
    Extensible Metadata Platform ou XMP est un format de métadonnées basé sur XML utilisé dans les applications PDF, de photographie et de graphisme. Il a été lancé par Adobe Systems en avril 2001 en étant intégré à la version 5.0 d’Adobe Acrobat.
    Étant basé sur XML, il gère un ensemble de tags dynamiques pour l’utilisation dans le cadre du Web sémantique.
    XMP permet d’enregistrer sous forme d’un document XML des informations relatives à un fichier : titre, auteur, historique (...)

Sur d’autres sites (6147)

  • I want help in making video collage, tried everything but unsuccessful

    16 mars 2016, par Haider Ali

    I want to make Video Collage in which 2 or more videos should be displayed in one frame and then they can be converted into one Video file.
    I tried examples but they just add videos at the end of each video to make a long one combine video.
    Any Help Please

    String FILE_PATH = "/storage/sdcard0/testing.mp4";
    String FILE_PATH2 = "/storage/sdcard0/testing1.mp4";
    String FILE_PATH3 = "/storage/sdcard0/testing2.mp4";
    File file1 = new File(FILE_PATH);
    File file2 = new File(FILE_PATH2);
    File file3 = new File(FILE_PATH3);

    private ProgressDialog pDialog;
    ImageView img,img2,img3;
    MediaMetadataRetriever retriever2 = new MediaMetadataRetriever();
    MediaMetadataRetriever retriever3 = new MediaMetadataRetriever();
    ArrayList<bitmap> bitmapArray1 = new ArrayList<bitmap>();
    ArrayList<bitmap> bitmapArray2 = new ArrayList<bitmap>();
    ArrayList<bitmap> bitmapArray3 = new ArrayList<bitmap>();
    File ScreenDIR = new File("/sdcard/Screens/");
    </bitmap></bitmap></bitmap></bitmap></bitmap></bitmap>

    // have the object build the directory structure, if needed.

    double id1=0,id2=0,id3=0;



    @Override
    protected void onCreate(Bundle savedInstanceState) {
       super.onCreate(savedInstanceState);
       setContentView(R.layout.activity_main);
       ScreenDIR.mkdirs();

        img = (ImageView)findViewById(R.id.imageView);
       img2 = (ImageView)findViewById(R.id.imageView2);
       img3 = (ImageView)findViewById(R.id.imageView3);

       new LoadAllProducts().execute();




    }

    class LoadAllProducts extends AsyncTask {

       /**
        * Before starting background thread Show Progress Dialog
        * */
       @Override
       protected void onPreExecute() {
           super.onPreExecute();
           pDialog = new ProgressDialog(MainActivity.this);
           pDialog.setMessage("Extracting Frames. Please wait...");
           pDialog.setIndeterminate(false);
           pDialog.setCancelable(false);
           pDialog.show();
       }

       /**
        * getting All products from url
        * */
       protected String doInBackground(String... args) {
           if(file1.exists()){


               for (long i = 0; i &lt; 5000; i += 1000/14) { // lenms - video length in milliseconds

                   MediaMetadataRetriever retriever = new MediaMetadataRetriever();
                   retriever.setDataSource(file1.toString());

                  // Bitmap bitmap = retriever.getFrameAtTime((i*1000/14), MediaMetadataRetriever.OPTION_CLOSEST_SYNC);

                   saveBitmapToCahche( getResizedBitmap((retriever.getFrameAtTime((i*1000/14), MediaMetadataRetriever.OPTION_CLOSEST_SYNC)), 500) ,String.valueOf(id1));
                   id1++;
                   //bitmapArray1.add(bitmap);

                  /* File file = new File(ScreenDIR, "sketchpad1" + id1 + ".png");
                   FileOutputStream fOut = null;
                   try {
                       fOut = new FileOutputStream(file);
                   } catch (FileNotFoundException e) {
                       e.printStackTrace();
                   }

                   //bitmap.compress(Bitmap.CompressFormat.PNG, 30, fOut);

                   try {
                       fOut.flush();
                   } catch (IOException e) {
                       e.printStackTrace();
                   }
                   try {
                       fOut.close();


                   } catch (IOException e) {
                       e.printStackTrace();
                   }*/
               }

               }
          /* if(file2.exists()){
               retriever2.setDataSource(file2.toString());
               for (long i = 0; i &lt; 3000; i += 1000/24) { // lenms - video length in milliseconds
                   bitmap2 = retriever2.getFrameAtTime(i*1000/29, MediaMetadataRetriever.OPTION_CLOSEST_SYNC);
                   //bitmapArray2.add(bitmap2);

                   File file = new File(ScreenDIR, "sketchpad2" + id2 + ".png");
                   FileOutputStream fOut = null;
                   try {
                       fOut = new FileOutputStream(file);
                   } catch (FileNotFoundException e) {
                       e.printStackTrace();
                   }

                   bitmap2.compress(Bitmap.CompressFormat.PNG, 85, fOut);
                   try {
                       fOut.flush();
                   } catch (IOException e) {
                       e.printStackTrace();
                   }
                   try {
                       fOut.close();
                       id2++;
                   } catch (IOException e) {
                       e.printStackTrace();
                   }
               }



           }
           if(file3.exists()){
               retriever3.setDataSource(file3.toString());
               for (long i = 0; i &lt; 3000; i += 1000/24) { // lenms - video length in milliseconds
                   bitmap3 = retriever3.getFrameAtTime(i*1000/29, MediaMetadataRetriever.OPTION_CLOSEST_SYNC);
                  // bitmapArray3.add(bitmap3);

                   File file = new File(ScreenDIR, "sketchpad3" + id3 + ".png");
                   FileOutputStream fOut = null;
                   try {
                       fOut = new FileOutputStream(file);
                   } catch (FileNotFoundException e) {
                       e.printStackTrace();
                   }

                   bitmap3.compress(Bitmap.CompressFormat.PNG, 85, fOut);
                   try {
                       fOut.flush();
                   } catch (IOException e) {
                       e.printStackTrace();
                   }
                   try {
                       fOut.close();
                       id3++;
                   } catch (IOException e) {
                       e.printStackTrace();
                   }
               }

               }*/




           return null;
       }
       /**
        * After completing background task Dismiss the progress dialog
        * **/
       protected void onPostExecute(String file_url) {
           // dismiss the dialog after getting all products
           pDialog.dismiss();



           img.setImageBitmap(retrieveBitmapFromCache(String.valueOf(id2)));
           id2 = 50;

           img2.setImageBitmap(retrieveBitmapFromCache(String.valueOf(id2)));
           id2 = 69;

           img3.setImageBitmap(retrieveBitmapFromCache(String.valueOf(id2)));


          // img2.setImageBitmap(bitmapArray2.get(0));
          // img3.setImageBitmap(bitmapArray3.get(0));

           }




       }


    public void saveBitmapToCahche(Bitmap bb,String ID ){

       Cache.getInstance().getLru().put(ID, bb);


    }
    public Bitmap retrieveBitmapFromCache(String ID) {


       Bitmap bitmap = (Bitmap) Cache.getInstance().getLru().get(ID);

       return  bitmap;

    }
    public Bitmap getResizedBitmap(Bitmap image, int maxSize) {
       int width = image.getWidth();
       int height = image.getHeight();

       float bitmapRatio = (float)width / (float) height;
       if (bitmapRatio > 0) {
           width = maxSize;
           height = (int) (width / bitmapRatio);
       } else {
           height = maxSize;
           width = (int) (height * bitmapRatio);
       }
       return Bitmap.createScaledBitmap(image, width, height, true);
    }
    }

    `

  • when I merge some .ts files using ffmpeg library and for making mp4 video it gives me errors

    9 octobre 2017, par humayoon siddique

    I got .ts files from m3u8 link and now I want to merge the .ts files. After searching I came to know that we can merge .ts files using ffmpeg library. Now when I try to merge after certain process it gives me error as following.

    user this function for merging ts two mp4

    WARNING: linker: /data/data/com.whizpool.muftatv/files/ffmpeg has text relocations. This is wasting memory and is a security risk. Please fix.
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress: ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   built on Oct  7 2014 15:08:46 with gcc 4.8 (GCC)
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavutil      54.  7.100 / 54.  7.100
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavcodec     56.  1.100 / 56.  1.100
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavformat    56.  4.101 / 56.  4.101
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavdevice    56.  0.100 / 56.  0.100
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavfilter     5.  1.100 /  5.  1.100
    03-01 17:43:58.059 23895-23895/com.whizpool.muftatv E/ onProgress:   libswscale      3.  0.100 /  3.  0.100
    03-01 17:43:58.059 23895-23895/com.whizpool.muftatv E/ onProgress:   libswresample   1.  1.100 /  1.  1.100
    03-01 17:43:58.059 23895-23895/com.whizpool.muftatv E/ onProgress:   libpostproc    53.  0.100 / 53.  0.100
    03-01 17:43:58.069 23895-23895/com.whizpool.muftatv E/ onProgress: [concat @ 0x41a66eb0] Impossible to open '/storage/emulated/0/Mufta/3117927975001_4221595953001_s-6.ts?'
    03-01 17:43:58.069 23895-23895/com.whizpool.muftatv E/ onProgress: /storage/emulated/0/Pictures/MyCameraVideo/videos.txt: Invalid data found when processing input
  • when I merge some .ts files using ffmpeg libraray and for making mp4 video its get me error

    9 octobre 2017, par humayoon siddique

    I got .ts files from m3u8 link and now I want to merge the .ts files. After searching I came to know that we can merge .ts files using ffmpeg library. Now when I try to merge after certain process it gives me error as following.

    user this function for merging ts two mp4

    WARNING: linker: /data/data/com.whizpool.muftatv/files/ffmpeg has text relocations. This is wasting memory and is a security risk. Please fix.
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress: ffmpeg version n2.4.2 Copyright (c) 2000-2014 the FFmpeg developers
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   built on Oct  7 2014 15:08:46 with gcc 4.8 (GCC)
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   configuration: --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime-cpudetect --sysroot=/home/sb/Source-Code/ffmpeg-android/toolchain-android/sysroot --enable-pic --enable-libx264 --enable-libass --enable-libfreetype --enable-libfribidi --enable-fontconfig --enable-pthreads --disable-debug --disable-ffserver --enable-version3 --enable-hardcoded-tables --disable-ffplay --disable-ffprobe --enable-gpl --enable-yasm --disable-doc --disable-shared --enable-static --pkg-config=/home/sb/Source-Code/ffmpeg-android/ffmpeg-pkg-config --prefix=/home/sb/Source-Code/ffmpeg-android/build/armeabi-v7a-neon --extra-cflags='-I/home/sb/Source-Code/ffmpeg-android/toolchain-android/include -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2 -fno-strict-overflow -fstack-protector-all -mfpu=neon' --extra-ldflags='-L/home/sb/Source-Code/ffmpeg-android/toolchain-android/lib -Wl,-z,relro -Wl,-z,now -pie' --extra-libs='-lpng -lexpat -lm' --extra-cxxflags=
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavutil      54.  7.100 / 54.  7.100
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavcodec     56.  1.100 / 56.  1.100
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavformat    56.  4.101 / 56.  4.101
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavdevice    56.  0.100 / 56.  0.100
    03-01 17:43:58.049 23895-23895/com.whizpool.muftatv E/ onProgress:   libavfilter     5.  1.100 /  5.  1.100
    03-01 17:43:58.059 23895-23895/com.whizpool.muftatv E/ onProgress:   libswscale      3.  0.100 /  3.  0.100
    03-01 17:43:58.059 23895-23895/com.whizpool.muftatv E/ onProgress:   libswresample   1.  1.100 /  1.  1.100
    03-01 17:43:58.059 23895-23895/com.whizpool.muftatv E/ onProgress:   libpostproc    53.  0.100 / 53.  0.100
    03-01 17:43:58.069 23895-23895/com.whizpool.muftatv E/ onProgress: [concat @ 0x41a66eb0] Impossible to open '/storage/emulated/0/Mufta/3117927975001_4221595953001_s-6.ts?'
    03-01 17:43:58.069 23895-23895/com.whizpool.muftatv E/ onProgress: /storage/emulated/0/Pictures/MyCameraVideo/videos.txt: Invalid data found when processing input