
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (84)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, 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 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 (...) -
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
Sur d’autres sites (8402)
-
FFmpeg youtube stream get corrupted until restart
19 février 2023, par unpwnI am streaming images from python to youtube using ffmpeg.
It's working fine with just one problem.
Sometimes the stream get somehow corrupted an the stream looks like this :




Or you can see for yourself in the stream itself : https://www.youtube.com/watch?v=PG6NLtr0jjM (Scroll back to the beginning)


Then I have to restart ffmpeg and its working fine. Sometimes an error occurs regarding the network and I have to automatically restart the stream. Then there is the possibility it is corrupted again.


The parameters for ffmpeg are the following :


cmd_out = ['ffmpeg',
 '-re',
 '-f', 'concat',
 '-i', os.path.join(BASE_DIR, 'music', 'music.txt').replace('\\', '/'), 
 '-r', '1',
 '-f', 'image2pipe',
 '-vcodec', 'png',
 '-r', '1',
 '-i', '-',
 '-c:v', 'libx264',
 '-c:a', 'copy',
 '-g', '4',
 '-f', 'flv',
 'rtmp://a.rtmp.youtube.com/live2/{}'.format(stream_key)] 



I never had that problem testing it on windows. It just appears when I use my linux server.


I am using ffmpeg version 3.2.18-0+deb9u1 and the generated images are fine, when I save them to a normal file.


Does someone know how to fix it ? Or where the problem is comming from ?



Solution : An old ffmpeg version was available while using docker. I solved the problem by using a static build from https://www.johnvansickle.com/ffmpeg/


I used this to use it in docker :


WORKDIR /app
ADD ./ffmpeg /app
RUN mv ffmpeg /usr/local/ffmpeg
RUN chmod +x /usr/local/ffmpeg



Until now the error seems to be solved.


-
Is there a fix for the 'flashing console' bug with FFMPEG ?
29 août 2022, par NedNoodleHeadWhen using a compiled a program that utilizes FFMPEG (Not library, but the path to the exe), and a GUI library ; that has a function that uses FFMPEG, a console window from FFMPEG will quickly open and disappear.


I have a github repo that can be used to reproduce the bug : https://github.com/nednoodlehead/ffmpegthreading


I also have a quick youtube video showing what the bug looks like, and what it should look like : https://www.youtube.com/watch?v=tCZ0z9E5Iyw


A few things to note with this :


1). This will only occur when the app is compiled. Running this in a virtual environment works as expected. I run it from my IDE all the time with no console flashing. (as seen in video)


2). It will only flash while a GUI is present. So using a regular script to call the same command that produces the bug will NOT cause the bug


3). The bug was tested in Tkinter and PyQt5 and produced the same result (flashing console)


4). Threading is NOT needed to reproduce this bug, it just makes the debugging a bit easier


5). Using the ffmpeg module does not work as my entire project is based around an interface for PyDub (Which uses ffmpeg)


6). This solution does not work for me : How to hide console output of FFmpeg in Python ? (Because this uses the module, while I use the exe)


7). I am using auto-py-to-exe to compile (which uses pyinstaller)


8). Running 'ffmpeg -version' (in regular cmd (same result in venv)) gives : ffmpeg version N-106605-gf67403edb3-20220413


I would appreciate any help, this is tying my brain up.


-
youtube-dl python script postprocessing error : FFMPEG codecs aren't being recognized
23 septembre 2016, par stackPusherMy python script is trying to download youtube videos with youtube-dl.py. Works fine unless postprocessing is required. The code :
import youtube_dl
options = {
'format':'bestaudio/best',
'extractaudio':True,
'audioformat':'mp3',
'outtmpl':'%(id)s', #name the file the ID of the video
'noplaylist':True,
'nocheckcertificate':True,
'postprocessors': [{
'key': 'FFmpegExtractAudio',
'preferredcodec': 'mp3',
'preferredquality': '192',
}]
}
with youtube_dl.YoutubeDL(options) as ydl:
ydl.download(['http://www.youtube.com/watch?v=BaW_jenozKc'])Below is the output I receive :
I get a similar error if I try setting ’preferredcodec’ to ’opus’ or ’best’.
I’m not sure if this is relevant, but I can run the command line counterpart fine :youtube-dl -o 'test2.%(ext)s' --extract-audio --audio-format mp3 --no-check-certificate https://www.youtube.com/watch?v=BaW_jenozKc
I’ve gotten a few clues from the internet and other questions and from what i understand this is most likely an issue with my ffmpeg, which isn’t a python module right ? Here is my ffmpeg version and configuration :
If the answer to my problem is to add some configuration setting to my ffmpeg please explain how i go about doing that.