Recherche avancée

Médias (0)

Mot : - Tags -/organisation

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (67)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

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

Sur d’autres sites (6807)

  • FFMPEG(?) Error : [out#0/s16le @ 000002452f906a00] Output file does not contain any stream

    11 mars 2024, par Ondosh
    FFMPEG_OPTIONS = {
    'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5',
    'options': '-vn'}
YDL_OPTIONS = {
    'format': 'bestaudio/best',
    'extractaudio': True,
    'noplaylist': True,
    'simulate': 'True',
    'preferredquality': '192',
    'preferredcodec': 'mp3',
    'key': 'FFmpegExtractAudio'}
@bot.command(aliases=['Ping', 'PING', 'Пинг', 'ПИНГ', 'зштп', 'ЗШТП', 'Зштп',
                      'пинг'])
async def ping(ctx):
    await ctx.message.reply(f'Ping: {round(bot.latency * 1000)}ms')
#########################[PLAY MUSIC BLOCK]#########################
@bot.command()
async def add(ctx, *url):
    url = ' '.join(url)
    with yt_dlp.YoutubeDL(YDL_OPTIONS) as ydl:
        try:
            info = ydl.extract_info(url, download=False)
        except:
            info = ydl.extract_info(f"ytsearch:{url}",
                                    download=False)['entries'][0]

    URL = info['formats'][0]['url']
    name = info['title']
    time = str(datetime.timedelta(seconds=info['duration']))
    songs_queue.q_add([name, time, URL])
    embed = nextcord.Embed(description=f'Записываю [{name}]({url}) в очередь 📝',
                           colour=nextcord.Colour.red())
    await ctx.message.reply(embed=embed)
def step_and_remove(voice_client):
    if loop_flag:
        songs_queue.q_add(songs_queue.get_value()[0])
    songs_queue.q_remove()
    audio_player_task(voice_client)
def audio_player_task(voice_client):
    if not voice_client.is_playing() and songs_queue.get_value():
        voice_client.play(nextcord.FFmpegPCMAudio(
            executable="ffmpeg\\bin\\ffmpeg.exe",
            source=songs_queue.get_value()[0][2],
            **FFMPEG_OPTIONS),
            after=lambda e: step_and_remove(voice_client))
@bot.command(aliases=['Play', 'PLAY', 'играй', 'ИГРАЙ', 'Играй', 'сыграй',
                      'Сыграй', 'СЫГРАЙ', 'здфн', 'Здфн', 'ЗДФН', 'p', 'P',
                      'pl', 'PL', 'Pl', 'Плей',
                      'ПЛЕЙ', 'плей'])
async def play(ctx, *url):
    await join(ctx)
    await add(ctx, ' '.join(url))
    await ctx.message.add_reaction(emoji='🎸')
    voice_client = ctx.guild.voice_client
    audio_player_task(voice_client)
@bot.command(aliases=['Queue', 'QUEUE', 'йгугу', 'Йгугу', 'ЙГУГУ', 'очередь',
                      'Очередь', 'ОЧЕРЕДЬ', 'список', 'Список', 'СПИСОК',
                      'list', 'List', 'LIST', 'дшые', 'Дшые', 'ДШЫЕ', 'Лист',
                      'лист', 'ЛИСТ', 'песни', 'Песни', 'ПЕСНИ', 'songs',
                      'Songs', 'SONGS', 'ыщтпы', 'ЫЩТПЫ', 'Ыщтпы', 'q'])
async def queue(ctx):
    if len(songs_queue.get_value()) > 0:
        only_names_and_time_queue = []
        for i in songs_queue.get_value():
            name = i[0]
            if len(i[0]) > 30:
                name = i[0][:30] + '...'
            only_names_and_time_queue.append(f'📀 `{name:<33}   {i[1]:>20}`\n')
        c = 0
        queue_of_queues = []
        while c < len(only_names_and_time_queue):
            queue_of_queues.append(only_names_and_time_queue[c:c + 10])
            c += 10

        embed = nextcord.Embed(title=f'ОЧЕРЕДЬ [LOOP: {loop_flag}]',
                               description=''.join(queue_of_queues[0]),
                               colour=nextcord.Colour.red())
        await ctx.send(embed=embed)

        for i in range(1, len(queue_of_queues)):
            embed = nextcord.Embed(description=''.join(queue_of_queues[i]),
                                   colour=nextcord.Colour.red())
            await ctx.send(embed=embed)
    else:
        await ctx.send('Очередь пуста')


    


    There is the part of my music bot in Discord, I don't really know why it doesn't work. Actually, I tried to use someone's old code, so it needs to be fixed. I have cut out the most important parts of the code, which most likely had an error.
I found other questions, but there was another errors.
After trying to start the video, I get the following errors :
[out#0/s16le @ 000002452f906a00] Output file does not contain any stream
Error opening output file pipe:1.
Error opening output files : Invalid argument

    


  • JavaScript Audio Decoder Library or Way to Decode Browser Unsupported Audio Formats ?

    20 mars 2023, par user21338683

    The issue :

    


    I've spent a week trying to figure out how I can play or decode ALAC files in my Electron application.

    


    Libraries I have tried or looked at :

    


      

    • Aurora - Github issues have been stale for years. Last updates were in 2016. It doesn't work when I install it with npm.

      


    • 


    • Audio Decode - Doesn't support ALAC.

      


    • 


    • WASM Audio Decoders - Doesn't support ALAC.

      


    • 


    • Web Audio API from AudioJS - Depends on Aurora. Same issue where it fails to load coffee files.

      


    • 


    • FFmpeg.JS from Kagami - Has a memory leak then crashes.

      


    • 


    • FFmpeg.wasm - I went down a very deep rabbit hole trying to figure out if this was the tool I needed. More on that later.

      


    • 


    • A few backend audio players for NodeJS - I don't remember their names but they're all unmaintained.

      


    • 


    • HowlerJS - I don't know what formats they support, but it looks like it's the same as the browser, which would mean no ALAC. Still unsure.

      


    • 


    


    Things I've tried :

    


    Web Audio API | MSE

    


    I have tried looking into the Web Audio API and MSE and left disappointed in their lack of support for a variety of audio formats.

    


    FFmpeg.wasm

    


    I got it to convert an ALAC file into a format the Electron browser (which is Chrome) would accept, however, it can take several seconds to convert the whole file which is not acceptable to wait that long after you click play.

    


    I tried reading a file stream and converting chunks, however, I was limited by what I could pass through the IPC as it's not possible to pass functions or things that can't be stringified.

    


    Ultimately I would need to coordinate when to fetch the chunks and then play them, which sounded like a job for MSE until I read the formats it supported were even less than the Web Audio API and HTML audio tag.

    


    I tried to set it up anyway by converting chunks in FFmpeg and reading from its memory, then passing that to an AudioContext originally, but it never played as the source was invalid. I then tried converting to a supported MSE format but that required getting the MIME type and codecs. I now needed a library for that or read the bytes myself... I used Google and the only results I get are for video decoding. Not what I need. Mux.JS is ESM based, won't work on Electron aside from its scope looking more like it's used for videos. Same for MP4Box, I just don't know yet if they will work for audio.

    


    I got something to play using MSE by lying and saying the MIME type would be audio/mpeg. That's not scalable, not to mention MP3 is lossy and the audio tag already plays it. I don't want to convert a FLAC (which MSE doesn't support) to an MP3 just to play it when the audio tag already plays FLAC natively. That would also degrade the quality of the audio.

    


    I also tried writing to a specific decode file and reading it while it was being written to (no idea if that could work). I didn't get the results I was looking for. Basically the file wasn't valid when it was accessed and it never got re-queried once it finished being decoded. And again, I can't pass a callback through the IPC to run once it finishes because that doesn't work. IPC doesn't pass functions.

    


    My Next Steps

    


    I'm reaching out here on StackOverflow to see if there is anything I can do, or try, or think of, or use. Something tells me there is a way to get this to work.

    


    If you need extra info I can provide it. If I asked my question wrong I apologize, I'm new here. I have done some searching for existing issues, which is how I found the libraries I listed as well as browser support for different audio formats. However, the ones I found didn't dive deeper into the issue. They issues simply ended with links to browser support specs or giving the author libraries to check out. FFmpeg.wasm seems to be the most promising one, I still have it installed and trying to use it.

    


  • ffmpeg overlay fadein/fadeout is not working [duplicate]

    22 avril 2021, par user15602767

    This is my normal overlay filter without any fadein/fadeout

    


    ffmpeg -i .\urban_pop_b4.mp4 -i .\logos\cfe-coffee.png -filter_complex "overlay=700:300:enable=between(t\,3\,6)" output.mp4


    


    When I include the fade-in/fade-out option as in docs I dont get any overlay at all(no error thrown)

    


    ffmpeg -i .\urban_pop_b4.mp4 -i .\logos\cfe-coffee.png -filter_complex "[1:v]fade=t=in:st=5:d=1,fade=t=out:st=10:d=1[over];[0:v][over]overlay=700:300:enable=between(t\,3\,6)" output.mp4


    


    ffmpeg version 2021-04-07-git-c06465a70b-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg developers   built with gcc 10.2.0 (Rev6, Built by MSYS2 project)   configuration: --enable-gpl
--enable-version3 --enable-static --disable-w32threads --disable-autodetect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma --enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq --enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvbi --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf --enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio --enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3lame --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc --enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-libsoxr --enable-chromaprint   libavutil      56. 72.100 / 56. 72.100   libavcodec     58.135.100 / 58.135.100   libavformat    58. 77.100 /
58. 77.100   libavdevice    58. 14.100 / 58. 14.100   libavfilter     7.111.100 /  7.111.100   libswscale      5. 10.100 /  5. 10.100   libswresample   3. 10.100 /  3. 10.100   libpostproc    55. 10.100 /
55. 10.100 Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '.\urban_pop.mp4':   Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.77.100   Duration: 00:00:21.05, start: 0.000000, bitrate: 413 kb/s   Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 832x432, 411 kb/s, 20 fps, 20 tbr, 10240 tbn, 40 tbc (default)
    Metadata:
      handler_name    : VideoHandler
      vendor_id       : [0][0][0][0] Input #1, png_pipe, from '.\logos\cfe-coffee.png':   Duration: N/A, bitrate: N/A   Stream #1:0: Video: png, rgba(pc), 256x192, 25 fps, 25 tbr, 25 tbn, 25 tbc Stream mapping:   Stream #0:0 (h264) -> overlay:main   Stream #1:0 (png) -> fade   overlay -> Stream #0:0 (libx264) Press [q] to stop, [?] for help [libx264 @ 00000271483e1240] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 [libx264 @ 00000271483e1240] profile High, level 3.0, 4:2:0, 8-bit [libx264 @ 00000271483e1240] 264
- core 161 r3048 b86ae3c - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=20 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00 Output #0, mp4, to 'output.mp4':   Metadata:
    major_brand     : isom
    minor_version   : 512
    compatible_brands: isomiso2avc1mp41
    encoder         : Lavf58.77.100   Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(progressive), 832x432, q=2-31, 20 fps, 10240 tbn (default)
    Metadata:
      encoder         : Lavc58.135.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A frame=  421 fps=0.0 q=-1.0 Lsize=    1052kB time=00:00:20.90 bitrate=
412.3kbits/s speed=21.9x video:1046kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.552964% [libx264 @ 00000271483e1240] frame I:2     Avg QP:13.84  size: 19321 [libx264 @ 00000271483e1240] frame P:106   Avg QP:22.42  size:  3482 [libx264 @ 00000271483e1240] frame B:313   Avg QP:28.03  size:  2117 [libx264 @ 00000271483e1240] consecutive B-frames:  0.7%  0.5%  0.0% 98.8% [libx264 @ 00000271483e1240] mb I  I16..4: 54.9% 18.3% 26.8% [libx264 @ 00000271483e1240] mb P  I16..4:  0.7%  0.4%  1.3%  P16..4:  5.6% 
2.8%  1.6%  0.0%  0.0%    skip:87.6% [libx264 @ 00000271483e1240] mb B  I16..4:  0.1%  0.1%  0.4%  B16..8:  5.6%  2.4%  1.2%  direct: 0.5%  skip:89.8%  L0:49.1% L1:44.2% BI: 6.7% [libx264 @ 00000271483e1240] 8x8 transform intra:15.4% inter:6.9% [libx264 @ 00000271483e1240] coded y,uvDC,uvAC intra: 36.1% 8.1% 5.7% inter: 2.6% 0.2% 0.1% [libx264 @ 00000271483e1240] i16 v,h,dc,p: 59% 35%  5%  0% [libx264 @ 00000271483e1240] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 27%  9% 61%  0%  0%  0%  0%  0%  1% [libx264 @ 00000271483e1240] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 19% 30%  3%  3%  3%  3%  6%  4% [libx264 @ 00000271483e1240] i8c dc,h,v,p: 84% 13%  4%  0% [libx264 @ 00000271483e1240] Weighted P-Frames: Y:0.0% UV:0.0% [libx264 @ 00000271483e1240] ref P L0: 59.3%  4.0% 20.8% 15.9% [libx264 @ 00000271483e1240] ref B L0: 70.8% 21.6%  7.6% [libx264 @ 00000271483e1240] ref B L1: 87.6% 12.4% [libx264 @ 00000271483e1240] kb/s:406.82


    


    Already tried out ffmpeg overlay image with fade in and fade out