Recherche avancée

Médias (1)

Mot : - Tags -/book

Autres articles (71)

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

  • Menus personnalisés

    14 novembre 2010, par

    MediaSPIP utilise le plugin Menus pour gérer plusieurs menus configurables pour la navigation.
    Cela permet de laisser aux administrateurs de canaux la possibilité de configurer finement ces menus.
    Menus créés à l’initialisation du site
    Par défaut trois menus sont créés automatiquement à l’initialisation du site : Le menu principal ; Identifiant : barrenav ; Ce menu s’insère en général en haut de la page après le bloc d’entête, son identifiant le rend compatible avec les squelettes basés sur Zpip ; (...)

  • Déploiements possibles

    31 janvier 2010, par

    Deux types de déploiements sont envisageable dépendant de deux aspects : La méthode d’installation envisagée (en standalone ou en ferme) ; Le nombre d’encodages journaliers et la fréquentation envisagés ;
    L’encodage de vidéos est un processus lourd consommant énormément de ressources système (CPU et RAM), il est nécessaire de prendre tout cela en considération. Ce système n’est donc possible que sur un ou plusieurs serveurs dédiés.
    Version mono serveur
    La version mono serveur consiste à n’utiliser qu’une (...)

Sur d’autres sites (12384)

  • avcodec/movtextenc : Check for too many styles

    20 février 2021, par Andreas Rheinhardt
    avcodec/movtextenc : Check for too many styles
    

    The counter for the number of styles is written on two bytes, ergo
    anything > UINT16_MAX is invalid. This also fixes a compiler warning
    because of a tautologically true check on 64bit systems.

    Reviewed-by : Philip Langdale <philipl@overt.org>
    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavcodec/movtextenc.c
  • avutil/video_enc_params : Combine overflow checks

    14 février 2021, par Andreas Rheinhardt
    avutil/video_enc_params : Combine overflow checks
    

    This patch also fixes a -Wtautological-constant-out-of-range-compare
    warning from Clang and a -Wtype-limits warning from GCC on systems
    where size_t is 64bits and unsigned 32bits. The reason for this seems
    to be that variable (whose value derives from sizeof() and can therefore
    be known at compile-time) is used instead of using sizeof() directly in
    the comparison.

    Signed-off-by : Andreas Rheinhardt <andreas.rheinhardt@gmail.com>

    • [DH] libavutil/video_enc_params.c
  • Using ffmpeg on Ubuntu, how can the audio and video from an audio-video USB capture device be recorded ?

    11 avril 2022, par BlandCorporation

    I have a USB audio-video capture device, something used to digitize video cassettes. I want to record both the video and audio from the device to a video file that has dimensions 720x576 and video codec H.264 and good audio quality.

    &#xA;

    I am able to record video from the device using ffmpeg and I am able to see video from the device using MPlayer. I am able also to see that audio is being delivered from the device to the computer by looking at Input tab of the Sound Preferences window or by recording the audio using Audacity, however the audio gets delivered from the device apparently only when the video is being accessed using ffmpeg or MPlayer.

    &#xA;

    I have tried to get ffmpeg to record the audio and I have tried to get MPlayer to play the audio and my efforts have not been successful.

    &#xA;

    The device is "Pinnacle Dazzle DVC 90/100/101" (as returned by v4l2-ctl --list-devices). The sound cards listing shows it as "DVC100" :

    &#xA;

    $ cat /proc/asound/cards &#xA; 0 [PCH            ]: HDA-Intel - HDA Intel PCH&#xA;                      HDA Intel PCH at 0x601d118000 irq 171&#xA; 1 [DVC100         ]: USB-Audio - DVC100&#xA;                      Pinnacle Systems GmbH DVC100 at usb-0000:00:14.0-4, high speed&#xA;29 [ThinkPadEC     ]: ThinkPad EC - ThinkPad Console Audio Control&#xA;                      ThinkPad Console Audio Control at EC reg 0x30, fw N2LHT33W&#xA;

    &#xA;

    The PulseAudio listing for the device is as follows :

    &#xA;

    $ pactl list cards short&#xA;0   alsa_card.pci-0000_00_1f.3  module-alsa-card.c&#xA;14  alsa_card.usb-Pinnacle_Systems_GmbH_DVC100-01   module-alsa-card.c&#xA;

    &#xA;

    The following ffmpeg command successfully records video, but records severely distorted, broken and out-of-sync audio :

    &#xA;

    ffmpeg -y -f rawvideo -f alsa -thread_queue_size 2048 -ar 48000 -i hw:0 \&#xA;    -c:a aac -video_size 720x576 -pixel_format uyvy422 -i /dev/video2 out.mp4&#xA;

    &#xA;

    The following MPlayer command successfully displays the video but does not play the audio :

    &#xA;

    mplayer -tv driver=v4l2:norm=PAL:device=/dev/video2:width=720:height=576 \&#xA;    -ao alsa:device=hw=1.0 -vf pp=lb tv://&#xA;

    &#xA;

    Now, when the above MPlayer command is running (not the ffmpeg command) and displaying the input video in a window, Audacity can be opened and set recording audio, and it records the audio from the device clearly and in good quality. While Audacity is doing this, the input device is listed in pavucontrol as "Dazzle DVC Audio Device Analogue Stereo". Equivalently, arecord can be used also to record the audio using the following command (with output shown) :

    &#xA;

    $ arecord -vv -D plughw:DVC100 -fdat out.wav&#xA;Recording WAVE &#x27;out.wav&#x27; : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo&#xA;Plug PCM: Hardware PCM card 1 &#x27;DVC100&#x27; device 0 subdevice 0&#xA;Its setup is:&#xA;  stream       : CAPTURE&#xA;  access       : RW_INTERLEAVED&#xA;  format       : S16_LE&#xA;  subformat    : STD&#xA;  channels     : 2&#xA;  rate         : 48000&#xA;  exact rate   : 48000 (48000/1)&#xA;  msbits       : 16&#xA;  buffer_size  : 24000&#xA;  period_size  : 6000&#xA;  period_time  : 125000&#xA;  tstamp_mode  : NONE&#xA;  tstamp_type  : MONOTONIC&#xA;  period_step  : 1&#xA;  avail_min    : 6000&#xA;  period_event : 0&#xA;  start_threshold  : 1&#xA;  stop_threshold   : 24000&#xA;  silence_threshold: 0&#xA;  silence_size : 0&#xA;  boundary     : 6755399441055744000&#xA;  appl_ptr     : 0&#xA;  hw_ptr       : 0&#xA;

    &#xA;

    Looking at the output of arecord -L, I tried a variety of audio device input names with ffmpeg and none of them seemed to work. So, for example, I tried commands like the following :

    &#xA;

    ffmpeg -y -f rawvideo -f alsa -i plughw:DVC100 \&#xA;    -video_size 720x576 -pixel_format uyvy422 -i /dev/video2 out.mp4&#xA;

    &#xA;

    And tried the following audio device names :

    &#xA;

    plughw:DVC100&#xA;plughw:CARD=DVC100,DEV=0&#xA;hw:CARD=DVC100,DEV=0&#xA;plughw:CARD=DVC100&#xA;sysdefault:CARD=DVC100&#xA;iec958:CARD=DVC100,DEV=0&#xA;dsnoop:CARD=DVC100,DEV=0&#xA;

    &#xA;

    So, how might I get ffmpeg to record the audio successfully to the video file ? Is there some alternative approach to this problem ?

    &#xA;


    &#xA;

    EDIT : The relevant output from the command pactl list sources is as follows :

    &#xA;

    Source #20&#xA;    State: SUSPENDED&#xA;    Name: alsa_input.usb-Pinnacle_Systems_GmbH_DVC100-01.analog-stereo&#xA;    Description: Dazzle DVC100 Audio Device Analogue Stereo&#xA;    Driver: module-alsa-card.c&#xA;    Sample Specification: s16le 2ch 48000Hz&#xA;    Channel Map: front-left,front-right&#xA;    Owner Module: 45&#xA;    Mute: no&#xA;    Volume: front-left: 99957 / 153% / 11.00 dB,   front-right: 99957 / 153% / 11.00 dB&#xA;            balance 0.00&#xA;    Base Volume: 35466 /  54% / -16.00 dB&#xA;    Monitor of Sink: n/a&#xA;    Latency: 0 usec, configured 0 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 = "USB Audio"&#xA;        alsa.id = "USB Audio"&#xA;        alsa.subdevice = "0"&#xA;        alsa.subdevice_name = "subdevice #0"&#xA;        alsa.device = "0"&#xA;        alsa.card = "1"&#xA;        alsa.card_name = "DVC100"&#xA;        alsa.long_card_name = "Pinnacle Systems GmbH DVC100 at usb-0000:00:14.0-4, high speed"&#xA;        alsa.driver_name = "snd_usb_audio"&#xA;        device.bus_path = "pci-0000:00:14.0-usb-0:4:1.1"&#xA;        sysfs.path = "/devices/pci0000:00/0000:00:14.0/usb1/1-4/1-4:1.1/sound/card1"&#xA;        udev.id = "usb-Pinnacle_Systems_GmbH_DVC100-01"&#xA;        device.bus = "usb"&#xA;        device.vendor.id = "2304"&#xA;        device.vendor.name = "Pinnacle Systems, Inc."&#xA;        device.product.id = "021a"&#xA;        device.product.name = "Dazzle DVC100 Audio Device"&#xA;        device.serial = "Pinnacle_Systems_GmbH_DVC100"&#xA;        device.string = "front:1"&#xA;        device.buffering.buffer_size = "352800"&#xA;        device.buffering.fragment_size = "176400"&#xA;        device.access_mode = "mmap&#x2B;timer"&#xA;        device.profile.name = "analog-stereo"&#xA;        device.profile.description = "Analogue Stereo"&#xA;        device.description = "Dazzle DVC100 Audio Device Analogue Stereo"&#xA;        alsa.mixer_name = "USB Mixer"&#xA;        alsa.components = "USB2304:021a"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card-usb"&#xA;    Ports:&#xA;        analog-input-linein: Line In (priority: 8100)&#xA;    Active Port: analog-input-linein&#xA;    Formats:&#xA;        pcm&#xA;

    &#xA;

    I tested the name from this with ffmpeg (version 4.3.1, compiled with -enable-libpulse) in the following way :

    &#xA;

    ffmpeg -y -f video4linux2 -f pulse \&#xA;    -i alsa_input.usb-Pinnacle_Systems_GmbH_DVC100-01.analog-stereo \&#xA;    -video_size 720x576 -pixel_format uyvy422 -i /dev/video2 out.mp4&#xA;

    &#xA;

    Unfortunately this hasn't worked.

    &#xA;