
Recherche avancée
Autres articles (112)
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...)
Sur d’autres sites (10429)
-
Socket code Python code at the end influences code in the beginning
21 décembre 2019, par Samy SmartSo basically i am trying to do the following things : Client sends project file, Server receives Project file, Server generates Video file, Server sends video File, Client receives Video File. Everything works up until sending the Video back. The Thing is when i include my code for sending the Video, not even the Things that worked before work anymore.
The commented code in the code is the code that should send the Video backClient :
import socket
s = socket.socket()
ip = socket.gethostname()
file = "testae.aep"
s.connect((ip, 1234))
f = open(file, "rb")
txt = f.read(1024)
while txt:
s.send(txt)
print(f"Sending... {txt}")
txt = f.read(1024)
f.close()
#f2 = open("final_output.mp4", "wb")
#txt2 = s.recv(1024)
#while txt2:
# f2.write(txt2)
# txt2 = s.recv(1024)
#f2.close()
print("received final output")
s.close()Server :
import os
import socket
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.bind((socket.gethostname(), 1234))
counter = 0
s.listen(5)
aerpath = "C:/aerender.lnk"
ffmpegpath = '"C:/Program Files/ffmpeg/bin/ffmpeg.exe"'
while True:
c, addr = s.accept()
print("Client Connected")
print(addr)
f = open(f"ae_render_file{counter}.aep", "wb")
txt = c.recv(1024)
while txt:
f.write(txt)
print(f"Receiving... {txt}")
txt = c.recv(1024)
print("Out of WHILE")
f.close()
print("received file")
os.system(aerpath + " -project " + f"C:/Users/weilu/PycharmProjects/localAERF/ae_render_file{counter}.aep "
+ '-comp "Comp 1" ' + f"-output C:/Users/weilu/PycharmProjects/localAERF/output/output{counter}")
os.system(ffmpegpath + " -i " + f"output/output{counter}.avi -f mp4 -vcodec libx264 -preset slow -profile:v main "
f"-pix_fmt yuv420p -acodec aac -hide_banner output/outputr{counter}.mp4")
#f2 = open(f"output/outputr{counter}.mp4","rb")
#txt2 = f2.read(1024)
#while txt2:
# c.send(txt2)
# print("Sending...")
# txt2 = f.read(1024)
#f2.close()
c.close()
counter += 1 -
Media Type Unrecognized with FFMPEG file generated
2 août 2016, par pirmaxI have an upload problem with the Twitter API.
The problem is caused by codecs I think.I use FFMPEG to concatenate an audio file and an image, so to build a 30-second video to a file not exceeding in the 1MB.
Here is the code that allows me to build this file and then upload the video via the Twitter API :
var convert = function(image, audio, output) {
var proc = ffmpeg(image)
.loop(30)
.addInput(audio)
.format('mp4')
.videoBitrate('1024k')
.videoCodec('mpeg4')
.size('640x640')
.audioBitrate('128k')
.audioChannels(2)
.audioCodec('libfaac')
.on('end', function() {
console.log(output);
fs.readFile(output, function(err, base64data) {
client.post('media/upload', { media: base64data }, function (error, media, response) {
console.log(media);
});
});
})
.on('error', function(err) {
console.log('an error happened: ' + err.message);
})
.save(output);
};Each upload, I get the following message : unrecognized media type
{ request: '/1.1/media/upload.json',
error: 'media type unrecognized.' }Could you help me please ? Thanks !
-
ffmpeg - How to set MIME-type ? [migrated]
22 octobre 2012, par sasaI'm trying to set the proper MIME-type for an AAC file, but this command does not work :
ffmpeg -i rain.mp3 -metadata mime-type="audio/aac" rainmp3toaac.aac
but, actualy
audio/x-hx-aac-adts
is set.So, how I can force another MIME-type ?