Recherche avancée

Médias (1)

Mot : - Tags -/swfupload

Autres articles (63)

  • Participer à sa traduction

    10 avril 2011

    Vous pouvez nous aider à améliorer les locutions utilisées dans le logiciel ou à traduire celui-ci dans n’importe qu’elle nouvelle langue permettant sa diffusion à de nouvelles communautés linguistiques.
    Pour ce faire, on utilise l’interface de traduction de SPIP où l’ensemble des modules de langue de MediaSPIP sont à disposition. ll vous suffit de vous inscrire sur la liste de discussion des traducteurs pour demander plus d’informations.
    Actuellement MediaSPIP n’est disponible qu’en français et (...)

  • Les formats acceptés

    28 janvier 2010, par

    Les commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
    ffmpeg -codecs ffmpeg -formats
    Les format videos acceptés en entrée
    Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
    Les formats vidéos de sortie possibles
    Dans un premier temps on (...)

  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (12242)

  • concatdec : change data type to suppress warning about limited range of data type...

    17 décembre 2012, par Michael Niedermayer

    concatdec : change data type to suppress warning about limited range of data type...

  • Error initializing filter 'amovie' when Join multiple files and add background music, watermark

    25 août 2020, par Nguyễn Trọng

    I am doing concatenation of multiple videos with adding background music and watermark at the same time (see below)

    


    [-y, -i, 012.mp4, -i, 011.mp4, -i, 010.mp4, -i, 009.mp4, -i, 008.mp4, -i, 007.mp4, -i, 006.mp4, -i, 005.mp4, -i, 004.mp4, -i, 003.mp4, -i, 002.mp4, -i, 001.mp4, -i, 000.mp4, -i, /storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png, -filter_complex, [0:v][0:a][1:v][1:a][2:v][2:a][3:v][3:a][4:v][4:a][5:v][5:a][6:v][6:a][7:v][7:a][8:v][8:a][9:v][9:a][10:v][10:a][11:v][11:a][12:v][12:a]concat=n=13:v=1:a=1[video][audio];[13:v]scale=320:-1[watermark];[video][watermark]overlay=main_w-overlay_w-10:main_h-overlay_h-10[vw];amovie=/storage/emulated/0/Download/Afro B - Drogba (Joanna) Prod by Team Salut [Official Music Video].mp3:loop=0,asetpts=N/SR/TB,aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo[bgmusic];[audio]aformat=sample_fmts=fltp:sample_rates=44100:channel_layouts=stereo,volume=0[fmaudio];[fmaudio][bgmusic]amerge=2,pan=stereo|c0code>

    


    When I run the above command, it has an error :

    


    [Parsed_amovie_3 @ 0x816c5c00] Failed to avformat_open_input '/storage/emulated/0/Download/Afro B - Drogba (Joanna) Prod by Team Salut'
[AVFilterGraph @ 0xa4c104c0] Error initializing filter 'amovie'[AVFilterGraph @ 0xa4c104c0]  with args '/storage/emulated/0/Download/Afro B - Drogba (Joanna) Prod by Team Salut'[AVFilterGraph @ 0xa4c104c0]
Error initializing complex filters.
No such file or directory
Conversion failed!


    


    I don't know why it happened, is it a bug of amovie filter ?

    


    how to solve it ?, thank advance.

    


    ----------------Full Log------------------

    


    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '012.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:04.20, start: 0.000000, bitrate: 5349 kb/s
Stream #0:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5340 kb/s, 16.67 fps, 16.67 tbr, 12800 tbn, 33.33 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #0:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '011.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:06.20, start: 0.000000, bitrate: 5642 kb/s
Stream #1:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5681 kb/s, 20 fps, 20 tbr, 10240 tbn, 40 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #1:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #2, mov,mp4,m4a,3gp,3g2,mj2, from '010.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:06.01, start: 0.000000, bitrate: 5689 kb/s
Stream #2:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5695 kb/s, 20 fps, 20 tbr, 10240 tbn, 40 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #2:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #3, mov,mp4,m4a,3gp,3g2,mj2, from '009.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:06.01, start: 0.000000, bitrate: 5624 kb/s
Stream #3:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5630 kb/s, 20 fps, 20 tbr, 10240 tbn, 40 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #3:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #4, mov,mp4,m4a,3gp,3g2,mj2, from '008.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:05.40, start: 0.000000, bitrate: 5226 kb/s
Stream #4:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5218 kb/s, 16.67 fps, 16.67 tbr, 12800 tbn, 33.33 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #4:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #5, mov,mp4,m4a,3gp,3g2,mj2, from '007.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:06.60, start: 0.000000, bitrate: 5631 kb/s
Stream #5:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5663 kb/s, 20 fps, 20 tbr, 10240 tbn, 40 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #5:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #6, mov,mp4,m4a,3gp,3g2,mj2, from '006.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:06.48, start: 0.000000, bitrate: 5455 kb/s
Stream #6:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5472 kb/s, 20 fps, 20 tbr, 10240 tbn, 40 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #6:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #7, mov,mp4,m4a,3gp,3g2,mj2, from '005.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:06.11, start: 0.000000, bitrate: 5220 kb/s
Stream #7:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5213 kb/s, 19.81 fps, 19.81 tbr, 720k tbn, 39.61 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #7:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #8, mov,mp4,m4a,3gp,3g2,mj2, from '004.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:05.43, start: 0.000000, bitrate: 5515 kb/s
Stream #8:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5542 kb/s, 16.67 fps, 16.67 tbr, 12800 tbn, 33.33 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #8:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #9, mov,mp4,m4a,3gp,3g2,mj2, from '003.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:06.43, start: 0.000000, bitrate: 4450 kb/s
Stream #9:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 4445 kb/s, 15.25 fps, 15.25 tbr, 15616 tbn, 30.50 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #9:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #10, mov,mp4,m4a,3gp,3g2,mj2, from '002.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:05.92, start: 0.000000, bitrate: 4323 kb/s
Stream #10:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 4321 kb/s, 20.29 fps, 20.29 tbr, 1800k tbn, 40.58 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #10:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #11, mov,mp4,m4a,3gp,3g2,mj2, from '001.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:05.60, start: 0.000000, bitrate: 3759 kb/s
Stream #11:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 3776 kb/s, 16.19 fps, 16.19 tbr, 1350k tbn, 32.38 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #11:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #12, mov,mp4,m4a,3gp,3g2,mj2, from '000.mp4':
Metadata:
major_brand     : isom
minor_version   : 512
compatible_brands: isomiso2avc1mp41
encoder         : Lavf58.35.101
location-eng    : +18.0104-077.0263/
location        : +18.0104-077.0263/
Duration: 00:00:07.38, start: 0.000000, bitrate: 5448 kb/s
Stream #12:0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 720x1280 [SAR 1:1 DAR 9:16], 5441 kb/s, 16.53 fps, 16.53 tbr, 10800k tbn, 33.06 tbc (default)
Metadata:
handler_name    : VideoHandle
Stream #12:1(eng): Audio: aac (mp4a / 0x6134706D), 44100 Hz, mono, fltp, 1 kb/s (default)
Metadata:
handler_name    : SoundHandle
Input #13, png_pipe, from '/storage/emulated/0/FXMotion/.cache/.watermark/logo_watermark.png':
Duration: N/A, bitrate: N/A
Stream #13:0: Video: png, rgba(pc), 335x51, 25 tbr, 25 tbn, 25 tbc
[Parsed_amovie_3 @ 0x816c5c00] Failed to avformat_open_input '/storage/emulated/0/Download/Afro B - Drogba (Joanna) Prod by Team Salut'
[AVFilterGraph @ 0xa4c104c0] Error initializing filter 'amovie'[AVFilterGraph @ 0xa4c104c0]  with args '/storage/emulated/0/Download/Afro B - Drogba (Joanna) Prod by Team Salut'[AVFilterGraph @ 0xa4c104c0]
Error initializing complex filters.
No such file or directory
Conversion failed!


    


  • The problem is that the music does not play Discord py bot [closed]

    7 mai 2023, par ImFoxter

    When I write the command : !yt Such a mistake :
enter image description here

    


    I also have FFMPEG, but I don't really understand what to do with it, I've already tried a lot of things and it doesn't work enter image description here
    
Please help to fix this

    


    I have an operating system : Windows
    
And the file is created
enter image description here

    


    import asyncio

import discord
import youtube_dl

from discord.ext import commands

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=url, download=not stream))
    
        if "entries" in data:
            data = data["entries"][0]
    
        file_name = data["url"] if stream else ytdl.prepare_filename(data)
        return cls(discord.FFmpegAudio(file_name, **ffmpeg_options), data=data)

