
Recherche avancée
Autres articles (69)
-
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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (11219)
-
How to avoid ffmpeg failing to add chapters to mov file ?
27 septembre 2022, par BabaGI've been trying all day to get ffmpeg to add chapters to a prores mov file. It does add the first two, but then it fails with the name of the text file and an error message :


chapterstest_orig.txt: Invalid data found when processing input



I see lots of online references to the format of both the ffmpeg command, as well as the text file containing the chapter metadata. Here are mine :


ffmpeg -i chapterstest_orig.mov -i chapterstest_orig.txt -map_metadata 1 -codec copy chapterstest.mov



i've also tried it with -map_chapters :


ffmpeg -i chapterstest_orig.mov -i chapterstest_orig.txt -map_metadata 1 -map_chapters 1 -codec copy chapterstest.mov



Here's a copy of my text file, containing the chapter info :


;FFMETADATA1
title=Angel's Gate Cultural Center
artist=Buzzworld

[CHAPTER]
TIMEBASE=1/1000
START=0
END=6999
title=Buzzworld 10-10-1997

[CHAPTER]
TIMEBASE=1/1000
START=7000
END=290999
title=The Road To Lisdoonvarna

[CHAPTER]
TIMEBASE=1/1000
START=291000
END=739999
title=Jack Orion

[CHAPTER]
TIMEBASE=1/1000
START=740000
END=992999
title=The Frieze Britches

[CHAPTER]
TIMEBASE=1/1000
START=993000
END=1295999
title=The Blackleg Miner

[CHAPTER]
TIMEBASE=1/1000
START=1296000
END=1559999
title=Johnny Jump Up

[CHAPTER]
TIMEBASE=1/1000
START=1560000
END=1867999
title=Tom Billy's

[CHAPTER]
TIMEBASE=1/1000
START=1868000
END=2143999
title=When Will We Be Married?

[CHAPTER]
TIMEBASE=1/1000
START=2144000
END=2500999
title=The Old Bush

[CHAPTER]
TIMEBASE=1/1000
START=2501000
END=2839000
title=Niamh's Capers



If I delete everything after the second chapter, the file processes. It always fails if I add more chapters.


I've also tried using things like :


-map 0:v -map 0:a -map 0:s



Any help is much appreciated. I'm kind of at my wits end here.


Thanks.


-
Seeking with ffmpeg options fails or causes delayed playback in Discord bot
29 août 2022, par J PetersenMy Discord bot allows users to play a song starting from a timestamp.


The problem is that playback is delayed and audio plays faster and is jumbled if start times >= 30s are set.


Results from testing different start times. Same URL, 30 second duration :







 Entered Start Time (s) 

Playback Delay (s) 

Song Playback Time (s) 







 0 

3 

30 




 30 

10 

22 




 60 

17 

17 




 120 

31 

2 




 150 

120 

<1 









I am setting the start time using ffmpeg_options as suggested in this question.


Does anyone understand why the audio playback is being delayed/jumbled ? How can I improve playback delay and allow users to start in the middle of a multi-chapter YouTube video ?


Code :


import discord
import youtube_dl
import asyncio


# Suppress noise about console usage from errors
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": False,
 "yesplaylist": True,
 "nocheckcertificate": True,
 "ignoreerrors": False,
 "logtostderr": False,
 "quiet": True,
 "no_warnings": True,
 "default_search": "auto",
 "source_address": "0.0.0.0", # Bind to ipv4 since ipv6 addresses cause issues at certain times
}

ytdl = youtube_dl.YoutubeDL(ytdl_format_options)


class YTDLSource(discord.PCMVolumeTransformer):
 def __init__(self, source: discord.AudioSource, *, data: dict, volume: float = 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, timestamp = 0):
 ffmpeg_options = {
 "options": f"-vn -ss {timestamp}"}

 loop = loop or asyncio.get_event_loop()

 data = await loop.run_in_executor(None, lambda: ytdl.extract_info(url, download=not stream))
 if "entries" in data:
 # Takes the first item from a playlist
 data = data["entries"][0]

 filename = data["url"] if stream else ytdl.prepare_filename(data)
 return cls(discord.FFmpegPCMAudio(filename, **ffmpeg_options), data=data)


intents = discord.Intents.default()

bot = discord.Bot(intents=intents)

@bot.slash_command()
async def play(ctx, audio: discord.Option(), seconds: discord.Option(), timestamp: discord.Option()):
 channel = ctx.author.voice.channel
 voice = await channel.connect()
 player = await YTDLSource.from_url(audio, loop=bot.loop, stream=True, timestamp=int(timestamp))
 voice.play(player)
 await asyncio.sleep(int(seconds))
 await voice.disconnect()

token = token value
bot.run(token)



-
Concatenate all opus audio in folder and create chapters
7 octobre 2024, par Petrus VermaakI need to join multiple (mp3 or opus) audio in a directory into a single file. I also need to preserve/create each audio as a chapter. The expected outcome is that the output contains the chapter information in the file, so one can easily skip to the desired chapter using vlc player, etc.


I need to do this on Windows and have found a way to join the files, but it does not preserve the chapter information :
cmd type *.opus | FFmpeg -i pipe: -c:a copy all.opus


Can anyone please tell me how to preserve chapters on Windows ? I don't mind using a script as long as you tell me how to create and execute it, seeing that I am a total noob lol


The expected outcome is that it works like an audiobook. I have already seen that both mp3 & opus can have chapters, so I want to do this for all my audiobooks that have multiple files.