Recherche avancée

Médias (91)

Autres articles (46)

  • Des sites réalisés avec MediaSPIP

    2 mai 2011, par

    Cette page présente quelques-uns des sites fonctionnant sous MediaSPIP.
    Vous pouvez bien entendu ajouter le votre grâce au formulaire en bas de page.

  • Support audio et vidéo HTML5

    10 avril 2011

    MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
    Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
    Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
    Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)

  • HTML5 audio and video support

    13 avril 2011, par

    MediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
    The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
    For older browsers the Flowplayer flash fallback is used.
    MediaSPIP allows for media playback on major mobile platforms with the above (...)

Sur d’autres sites (7158)

  • How can i create ffmpeg code with video and audio filter in one command line

    15 septembre 2014, par aligokayduman

    i can add a background image behind the video and change scale and position with this code

    ffmpeg -loop 1 -i 360.png -i input.mp4 -filter_complex "[1]scale=362:218[over]; [0][over]overlay=200:117" -shortest -y output.mp4

    and i can change audio and volume speed %10 faster

    ffmpeg -i input.mp4 -filter_complex "[0:v]setpts=0.9*PTS[v]; [0:a]atempo=1.1[a]" -map "[v]" -map "[a]" output.mp4

    i wanna do this 2 step in one code but i couldn’t do that

    Do you know any solution ?

  • Input/output error while using ffmpeg with pulse

    2 septembre 2017, par user116522

    i want to record my audio output. Yesterday, i used the following command

    ffmpeg -f pulse -ac 2 -i 1 -c:a libfdk_aac -b:a 192k test4.m4a

    and it was working. But now, i receive the output :

    ffmpeg version N-83415-g012dd8c Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.8 (SUSE Linux)
     configuration: --enable-gpl --enable-libx264 --enable-libx265 --enable-nonfree --enable-libfdk-aac --enable-libpulse
     libavutil      55. 46.100 / 55. 46.100
     libavcodec     57. 75.100 / 57. 75.100
     libavformat    57. 66.101 / 57. 66.101
     libavdevice    57.  2.100 / 57.  2.100
     libavfilter     6. 73.100 /  6. 73.100
     libswscale      4.  3.101 /  4.  3.101
     libswresample   2.  4.100 /  2.  4.100
     libpostproc    54.  2.100 / 54.  2.100
    1: Input/output error

    The command

    pactl list sources

    says :

    Source #0
           State: SUSPENDED
           Name: alsa_output.pci-0000_01_00.1.hdmi-stereo.monitor
           Description: Monitor of HDA NVidia Digital Stereo (HDMI)
           Driver: module-alsa-card.c
           Sample Specification: s16le 2ch 44100Hz
           Channel Map: front-left,front-right
           Owner Module: 6
           Mute: no
           Volume: front-left: 65536 / 100% / 0,00 dB,   front-right: 65536 / 100% / 0,00 dB
                   balance 0,00
           Base Volume: 65536 / 100% / 0,00 dB
           Monitor of Sink: alsa_output.pci-0000_01_00.1.hdmi-stereo
           Latency: 0 usec, configured 0 usec
           Flags: DECIBEL_VOLUME LATENCY
           Properties:
                   device.description = "Monitor of HDA NVidia Digital Stereo (HDMI)"
                   device.class = "monitor"
                   alsa.card = "1"
                   alsa.card_name = "HDA NVidia"
                   alsa.long_card_name = "HDA NVidia at 0xf7080000 irq 17"
                   alsa.driver_name = "snd_hda_intel"
                   device.bus_path = "pci-0000:01:00.1"
                   sysfs.path = "/devices/pci0000:00/0000:00:01.0/0000:01:00.1/sound/card1"
                   device.bus = "pci"
                   device.vendor.id = "10de"
                   device.vendor.name = "NVIDIA Corporation"
                   device.product.id = "0fb9"
                   device.string = "1"
                   module-udev-detect.discovered = "1"
                   device.icon_name = "audio-card-pci"
           Formats:
                   pcm
  • Discord.py Music Bot problem with FFmpeg on heroku

    16 mai 2020, par Phantom_7331

    I'm coding my first music bot for discord and successfully tested it on the localhost. After that, I moved it on Heroku and installed FFmpeg buildpack for it. But for some reason, it doesn't work.
Here is proof that I installed FFmpeg buildpack on Heroku : Screen

    



    Here is my code (that works well on localhost) :

    



    youtube_dl.utils.bug_reports_message = lambda: ''

ytdl_format_options = {
'format': 'bestaudio/best',
'outtmpl': '%(extractor)s-%(id)s-%(title)s.%(ext)s',
'restrictfilenames': True,
'noplaylist': True,
'nocheckcertificate': True,
'ignoreerrors': False,
'logtostderr': False,
'quiet': True,
'no_warnings': True,
'default_search': 'auto',
'source_address': '0.0.0.0'
}

ffmpeg_options = {
    'options': '-vn'
}

ytdl = youtube_dl.YoutubeDL(ytdl_format_options)

class YTDLSource(discord.PCMVolumeTransformer):
def __init__(self, source, *, data, volume=0.5):
    super().__init__(source, volume)

    self.data = data

    self.title = data.get('title')
    self.url = data.get('url')

@classmethod
async def from_url(cls, url, *, loop=None, stream=False):
    loop = loop or asyncio.get_event_loop()
    data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=not stream))

    if 'entries' in data:
        data = data['entries'][0]

    filename = data['url'] if stream else ytdl.prepare_filename(data)
    return cls(discord.FFmpegPCMAudio(filename, **ffmpeg_options), data=data)

@client.command()
async def join(ctx):
channel = ctx.message.author.voice.channel
if ctx.voice_client is not None:
    return await ctx.voice_client.move_to(channel)
await channel.connect()

@client.command()
async def play(ctx, *, URL):
    async with ctx.typing():
        player = await YTDLSource.from_url(url)
        ctx.voice_client.play(player, after=lambda e: print('Player error: %s' % e) if e else None)
    await ctx.send('Now playing: {}'.format(player.title))