
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (83)
-
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 (4041)
-
lavfi : add attribute_align_arg to all public entry points
26 juillet 2013, par Hendrik Leppkeslavfi : add attribute_align_arg to all public entry points
Previously it was partly only added to central functions called
internally, however if GCC would inline these into the public fuction, the
alignment attribute would not take effect.Instead, add it to all public entry points to avoid these problems.
Signed-off-by : Martin Storsjö <martin@martin.st>
-
Unable to send image to ffmpeg stdin from QProcess
4 décembre 2019, par Go0odIt not writing png file. I want to save central widget to png file. I have 2 files, one is main file and second one is ui file. Link has ui file.
Getting error code :
QWindowsPipeWriter::write failed. (The handle is invalid.)
main.py
import sys
from PyQt5.QtWidgets import QWidget
from PyQt5 import QtCore, QtGui, QtWidgets
from green import Ui_MainWindow
class MyWindow(QtWidgets.QMainWindow, Ui_MainWindow, QWidget):
def __init__(self):
QtWidgets.QMainWindow.__init__(self)
Ui_MainWindow.__init__(self)
self.setupUi(self)
self.widger_screen()
def widger_screen(self):
self.process = QtCore.QProcess(app)
self.process.setProcessChannelMode(self.process.ForwardedChannels)
self.process.setOpenMode(self.process.WriteOnly)
self.process.start('ffmpeg',
['-y',
'-analyzeduration', '1000',
'-vcodec', 'png', '-i', '-',
'-vcodec', 'mpeg4',
'-qscale', '5', '-r', '24', 'video.avi',
"-loglevel", "debug"])
for i in range(100):
QWidget.grab(self.centralwidget).save(self.process, "PNG")
if __name__ == '__main__':
app = QtWidgets.QApplication(sys.argv)
window = MyWindow()
window.show()
sys.exit(app.exec_()) -
How to create video file using fs from react form ?
7 avril 2021, par KirasirisI'm developing a section in which I need to create a video from a form that I'm using in a React application ; the returned data that I get from said file is this :


File >
 lastModified: 1617759553928
 lastModifiedDate: Tue Apr 06 2021 20:39:13 GMT-0500 (Central Daylight Time) {}
 name: "Shinobi Sisters.mp4"
 path: "Shinobi Sisters.mp4"
 size: 2564227
 type: "video/mp4"
 webkitRelativePath: ""
 __proto__: File



I'm sending all of that to a function called
createDirectoryAndFile(path, file)
, which so far looks like this :

// CREATE VIDEO FILE
const dir = './temp';
const createDirectoryAndFile = async (inputPath, inputContent) => {
 if (!fs.existsSync(dir)) {
 fs.mkdir(dir, { recursive: true });
 }

 fs.writeFile(inputPath, inputContent, (err) => {
 if (err) {
 console.error('An error ocurred', err);
 } else {
 console.log('Your file has been made');
 }
 });
};



It gets to the point in which is able to create the 'temp' directory but fails to place the video within it. Is there a reason for this ?


I need this because this is the starting point for me to work in my application. I'm trying to upload a video, create a second copy of it with a watermark(thanks to ffmpeg and ffprobe) and then finally upload it to AWS S3.


From my understanding all of that is only possible if the video is actually exists(not in memory).


Do you have guys have any idea ? Yes, I already installed
ffmpeg
andffprobe