class PlayMusicVoiceChannel(commands.Cog):
def __init__(self, bot):
self.bot = bot

    @commands.command(name="j")
    async def joined(self, ifx, *, channel: discord.VoiceChannel):
        if ifx.voice_client is not None:
            return await ifx.voice_client.move_to(channel)
        await channel.connect()
    
    @commands.command(name="p")
    async def playing(self, ifx, *, query):
        source = discord.PCMVolumeTransformer(discord.FFmpegPCMAudio(query))
        ifx.voice_client.play(source, after=lambda e: print(f"Player error: {e}") if e else None)
        await ifx.send(content=f"New playing: {query}")
    
    @commands.command(name="yt")
    async def youtube(self, ifx, *, url):
        async with ifx.typing():
            player = await YTDLSource.from_url(url=url, loop=self.bot.loop)
            ifx.voice_client.play(
                player, after=lambda e: print(f"Player error: {e}") if e else None
            )
            await ifx.send(f"New playing: {player.title}")
    
    @commands.command(name="stream")
    async def stream(self, ifx, *, url):
        async with ifx.typing():
            player = await YTDLSource.from_url(url=url, loop=self.bot.loop, stream=True)
            ifx.voice_client.play(
                player, after=lambda e: print(f"Player error: {e}") if e else None
            )
            await ifx.send(f"New playing: {player.title}")
    
    @commands.command(name="l")
    async def leave(self, ifx):
        await ifx.voice_client.move_to(None)
    
    @playing.before_invoke
    @youtube.before_invoke
    @stream.before_invoke
    async def ensure_voice(self, ifx: commands.Context):
        if ifx.voice_client is None:
            if ifx.author.voice:
                await ifx.author.voice.channel.connect()
            else:
                await ifx.send(content="You are not connected to a voice channel")
                raise commands.CommandError(message="Author not connected to a voice channel")
        elif ifx.voice_client.is_playing():
            ifx.voice_client.stop()

async def setup(bot: commands.Bot):
await bot.add_cog(PlayMusicVoiceChannel(bot))