Recherche avancée

Médias (3)

Mot : - Tags -/pdf

Autres articles (81)

  • 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

  • Le plugin : Podcasts.

    14 juillet 2010, par

    Le problème du podcasting est à nouveau un problème révélateur de la normalisation des transports de données sur Internet.
    Deux formats intéressants existent : Celui développé par Apple, très axé sur l’utilisation d’iTunes dont la SPEC est ici ; Le format "Media RSS Module" qui est plus "libre" notamment soutenu par Yahoo et le logiciel Miro ;
    Types de fichiers supportés dans les flux
    Le format d’Apple n’autorise que les formats suivants dans ses flux : .mp3 audio/mpeg .m4a audio/x-m4a .mp4 (...)

  • ANNEXE : Les plugins utilisés spécifiquement pour la ferme

    5 mars 2010, par

    Le site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)

Sur d’autres sites (11606)

  • avcodec/v4l2_m2m : handle v4l2 end of stream event

    1er avril 2020, par Ming Qian
    avcodec/v4l2_m2m : handle v4l2 end of stream event
    

    When flushing the capture buffers, the driver may send a V4L2_EVENT_EOS
    to notify that draining is completed. Currently, v4l2_m2m does not
    subscribe to this event, which can cause some devices (i.e. imx8qm) to
    hang at the end of encoding/decoding. Support for handling the event is
    added in this commit.

    Some devices may not signal V4L2_EVENT_EOS. This is logged as a warning
    message during initialization and not treated as a fatal error.

    Signed-off-by : Ming Qian <ming.qian@nxp.com>
    Signed-off-by : Andriy Gelman <andriy.gelman@gmail.com>

    • [DH] libavcodec/v4l2_context.c
    • [DH] libavcodec/v4l2_m2m_dec.c
    • [DH] libavcodec/v4l2_m2m_enc.c
  • How do I stream audio from a mic in a raspberry pi with FFmpeg ?

    23 mars 2024, par Ignacio

    I'm trying to follow this to stream audio from a mic in my raspberry pi.

    &#xA;

    ignacio@pi-satellite-bigbedroom:~ $ ffmpeg -re -f pulse -ac 1 -i plughw:CARD=seeed2micvoicec,DEV=0 -f rtsp -rtsp_transport tcp rtsp://192.168.86.151:8554/live.stream&#xA;ffmpeg version 4.3.6-0&#x2B;deb11u1&#x2B;rpt5 Copyright (c) 2000-2023 the FFmpeg developers&#xA;  built with gcc 10 (Debian 10.2.1-6)&#xA;  configuration: --prefix=/usr --extra-version=0&#x2B;deb11u1&#x2B;rpt5 --toolchain=hardened --incdir=/usr/include/aarch64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --disable-mmal --enable-neon --enable-v4l2-request --enable-libudev --enable-epoxy --enable-sand --libdir=/usr/lib/aarch64-linux-gnu --arch=arm64 --enable-pocketsphinx --enable-libdc1394 --enable-libdrm --enable-vout-drm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  libavutil      56. 51.100 / 56. 51.100&#xA;  libavcodec     58. 91.100 / 58. 91.100&#xA;  libavformat    58. 45.100 / 58. 45.100&#xA;  libavdevice    58. 10.100 / 58. 10.100&#xA;  libavfilter     7. 85.100 /  7. 85.100&#xA;  libavresample   4.  0.  0 /  4.  0.  0&#xA;  libswscale      5.  7.100 /  5.  7.100&#xA;  libswresample   3.  7.100 /  3.  7.100&#xA;  libpostproc    55.  7.100 / 55.  7.100&#xA;plughw:CARD=seeed2micvoicec,DEV=0: No such process&#xA;

    &#xA;

    I believe this shows the cards I have :

    &#xA;

    ignacio@pi-satellite-bigbedroom:~ $ pactl list sources&#xA;Source #0&#xA;    State: SUSPENDED&#xA;    Name: alsa_output.platform-bcm2835_audio.analog-stereo.monitor&#xA;    Description: Monitor of Built-in Audio Analog Stereo&#xA;    Driver: module-alsa-card.c&#xA;    Sample Specification: s16le 2ch 44100Hz&#xA;    Channel Map: front-left,front-right&#xA;    Owner Module: 4&#xA;    Mute: no&#xA;    Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB&#xA;            balance 0.00&#xA;    Base Volume: 65536 / 100% / 0.00 dB&#xA;    Monitor of Sink: alsa_output.platform-bcm2835_audio.analog-stereo&#xA;    Latency: 0 usec, configured 0 usec&#xA;    Flags: DECIBEL_VOLUME LATENCY &#xA;    Properties:&#xA;        device.description = "Monitor of Built-in Audio Analog Stereo"&#xA;        device.class = "monitor"&#xA;        alsa.card = "0"&#xA;        alsa.card_name = "bcm2835 Headphones"&#xA;        alsa.long_card_name = "bcm2835 Headphones"&#xA;        alsa.driver_name = "snd_bcm2835"&#xA;        device.bus_path = "platform-bcm2835_audio"&#xA;        sysfs.path = "/devices/platform/soc/3f00b840.mailbox/bcm2835_audio/sound/card0"&#xA;        device.form_factor = "internal"&#xA;        device.string = "0"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card"&#xA;    Formats:&#xA;        pcm&#xA;&#xA;Source #1&#xA;    State: IDLE&#xA;    Name: alsa_output.platform-soc_sound.stereo-fallback.monitor&#xA;    Description: Monitor of Built-in Audio Stereo&#xA;    Driver: module-alsa-card.c&#xA;    Sample Specification: s16le 2ch 44100Hz&#xA;    Channel Map: front-left,front-right&#xA;    Owner Module: 12&#xA;    Mute: no&#xA;    Volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB&#xA;            balance 0.00&#xA;    Base Volume: 65536 / 100% / 0.00 dB&#xA;    Monitor of Sink: alsa_output.platform-soc_sound.stereo-fallback&#xA;    Latency: 0 usec, configured 2000000 usec&#xA;    Flags: DECIBEL_VOLUME LATENCY &#xA;    Properties:&#xA;        device.description = "Monitor of Built-in Audio Stereo"&#xA;        device.class = "monitor"&#xA;        alsa.card = "2"&#xA;        alsa.card_name = "seeed-2mic-voicecard"&#xA;        alsa.long_card_name = "seeed-2mic-voicecard"&#xA;        alsa.driver_name = "snd_soc_simple_card"&#xA;        device.bus_path = "platform-soc:sound"&#xA;        sysfs.path = "/devices/platform/soc/soc:sound/sound/card2"&#xA;        device.form_factor = "internal"&#xA;        device.string = "2"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card"&#xA;    Formats:&#xA;        pcm&#xA;&#xA;Source #2&#xA;    State: RUNNING&#xA;    Name: alsa_input.platform-soc_sound.stereo-fallback&#xA;    Description: Built-in Audio Stereo&#xA;    Driver: module-alsa-card.c&#xA;    Sample Specification: s16le 2ch 44100Hz&#xA;    Channel Map: front-left,front-right&#xA;    Owner Module: 12&#xA;    Mute: no&#xA;    Volume: front-left: 32845 /  50% / -18.00 dB,   front-right: 32845 /  50% / -18.00 dB&#xA;            balance 0.00&#xA;    Base Volume: 20724 /  32% / -30.00 dB&#xA;    Monitor of Sink: n/a&#xA;    Latency: 688 usec, configured 10000 usec&#xA;    Flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY &#xA;    Properties:&#xA;        alsa.resolution_bits = "16"&#xA;        device.api = "alsa"&#xA;        device.class = "sound"&#xA;        alsa.class = "generic"&#xA;        alsa.subclass = "generic-mix"&#xA;        alsa.name = "bcm2835-i2s-wm8960-hifi wm8960-hifi-0"&#xA;        alsa.id = "bcm2835-i2s-wm8960-hifi wm8960-hifi-0"&#xA;        alsa.subdevice = "0"&#xA;        alsa.subdevice_name = "subdevice #0"&#xA;        alsa.device = "0"&#xA;        alsa.card = "2"&#xA;        alsa.card_name = "seeed-2mic-voicecard"&#xA;        alsa.long_card_name = "seeed-2mic-voicecard"&#xA;        alsa.driver_name = "snd_soc_simple_card"&#xA;        device.bus_path = "platform-soc:sound"&#xA;        sysfs.path = "/devices/platform/soc/soc:sound/sound/card2"&#xA;        device.form_factor = "internal"&#xA;        device.string = "hw:2"&#xA;        device.buffering.buffer_size = "352800"&#xA;        device.buffering.fragment_size = "176400"&#xA;        device.access_mode = "mmap&#x2B;timer"&#xA;        device.profile.name = "stereo-fallback"&#xA;        device.profile.description = "Stereo"&#xA;        device.description = "Built-in Audio Stereo"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card"&#xA;    Ports:&#xA;        analog-input: Analog Input (type: Analog, priority: 10000, availability unknown)&#xA;    Active Port: analog-input&#xA;    Formats:&#xA;        pcm&#xA;

    &#xA;

    I want to use the mic from the seeed-2mic-voicecard.

    &#xA;

    Thanks for the help

    &#xA;

  • modprobe snd-dummy on linux server, ffmpeg -f alsa is recording noise

    20 mars 2021, par booksword

    Some people say that the parameter fake_buffer can remove the noise, but I tried it and there is still noise

    &#xA;

    &#xA;

    modprobe snd-dummy fake_buffer=0

    &#xA;

    &#xA;

    #modprobe snd-dummy fake_buffer=0 &#xA;# lsmod |grep snd&#xA;snd_dummy              24576  0&#xA;snd_pcm_oss            61440  0&#xA;snd_mixer_oss          28672  1 snd_pcm_oss&#xA;snd_pcm               118784  2 snd_pcm_oss,snd_dummy&#xA;snd_timer              36864  1 snd_pcm&#xA;snd                    94208  5 snd_timer,snd_pcm_oss,snd_pcm,snd_dummy,snd_mixer_oss&#xA;soundcore              16384  1 snd&#xA;# modinfo snd_dummy&#xA;filename:       /lib/modules/4.14.129-bbrplus/kernel/sound/drivers/snd-dummy.ko&#xA;license:        GPL&#xA;description:    Dummy soundcard (/dev/null)&#xA;author:         Jaroslav Kysela &lt;perex@perex.cz&gt;&#xA;depends:        snd-pcm,snd&#xA;retpoline:      Y&#xA;intree:         Y&#xA;name:           snd_dummy&#xA;vermagic:       4.14.129-bbrplus SMP mod_unload modversions &#xA;parm:           index:Index value for dummy soundcard. (array of int)&#xA;parm:           id:ID string for dummy soundcard. (array of charp)&#xA;parm:           enable:Enable this dummy soundcard. (array of bool)&#xA;parm:           model:Soundcard model. (array of charp)&#xA;parm:           pcm_devs:PCM devices # (0-4) for dummy driver. (array of int)&#xA;parm:           pcm_substreams:PCM substreams # (1-128) for dummy driver. (array of int)&#xA;parm:           fake_buffer:Fake buffer allocations. (bool)&#xA;parm:           hrtimer:Use hrtimer as the timer source. (bool)&#xA;&#xA;#aplay -L&#xA;null&#xA;    Discard all samples (playback) or generate zero samples (capture)&#xA;pulse&#xA;    PulseAudio Sound Server&#xA;dummy&#xA;default:CARD=Dummy&#xA;    Dummy, Dummy PCM&#xA;    Default Audio Device&#xA;sysdefault:CARD=Dummy&#xA;    Dummy, Dummy PCM&#xA;    Default Audio Device&#xA;dmix:CARD=Dummy,DEV=0&#xA;    Dummy, Dummy PCM&#xA;    Direct sample mixing device&#xA;dsnoop:CARD=Dummy,DEV=0&#xA;    Dummy, Dummy PCM&#xA;    Direct sample snooping device&#xA;hw:CARD=Dummy,DEV=0&#xA;    Dummy, Dummy PCM&#xA;    Direct hardware device without any conversions&#xA;plughw:CARD=Dummy,DEV=0&#xA;    Dummy, Dummy PCM&#xA;    Hardware device with all software conversions&#xA;&#xA;&#xA;# ffmpeg -f alsa  -i hw:0 -t 5  /dev/shm/out.mp3 -y&#xA;ffmpeg version 3.4.8-0ubuntu0.2 Copyright (c) 2000-2020 the FFmpeg developers&#xA;  built with gcc 7 (Ubuntu 7.5.0-3ubuntu1~18.04)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.2 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-librsvg --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared&#xA;  libavutil      55. 78.100 / 55. 78.100&#xA;  libavcodec     57.107.100 / 57.107.100&#xA;  libavformat    57. 83.100 / 57. 83.100&#xA;  libavdevice    57. 10.100 / 57. 10.100&#xA;  libavfilter     6.107.100 /  6.107.100&#xA;  libavresample   3.  7.  0 /  3.  7.  0&#xA;  libswscale      4.  8.100 /  4.  8.100&#xA;  libswresample   2.  9.100 /  2.  9.100&#xA;  libpostproc    54.  7.100 / 54.  7.100&#xA;Guessed Channel Layout for Input Stream #0.0 : stereo&#xA;Input #0, alsa, from &#x27;hw:0&#x27;:&#xA;  Duration: N/A, start: 1616225206.353453, bitrate: 1536 kb/s&#xA;    Stream #0:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s&#xA;Stream mapping:&#xA;  Stream #0:0 -> #0:0 (pcm_s16le (native) -> mp3 (libmp3lame))&#xA;Press [q] to stop, [?] for help&#xA;Output #0, mp3, to &#x27;/dev/shm/out.mp3&#x27;:&#xA;  Metadata:&#xA;    TSSE            : Lavf57.83.100&#xA;    Stream #0:0: Audio: mp3 (libmp3lame), 48000 Hz, stereo, s16p&#xA;    Metadata:&#xA;      encoder         : Lavc57.107.100 libmp3lame&#xA;size=      79kB time=00:00:05.01 bitrate= 129.0kbits/s speed=   1x     &#xA;video:0kB audio:79kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.293899%&#xA;&#xA;&#xA;

    &#xA;

    i use alsamixer to set all Volume to 0 ,and there is still noise&#xA;I searched in google for a long time and did not find other people have this problem , where am I doing it wrong

    &#xA;