
Advanced search
Medias (1)
-
Publier une image simplement
13 April 2011, by ,
Updated: February 2012
Language: français
Type: Video
Other articles (94)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 September 2013, byCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo; l’ajout d’une bannière l’ajout d’une image de fond;
-
Soumettre améliorations et plugins supplémentaires
10 April 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 February 2011, byCe 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";
On other websites (11436)
-
why cmd just print command and dosen't work?
11 October 2019, by 杨士弘I tried create a website that could upload mp4 then my server would transcode it to ts and create a m3u8 playlist。
I wanted to use cmd to control ffmpeg to do this,and I use visual basic to do this.Here is my code:
Dim fileName As String = "borderoflife"
Dim file As String = "borderoflife.mp4"
Dim appPath As String = "C:\allen0916\"
Dim saveDir As String = "test2\"
Dim savePath As String = appPath & saveDir
Dim saveResult As String = savePath & file
Dim Content_Type_A As String = "video/mp4"
Dim m3u8Path As String = Path.Combine(savePath, fileName + ".m3u8")
Dim para As String = String.Format("/C ffmpeg -i {0} -profile:v baseline -level 3.0 -s 640x360 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls {1} ", saveResult, m3u8Path)
Dim output As String = "none"
Dim p As Process = New Process()
p.StartInfo.FileName = "cmd.exe"
p.StartInfo.UseShellExecute = False
p.StartInfo.RedirectStandardInput = True
p.StartInfo.RedirectStandardOutput = True
p.StartInfo.RedirectStandardError = True
p.StartInfo.CreateNoWindow = True
p.Start()
p.StandardInput.WriteLine(para)
p.StandardInput.WriteLine("exit")
p.StandardInput.AutoFlush = True
p.StandardInput.Close()
output = p.StandardOutput.ReadToEnd()
p.WaitForExit()
p.Close()
If System.IO.File.Exists(m3u8Path) <> True Then
context.Response.Write(output)
Else
context.Response.Write("Success")
End Ifand every time output just returns :
Microsoft Windows [version 10.0.17763.737]
(c) 2018 Microsoft Corporation.
c:\windows\system32\inetsrv>/C ffmpeg -i C:\allen0916\test2\borderoflife.mp4 -profile:v baseline -level 3.0 -s 640x360 -start_number 0 -hls_time 10 -hls_list_size 0 -f hls C:\allen0916\test2\borderoflife.m3u8
c:\windows\system32\inetsrv>exitit seems cmd.exe just print my command and not working,
Dose somebody know why? -
Why is ffmpeg-python throwing a codec error here?
15 October 2019, by TwentyPenguinsI’m trying out ffmpeg-python for the first time and I’m hitting what looks like a complex error surprisingly early on.
Here’s my complete code as it stands:
from tkinter import filedialog
import ffmpeg
sourceFile = filedialog.askopenfile()
targetFile = filedialog.asksaveasfilename()
stream = ffmpeg.input(sourceFile, ss=0, format='mov')
stream = ffmpeg.output(stream, targetFile, format='mp4')
ffmpeg.run(stream)In my head, this ought to be simple. The user browses to an existing MOV file (a standard h264 file which ’normal’ FFmpeg.exe can handle no problem on a Windows command line), then selects an output file for an MP4 to be saved, then FFmpeg is called and an MP4 file is converted from the MOV.
However, regardless of what source file I choose, I am always hitting this error:
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\ffmpeg\_ffmpeg.py", line 85, in output
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\site-packages\ffmpeg\_run.py", line 285, in run_async
args, stdin=stdin_stream, stdout=stdout_stream, stderr=stderr_stream
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\subprocess.py", line 775, in __init__
restore_signals, start_new_session)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\subprocess.py", line 1119, in _execute_child
args = list2cmdline(args)
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\subprocess.py", line 530, in list2cmdline
needquote = (" " in arg) or ("\t" in arg) or not arg
File "C:\Program Files (x86)\Microsoft Visual Studio\Shared\Python37_64\lib\encodings\cp1252.py", line 23, in decode
return codecs.charmap_decode(input,self.errors,decoding_table)[0]
UnicodeDecodeError: 'charmap' codec can't decode byte 0x90 in position 41: character maps to <undefined>
</undefined>The position number changes depending on the file but the error is always ’charmap’ codec can’t decode byte 0x90 in position [x]: character maps to < undefined >
Please can somebody point me to where I may be going wrong on this one? I feel the answer is staring me in the face but I’m not seeing it.
-
In the using directive "using Accord.Video.FFMPEG", FFMPEG does not exist in the name space
15 September 2019, by StewartMetcalfeI am building an Azure Function in Visual Studio to convert a videos frames to images. I’m using the VideoFileReader class from Accord.Video.FFMPEG class. The code works on my machine but when trying to build this as an Azure Function Project, the using directive Accord.Video.FFMPEG errors.
And subsequently the type VideoFileReader can not be found.I have tried re-installing the Accord, Accord.Video and Accord.Video.FFMPEG NuGet packages.
using System.IO;
using Microsoft.Azure.WebJobs;
using Microsoft.Extensions.Logging;
using Accord;
using Accord.Video;
using Accord.Video.FFMPEG;
namespace ConvertVideo
{
public static class Function1
{
[FunctionName("Function1")]
public static void Run([BlobTrigger("videos/{name}", Connection = "AzureWebJobsStorage")]Stream myBlob, string name, ILogger log)
{
log.LogInformation($"C# Blob trigger function Processed blob\n Name:{name} \n Size: {myBlob.Length} Bytes");
//start a new videoFileReader
using (var vFReader = new VideoFileReader())
{
//open the video
vFReader.Open(name);
//get the framerate
double frameRate = vFReader.FrameRate.ToDouble();
//more code which converts a frame to jpg
}
}
}
}