Recherche avancée

Médias (1)

Mot : - Tags -/remix

Autres articles (96)

  • Multilang : améliorer l’interface pour les blocs multilingues

    18 février 2011, par

    Multilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
    Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Dépôt de média et thèmes par FTP

    31 mai 2013, par

    L’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
    Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...)

Sur d’autres sites (7096)

  • How to record audio with ffmpeg on ubuntu with python ?

    18 juillet 2024, par Dinh Chu

    I encountered the problem of recording output audio on Ubuntu with Python.
I want to record the output sound from the browser.
I used USB Headphone as the output device, then record sounded with FFMPEG.

    


    pactl list short sources

    


    0. alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo.monitor  module-alsa-card.c      s16le 2ch 48000Hz       SUSPENDED
1. alsa_input.usb-0c76_USB_PnP_Audio_Device-00.mono-fallback  module-alsa-card.c      s16le 1ch 48000Hz       SUSPENDED 
2. alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor     module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED


    


    When I run command on Ubuntu, It recorded audio successfully.

    


    ffmpeg -f pulse -i alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo.monitor -t 10 output.wav


    


    However, when I executed the command in the project Python, the error reported :

    


    alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo.monitor: Operation not permitted


    


    or if using orther ouput :

    


    alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor: Operation not permitted


    


    Details can see more attached photos :
enter image description here
Record error :
enter image description here

    


  • How to record audio with ffmpeg on ubuntu 22.04 with python ?

    22 juillet 2024, par Dinh Chu

    I encountered the problem of recording output audio on Ubuntu with Python.
I want to record the output sound from the browser.
I used USB Headphone as the output device, then record sounded with FFMPEG.

    


    pactl list short sources

    


    0. alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo.monitor  module-alsa-card.c      s16le 2ch 48000Hz       SUSPENDED
1. alsa_input.usb-0c76_USB_PnP_Audio_Device-00.mono-fallback  module-alsa-card.c      s16le 1ch 48000Hz       SUSPENDED 
2. alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor     module-alsa-card.c      s16le 2ch 44100Hz       SUSPENDED


    


    When I run command on Ubuntu, It recorded audio successfully.

    


    ffmpeg -f pulse -i alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo.monitor -t 10 output.wav


    


    However, when I executed the command in the project Python, the error reported :

    


    alsa_output.usb-0c76_USB_PnP_Audio_Device-00.analog-stereo.monitor: Operation not permitted


    


    or if using orther ouput :

    


    alsa_output.pci-0000_00_1f.3.iec958-stereo.monitor: Operation not permitted


    


    Details can see more attached photos :
enter image description here
Record error :
enter image description here

    


  • Unable to find suitable output format for 'libmp3lame' and 'flv'

    24 février 2017, par user2108727

    Currently I am trying to setup a livestream using ffmpeg in Kubuntu. I got really far, but unfortunately I cannot figure out one bit that mentions output format errors. Here’s the code I am using for my .sh file :

    #! /bin/bash

    # streaming on Ubuntu via ffmpeg.
    # see http://ubuntuguide.org/wiki/Screencasts for full documentation

    # input resolution, currently fullscreen.
    # you can set it manually in the format "WIDTHxHEIGHT" instead.
    INRES="1920x1200"

    # output resolution.
    # keep the aspect ratio the same or your stream will not fill the display.
    OUTRES="1280x720"

    # input audio. You can use "/dev/dsp" for your primary audio input.
    #INAUD="pulse"

    # target fps
    FPS="30"

    # video preset quality level.
    # more FFMPEG presets avaiable in /usr/share/ffmpeg
    QUAL="ultrafast"

    # stream key. You can set this manually, or reference it from a hidden file    
    like what is done here.
    STREAM_KEY=$(cat ~/.twitch_key)

    # stream url. Note the formats for twitch.tv and justin.tv
    # twitch:"rtmp://live.twitch.tv/app/$STREAM_KEY"
    # justin:"rtmp://live.justin.tv/app/$STREAM_KEY"
    STREAM_URL="rtmp://live-cdg.twitch.tv/app/$STREAM_KEY"

    ffmpeg \
    -f alsa -ac 2 -i "$INAUD" \
    -f x11grab -s "$INRES" -r "$FPS" -i :50.0 \
    -vcodec libx264 -s "$OUTRES" -preset "$QUAL" -crf 22\
    -acodec libmp3lame -threads 6 -q:a 0 -b:a 160k \
    -f flv -ar 44100 "$STREAM_URL"

    Now the issue is that whenever I run the .sh file, I get an error at the end saying

    Unable to find a suitable output format for 'libmp3lame'
    libmp3lame: Invalid argument

    So I decided to troubleshoot by removing the audio line at the bottom and it just turned into

    Unable to find a suitable output format for 'flv'
    flv: Invalid argument

    Something tells me this is because the stream key is not defined properly, but I have no idea whatsoever how to fix this.

    So does anyone have an idea ?
    Thanks in advance !

    Misterff1