Recherche avancée

Médias (91)

Autres articles (44)

  • 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

  • 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

  • Contribute to a better visual interface

    13 avril 2011

    MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
    Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.

Sur d’autres sites (6565)

  • Extract individual frames as a buffer from a video

    30 août 2022, par mgo

    I'm trying to process a video using tensorflow in node.js (i.e. on the server - I don't have a web page). I need to process each frame in the video individually. I see some people are using ffmpeg to generate individual image files from the video but that seems wasteful as it creates files on the filesystem. I would prefer to grab each frame as a base64 string in memory. I've got this working using OpenCV4Node but am wondering if there are any lighter weight solutions. Is anyone already doing this ? Any help would be appreciated :-)

    


  • How to split a video into individual encoded frames ?

    23 mai 2015, par Asik

    Source video is H264 in an mp4 container, I’m trying to split it into individual encoded frames. I tried with the following command line :

    ffmpeg -i "input.mp4" -f image2 "%d.h264"

    But that creates jpegs with the extension "h264", rather than actual H.264 frames.

  • 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;