Recherche avancée

Médias (1)

Mot : - Tags -/ogv

Autres articles (83)

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

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

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

Sur d’autres sites (10070)

  • GStreamer x264 on Linux (ARM)

    8 septembre 2017, par Tõnu Samuel

    Trying to get streaming work with x264 encoding.

    I am doing some black magic with stitching two images which is known to work :

    gst-launch-1.0 -e \
       v4l2src device=/dev/video0 ! \
           video/x-raw,framerate=90/1,width=640,height=480 ! m.sink_0 \
       v4l2src device=/dev/video1 ! \
           video/x-raw,framerate=90/1,width=640,height=480 ! m.sink_1 \
       videomixer name=m sink_1::xpos=640 ! \
       video/x-raw,framerate=90/1,width=1280,height=480 ! \
       xvimagesink

    Now I am trying to get same thing over x264 stream with help of internet :

    gst-launch-1.0 -e \
       v4l2src device=/dev/video0 ! \
           video/x-raw,framerate=90/1,width=640,height=480 ! m.sink_0 \
       v4l2src device=/dev/video1 ! \
           video/x-raw,framerate=90/1,width=640,height=480 ! m.sink_1 \
       videomixer name=m sink_1::xpos=640 ! \
       video/x-raw,framerate=90/1,width=1280,height=480 ! \
       x264enc tune=zerolatency byte-stream=true bitrate=3000 threads=2 ! \
       h264parse config-interval=1 ! \
       rtph264pay ! \
       udpsink host=127.0.0.1 port=5000

    And seems to work because no errors appear. But I see no way to receive image.

    I have tried

    gst-launch-1.0 udpsrc port=5000 ! application/x-rtp ! rtph264depay ! h264parse ! avdec_h264 ! xvimagesink

    which does not provide anything useful. Also attempted to use VLC with SDP file :

    c=IN IP4 127.0.0.1
    m=video 5000 RTP/AVP 96
    a=rtpmap:96 H264/3000

    I must be doing something wrong but unsure what.

    EDIT : Question about version of GStreamer. Probably this is information needed :

    ubuntu@tegra-ubuntu:~$  gst-launch-1.0 --version
    gst-launch-1.0 version 1.2.4
    GStreamer 1.2.4
    https://launchpad.net/distros/ubuntu/+source/gstreamer1.0
    ubuntu@tegra-ubuntu:~$



    $ dpkg -l | grep gstreamer
    ii  gir1.2-gstreamer-1.0                                  1.2.4-0ubuntu1.1                                    armhf        Description: GObject introspection data for the GStreamer library
    ii  gstreamer-tools                                       0.10.36-1.2ubuntu3                                  armhf        Tools for use with GStreamer
    ii  gstreamer0.10-alsa:armhf                              0.10.36-1.1ubuntu2                                  armhf        GStreamer plugin for ALSA
    ii  gstreamer0.10-fluendo-mp3:armhf                       0.10.23.debian-3                                    armhf        Fluendo mp3 decoder GStreamer 0.10 plugin
    ii  gstreamer0.10-nice:armhf                              0.1.4-1                                             armhf        ICE library (GStreamer 0.10 plugin)
    ii  gstreamer0.10-plugins-bad:armhf                       0.10.23-7.2ubuntu1.3                                armhf        GStreamer plugins from the "bad" set
    ii  gstreamer0.10-plugins-bad-multiverse                  0.10.21-1ubuntu3                                    armhf        GStreamer plugins from the "bad" set (Multiverse Variant)
    ii  gstreamer0.10-plugins-base:armhf                      0.10.36-1.1ubuntu2                                  armhf        GStreamer plugins from the "base" set
    ii  gstreamer0.10-plugins-base-apps                       0.10.36-1.1ubuntu2                                  armhf        GStreamer helper programs from the "base" set
    ii  gstreamer0.10-plugins-good:armhf                      0.10.31-3+nmu1ubuntu5.2                             armhf        GStreamer plugins from the "good" set
    ii  gstreamer0.10-plugins-ugly:armhf                      0.10.19-2ubuntu5                                    armhf        GStreamer plugins from the "ugly" set
    ii  gstreamer0.10-pulseaudio:armhf                        0.10.31-3+nmu1ubuntu5.2                             armhf        GStreamer plugin for PulseAudio
    ii  gstreamer0.10-tools                                   0.10.36-1.2ubuntu3                                  armhf        Tools for use with GStreamer
    ii  gstreamer0.10-x:armhf                                 0.10.36-1.1ubuntu2                                  armhf        GStreamer plugins for X11 and Pango
    ii  gstreamer1.0-alsa:armhf                               1.2.4-1~ubuntu2                                     armhf        GStreamer plugin for ALSA
    ii  gstreamer1.0-clutter                                  2.0.8-1build1                                       armhf        Clutter PLugin for GStreamer 1.0
    ii  gstreamer1.0-fluendo-mp3:armhf                        0.10.23.debian-3                                    armhf        Fluendo mp3 decoder GStreamer 1.0 plugin
    ii  gstreamer1.0-libav:armhf                              1.2.4-1~ubuntu1                                     armhf        libav plugin for GStreamer
    ii  gstreamer1.0-nice:armhf                               0.1.4-1                                             armhf        ICE library (GStreamer plugin)
    ii  gstreamer1.0-plugins-bad:armhf                        1.2.4-1~ubuntu1.1                                   armhf        GStreamer plugins from the "bad" set
    ii  gstreamer1.0-plugins-bad-faad:armhf                   1.2.4-1~ubuntu1.1                                   armhf        GStreamer faad plugin from the "bad" set
    ii  gstreamer1.0-plugins-bad-videoparsers:armhf           1.2.4-1~ubuntu1.1                                   armhf        GStreamer videoparsers plugin from the "bad" set
    ii  gstreamer1.0-plugins-base:armhf                       1.2.4-1~ubuntu2                                     armhf        GStreamer plugins from the "base" set
    ii  gstreamer1.0-plugins-base-apps                        1.2.4-1~ubuntu2                                     armhf        GStreamer helper programs from the "base" set
    ii  gstreamer1.0-plugins-good:armhf                       1.2.4-1~ubuntu1.3                                   armhf        GStreamer plugins from the "good" set
    ii  gstreamer1.0-plugins-ugly:armhf                       1.2.3-2build1                                       armhf        GStreamer plugins from the "ugly" set
    ii  gstreamer1.0-pulseaudio:armhf                         1.2.4-1~ubuntu1.3                                   armhf        GStreamer plugin for PulseAudio
    ii  gstreamer1.0-tools                                    1.2.4-0ubuntu1.1                                    armhf        Tools for use with GStreamer
    ii  gstreamer1.0-x:armhf                                  1.2.4-1~ubuntu2                                     armhf        GStreamer plugins for X11 and Pango
    ii  libgstreamer-plugins-bad0.10-0:armhf                  0.10.23-7.2ubuntu1.3                                armhf        GStreamer shared libraries from the "bad" set
    ii  libgstreamer-plugins-bad1.0-0:armhf                   1.2.4-1~ubuntu1.1                                   armhf        GStreamer development files for libraries from the "bad" set
    ii  libgstreamer-plugins-base0.10-0:armhf                 0.10.36-1.1ubuntu2                                  armhf        GStreamer libraries from the "base" set
    ii  libgstreamer-plugins-base1.0-0:armhf                  1.2.4-1~ubuntu2                                     armhf        GStreamer libraries from the "base" set
    ii  libgstreamer-plugins-good1.0-0:armhf                  1.2.4-1~ubuntu1.3                                   armhf        GStreamer development files for libraries from the "good" set
    ii  libgstreamer0.10-0:armhf                              0.10.36-1.2ubuntu3                                  armhf        Core GStreamer libraries and elements
    ii  libgstreamer1.0-0:armhf                               1.2.4-0ubuntu1.1                                    armhf        Core GStreamer libraries and elements
    $
  • avformat/avisynth : switch to AviSynth+ on Linux

    13 mars 2020, par Stephen Hutchinson
    avformat/avisynth : switch to AviSynth+ on Linux
    

    AviSynth+ now supports non-Windows OSes, making AvxSynth
    obsolete. Since we no longer support AviSynth 2.5 (which is
    essentially what AvxSynth is), remove AvxSynth support and
    replace it with AviSynth+.

    As a result, the USING_AVISYNTH defines can be switched back
    to generic _WIN32.

    • [DH] Changelog
    • [DH] libavformat/avisynth.c
  • DiscordJS 14 Voice works on Windows but not Linux

    20 décembre 2023, par Wosca

    Discord.js V14 voice works on windows but as soon as I run it through an Ubuntu server, it doesn't work. I have install all dependencies on both platforms. Whenever I try to play audio through the Ubuntu server it gets the bot to join the voice channel, but no sound is played. I have narrowed it down to some sort of playback issue with FFMpeg, and I have tried using opus. Here is the Dependency report generated on the ubuntu server :

    


    


    Core Dependencies

    


      

    • @discordjs/voice : 0.16.1
    • 


    • prism-media : 1.3.5
      
