Recherche avancée

Médias (91)

Autres articles (73)

  • Encodage et transformation en formats lisibles sur Internet

    10 avril 2011

    MediaSPIP transforme et ré-encode les documents mis en ligne afin de les rendre lisibles sur Internet et automatiquement utilisables sans intervention du créateur de contenu.
    Les vidéos sont automatiquement encodées dans les formats supportés par HTML5 : MP4, Ogv et WebM. La version "MP4" est également utilisée pour le lecteur flash de secours nécessaire aux anciens navigateurs.
    Les documents audios sont également ré-encodés dans les deux formats utilisables par HTML5 :MP3 et Ogg. La version "MP3" (...)

  • Monitoring de fermes de MediaSPIP (et de SPIP tant qu’à faire)

    31 mai 2013, par

    Lorsque l’on gère plusieurs (voir plusieurs dizaines) de MediaSPIP sur la même installation, il peut être très pratique d’obtenir d’un coup d’oeil certaines informations.
    Cet article a pour but de documenter les scripts de monitoring Munin développés avec l’aide d’Infini.
    Ces scripts sont installés automatiquement par le script d’installation automatique si une installation de munin est détectée.
    Description des scripts
    Trois scripts Munin ont été développés :
    1. mediaspip_medias
    Un script de (...)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

Sur d’autres sites (13280)

  • What is a good/simple way to obtain a stream of song metadata from an online radio station ?

    29 juin 2022, par esp

    What is a good/simple way to obtain a stream of song metadata (artist names and song titles etc.) from an online radio station ? Just the metadata, not the data (media). On bash command-line for now, thinking of getting it to a database (eg MySQL) in future.

    


    I have had success using FFMpeg to do this (simply FFMpeg -i <streamurl></streamurl>). However it only reports the song playing once - when it is run. If I specify an outputfile (e.g. -f null -) then it continues to run but does not report any updates to the "now playing" metadata. If I do not specify an output file then, after reporting that metadata, it quits (which in my case is more useful !).

    &#xA;

    I can imagine one way round this would be to make a polling-loop, say every 10 seconds, only reporting when the metadata has changed (since the previous time). Does anyone have a battle-tested example ?

    &#xA;

    But is there a better (or cooler way) to achieve this ?

    &#xA;

  • combine audio and video without delete original audio (overlap two audio sound simultaneous) ?

    28 juin 2018, par MIGHTDUY

    I have this code but delete original audio ;IM trying to put background music

    ffmpeg -i "music.m4a" -i OUTS.mkv -acodec copy -vcodec copy muxed.mp4

    please help me

  • 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 &#xA;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.

    &#xA;&#xA;

    private void getMusic(){&#xA;    ContentResolver resolver = getContentResolver();&#xA;    Uri uri = MediaStore.Audio.Media.EXTERNAL_CONTENT_URI;&#xA;    Cursor cursor = resolver.query(uri,null,null,null,null);&#xA;    if(cursor != null &amp;&amp; cursor.moveToFirst()){&#xA;        int songTitle = cursor.getColumnIndex(MediaStore.Audio.Media.TITLE);&#xA;        int data = cursor.getColumnIndex(MediaStore.Audio.Media.DATA);&#xA;        int artist =cursor.getColumnIndex(MediaStore.Audio.Media.ARTIST);&#xA;        int size =cursor.getColumnIndex(MediaStore.Audio.Media.SIZE);&#xA;        int duration =cursor.getColumnIndex(MediaStore.Audio.Media.DURATION);&#xA;&#xA;        do {&#xA;            Music music = new Music();&#xA;            music.setSongName(cursor.getString(songTitle));&#xA;            music.setSongArtist(cursor.getString(artist));&#xA;            music.setSongDuration(cursor.getString(duration));&#xA;            music.setSongSize(cursor.getString(size));&#xA;            music.setSongPath(cursor.getString(data));&#xA;            music.setSongBitmap(getAlbumImage(cursor.getString(data)));&#xA;            musicArrayList.add(music);&#xA;        }while (cursor.moveToNext());&#xA;    }&#xA;}&#xA;

    &#xA;&#xA;

    Then at the function below i merge the selected audios.

    &#xA;&#xA;

        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;