
Recherche avancée
Médias (21)
-
1,000,000
27 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Demon Seed
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
The Four of Us are Dying
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Corona Radiata
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Lights in the Sky
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Head Down
26 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (104)
-
Soumettre améliorations et plugins supplémentaires
10 avril 2011Si vous avez développé une nouvelle extension permettant d’ajouter une ou plusieurs fonctionnalités utiles à MediaSPIP, faites le nous savoir et son intégration dans la distribution officielle sera envisagée.
Vous pouvez utiliser la liste de discussion de développement afin de le faire savoir ou demander de l’aide quant à la réalisation de ce plugin. MediaSPIP étant basé sur SPIP, il est également possible d’utiliser le liste de discussion SPIP-zone de SPIP pour (...) -
Emballe médias : à quoi cela sert ?
4 février 2011, parCe plugin vise à gérer des sites de mise en ligne de documents de tous types.
Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ; -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (10777)
-
Powershell script finishes after the first ffmpeg call
25 mars 2014, par sk904861The following Powershell script only executes the first ffmpeg call, no matter which one is first. Both the ffmpeg and the powershell processes never finish. Stopping the server, however, leads to the processes finishing and suddenly the second picture also appears.
Param($InputFile, $OutputFile, $Thumbnail, $Sprites)
$ThumbnailWidth = 120
$ThumbnailHeight = 120
# Thumbnail
ffmpeg -i $InputFile -f image2 -vframes 1 -filter:v "crop=min(iw\,ih):min(iw\,ih), scale=$($ThumbnailWidth):$($ThumbnailHeight)" -crf 18 "$($Thumbnail)\150x150.png"
# Poster
ffmpeg -i $InputFile -f image2 -vframes 1 -filter:v "crop=min(iw\,ih):min(iw\,ih), scale=$($PosterWidth):$($PosterHeight)" -crf 18 "$($Thumbnail)\1000x1000.png"The script gets called within an ASP.NET application as follows :
ProcessStartInfo startInfo = new ProcessStartInfo();
startInfo.FileName = "powershell.exe";
startInfo.Arguments = String.Format("-executionpolicy RemoteSigned -file \"{0}\" \"{1}\" \"{2}\" \"{3}\" \"{4}\"", scriptPath, fullPath, videoPath, thumbnailPath, sprites);
startInfo.RedirectStandardOutput = true;
startInfo.RedirectStandardError = true;
startInfo.UseShellExecute = false;
startInfo.CreateNoWindow = true;
Process process = new Process();
process.StartInfo = startInfo;
process.EnableRaisingEvents = true;
process.Exited += delegate
{
// Do some cleaning up
};
process.Start();Does anyone have a clue, why only the first the two ffmpeg calls is working, while each call seems to be correct ?
Adding
process.StandardError.ReadToEnd();
makes the script finish as expected, but also makes it block, which is not acceptable. -
Enocding user uploaded video stream ?
20 septembre 2014, par NineGoal : I’m creating a video sharing website. I would like to encode a user uploaded video stream to mp4. (I’m assuming this in turn would also verify that the user uploaded a video file and not an exe.)
Current Code :
[HttpPost]
public async Task<actionresult> Upload(HttpPostedFileBase video)
{
using (var ffmpeg = new Process())
{
ffmpeg.StartInfo.FileName = "ffmpeg.exe";
ffmpeg.StartInfo.Arguments = "-i - {0} -f mp4 - ";
ffmpeg.StartInfo.UseShellExecute = false;
ffmpeg.StartInfo.RedirectStandardError = true;
ffmpeg.StartInfo.RedirectStandardInput = true;
ffmpeg.StartInfo.RedirectStandardOutput = true;
ffmpeg.StartInfo.CreateNoWindow = true;
ffmpeg.Start();
video.InputStream.Position = 0;
var buffer = new byte[video.InputStream.Length];
await video.InputStream.ReadAsync(buffer, 0, buffer.Length);
await ffmpeg.StandardInput.BaseStream.WriteAsync(buffer, 0, buffer.Length);
var stdoutLength = Convert.ToInt32(ffmpeg.StandardOutput.BaseStream.Length);
var encodedVideo = new byte[stdoutLength];
await ffmpeg.StandardOutput.BaseStream.ReadAsync(encodedVideo, 0, stdoutLength);
}
// Upload encoded video to Azure block blob storage
// Return
}
</actionresult>Error : Currently I’m getting "The pipe has been ended" when trying write to StandardInput. However I’m sure there is even more issues with this code.
Thank you in advanced.
-
Recording with python librtmp RTMP shrinks. Please help because i´m asking for solution for 2 months and i cant solve this
21 décembre 2022, par YojuanThe code for capturing a video stream using python librtmp is this :


import librtmp

conn = librtmp.RTMP('rtmp://some_program', live=True)
conn.connect()
stream = conn.create_stream(update_buffer=True)
 
f = open("my_program.flv", 'wb')
while True:
 try:
 data=stream.read(1024)
 if data:
 f.write(data)
 f.flush()
 except:
 print("Error during stream")



The duration of the program is of 1 hour, but when i play the video, the duration becomes in 59 min and 52 secs or 59 min and 56 secs.... but in the most cases the duration is 1 hour exactly.


I noticed that the first record always is perfect but in some cases the second shrinks. (when i use the function for second time or more)


First i thought the problem was on ffmpeg because i use it to encode the video but it isnt because the video without encoding (the raw capture) shrinks anyway and i have other program that capture the same video with duration of 1 hour every time.


I want to know if somebody knows what happends. I suppose that there is a buffer that is not being emptied correctly or something like that. Please help !