Recherche avancée

Médias (91)

Autres articles (104)

  • Organiser par catégorie

    17 mai 2013, par

    Dans MédiaSPIP, une rubrique a 2 noms : catégorie et rubrique.
    Les différents documents stockés dans MédiaSPIP peuvent être rangés dans différentes catégories. On peut créer une catégorie en cliquant sur "publier une catégorie" dans le menu publier en haut à droite ( après authentification ). Une catégorie peut être rangée dans une autre catégorie aussi ce qui fait qu’on peut construire une arborescence de catégories.
    Lors de la publication prochaine d’un document, la nouvelle catégorie créée sera proposée (...)

  • Récupération d’informations sur le site maître à l’installation d’une instance

    26 novembre 2010, par

    Utilité
    Sur le site principal, une instance de mutualisation est définie par plusieurs choses : Les données dans la table spip_mutus ; Son logo ; Son auteur principal (id_admin dans la table spip_mutus correspondant à un id_auteur de la table spip_auteurs)qui sera le seul à pouvoir créer définitivement l’instance de mutualisation ;
    Il peut donc être tout à fait judicieux de vouloir récupérer certaines de ces informations afin de compléter l’installation d’une instance pour, par exemple : récupérer le (...)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

Sur d’autres sites (10954)

  • ffmpeg : How to limit bit rate of video output ?

    27 mars 2017, par Mat

    To a 2GB raw video file taken in front of a greenscreen I want to add the alpha channel.

    My problem is : the output files appear much too large to me (about 20-fold the size of the input), and OpenShot, the video editor, seems unable to handle such huge files. Comparing file properties of input and output shows bitrates of about 15k in the infiles, and 150k-250k in the result files, which seems to pinpoint the problem.

    (By the way, I also want to discard the first part of the clip as well as its audio channel and reduce the frame rate from 30 to 24 fps in the process, which all works fine.)

    This is my command :

    ffmpeg.exe -i  -vf chromakey=0x007d06:0.15:0.0 -ss 40.420 -r 24 -b:v 15840k -maxrate 15840k -bufsize 15840k -an -c:v <encoder>
    </encoder>

    The parameters as I understand them :

    -i  ... infile
    -vf chromakey=0x007d06:0.15:0.0 ... chroma, tolerance &amp; blend of greenscreens
    -ss 40.420 ... skip before second 40.420 (this works)
    -r 24 ... frame rate (this works, too)
    -b:v 15804k ... bitrate (seemingly no effect)
    -maxrate 15840k ... maximum BitRate (seemingly no effect)
    -bufzise 15840k ... Buffer size (can't tell)
    -an ... no audio channel (works fine)
    -c:v <encoder> ... Video Encoder (ffvhuff, png, qtrle and tiff were tried, all to the same result)
    ... outfile
    </encoder>

    b, maxrate and bufsize are described as global options. No matter what setting, during the process bitrates of up to some 3000000kbits/s (tiff) are reported.

    (I also added -pixel_format argb, but this, too, seemed to be ignored, ffmpeg always reports to write yuva420p.)

    What am I missing ?

  • How to record the bluetooth audio from my phone in my pc using ffmpeg ?

    12 septembre 2023, par Juan Inzunza

    I have my phone connected via Bluetooth to my PC and playing audio in my phone so i can hear that audio in my pc and i was trying to record that audio in my PC using ffmpeg this is the command i got so far

    &#xA;

    ffmpeg -f pulse -ac 1 -ar 44100 -i alsa_input.usb-KTMicro_KT_USB_Audio_2021-06-25-0000-0000-0000--00.mono-fallback -f pulse -ac 2 -ar 44100 -i bluez_source.84_5F_04_75_B9_F6.a2dp_source -filter_complex amix=inputs=2 -i /dev/video5 -s 640x480 -vcodec libx264 -preset veryfast -crf 18 -acodec libmp3lame -ar 44100 -q:a 1 -pix_fmt yuv420p -aq 0 ~/Videos&#xA;

    &#xA;

    "bluez_source.84_5F_04_75_B9_F6.a2dp_source" is the name of the bluetooth audio source (my phone) but the problem is, if i am not playing audio on the device, just disappears when i execute this command "pactl list sources", and appears again when i play audio, so is listed when i run "pactl list sources" and i have to keep the phone playing audio so ffmpeg recognizes that device and not fail when executed.

    &#xA;

    Finally my question is how can i keep that device in running state or suspended state without need to play audio all the time.

    &#xA;

    gandalf@Mordor:~$ pactl list sources&#xA;Source #64&#xA;    State: IDLE&#xA;    Name: alsa_output.usb-KTMicro_KT_USB_Audio_2021-06-25-0000-0000-0000--00.analog-stereo.monitor&#xA;    Description: Monitor of KT USB 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: 85&#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.usb-KTMicro_KT_USB_Audio_2021-06-25-0000-0000-0000--00.analog-stereo&#xA;    Latency: 0 usec, configured 2000000 usec&#xA;    Flags: DECIBEL_VOLUME LATENCY &#xA;    Properties:&#xA;        device.description = "Monitor of KT USB Audio Analog Stereo"&#xA;        device.class = "monitor"&#xA;        alsa.card = "1"&#xA;        alsa.card_name = "KT USB Audio"&#xA;        alsa.long_card_name = "KTMicro KT USB Audio at usb-0000:03:00.3-3, full speed"&#xA;        alsa.driver_name = "snd_usb_audio"&#xA;        device.bus_path = "pci-0000:03:00.3-usb-0:3:1.0"&#xA;        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.3/usb1/1-3/1-3:1.0/sound/card1"&#xA;        udev.id = "usb-KTMicro_KT_USB_Audio_2021-06-25-0000-0000-0000--00"&#xA;        device.bus = "usb"&#xA;        device.vendor.id = "12d1"&#xA;        device.vendor.name = "Huawei Technologies Co., Ltd."&#xA;        device.product.id = "0010"&#xA;        device.product.name = "KT USB Audio"&#xA;        device.serial = "KTMicro_KT_USB_Audio_2021-06-25-0000-0000-0000-"&#xA;        device.string = "1"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card-usb"&#xA;    Formats:&#xA;        pcm&#xA;&#xA;Source #65&#xA;    State: SUSPENDED&#xA;    Name: alsa_input.usb-KTMicro_KT_USB_Audio_2021-06-25-0000-0000-0000--00.mono-fallback&#xA;    Description: KT USB Audio Mono&#xA;    Driver: module-alsa-card.c&#xA;    Sample Specification: s16le 1ch 44100Hz&#xA;    Channel Map: mono&#xA;    Owner Module: 85&#xA;    Mute: no&#xA;    Volume: mono: 65536 / 100% / 0.00 dB&#xA;            balance 0.00&#xA;    Base Volume: 65536 / 100% / 0.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 = "KT USB Audio"&#xA;        alsa.long_card_name = "KTMicro KT USB Audio at usb-0000:03:00.3-3, full speed"&#xA;        alsa.driver_name = "snd_usb_audio"&#xA;        device.bus_path = "pci-0000:03:00.3-usb-0:3:1.0"&#xA;        sysfs.path = "/devices/pci0000:00/0000:00:08.1/0000:03:00.3/usb1/1-3/1-3:1.0/sound/card1"&#xA;        udev.id = "usb-KTMicro_KT_USB_Audio_2021-06-25-0000-0000-0000--00"&#xA;        device.bus = "usb"&#xA;        device.vendor.id = "12d1"&#xA;        device.vendor.name = "Huawei Technologies Co., Ltd."&#xA;        device.product.id = "0010"&#xA;        device.product.name = "KT USB Audio"&#xA;        device.serial = "KTMicro_KT_USB_Audio_2021-06-25-0000-0000-0000-"&#xA;        device.string = "hw:1"&#xA;        device.buffering.buffer_size = "176400"&#xA;        device.buffering.fragment_size = "88200"&#xA;        device.access_mode = "mmap&#x2B;timer"&#xA;        device.profile.name = "mono-fallback"&#xA;        device.profile.description = "Mono"&#xA;        device.description = "KT USB Audio Mono"&#xA;        module-udev-detect.discovered = "1"&#xA;        device.icon_name = "audio-card-usb"&#xA;    Ports:&#xA;        analog-input-mic: Microphone (type: Mic, priority: 8700, availability unknown)&#xA;    Active Port: analog-input-mic&#xA;    Formats:&#xA;        pcm&#xA;&#xA;Source #68&#xA;    State: RUNNING&#xA;    Name: bluez_source.84_5F_04_75_B9_F6.a2dp_source&#xA;    Description: Juan&#x27;s S20 FE&#xA;    Driver: module-bluez5-device.c&#xA;    Sample Specification: s16le 2ch 44100Hz&#xA;    Channel Map: front-left,front-right&#xA;    Owner Module: 23&#xA;    Mute: no&#xA;    Volume: front-left: 53151 /  81% / -5.46 dB,   front-right: 53151 /  81% / -5.46 dB&#xA;            balance 0.00&#xA;    Base Volume: 65536 / 100% / 0.00 dB&#xA;    Monitor of Sink: n/a&#xA;    Latency: 68928 usec, configured 68537 usec&#xA;    Flags: HARDWARE DECIBEL_VOLUME LATENCY &#xA;    Properties:&#xA;        bluetooth.protocol = "a2dp_source"&#xA;        bluetooth.codec = "sbc"&#xA;        device.description = "Juan&#x27;s S20 FE"&#xA;        device.string = "84:5F:04:75:B9:F6"&#xA;        device.api = "bluez"&#xA;        device.class = "sound"&#xA;        device.bus = "bluetooth"&#xA;        device.form_factor = "phone"&#xA;        bluez.path = "/org/bluez/hci0/dev_84_5F_04_75_B9_F6"&#xA;        bluez.class = "0x5a020c"&#xA;        bluez.alias = "Juan&#x27;s S20 FE"&#xA;        device.icon_name = "audio-card-bluetooth"&#xA;    Ports:&#xA;        phone-input: Phone (type: Phone, priority: 0, available)&#xA;    Active Port: phone-input&#xA;    Formats:&#xA;        pcm&#xA;

    &#xA;

    This is the error i am getting when there's no playing audio in my phone.

    &#xA;

    ffmpeg version 4.4.2-0ubuntu0.22.04.1 Copyright (c) 2000-2021 the FFmpeg developers&#xA;  built with gcc 11 (Ubuntu 11.2.0-19ubuntu1)&#xA;  configuration: --prefix=/usr --extra-version=0ubuntu0.22.04.1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --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-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzimg --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-librsvg --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared&#xA;  libavutil      56. 70.100 / 56. 70.100&#xA;  libavcodec     58.134.100 / 58.134.100&#xA;  libavformat    58. 76.100 / 58. 76.100&#xA;  libavdevice    58. 13.100 / 58. 13.100&#xA;  libavfilter     7.110.100 /  7.110.100&#xA;  libswscale      5.  9.100 /  5.  9.100&#xA;  libswresample   3.  9.100 /  3.  9.100&#xA;  libpostproc    55.  9.100 / 55.  9.100&#xA;Guessed Channel Layout for Input Stream #0.0 : mono&#xA;Input #0, pulse, from &#x27;alsa_input.usb-KTMicro_KT_USB_Audio_2021-06-25-0000-0000-0000--00.mono-fallback&#x27;:&#xA;  Duration: N/A, start: 1694557964.268337, bitrate: 705 kb/s&#xA;  Stream #0:0: Audio: pcm_s16le, 44100 Hz, mono, s16, 705 kb/s&#xA;bluez_source.84_5F_04_75_B9_F6.a2dp_source: Input/output error&#xA;&#xA;

    &#xA;

  • ffprobe : fix XML rendering, review XML layout

    13 octobre 2023, par Stefano Sabatini
    ffprobe : fix XML rendering, review XML layout
    

    Fix rendering of int values within a side data element, which was
    broken since commit d2d3a83ad93, where the side data element was
    correctly marked as a variable fields element. Logic to render a
    string variable was implemented already, but it was not implemented
    for the int fields path, which was enabled by that commit.

    Also, code and schema is changed in order to account for multiple
    variable-fields elements - such as side data, contained within the
    same parent. Previously it was assumed that a single variable-fields
    element was contained within the parent, which was the case for tags,
    but is not the case for side-data.

    Previously data was rendered as :
    <side_data_list>
    <side_data side_data_type="CPB properties" max_bitrate="0" min_bitrate="0" avg_bitrate="0" buffer_size="327680" vbv_delay="-1"/>
    </side_data_list>

    Now as :
    <side_data_list>
    <side_data type="CPB properties">
    <side_datum key="side_data_type" value="CPB properties"/>
    <side_datum key="max_bitrate" value="0"/>
    <side_datum key="min_bitrate" value="0"/>
    <side_datum key="avg_bitrate" value="0"/>
    <side_datum key="buffer_size" value="49152"/>
    <side_datum key="vbv_delay" value="-1"/>
    </side_data>
    </side_data_list>

    Variable-fields elements are rendered as a containing element wrapping
    generic key/values elements, enabling use of strict XML schema.

    Fix trac issue :
    https://trac.ffmpeg.org/ticket/10613

    • [DH] Changelog
    • [DH] doc/ffprobe.xsd
    • [DH] fftools/ffprobe.c
    • [DH] tests/ref/fate/ffprobe_xml
    • [DH] tests/ref/fate/ffprobe_xsd
    • [DH] tests/ref/fate/flv-demux
    • [DH] tests/ref/fate/gapless-mp3-side-data
    • [DH] tests/ref/fate/mov-aac-2048-priming
    • [DH] tests/ref/fate/mov-zombie
    • [DH] tests/ref/fate/oggopus-demux
    • [DH] tests/ref/fate/ts-demux
    • [DH] tests/ref/fate/ts-opus-demux
    • [DH] tests/ref/fate/ts-small-demux
    • [DH] tests/ref/fate/ts-timed-id3-demux