
Recherche avancée
Autres articles (80)
-
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 (...) -
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 (...) -
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 (14065)
-
Why does this ffmpeg,exe window keep opening when I run my command ?
5 avril 2020, par JohnI'm making a discord bot and for this aspect of the bot, I wanted it to play music in the voice channel. Here is my code for it :



@client.command(pass_context=True)
async def play(ctx, url: str):

 song_there = os.path.isfile("song.mp3")
 try:
 if song_there:
 os.remove("song.mp3")
 print("Removed old song file")
 except PermissionError:

 await ctx.send("`There's already a song playing, request your song after!`")
 return

 await ctx.send("`Getting your song ready...`")

 voice = get(client.voice_clients, guild=ctx.guild)

 ydl_opts = {
 'format': 'bestaudio/best',
 'postprocessors': [{
 'key': 'FFmpegExtractAudio',
 'preferredcodec': 'mp3',
 'preferredquality': '192',
 }],
 }

 with youtube_dl.YoutubeDL(ydl_opts) as ydl:
 try:
 print("Downloading audio now\n")
 ydl.download([url])
 except:
 await ctx.send("`Error, that was not a valid url.`")
 return

 for file in os.listdir("./"):
 if file.endswith(".mp3"):
 name = file
 os.rename(file, "song.mp3")

 voice.play(discord.FFmpegPCMAudio("song.mp3"), after=lambda e: print("Song done!"))
 await ctx.send("`Everything went well. Enjoy!`")
 voice.source = discord.PCMVolumeTransformer(voice.source)
 voice.source.volume = 0.07

 nname = name.rsplit("-", 2)
 await ctx.send(f"`Playing: {nname[0]}`")
 print("playing\n")




I got most of it from online sources to be honest. However, whenever someone plays a song, this pops up throughout the song download process. It can be seen here : https://imgur.com/a/iRr0qwj



I don't mind them coming up, but when they do, they override all of my other tabs and pop up so they're the main screen. I'd like for them to pop up in the background, if I can't remove them fully. Can anyone help ? This would be pretty unpractical for me for when multiple use the function, and I can't use my computer anymore (as of now the bot is ran on my computer) without constantly minimizing that screen.



I'm using windows 10, Python 3.7


-
ffmpeg - data is being "removed" while h264 is being processed by ffmpeg
21 mai 2024, par LakiI got a file which is created based on messages coming from streaming, all of the "messages" are ending with b'h264\x00'
I got a need to


- 

- load the data into ffmpeg
- perform some processing of the data
- re-attach the data to same "messages"








Data is loaded with ffmpeg and saved with ffmpeg - however - ffmpeg removes "part" of the data
I have simplified the process and currently I am only loading and saving the data, without any processing, but still - part of the data is being removed


I have used several commands - but always, part of my data is being removed


ffmpeg -i sthg3.h264 -c copy st3.h264
ffmpeg -err_detect ignore_err -i sthg3.h264 -c copy st3.h264
ffmpeg -fflags +genpts -i sthg3.h264 -c copy st3.h264 



I have created the script for calculating that


file_out = 'sthg3.h264'
def split_file(input_file,chunki):
 output_files = []
 with open(input_file, 'rb') as f:
 file_number = 0
 while True:
 chunk = f.read(504096) # Read a chunk of data
 if not chunk: # End of file
 break
 index = chunk.find(chunki) # Find the delimiter
 while index != -1:
 chunk = chunk[index+len(chunki):]
 file_number += 1
 index = chunk.find(chunki) # Find the next delimiter
 return file_number

chunki = b'h264\x00'
print(split_file(file_out,chunki))
chunki = b'\x00\x01\x00'
print(split_file(file_out,chunki))
 
chunki = b'h264\x00'
#chunki = b'\x00\x00\xdc\x9e'
print(split_file('st3.h264',chunki))
chunki = b'\x00\x01\x00'
print(split_file('st3.h264',chunki))



and here is the question, how to push data through ffmpeg to avoid removing data, or replace it with something that would not be removed ?


-
Intermittent pixel format error when using fluent-ffmpeg
3 avril 2019, par pdoherty926I’m using the (excellent !) node-fluent-ffmpeg library as the first step in a video processing pipeline. Depending on the source video I provide to node-fluent-ffmpeg (videos are coming from same provider which makes this behavior surprising, but I digress), I sometimes see the following error when piping the output to the next ffmpeg processor in my pipeline :
Unable to parse option value "-1" as pixel format
Per this issue I have tried setting
inputFormat('mp4')
,videoCodec('libx264')
and.inputOption('-pix_fmt yuv420p')
. The first two don’t seem to have any effect and the third causes the following error : "Error : ffmpeg exited with code 1 : Option pixel_format not found." (To complicate things, I’m running this process inside a Google Cloud Function, so I’m unclear how to query for which pix_fmts are available.)Does anyone know how I can work around this issue ?
Here’s my latest attempt in full :
const process = ffmpeg({source: stream})
.inputFormat('mp4')
.inputOption('-pix_fmt yuv420p')
.setFfmpegPath(ffmpeg_static.path)
.videoBitrate(1024)
.videoCodec('libx264')
.aspect('1:1')
.format('mp4')
.noAudio()
.seekInput(start)
.duration(duration)
.save(destination);I was able to query ffmpeg for the available pixel formats and, while yuv420p isn’t available, a number of others are. The closest (textual) match is yuv4mpegpipe, but that results in the same error.