
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (86)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
MediaSPIP Player : problèmes potentiels
22 février 2011, parLe lecteur ne fonctionne pas sur Internet Explorer
Sur Internet Explorer (8 et 7 au moins), le plugin utilise le lecteur Flash flowplayer pour lire vidéos et son. Si le lecteur ne semble pas fonctionner, cela peut venir de la configuration du mod_deflate d’Apache.
Si dans la configuration de ce module Apache vous avez une ligne qui ressemble à la suivante, essayez de la supprimer ou de la commenter pour voir si le lecteur fonctionne correctement : /** * GeSHi (C) 2004 - 2007 Nigel McNie, (...)
Sur d’autres sites (11712)
-
checkasm : Give macro a body to avoid potential unexpected syntax issues
17 juillet 2015, par Michael Niedermayer -
Discord.py, ffmpeg and pytube to play audio, but it keeps stopping early. Why ? [closed]
15 septembre 2023, par LowEloTVI tried to program a discord,py bot to play audio, but the audio kept cutting out in the middle.


@bot.command()
async def play(ctx, url: str):
 global ffmpeg_executable
 if discord.utils.get(ctx.guild.roles, name='music'):
 role = discord.utils.get(ctx.guild.roles, name='music')
 if role in ctx.author.roles:
 voice_client = ctx.voice_client


 if voice_client is None:
 channel = ctx.author.voice.channel
 voice_client = await channel.connect()
 print("Bot joined voice channel successfully.")


 try:
 # Fetch the audio stream URL using pytube
 yt = YouTube(url)
 audio_stream = yt.streams.filter(only_audio=True).first()


 # Play the audio stream using the VoiceProtocol
 if voice_client.is_playing():
 voice_client.stop()
 voice_client.play(discord.FFmpegPCMAudio(audio_stream.url, executable=ffmpeg_executable))
 except Exception as e:
 await ctx.reply(f"An error occurred: {str(e)}")
 else:
 await ctx.reply('You don\'t have the permission for this command!')
 else:
 await ctx.reply('This Feature is not available on this guild, ask an Admin to add it!')





I tried to program a discord,py bot to play audio, but the audio kept cutting out in the middle.


-
Play each frame once at fixed rate in ffmpeg
8 septembre 2023, par Wei HongI have a bunch of videos at various frame rates, some with variable frame rate.


- 

-
First, I wish to play back every frame only once, at 24 fps, no exceptions. I do not want any extra frames or dropped frames. I know that the play length may well change, and audio is unimportant.


-
Next, I wish to do the above after having thrown out all duplicate frames.








Here's what I've been using in a Windows batch file. It almost always works, but for some videos I've caught it dropping a frame :


for %%i in (*.mp4) do ffmpeg -y -i "%%i" -an -c copy -f h264 "%%i.h264"

for %%i in (*.h264) do ffmpeg -y -r 24 -i "%%i" -c copy "%%i.R.mp4"

for %%i in (*.R.mp4) do ffmpeg -y -i "%%i" -b:v 40M -vf mpdecimate,setpts=N/24/TB "MPD%%i.mp4"



What am I doing wrong ?


EDIT : The dropped frames do greatly differ from the previous frames so it's not just mpdecimate at work.


-