
Recherche avancée
Médias (91)
-
Valkaama DVD Cover Outside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
Valkaama DVD Label
4 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Image
-
Valkaama DVD Cover Inside
4 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (81)
-
Des sites réalisés avec MediaSPIP
2 mai 2011, parCette 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. -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Participer à sa traduction
10 avril 2011Vous 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 (...)
Sur d’autres sites (10604)
-
Why do my Windows filenames keep getting converted in Python ?
13 avril 2024, par GeneralTullyI'm running a script that walks through a large library of .flac music, making a mirror library with the same structure but converted to .opus. I'm doing this on Windows 11, so I believe the source filenames are all in UTF-16. The script calls FFMPEG to do the converting.


For some reason, uncommon characters keep getting converted to different but similar characters when the script runs, for example :


06 xXXi_wud_nvrstøp_ÜXXx.flac


gets converted to :


06 xXXi_wud_nvrstøp_ÜXXx.opus


They look almost identical, but the Ü and I believe also the ø are technically slightly different characters before and after the conversion.


The function which calls FFMPEG for the conversion looks like this :


def convert_file(pool, top, file):
 fullPath = os.path.join(top, file)
 # Pass count=1 to str.replace() just in case .flac is in the song
 # title or something.
 newPath = fullPath.replace(src_dir, dest_dir, 1)
 newPath = newPath.replace(".flac", ".opus", 1)

 if os.path.isfile(newPath):
 return None
 else:
 print("{} does not exist".format(newPath))
 
 cvt = [
 "Ffmpeg", "-v", "debug", "-i", fullPath, "-c:a", "libopus", "-b:a", "96k", newPath]
 print(cvt)

 return (
 fullPath,
 pool.apply_async(subprocess.run, kwds={
 "args": cvt,
 "check": True,
 "stdin": subprocess.DEVNULL}))



The arguments are being supplied by os.walk with no special parameters.


Given that the script is comparing filenames to check if a conversion needs to happen, and the filenames keep getting changed, it keeps destroying and recreating the same files every time the script runs.


Why might this be happening ?


-
A Soundboard for Discord with Discord.py with already downloaded .mp3 files
8 août 2019, par Kerberos KevI’m setting up a discord bot with discord.py, and want to implement an soundboard.The soundboard should take already downloaded .mp3 files and play them in the discord. The bot already automatically joins and disconnects from a voice channel but does not play any of my sound files.
I tried converting the mp3 file into an opus one and just play it without ffmpeg but this didn’t work either.
import discord
from discord.ext import commands
from discord.utils import get
from mutagen.mp3 import MP3
import time
import os
client = commands.Bot(command_prefix='<')
a = './'+'kurz-kacken.mp3'
class Soundboard(commands.Cog):
def __init__(self, client):
self.client = self
@commands.command(pass_context=True)
async def soundboard(self, ctx, songname: str):
channel = ctx.message.author.voice.channel
voice = get(client.voice_clients, guild=ctx.guild)
if voice and voice.is_connected():
await voice.move_to(channel)
else:
voice = await channel.connect()
print(f"The bot has connected to {channel}\n")
# audio = MP3('./'+'kurz-kacken.mp3')
# a = audio.info.length
voice.play(discord.FFmpegPCMAudio('./'+'kurz-kacken.mp3'),
after=lambda e: print("Song done!"))
voice.source = discord.PCMVolumeTransformer(voice.source)
voice.source.volume = 0.07
# time.sleep(a)
await ctx.send(f'ended')
if voice and voice.is_connected():
await voice.disconnect()
def setup(client):
client.add_cog(Soundboard(client)) -
avcodec/omx : Fix handling of fragmented buffers
17 janvier 2019, par Dave Stevensonavcodec/omx : Fix handling of fragmented buffers
See https://trac.ffmpeg.org/ticket/7687
If an encoded frame is returned split over two or more
IL buffers due to the size, then there is a race between
whether get_buffer will fail, return NULL, and a truncated
frame is passed on, or IL will return the remaining part
of the encoded frame.
If get_buffer returns NULL, part of the frame is left behind
in the codec, and will be collected on the next call. That
then leaves a frame stuck in the codec. Repeat enough times
and the codec FIFO is full, and the pipeline stalls.A performance improvement in the Raspberry Pi firmware means
that the timing has changed, and now frequently drops into the
case where get_buffer returns NULL.Add code such that should a buffer be received without
OMX_BUFFERFLAG_ENDOFFRAME that get_buffer is called with wait
set, so we wait for the remainder of the frame.
This code has been made conditional on the Pi build in case
other IL implementations don't handle ENDOFFRAME correctly.Signed-off-by : Dave Stevenson <dave.stevenson@raspberrypi.org>
Signed-off-by : Aman Gupta <aman@tmm1.net>
Signed-off-by : Martin Storsjö <martin@martin.st>