Recherche avancée

Médias (0)

Mot : - Tags -/configuration

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

Autres articles (27)

  • La file d’attente de SPIPmotion

    28 novembre 2010, par

    Une file d’attente stockée dans la base de donnée
    Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
    Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...)

  • 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

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (6699)

  • How to Extract Lyrics (USLT frame) from Mp3 using FFmpeg ?

    1er mai 2022, par Wonderer

    I'm using Mp3tag's "Tools" feature to batch run FFmpeg in Windows, in order to batch extract the embedded lyrics content (USLT frame of ID3v2 tag) from MP3 files, I know with FFmpeg I can do something like :

    


    -i "%_path%" -f ffmetadata "%_folderpath%\%_filename%.txt"


    


    "%_path%" = full path of the MP3 file

    


    "%_folderpath%%_filename%.txt" = path and filename of the exported txt file.

    


    The command above extracts all the metadata from MP3 file and export them into a txt file with the following cotent for example :

    


    ;FFMETADATA1
album=name of the album
artist=name of the artist
title=name of the title
lyrics-eng=[00:01.23]line1 of lyrics
\
[00:04.56]line2 of lyrics
\
[00:07.89]line3 of lyrics
\
[01:03.12]3rd last line of lyrics
\
[02:04.34]2nd last line of lyrics
\
[03:05.67]Last line of lyrics
\

date=2020
encoder=Lavf59.23.100


    


    (the original lyrics uses Simple LRC format with timestamps in each line, certain lines contain only the timestamp with empty lyrics)

    


    (There might (or might not) be additional metadata (e.g. date and encoder in the example above) following the lyrics part)

    


    As seen above, the backslash "\" (which is not present in the original lyrics) is somehow added after each line of lyrics, between CR (CarriageReturn) and LF (LineFeed) as seen in Notepad++ (the original lyrics use CRLF as EOL characters).

    


    So how do I modify the given command line to export only the lyrics part (exluding all other metadata and the extra backslash "\"), an example of the expected text file content is shown below :

    


    [00:01.23]line1 of lyrics
[00:04.56]line2 of lyrics
[00:07.89]line3 of lyrics
[01:03.12]3rd last line of lyrics
[02:04.34]2nd last line of lyrics
[03:05.67]Last line of lyrics


    


    with the original EOL characters from lyrics such as CRLF

    


  • ffmpeg error that causes songs to be skipped in discord.py music bot

    28 septembre 2022, par Wolfy

    I'm making a music bot in python. Sometimes when the music is playing, such an error may come out

    


    [tls @ 0x56540863c280] Error in the pull function.
[matroska,webm @ 0x565408639460] Read error
[tls @ 0x56540863c280] The specified session has been invalidated for some reason.


    


    [https @ 0x55ef3042ae80] HTTP error 403 Forbidden
https://rr5---sn-qxoedne7.googlevideo.com/videoplayback?expire=1643908737&ei=ILr7YYvvOfeA_tcP1P-O6AE&ip=34.70.213.61&id=o-AP2Y_3KL9ByYzaHpK9BTYU-rXEdyhVBdmAya4-RDcnhA&itag=249&source=youtube&requiressl=yes&mh=up&mm=31%2C26&mn=sn-qxoedne7%2Csn-5goeen7d&ms=au%2Conr&mv=u&mvi=5&pl=20&vprv=1&mime=audio%2Fwebm&ns=R7IIdhU6N1T67hOi5mk4h1gG&gir=yes&clen=1237668&dur=200.101&lmt=1643350535759614&mt=1643886547&fvip=4&keepalive=yes&fexp=24001373%2C24007246&c=WEB&txp=5432434&n=f5o7FLev4k11Jt4&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cns%2Cgir%2Cclen%2Cdur%2Clmt&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl&lsig=AG3C_xAwRQIhAI7fuWyVPY7zdiGm2FemrcqsDuQWjcqfSnLKxw66QoSwAiBOJHGVpoRCKu2ZnW3DPGxK8bKS-FfvyyxG2hRgg2TRVw%3D%3D&sig=AOq0QJ8wRQIgOWU5ecufOjhtuwQNdWX5l140N5cW7Hu01SfC9b6Zkg4CIQC0ZzrrXwUtf4qkvWZaQCEfWpOmZJhBmca0sYqqmxh75A==: Server returned 403 Forbidden (access denied)


    


    [dash @ 0x5596ac7e6460] Could not read complete fragment.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x5596acb12940] Stream #0: not enough frames to estimate rate; consider increasing probesize
[dash @ 0x5596ac7e6460] Could not read complete fragment.


    


    A piece of code to launch a song :

    


    YDL_OPTIONS = {'format': 'bestaudio/best','outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s','restrictfilenames': True,'noplaylist': True,'nocheckcertificate': True,'ignoreerrors': False,'logtostderr': False,'quiet': True,'no_warnings': True, 'forceipv4': True,'cookies': True, 'default_search': 'auto','encoding': 'utf-8', "simulate": True, 'audioformat': "mp3",'audioquality': 5,'source_address': '0.0.0.0',"bitrate": 320000,"prefer_ffmpeg": True,"usenetrc": True,"verbose": False}
FFMPEG_OPTIONS = {'options': '-vn'}
vc.play(discord.FFmpegPCMAudio( source = URL, **FFMPEG_OPTIONS))
vc.source = discord.PCMVolumeTransformer(vc.source)
vc.source.volume = 1


    


    How do I catch these errors or how do I fix them ?

    


  • How to change or modify pitch of audio file (music etc like .mp3 file)using FFMPEG ?

    18 octobre 2022, par syed kashifullah

    I want to change and modify pitch an .mp3 audio file using FFMPEG.
But I am unable to use FFMPEG to change or modify pitch of that sound.
what command (exact command) should be exactly use for changing pitch of an audio file ?

    


     String outPutPath = new File("/storage/emulated/0/Share it Application/Over_the_HorizonTemp.wav").getPath();
                 
                String[] strFfmpeg  = {"ffmpeg","-i" ,strInputPath,"-af", "rubberband=tempo=1.0:pitch=1.5:pitchq=quality" ,outPutPath};
                execffmpegBinary(strFfmpeg);


    


    execffmpegBinary Function :

    


    public void execffmpegBinary(String[] command) {
    Config.enableLogCallback(new LogCallback() {
        @Override
        public void apply(LogMessage message) {
            Log.e(Config.TAG, message.getText());
            Log.e("TAG", "apply: " +message.getText());
        }
    });
    Config.enableStatisticsCallback(new StatisticsCallback() {
        @Override
        public void apply(Statistics statistics) {

        }
    });

    long executionId = FFmpeg.executeAsync(command, new ExecuteCallback() {
        @Override
        public void apply(long executionId, int returnCode) {
            if (returnCode == RETURN_CODE_SUCCESS) {
                
                Log.e("1TAG", "apply:return code "+returnCode );
                Log.e("1TAG", "apply:execution Id "+executionId );
                Log.e("1TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));


            } else if (returnCode == RETURN_CODE_CANCEL) {
                Log.e("2TAG", "apply:return code "+returnCode );
                Log.e("2TAG", "apply:execution Id "+executionId );
                Log.e("2TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));

            } else {
                Log.e("3TAG", "apply: returnCode"+ returnCode);
                Log.e("3TAG", "apply:return code "+returnCode );
                Log.e("3TAG", "apply:execution Id "+executionId );
                Log.e("3TAG", "apply:execution Id "+ new FFmpegExecution(executionId,command));

            }
        }
    });
}