Recherche avancée

Médias (1)

Mot : - Tags -/musée

Autres articles (34)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

  • Ajouter des informations spécifiques aux utilisateurs et autres modifications de comportement liées aux auteurs

    12 avril 2011, par

    La manière la plus simple d’ajouter des informations aux auteurs est d’installer le plugin Inscription3. Il permet également de modifier certains comportements liés aux utilisateurs (référez-vous à sa documentation pour plus d’informations).
    Il est également possible d’ajouter des champs aux auteurs en installant les plugins champs extras 2 et Interface pour champs extras.

  • Use, discuss, criticize

    13 avril 2011, par

    Talk to people directly involved in MediaSPIP’s development, or to people around you who could use MediaSPIP to share, enhance or develop their creative projects.
    The bigger the community, the more MediaSPIP’s potential will be explored and the faster the software will evolve.
    A discussion list is available for all exchanges between users.

Sur d’autres sites (7112)

  • avformat/format : temporarily use old next api

    9 février 2018, par Muhammad Faiz
    avformat/format : temporarily use old next api
    

    Should fix https://ffmpeg.org/pipermail/ffmpeg-devel/2018-February/225066.html

    Signed-off-by : Muhammad Faiz <mfcc64@gmail.com>

    • [DH] libavformat/format.c
  • RaspberryPi HLS streaming with nginx and ffmpeg ; v4l2 error : ioctl(VIDIOC_STREAMON) : Protocol error

    22 janvier 2021, par Mirco Weber

    I'm trying to realize a baby monitoring with a Raspberry Pi (Model 4B, 4GB RAM) and an ordinary Webcam (with integrated Mic).&#xA;I followed this Tutorial : https://github.com/DeTeam/webcam-stream/blob/master/Tutorial.md

    &#xA;

    Shortly described :

    &#xA;

      &#xA;
    1. I installed and configured an nginx server with rtmp module enabled.
    2. &#xA;

    3. I installed ffmpeg with this configuration —enable-gpl —enable-nonfree —enable-mmal —enable-omx-rpi
    4. &#xA;

    5. I tried to stream ;)
    6. &#xA;

    &#xA;

    The configuration of nginx seems to be working (sometimes streaming works, the server starts without any complication and when the server is up and running, the webpage is displayed).&#xA;The configuration of ffmpeg seems to be fine as well, since streaming sometimes works...

    &#xA;

    I was trying a couple of different ffmpeg-commands ; all of them are sometimes working and sometimes resulting in an error.&#xA;The command looks like following :

    &#xA;

    ffmpeg -re&#xA;-f v4l2&#xA;-i /dev/video0&#xA;-f alsa&#xA;-ac 1&#xA;-thread_queue_size 4096&#xA;-i hw:CARD=Camera,DEV=0&#xA;-profile:v high&#xA;-level:v 4.1&#xA;-vcodec h264_omx&#xA;-r 10&#xA;-b:v 512k&#xA;-s 640x360&#xA;-acodec aac&#xA;-strict&#xA;-2&#xA;-ac 2&#xA;-ab 32k&#xA;-ar 44100&#xA;-f flv&#xA;rtmp://localhost/show/stream;&#xA;

    &#xA;

    Note : I rearranged the code to make it easier to read. In the terminal, it is all in one line.&#xA;Note : There is no difference when using -f video4linux2 instead of -f v4l2

    &#xA;

    The camera is recognized by the system :

    &#xA;

    pi@raspberrypi:~ $ v4l2-ctl --list-devices&#xA;bcm2835-codec-decode (platform:bcm2835-codec):&#xA;    /dev/video10&#xA;    /dev/video11&#xA;    /dev/video12&#xA;&#xA;bcm2835-isp (platform:bcm2835-isp):&#xA;    /dev/video13&#xA;    /dev/video14&#xA;    /dev/video15&#xA;    /dev/video16&#xA;&#xA;HD Web Camera: HD Web Camera (usb-0000:01:00.0-1.2):&#xA;    /dev/video0&#xA;    /dev/video1&#xA;

    &#xA;

    When only using -i /dev/video0, audio transmission never worked.&#xA;The output of arecord -L was :

    &#xA;

    pi@raspberrypi:~ $ arecord -L&#xA;default&#xA;    Playback/recording through the PulseAudio sound server&#xA;null&#xA;    Discard all samples (playback) or generate zero samples (capture)&#xA;jack&#xA;    JACK Audio Connection Kit&#xA;pulse&#xA;    PulseAudio Sound Server&#xA;usbstream:CARD=Headphones&#xA;    bcm2835 Headphones&#xA;    USB Stream Output&#xA;sysdefault:CARD=Camera&#xA;    HD Web Camera, USB Audio&#xA;    Default Audio Device&#xA;front:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    Front speakers&#xA;surround21:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    2.1 Surround output to Front and Subwoofer speakers&#xA;surround40:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    4.0 Surround output to Front and Rear speakers&#xA;surround41:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    4.1 Surround output to Front, Rear and Subwoofer speakers&#xA;surround50:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    5.0 Surround output to Front, Center and Rear speakers&#xA;surround51:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    5.1 Surround output to Front, Center, Rear and Subwoofer speakers&#xA;surround71:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers&#xA;iec958:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    IEC958 (S/PDIF) Digital Audio Output&#xA;dmix:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    Direct sample mixing device&#xA;dsnoop:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    Direct sample snooping device&#xA;hw:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    Direct hardware device without any conversions&#xA;plughw:CARD=Camera,DEV=0&#xA;    HD Web Camera, USB Audio&#xA;    Hardware device with all software conversions&#xA;usbstream:CARD=Camera&#xA;    HD Web Camera&#xA;    USB Stream Output&#xA;

    &#xA;

    that's why i added -i hw:CARD=Camera,DEV=0.

    &#xA;

    As mentioned above, it worked very well a couple of times with this configuration and commands.&#xA;But very often, i get the following error message when starting to stream :

    &#xA;

    pi@raspberrypi:~ $ ffmpeg -re -f video4linux2 -i /dev/video0 -f alsa -ac 1 -thread_queue_size 4096 -i hw:CARD=Camera,DEV=0 -profile:v high -level:v 4.1 -vcodec h264_omx -r 10 -b:v 512k -s 640x360 -acodec aac -strict -2 -ac 2 -ab 32k -ar 44100 -f flv rtmp://localhost/show/stream&#xA;ffmpeg version N-100673-g553eb07737 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 8 (Raspbian 8.3.0-6&#x2B;rpi1)&#xA;  configuration: --enable-gpl --enable-nonfree --enable-mmal --enable-omx-rpi --extra-ldflags=-latomic&#xA;  libavutil      56. 63.101 / 56. 63.101&#xA;  libavcodec     58.117.101 / 58.117.101&#xA;  libavformat    58. 65.101 / 58. 65.101&#xA;  libavdevice    58. 11.103 / 58. 11.103&#xA;  libavfilter     7. 96.100 /  7. 96.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;[video4linux2,v4l2 @ 0x2ea4600] ioctl(VIDIOC_STREAMON): Protocol error&#xA;/dev/video0: Protocol error&#xA;

    &#xA;

    And when I'm swithing to /dev/video1 (since this was also an output for v4l2-ctl --list-devices), I get the following error message :

    &#xA;

    pi@raspberrypi:~ $ ffmpeg -re -f v4l2 -i /dev/video1 -f alsa -ac 1 -thread_queue_size 4096 -i hw:CARD=Camera,DEV=0 -profile:v high -level:v 4.1 -vcodec h264_omx -r 10 -b:v 512k -s 640x360 -acodec aac -strict -2 -ac 2 -ab 32k -ar 44100 -f flv rtmp://localhost/show/stream&#xA;ffmpeg version N-100673-g553eb07737 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 8 (Raspbian 8.3.0-6&#x2B;rpi1)&#xA;  configuration: --enable-gpl --enable-nonfree --enable-mmal --enable-omx-rpi --extra-ldflags=-latomic&#xA;  libavutil      56. 63.101 / 56. 63.101&#xA;  libavcodec     58.117.101 / 58.117.101&#xA;  libavformat    58. 65.101 / 58. 65.101&#xA;  libavdevice    58. 11.103 / 58. 11.103&#xA;  libavfilter     7. 96.100 /  7. 96.100&#xA;  libswscale      5.  8.100 /  5.  8.100&#xA;  libswresample   3.  8.100 /  3.  8.100&#xA;  libpostproc    55.  8.100 / 55.  8.100&#xA;[video4linux2,v4l2 @ 0x1aa4610] ioctl(VIDIOC_G_INPUT): Inappropriate ioctl for device&#xA;/dev/video1: Inappropriate ioctl for device&#xA;

    &#xA;

    When using the video0 input, the webcam's LED that recognizes an access is constantly on. When using video1not.

    &#xA;

    After hours and days of googling and tears and whiskey, for the sake of my liver, my marriage and my physical and mental health, I'm very sincerly asking for your help...&#xA;What the f**k is happening and what can I do to make it work ???

    &#xA;

    Thanks everybody :)

    &#xA;

    UPDATE 1 :

    &#xA;

      &#xA;
    1. using the full path to ffmpeg does not change anything...
    2. &#xA;

    3. /dev/video0 and /dev/video1 have access rights for everybody
    4. &#xA;

    5. sudo ffmpeg ... does not change anything as well
    6. &#xA;

    7. the problem seems to be at an "early stage". Stripping the command down to ffmpeg -i /dev/video0 results in the same problem
    8. &#xA;

    &#xA;

    UPDATE 2 :
    &#xA;It seems that everything is working when I first start another Application that needs access to the webcam and then ffmpeg...&#xA;Might be some driver issue, but when I'm looking for loaded modules with lsmod, there is absolutely no change before and after I started the application...&#xA;Any help still appreciated...

    &#xA;

    UPDATE 3 :
    &#xA;I was checking the output of dmesg.
    &#xA;When I started the first application I received this message :
    &#xA;uvcvideo: Failed to query (GET_DEF) UVC control 12 on unit 2: -32 (exp. 4).&#xA;
    And when I started ffmpeg, nothing happend but everything worked...

    &#xA;

  • 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;