Recherche avancée

Médias (0)

Mot : - Tags -/organisation

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

Autres articles (55)

  • La sauvegarde automatique de canaux SPIP

    1er avril 2010, par

    Dans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
    Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)

  • Script d’installation automatique de MediaSPIP

    25 avril 2011, par

    Afin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
    Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
    La documentation de l’utilisation du script d’installation (...)

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

Sur d’autres sites (8972)

  • how to concentrate two audios in android in my way ?

    14 mai 2020, par tohid noori

    hello guys i have selectActivity that u can select the audios after that u can merge them using ffmpeg library but i get error that said "no such file or directory" i thick the paths that use have problem 
this is my code below u can check it out .Then if u know how to get all music that exist in my storage ,tell me. I use this function below to get all music.

    



    private void getMusic(){
    ContentResolver resolver = getContentResolver();
    Uri uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;
    Cursor cursor = resolver.query(uri,null,null,null,null);
    if(cursor != null && cursor.moveToFirst()){
        int songTitle = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE);
        int data = cursor.getColumnIndex(MediaStore.Audio.Media.DATA);
        int artist =cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST);
        int size =cursor.getColumnIndex(MediaStore.Audio.Media.SIZE);
        int duration =cursor.getColumnIndex(MediaStore.Audio.Media.DURATION);

        do {
            Music music = new Music();
            music.setSongName(cursor.getString(songTitle));
            music.setSongArtist(cursor.getString(artist));
            music.setSongDuration(cursor.getString(duration));
            music.setSongSize(cursor.getString(size));
            music.setSongPath(cursor.getString(data));
            music.setSongBitmap(getAlbumImage(cursor.getString(data)));
            musicArrayList.add(music);
        }while (cursor.moveToNext());
    }
}


    



    Then at the function below i merge the selected audios.

    



        public void OMG(final Context context,List<musicselecteddatabase> musicDbs) {&#xA;    String s = "";&#xA;    String s_index = "";&#xA;    String fileSize = "concat=n="&#x2B;musicDbs.size()&#x2B;":v=0:a=1[out] -map [out] "&#x2B; dir4.getPath();&#xA;&#xA;    for (int i = 0; i &lt; musicDbs.size(); i&#x2B;&#x2B;) {&#xA;&#xA;        s = s &#x2B; " -i " &#x2B; musicDbs.get(i).getSongPath();&#xA;        s_index = s_index &#x2B; "[" &#x2B; i &#x2B; ":0]";&#xA;&#xA;    }&#xA;    s = s.replaceFirst(" ","");&#xA;    String str_cmd = s &#x2B; " -filter_complex " &#x2B; s_index &#x2B; fileSize ;&#xA;    String[] cmd = str_cmd.split(" ");&#xA;    FFmpeg ffmpeg = FFmpeg.getInstance(context);&#xA;    try {&#xA;        ffmpeg.loadBinary(new LoadBinaryResponseHandler() {&#xA;            @Override&#xA;            public void onStart() {&#xA;            }&#xA;&#xA;            @Override&#xA;            public void onFailure() {&#xA;            }&#xA;&#xA;            @Override&#xA;            public void onSuccess() {&#xA;            }&#xA;&#xA;            @Override&#xA;            public void onFinish() {&#xA;            }&#xA;        });&#xA;    } catch (Exception e) {&#xA;        Toast.makeText(context, e.getMessage(), Toast.LENGTH_SHORT).show();&#xA;    }&#xA;&#xA;    try {&#xA;        ffmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {&#xA;            @Override&#xA;            public void onStart() {&#xA;            }&#xA;&#xA;            @Override&#xA;            public void onProgress(String message) {&#xA;                Toast.makeText(context, message, Toast.LENGTH_SHORT).show();&#xA;            }&#xA;&#xA;            @Override&#xA;            public void onFailure(String message) {&#xA;                Toast.makeText(context, message, Toast.LENGTH_SHORT).show();&#xA;            }&#xA;&#xA;            @Override&#xA;            public void onSuccess(String message) {&#xA;                Toast.makeText(context, "Build has been successful", Toast.LENGTH_SHORT).show();&#xA;            }&#xA;&#xA;            @Override&#xA;            public void onFinish() {&#xA;&#xA;            }&#xA;        });&#xA;    } catch (Exception e) {&#xA;        Toast.makeText(context, e.getMessage(), Toast.LENGTH_SHORT).show();&#xA;    } finally {&#xA;        if (ffmpeg.isFFmpegCommandRunning()) {&#xA;            ffmpeg.killRunningProcesses();&#xA;        }&#xA;    }&#xA;}&#xA;</musicselecteddatabase>

    &#xA;&#xA;

    at the end i tell u how to get all music path exist in my mobile whit the function getmusic() i get a path something like this :

    &#xA;&#xA;

    /storage/72AD-2013/Music/music_name.mp3

    &#xA;&#xA;

    but i need something like this "i mean the real path of file that music is exist :

    &#xA;&#xA;

    /storage/emulated/0/music/music_name.mp3

    &#xA;

  • Anomalie #2458 (Fermé) : Forum dans le privé

    15 décembre 2011, par cam.lafit -

    Ciao Si on active les forums coté espace privé : configuration > forum > Forums de l’espace privé > Un forum sous chaque article, brève, site référencé, etc. : Alors on obtient un erreur sur les boucle _decompte et _forums de ../extensions/forum/prive/objets/liste/participer_forum_thread.html Erreur (...)

  • Anomalie #3234 : Upload gros fichiers : detecter dans le verifier() du formulaire upload

    11 juin 2015, par Eric Camus

    Pour le point 2 : http://php.net/manual/fr/language.types.string.php#language.types.string.conversion
    Une chaine dans une opération arithmétique est forcément converti en nombre.
    C’est d’ailleurs un truc et astuce que j’utilise pour extraire seulement un nombre d’une input : $x=0+$_REQUEST[’in’] ; donnera toujours un chiffre (entier ou float !).
    Donc pas besoin d’extraire la lettre, à la rigueur changer le return $val ; en return (0+$val) ; en cas de lettre non comprise.