
Recherche avancée
Autres articles (25)
-
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Création définitive du canal
12 mars 2010, parLorsque votre demande est validée, vous pouvez alors procéder à la création proprement dite du canal. Chaque canal est un site à part entière placé sous votre responsabilité. Les administrateurs de la plateforme n’y ont aucun accès.
A la validation, vous recevez un email vous invitant donc à créer votre canal.
Pour ce faire il vous suffit de vous rendre à son adresse, dans notre exemple "http://votre_sous_domaine.mediaspip.net".
A ce moment là un mot de passe vous est demandé, il vous suffit d’y (...)
Sur d’autres sites (7305)
-
Trouble using ffmpeg in c# how to correctly format string to upscale videos ?
30 décembre 2020, par user14527374So I am writing an app in c# to upscale videos to a certain resolution. It uses ffmpeg to do this. What happens is after selecting the video file, and clicking 1080p it creates the directory folder but does not actually write the upscaled video to it.


I think I must have a string format issue :


private void HD_Click(object sender, EventArgs e)
 {
 if (textBox1.Text == null)
 {
 MessageBox.Show("You've not selected your video file yet. Please do so before continuing, cheers.");

 }
 else
 {
 
 var originFilePath = textBox1.Text;
 string name = Path.GetFileName(originFilePath);
 byte[] bytes = null;
 using (FileStream fileStream = new FileStream(originFilePath, FileMode.Open, FileAccess.Read))
 {
 using (MemoryStream ms = new MemoryStream())
 {
 fileStream.CopyTo(ms);
 bytes = ms.ToArray();
 }

 var localStoragePath = Path.Combine(Path.GetTempPath(), name);
 var directoryPath = Path.GetDirectoryName(localStoragePath);
 Directory.CreateDirectory(directoryPath);
 File.WriteAllBytes(localStoragePath, bytes);
 Console.WriteLine($"File copy successful: {File.Exists(localStoragePath)}");
 var readBack = File.ReadAllBytes(localStoragePath);
 Console.WriteLine($"Read file Back: {readBack.Length}, {localStoragePath}");
 var resizedFolderPath = @"C:\upscaledvideohere";
 Directory.CreateDirectory(resizedFolderPath);
 var resizedFiePath = Path.Combine(resizedFolderPath, Path.GetFileName(localStoragePath));

 var psi = new ProcessStartInfo();
 psi.FileName = @"C:\ffmpeg-2020-12-27-git-bff6fbead8-full_build\binffmpeg.exe";
 psi.Arguments = $"-i \"{localStoragePath}\" -vf scale=1080 \"{resizedFiePath}\"";
 psi.RedirectStandardOutput = false;
 psi.RedirectStandardError = false;
 psi.UseShellExecute = true;
 Console.WriteLine($"Args: {psi.Arguments}");

 try
 {
 using (Process exeProcess = Process.Start(psi))
 {
 Console.WriteLine($"process started with processId: {exeProcess.Id}");
 exeProcess.WaitForExit();
 Console.WriteLine($"Exit Code: {exeProcess.ExitCode}");
 }
 }
 catch (Exception ex)
 {
 Console.WriteLine(ex.StackTrace.ToString());
 Console.WriteLine(ex.Message.ToString());
 return;
 }
 Console.WriteLine($"process completed");
 Console.WriteLine($"Temp Out Exists: {File.Exists(resizedFiePath)}");
 }

 Console.ReadLine();
 }
 }
 
 



I am wondering where the string format error could be ? Thank you.


-
avfilter : make avfilter_graph_get_filter use const string name
14 mars 2014, par Yu Xiaolei -
Révision 21400 : Ferme #3224 : erreur de parametre_url sur les arguments de la query string qui n...
11 juin 2014, par cedric -(exemple : spip.php ?rubrique12 )