Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (62)

  • List of compatible distributions

    26 avril 2011, par

    The table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
    If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...)

  • Les tâches Cron régulières de la ferme

    1er décembre 2010, par

    La gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
    Le super Cron (gestion_mutu_super_cron)
    Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...)

  • 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

Sur d’autres sites (7886)

  • using pocketsphinx_continuous with a .wav file

    3 avril 2013, par user2242131

    I am attempting to write an application that will allow a user to speak a small set of commands from a remote system and have them executed on my server. Using pocketsphinx to parse the spoken text. When run locally with the microphone, pocketsphinx_continuous works perfectly no matter how I slur the words. But when importing the audio file and using ffmpeg to downsample the audio to a single channel, 16 bit PCM file, it will parse the first word without difficulty. Then it will skip everything else and treat it as . I am confident that the problem is in the file format and not in the pocketsphinx configuration.

    Using command line
    ffmpeg -y -i Sound\AddSheet.wav -ac 1 -f s16le -acodec pcm_s16le -ar 16k AddTmp.wav
    in a batch file.

    The bottom of the output I get is :

    INFO: fsg_search.c(1407): Start node ADD.0:5:47
    INFO: fsg_search.c(1407): Start node <sil>.0:2:49
    INFO: fsg_search.c(1446): End node <sil>.126:128:305 (-486)
    INFO: fsg_search.c(1662): lattice start node <s>.0 end node <sil>.126
    INFO: ps_lattice.c(1352): Normalizer P(O) = alpha(<sil>:126:305) = -175371
    INFO: ps_lattice.c(1390): Joint P(O,S) = -176076 P(S|O) = -705
    000000000: ADD USER
    </sil></sil></s></sil></sil>

    Which is not the audio in the file. The words spoken in the file are "ADD SPREADSHEET", which works perfectly from the same microphone without the intervening .wav file.

    I have tried increasing the audio volume and decreasing the background noise using sox :

    sox -v 3.0 Sound\%1 Sound\%1-loud.wav ffmpeg -i Sound\%1-loud.wav -vn -ss 00:00:00 -t 00:00:01 -y Sound\%1-noiseaud.wav
    sox Sound\%1-noiseaud.wav -n noiseprof Sound\%1-noise.prof
    sox Sound\%1 Sound\%1-clean.wav noisered sound\noise.prof 0.21
    ffmpeg -y -i Sound\%1-clean.wav -ac 1 -f s16le -acodec pcm_s16le -ar 16k AddTmp.wav

    with no noticeable effect on the final results.

    If you look at the output you will notice that fsg_search.c has found ADD as the start node, then silence for the remainder. Please help on this.

  • Having issues making an app with py2app ffmpeg and ffprobe

    23 septembre 2024, par Nuno Mesquita

    I have made an app in OSX Python, that uses FFMEG and ffprobe.

    &#xA;

    It runs fine in my VS Code.

    &#xA;

    I want to make a self sustained app, that others can use, without needed to install anything themselves. So, I manually included the static libraries in the bin folder of my main app, and am able to run the app using the libraries inside my bin folder.

    &#xA;

    I have lost many hours trying to figure this out, and am always getting the same error.

    &#xA;

    My best shot was being able to open the app inside app/contents/resources and running via Python, but still have the issue saying that ffprobe is not available.

    &#xA;

    I´m losing my mind...

    &#xA;

    Should I try a completely different approach ?

    &#xA;

    For now, I just want my OSX friends to be able to use the app, then I will want it to run on Windows too, but baby steps.

    &#xA;

    I am not quite sure what to include in setup.py, so I would love to include everything that is in my app folder, to avoid all sorts of errors in missing .pngs and stuff.

    &#xA;

    I also made sure that libraries are executable (they are about 80MB each (ffmpeg and ffprobe))

    &#xA;

    Can anyone help =D ???

    &#xA;

    I described above, tested different ways, checked stuff like redirecting the libraries to the folders of the app :

    &#xA;

    For the last try my setup.py was :

    &#xA;

    from setuptools import setup&#xA;&#xA;APP = [&#x27;mpc.py&#x27;]&#xA;DATA_FILES = [&#xA;    (&#x27;bin&#x27;, [&#x27;./bin/ffmpeg&#x27;, &#x27;./bin/ffprobe&#x27;]),&#xA;    (&#x27;theme/dark&#x27;, [&#x27;./theme/dark/*.png&#x27;]),&#xA;    (&#x27;theme/light&#x27;, [&#x27;./theme/light/*.png&#x27;]),&#xA;    (&#x27;theme&#x27;, [&#x27;./theme/dark.tcl&#x27;, &#x27;./theme/light.tcl&#x27;]),&#xA;    &#x27;.&#x27;,  # Add current directory to ensure everything is included&#xA;]&#xA;&#xA;OPTIONS = {&#xA;    &#x27;argv_emulation&#x27;: False,&#xA;    &#x27;packages&#x27;: [&#x27;pydub&#x27;, &#x27;pygame&#x27;, &#x27;requests&#x27;, &#x27;freesound&#x27;],&#xA;    &#x27;includes&#x27;: [&#x27;pydub&#x27;, &#x27;pygame&#x27;, &#x27;requests&#x27;, &#x27;freesound&#x27;],&#xA;    &#x27;resources&#x27;: [&#x27;./bin/ffmpeg&#x27;, &#x27;./bin/ffprobe&#x27;, &#x27;./theme/dark/*.png&#x27;, &#x27;./theme/light/*.png&#x27;,     &#x27;./theme/dark.tcl&#x27;, &#x27;./theme/light.tcl&#x27;],&#xA;}&#xA;&#xA;setup(&#xA;    app=APP,&#xA;    data_files=DATA_FILES,&#xA;    options={&#x27;py2app&#x27;: OPTIONS},&#xA;    setup_requires=[&#x27;py2app&#x27;],&#xA;)&#xA;

    &#xA;

    And I also had this in the beginning of my Python script :

    &#xA;

    # Set ffmpeg and ffprobe paths relative to the app&#x27;s Resources/bin directory&#xA;app_dir = os.path.dirname(os.path.abspath(__file__)) &#xA;&#xA;# Set ffmpeg and ffprobe paths relative to the app&#x27;s Resources/bin directory&#xA;ffmpeg_path = os.path.join(app_dir, &#x27;bin&#x27;, &#x27;ffmpeg&#x27;)&#xA;ffprobe_path = os.path.join(app_dir, &#x27;bin&#x27;, &#x27;ffprobe&#x27;) &#xA;AudioSegment.converter = ffmpeg_path&#xA;AudioSegment.ffprobe = ffprobe_path&#xA;

    &#xA;

    Don't know what else to try.

    &#xA;

  • Decoding a TCP stream using ffmpeg

    22 août 2011, par JConway

    I am using the Ffmpeg library in an Android application I am writing. I have written the code to open up a local file and decode that using avformat_open_input(). However I need to use Ffmpeg to read in a video stream over TCP. I have found a few things within Ffmpeg such as libavcodec/tcp.h but I can't establish how to actually open up a TCP stream into the decoder.

    Any suggestions would be really appreciated.