
Recherche avancée
Autres articles (104)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (10667)
-
How to get best audio quality on music bot using discord.py ?
9 mai 2021, par user28606I've built a discord music bot in discord.py but for some reason, it doesn't play music in as high quality as Fredboat or Rythm(so I don't think voice chat's bitrate is the problem). I've tried a couple of things online.


The only thing that improved quality a little bit was downloading the song before playing it. But the quality was still far from anything like Fredboat's. It's also very impractical since downloading a 1h song takes a while and is space consuming.


I'm interested in how to fix this and the explanation for why this is happening.


This is the code we're currently using for the music bot :


from discord import FFmpegPCMAudio
import discord
from apscheduler.schedulers.asyncio import AsyncIOScheduler
from apscheduler.triggers.cron import CronTrigger
from discord.ext import commands, tasks
from youtubesearchpython import VideosSearch

class cmd_music(commands.Cog, name="music_commands"):

 def __init__(self, bot):
 self.bot = bot
 self.music_queue = []
 self.scheduler = AsyncIOScheduler()
 self.scheduler.add_job(self.check_queue, CronTrigger(second="0,5,10,15,20,25,30,35,40,45,50,55"))
 self.scheduler.start()
 
 async def play_raw(self, voice_client):
 if not self.music_queue:
 return

 YDL_OPTIONS = {'format': 'bestaudio', 'noplaylist':'True'}
 FFMPEG_OPTIONS = {'before_options': '-reconnect 1 -reconnect_streamed 1 -reconnect_delay_max 5', 'options': '-vn'}
 if not voice_client.is_playing():
 with YoutubeDL(YDL_OPTIONS) as ydl:
 info = ydl.extract_info(self.music_queue.pop(0), download=False)
 URL = info['formats'][0]['url']
 voice_client.play(FFmpegPCMAudio(URL, **FFMPEG_OPTIONS))
 voice_client.is_playing()

 async def check_queue(self):
 if not self.bot.voice_clients: return
 
 client = self.bot.voice_clients[0]
 if not client.is_playing():
 if self.music_queue:
 await self.play_raw(client)
 
 
 @commands.command(brief="join")
 async def join(self, ctx):
 await ctx.author.voice.channel.connect()

 @commands.command(brief="leave")
 async def leave(self, ctx):
 await ctx.voice_client.disconnect()
 self.music_queue = []

 @commands.command(brief="play")
 async def play(self, ctx, *name):
 url = VideosSearch(" ".join(name[:]), 1).result().get("result")[0].get("link")
 self.music_queue.append(url)
 await ctx.send("Now playing: " + url)

 @commands.command(brief="skip")
 async def skip(self, ctx):
 await ctx.send("Skipped current song")
 ctx.voice_client.stop()
 if self.music_queue:
 await self.play_raw(ctx.voice_client)``` 



-
ffmpeg.exe not detecting UScreenCapture
14 janvier 2021, par TenGI have two version of ffmpeg on the Windows 7 PC.


The first came installed with an application, which uses ffmpeg to capture video/audio of the desktop. This works.


It uses an older version of ffmpeg, so I downloaded the latest version and tried the same command and it reports that the devices are not detected.


Commands run :


Old FFMPEG :


ffmpeg.exe -list_devices true -f dshow -i dummy


ffmpeg version N-70358-g047fd98 Copyright (c) 2000-2015 the FFmpeg developers
 built with gcc 4.9.2 (GCC)
 configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-f
rei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --ena
ble-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-
amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-li
btheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --e
nable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklin
k --enable-zlib
 libavutil 54. 19.100 / 54. 19.100
 libavcodec 56. 26.100 / 56. 26.100
 libavformat 56. 23.106 / 56. 23.106
 libavdevice 56. 4.100 / 56. 4.100
 libavfilter 5. 11.102 / 5. 11.102
 libswscale 3. 1.101 / 3. 1.101
 libswresample 1. 1.100 / 1. 1.100
 libpostproc 53. 3.100 / 53. 3.100
[dshow @ 04a8a500] DirectShow video devices (some may be both video and audio devices)
[dshow @ 04a8a500] "VF0700 Live! Cam Chat HD"
[dshow @ 04a8a500] Alternative name "@device_pnp_\\?\usb#vid_041e&pid_4088&mi_00#7&b015b04&0&0000#{65e8773d-8f56-11d0-a3b9-00a0c
9223196}\global"
[dshow @ 04a8a500] "UScreenCapture"
[dshow @ 04a8a500] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture"
[dshow @ 04a8a500] "screen-capture-recorder"
[dshow @ 04a8a500] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{4EA6930A-2C8A-4AE6-A561-56E4B5044439}"
[dshow @ 04a8a500] DirectShow audio devices
[dshow @ 04a8a500] "Microphone (VF0700 Live! Cam Ch"
[dshow @ 04a8a500] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Microphone (VF0700 Live! Cam Ch"
[dshow @ 04a8a500] "virtual-audio-capturer"
[dshow @ 04a8a500] Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{8E14549B-DB61-4309-AFA1-3578E927E935}"
dummy: Immediate exit requested



New FFMPEG :


ffmpeg version N-100616-gca21cb1e36 Copyright (c) 2000-2021 the FFmpeg developers
 built with gcc 9.3-win32 (GCC) 20200320
 configuration: --prefix=/ffbuild/prefix --pkg-config-flags=--static --pkg-config=pkg-config --cross-prefix=x86_64-w64-mingw32- --a
rch=x86_64 --target-os=mingw32 --enable-gpl --enable-version3 --disable-debug --disable-w32threads --enable-pthreads --enable-iconv
--enable-zlib --enable-libxml2 --enable-libfreetype --enable-libfribidi --enable-gmp --enable-lzma --enable-fontconfig --enable-open
cl --enable-libvmaf --disable-vulkan --enable-libvorbis --enable-amf --enable-libaom --enable-avisynth --enable-libdav1d --enable-li
bdavs2 --enable-ffnvcodec --enable-cuda-llvm --disable-libglslang --enable-libass --enable-libbluray --enable-libmp3lame --enable-li
bopus --enable-libtheora --enable-libvpx --enable-libwebp --enable-libmfx --enable-libopencore-amrnb --enable-libopencore-amrwb --en
able-libopenjpeg --enable-librav1e --enable-librubberband --enable-schannel --enable-sdl2 --enable-libsoxr --enable-libsrt --enable-
libsvtav1 --enable-libtwolame --enable-libuavs3d --enable-libvidstab --enable-libx264 --enable-libx265 --enable-libxavs2 --enable-li
bxvid --enable-libzimg --extra-cflags=-DLIBTWOLAME_STATIC --extra-cxxflags= --extra-ldflags=-pthread --extra-libs=-lgomp
 libavutil 56. 63.100 / 56. 63.100
 libavcodec 58.116.100 / 58.116.100
 libavformat 58. 65.101 / 58. 65.101
 libavdevice 58. 11.103 / 58. 11.103
 libavfilter 7. 95.100 / 7. 95.100
 libswscale 5. 8.100 / 5. 8.100
 libswresample 3. 8.100 / 3. 8.100
 libpostproc 55. 8.100 / 55. 8.100
[dshow @ 000000000052cc00] DirectShow video devices (some may be both video and audio devices)
[dshow @ 000000000052cc00] "VF0700 Live! Cam Chat HD"
[dshow @ 000000000052cc00] Alternative name "@device_pnp_\\?\usb#vid_041e&pid_4088&mi_00#7&b015b04&0&0000#{65e8773d-8f56-11d0-a3
b9-00a0c9223196}\global"
[dshow @ 000000000052cc00] DirectShow audio devices
[dshow @ 000000000052cc00] "Microphone (VF0700 Live! Cam Ch"
[dshow @ 000000000052cc00] Alternative name "@device_cm_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\Microphone (VF0700 Live! Cam Ch"
dummy: Immediate exit requested



The new version is not detecting the following :


[dshow @ 04a8a500] "UScreenCapture"
[dshow @ 04a8a500] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\UScreenCapture"
[dshow @ 04a8a500] "screen-capture-recorder"
[dshow @ 04a8a500] Alternative name "@device_sw_{860BB310-5D01-11D0-BD3B-00A0C911CE86}\{4EA6930A-2C8A-4AE6-A561-56E4B5044439}"
[dshow @ 04a8a500] "virtual-audio-capturer"
[dshow @ 04a8a500] Alternative name "@device_sw_{33D9A762-90C8-11D0-BD43-00A0C911CE86}\{8E14549B-DB61-4309-AFA1-3578E927E935}"



Why is this ?


-
Ffmpeg fails to encode mp2.mxf "failed to find absolute offset of xxxxxx in BodySID 1 - partial file ?"
1er novembre 2018, par livioI have a lot of audio file Op1 Atom From Avid Interplay.
They are Mxf with codec mpeg1 layer2. ffprobe show MP2
This is the link :
https://drive.google.com/open?id=1XB_marJHwHDbK-KJfLcPj6ryQjyIwjo0
when I try to convert it ffmpeg convert only first 16 minuts and then goes wrong with : "failed to find absolute offset of xxxxxx in BodySID 1 - partial file ?" This for all file.
Only potplayer (that use ffmpeg) can play it in whole duration, 2h
I need encode the whole audio stream
Any help is appreciated