Opus Libraries
    • 


    • @discordjs/opus : 0.9.0
    • 


    • opusscript : not found
      
Encryption Libraries
    • 


    • sodium-native : 4.0.4
    • 


    • sodium : not found
    • 


    • libsodium-wrappers : 0.7.13
    • 


    • tweetnacl : not found
      
FFmpeg
    • 


    • version : 6.0-static
    • 


    • libopus : yes
    • 


    


    


    Here is the file it is using to run the music. There are no errors in the output :

    


    const fs = require("fs");
const { SlashCommandBuilder } = require("@discordjs/builders");
const {
  AudioPlayerStatus,
  createAudioPlayer,
  createAudioResource,
  joinVoiceChannel,
  StreamType,
} = require("@discordjs/voice");
module.exports = {
  data: new SlashCommandBuilder()
    .setName("play")
    .setDescription("Plays a song.")
    .addAttachmentOption((option) =>
      option
        .setName("song")
        .setDescription("The song to play.")
        .setRequired(true)
    ),

  async execute(interaction) {
    await interaction.reply({ content: "Preparing song...", ephemeral: true });
    const attachment = interaction.options.getAttachment("song");
    const channel = interaction.member.voice.channel;
    if (!channel)
      return await interaction.editReply({
        content: "Join a voice channel!",
        ephemeral: true,
      });
    const connection = joinVoiceChannel({
      channelId: channel.id,
      guildId: channel.guild.id,
      adapterCreator: channel.guild.voiceAdapterCreator,
    });
    const player = createAudioPlayer();
    console.log(attachment.url);
    const resource = createAudioResource(attachment.url, {
      inputType: StreamType.Opus,
    });
    player.play(resource);
    connection.subscribe(player);
    await interaction.editReply({
      content: `Playing ${attachment.name}!`,
      ephemeral: true,
    });
    await new Promise((resolve) => setTimeout(resolve, 2000));
    player.on(AudioPlayerStatus.Idle, () => {
      console.log("destroy");
      connection.destroy();
    });
  },
};