Recherche avancée

Médias (0)

Mot : - Tags -/performance

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

Autres articles (78)

  • Amélioration de la version de base

    13 septembre 2013

    Jolie sélection multiple
    Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
    Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)

  • Qu’est ce qu’un masque de formulaire

    13 juin 2013, par

    Un masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
    Chaque formulaire de publication d’objet peut donc être personnalisé.
    Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
    Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)

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

Sur d’autres sites (14126)

  • Why PyAudio doesn't read 'mp3' ?

    22 octobre 2020, par freshITmeat

    I tried to read file that I give with absolute path.
When I run my code first that I see is this message :

    


    D:\prog\datascience\anaconda\lib\site-packages\pydub\utils.py:170: RuntimeWarning: Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work
  warn("Couldn't find ffmpeg or avconv - defaulting to ffmpeg, but may not work", RuntimeWarning)


    


    I tried this :

    


    PATH_TO_FFMPEG = 'D:\\prog\\ffmpeg-win-2.2.2\\ffmpeg.exe'
pydub.AudioSegment.converter = r'D:\\prog\\ffmpeg-win-2.2.2\\ffmpeg.exe'


    


    And I separately installed ffmpeg with pip. But it didn't help.
When I try this :

    


    raw_sound = pydub.AudioSegment.from_mp3(file=track_path)


    


    where track_path is correct absolute path generated automatically.
So I got this this error :

    


    Traceback (most recent call last):&#xA;  File "D:\prog\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\pydevd.py", line 1448, in _exec&#xA;    pydev_imports.execfile(file, globals, locals)  # execute the script&#xA;  File "D:\prog\PyCharm Community Edition 2020.2.2\plugins\python-ce\helpers\pydev\_pydev_imps\_pydev_execfile.py", line 18, in execfile&#xA;    exec(compile(contents&#x2B;"\n", file, &#x27;exec&#x27;), glob, loc)&#xA;  File "D:/testtask2/test_task/testtask/get_mffc.py", line 165, in <module>&#xA;    slice_all_in_a_dir(&#x27;May 27 2020 LNC/Hydrophone 1/raw_records&#x27;)&#xA;  File "D:/testtask2/test_task/testtask/get_mffc.py", line 70, in slice_all_in_a_dir&#xA;    slice_samples(track_path= [file],&#xA;  File "D:/testtask2/test_task/testtask/get_mffc.py", line 48, in slice_samples&#xA;    raw_sound = pydub.AudioSegment.from_mp3(file=track_path)&#xA;  File "D:\prog\datascience\anaconda\lib\site-packages\pydub\audio_segment.py", line 738, in from_mp3&#xA;    return cls.from_file(file, &#x27;mp3&#x27;, parameters=parameters)&#xA;  File "D:\prog\datascience\anaconda\lib\site-packages\pydub\audio_segment.py", line 680, in from_file&#xA;    stdin_data = file.read()&#xA;AttributeError: &#x27;list&#x27; object has no attribute &#x27;read&#x27;&#xA;python-BaseException&#xA;</module>

    &#xA;

  • MobileFFMPEG Output file #0 does not contain any stream

    30 septembre 2020, par Alhaj

    I am using implementation 'com.arthenica:mobile-ffmpeg-full:4.4'

    &#xA;

    I just want o crop audio file to 10 second to 20 second

    &#xA;

    '''&#xA;fun cropAudio(input :String)

    &#xA;

        val newFileName = UUID.randomUUID().toString()&#xA;&#xA;    val location: String = getBatchDirectoryName()!!&#xA;&#xA;    val output: String = location &#x2B; "/" &#x2B; newFileName &#x2B; ".mp3"&#xA;&#xA;    val temp=" -i $input -ss 60 -to 70 $output"&#xA;&#xA;    Log.e("alhaj", " a $s")&#xA;&#xA;    FFmpeg.execute(temp, object : ExecuteCallback {&#xA;&#xA;        fun onSuccess(message: String?) {&#xA;            uploadOnFirebase(output, title)&#xA;            mediaPlayer.stop()&#xA;            Log.e("alhaj", message!!)&#xA;        }&#xA;&#xA;        override fun apply(executionId: kotlin.Long, returnCode: Int) {&#xA;            if (returnCode == RETURN_CODE_SUCCESS) {&#xA;                Log.i("alhaj", "Async command execution completed successfully.");&#xA;            } else if (returnCode == RETURN_CODE_CANCEL) {&#xA;                Log.i("alhaj", "Async command execution cancelled by user.");&#xA;            } else {&#xA;                Log.i("alhaj", String.format("Async command execution failed with rc=%d.", returnCode));&#xA;            }&#xA;        }&#xA;    }.toString())&#xA;}&#xA;

    &#xA;

    '''

    &#xA;

    but i am getting error

    &#xA;

    '''

    &#xA;

    2020-09-30 03:13:41.079 10300-10410/com.example.touchmeadmin I/mobile-ffmpeg : Output #0, mp3, to ' -i /storage/emulated/0/AJ backup/songs/Maroon 5 - Memories (Official Video) ( 256kbps cbr ).mp3 -ss 60 -to 70 /storage/emulated/0/Android/data/com.example.touchmeadmin/files/Music/830350fd-5218-4ee0-bd99-0dd50b802930.mp3' :&#xA;2020-09-30 03:13:41.079 10300-10410/com.example.touchmeadmin E/mobile-ffmpeg : Output file #0 does not contain any stream

    &#xA;

    '''

    &#xA;

  • ffmpeg showspectrumpic fscale=log not rendering Right audio channel

    8 janvier 2021, par hjeannin

    I am running these two command and getting surprising result on the second one.

    &#xA;

    The first command produce (fscale=lin) :

    &#xA;

    ffmpeg -i stereo-test.mp3 -lavfi showspectrumpic=s=600x600:mode=separate:fscale=lin:scale=log spect_lin.bmp&#xA;

    &#xA;

    spect_lin.bmp

    &#xA;

    but the second command produce (fscale=log) :

    &#xA;

    ffmpeg -i stereo-test.mp3 -lavfi showspectrumpic=s=600x600:mode=separate:fscale=log:scale=log spect_log.bmp&#xA;

    &#xA;

    spect_log.bmp

    &#xA;

    Sadly on the second image, the right channel is missing and I cannot figure out why.&#xA;Any idea or suggestion would be awesome :)

    &#xA;

    Thanks !

    &#xA;

    PS : You can find my test file here : stereo-test.mp3

    &#xA;

    I am using : ffmpeg version 4.2.4-1ubuntu0.1 Copyright (c) 2000-2020 the FFmpeg developers

    &#xA;

    EDIT : does not work using ffmpeg version 4.3.1-4ubuntu1 Copyright (c) 2000-2020 the FFmpeg developers too.

    &#xA;