
Recherche avancée
Autres articles (60)
-
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 -
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 (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...)
Sur d’autres sites (9129)
-
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