
Recherche avancée
Médias (3)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
-
Collections - Formulaire de création rapide
19 février 2013, par
Mis à jour : Février 2013
Langue : français
Type : Image
Autres articles (48)
-
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (8454)
-
What is Behavioural Segmentation and Why is it Important ?
28 septembre 2023, par Erin — Analytics Tips -
ffmpeg conversion failed error while splitting a 1.57GB .tif file
12 janvier 2023, par MinaiI am running ffmpeg to split a large .tif image of dimensions 25966 * 64114 into grids 0f 256 * 256 pixels but am getting an error.


I ran the ffmpeg command on an 1883 * 1361 pixel .jpg image named coral2




Using the following command :


ffmpeg -i coral2.jpg -qscale:v 1 -vf "crop=256:256:0:256" coral2-0-256.jpg




When I run the same command on a 1.57GB .tif image :


image.tif -qscale:v 1 -vf "crop=256:256:0:256" image%01d.tif


I get the following error :






C :\Users\gwmin\Downloads\coral\southbayapal>ffmpeg -i image.tif -qscale:v 1 -vf "crop=256:256:0:256" image%01d.tif


ffmpeg version 2023-01-12-git-fc263f073e-full_build-www.gyan.dev Copyright (c) 2000-2023 the FFmpeg developers
built with gcc 12.2.0 (Rev7, Built by MSYS2 project)


configuration : —enable-gpl —enable-version3 —enable-static —disable-w32threads —disable-autodetect —enable-fontconfig —enable-iconv —enable-gnutls —enable-libxml2 —enable-gmp —enable-bzlib —enable-lzma —enable-libsnappy —enable-zlib —enable-librist —enable-libsrt —enable-libssh —enable-libzmq —enable-avisynth —enable-libbluray —enable-libcaca —enable-sdl2 —enable-libaribb24 —enable-libdav1d —enable-libdavs2 —enable-libuavs3d —enable-libzvbi —enable-librav1e —enable-libsvtav1 —enable-libwebp —enable-libx264 —enable-libx265 —enable-libxavs2 —enable-libxvid —enable-libaom —enable-libjxl —enable-libopenjpeg —enable-libvpx —enable-mediafoundation —enable-libass —enable-frei0r —enable-libfreetype —enable-libfribidi —enable-liblensfun —enable-libvidstab —enable-libvmaf —enable-libzimg —enable-amf —enable-cuda-llvm —enable-cuvid —enable-ffnvcodec —enable-nvdec —enable-nvenc —enable-d3d11va —enable-dxva2 —enable-libvpl —enable-libshaderc —enable-vulkan —enable-libplacebo —enable-opencl —enable-libcdio —enable-libgme —enable-libmodplug —enable-libopenmpt —enable-libopencore-amrwb —enable-libmp3lame —enable-libshine —enable-libtheora —enable-libtwolame —enable-libvo-amrwbenc —enable-libilbc —enable-libgsm —enable-libopencore-amrnb —enable-libopus —enable-libspeex —enable-libvorbis —enable-ladspa —enable-libbs2b —enable-libflite —enable-libmysofa —enable-librubberband —enable-libsoxr —enable-chromaprint


libavutil 57. 43.100 / 57. 43.100
libavcodec 59. 56.100 / 59. 56.100
libavformat 59. 35.100 / 59. 35.100
libavdevice 59. 8.101 / 59. 8.101
libavfilter 8. 53.100 / 8. 53.100
libswscale 6. 8.112 / 6. 8.112
libswresample 4. 9.100 / 4. 9.100
libpostproc 56. 7.100 / 56. 7.100


[tiff @ 000002c4799b6b00] [IMGUTILS @ 000000e4045fed40] Picture size 25966x64115 is invalid


[tiff_pipe @ 000002c4799a3700] Could not find codec parameters for stream 0 (Video : tiff, rgba) : unspecified size
Consider increasing the value for the 'analyzeduration' (0) and 'probesize' (5000000) options
Input #0, tiff_pipe, from 'SouthBayApal.tif' :
Duration : N/A, bitrate : N/A
Stream #0:0 : Video : tiff, rgba, 25 fps, 25 tbr, 25 tbn
Stream mapping :
Stream #0:0 -> #0:0 (tiff (native) -> tiff (native))
Press [q] to stop, [?] for help
[tiff @ 000002c4799a5d40] [IMGUTILS @ 000000e404dff650] Picture size 25966x64115 is invalid


Error while decoding stream #0:0 : Invalid argument
[graph 0 input from stream 0:0 @ 000002c479e0cd00] Unable to parse option value "0x0" as image size
[graph 0 input from stream 0:0 @ 000002c479e0cd00] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:0 @ 000002c479e0cd00] Error applying generic filter options.
Error reinitializing filters !
Error while filtering : Invalid argument
Finishing stream 0:0 without any data written to it.
[graph 0 input from stream 0:0 @ 000002c479e0c800] Unable to parse option value "0x0" as image size
[graph 0 input from stream 0:0 @ 000002c479e0c800] Error setting option video_size to value 0x0.
[graph 0 input from stream 0:0 @ 000002c479e0c800] Error applying generic filter options.
Error configuring filter graph
Conversion failed ! <


Please help. My code only works on splitting crops of small images but I cannot crop large .tif images. How can I split using ffmpeg ?


-
Why is the ffmpeg process in discordpy terminating without playing anything ?
18 janvier 2024, par Bummbumm6I'm making a discord bot for playing music (ik very unoriginal) and everytime I try to play music, it gives this error :


2023-02-18 12:31:54 INFO discord.player ffmpeg process 4024 has not terminated. Waiting to terminate...
2023-02-18 12:31:54 INFO discord.player ffmpeg process 4024 should have terminated with a return code of -9.



It is in the voice chat and didn't play anything. Here's my code if you need it :


print("defining functions")
import discord, pytube, os, threading
from moviepy import editor
from discord.ext.commands import Bot
intents=discord.Intents.default()
intents.message_content = True
intents.voice_states = True
bot = Bot("b!",intents=intents)
check = False
token = "redacted"
@bot.command()
async def play(ctx, arg):
 await ctx.send("Downloading...")
 try:
 yt = pytube.YouTube(arg)
 print("STREAM: "+str(yt.streams.filter(only_audio=True,mime_type="audio/webm",type="audio",abr="160kbps")))
 def download(yt):
 print("DOWNLOADING STREAM TO AUDIO.WEBM")
 yt.streams.filter(only_audio=True,mime_type="audio/webm",type="audio",abr="160kbps").order_by("abr").first().download(filename="audio.webm")
 print("EXPORTING TO MP3")
 editor.AudioFileClip("audio.webm").write_audiofile("audio.webm"[:-5] + ".mp3")
 os.remove("audio.webm")
 print("DONE")
 thread = threading.Thread(target=download, args=(yt,))
 thread.start()
 thread.join()
 try:
 channel = ctx.author.voice.channel
 try:
 vc = await channel.connect()
 except Exception:
 ctx.send("already in vc, one sec")
 except Exception:
 pass
 vc.play(discord.FFmpegPCMAudio(source="audio.mp3", executable="./ffmpeg"))
 except Exception:
 pass
bot.run(token)




It worked on my computer in VS Code, but I wanted to test it on Replit and only there I got the error. I tried :


- 

- Reinstalling discord, pynacl, even pytube and moviepy.
- Using a local copy of ffmpeg on replit, see line 36.
- Adding the intents that were described in a different thread.








One thing that always happens is the exit code being -9 but the process number changing (ofc). I saw a GitHub Issue about this too which is not showing a fix so how do I fix that ?