
Recherche avancée
Autres articles (77)
-
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
-
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (7980)
-
UnsatisfiedLinkError for ffmpegutils in Android project
6 octobre 2017, par SandeepI have placed my libffmpegutils.so file inside :
libs->armeabiNow when I try to process videos and the first thing I need to is load the ffmpeg and for that I have the code line :
System.loadLibrary("ffmpegutils");
And for that I get the crash :
java.lang.RuntimeException:
at android.os.AsyncTask$3.done (AsyncTask.java:309)
at java.util.concurrent.FutureTask.finishCompletion (FutureTask.java:354)
at java.util.concurrent.FutureTask.setException (FutureTask.java:223)
at java.util.concurrent.FutureTask.run (FutureTask.java:242)
at android.os.AsyncTask$SerialExecutor$1.run (AsyncTask.java:234)
at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1113)
at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:588)
at java.lang.Thread.run (Thread.java:818)
Caused by: java.lang.UnsatisfiedLinkError:
at com.video.converter.util.VideoEngine.convertvideo (Native Method)
at video.format.converter.view.ViewVideo$CompressTask.doInBackground (ViewVideo.java:384)
at video.format.converter.view.ViewVideo$CompressTask.doInBackground (ViewVideo.java:1)
at android.os.AsyncTask$2.call (AsyncTask.java:295)
at java.util.concurrent.FutureTask.run (FutureTask.java:237)What does that mean and how to fix that crash ?
-
Reading from a stream while its constantly being written to
11 octobre 2017, par TomCrowI have a ip camera, which I need to read video stream from and get frames to bitmaps. For that I want to use NReco VideoConverter, which is ffmpeg .net wrapper. I use it like this :
liveTask = ffMpeg.ConvertLiveMedia(inputStream, Format.h264, outputStream, Format.raw_video, new ConvertSettings() { CustomOutputArgs = "-pix_fmt rgb32" });
liveTask.OutputDataReceived += new EventHandler(Recieved);
liveTask.Start();Works fine, but my problem is that I need to read frames from that outputStream. The video converter writes to the stream constantly and calls my "Recieved" after every write. What I have is something like this :
private void Recieved(object sender, EventArgs r)
{
int lenght = Width * Height * 4;
if (outputStream.Length > lenght)
{
outputStream.Seek(0, SeekOrigin.Begin);
byte[] buffer = new byte[lenght];
int ret = outputStream.Read(buffer, 0, buffer.Length);
Bitmap frame = CreateBitmapFromRawDataBuffer(buffer);
}
}Works great, but only for the first frame, cause the Seek is a problem, because I think position of the stream is always at the and and I also dont know how to check if there is written another frame, cause the lenght of the whole stream is only adding up. And that would be another problem, cause the streams lenght cant go up forever. The app is supposed to run nonstop 24/7, while decoding h264 data from a ip camera. Could anyone help me with this ? And if Iam using the stream the right way ? Thank you.
Edit : For reading and writing together I know I could make custom stream with locking and separated positions for reading and writing, but what bothers me is the still adding lenght of the innerstream or outputstream in general and checking if there is next Width * Height * 4 bytes available for reading.
-
FFmpeg C# Video Conversion
11 octobre 2017, par George SillettOn the click of a button I am trying to trim down an MP4 videos between two certain times with the use of FFmpeg C# Wrapper. My code is as follows :
private void button1_Click(object sender, EventArgs e)
{
CAVConverter converter = new CAVConverter();
converter.LogPath = @"C:\Users\Rachel\Desktop\Log.txt";
converter.InputOptions.TimeStart = 5000000; //Start time to trim, unit is um(micro second)
converter.OutputOptions.TimeLength = 3000000; //Time length to trim, unit is um(micro second)
converter.AddTask(@"C:\\Users\\Rachel\\Desktop\\Tennis\\Serve.mp4",
@"C:\\Users\\Rachel\\Desktop\\Tennis\\ServeCut.mp4");
converter.StartAndWait();
}The code compiles and runs however the Log.txt file returns the following :
Seems stream 0 codec frame rate differs from container frame rate: 180000.00 (180000/1) -> 90000.00 (180000/2)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\\Users\\Rachel\\Desktop\\Tennis\\Serve.mp4':
Metadata:
major_brand : isom
minor_version : 0
compatible_brands: isom3gp4
Duration: 00:00:38.76, start: 0.000000, bitrate: 10193 kb/s
Stream #0.0(eng): Video: h264, yuv420p, 1280x720, 9982 kb/s, PAR 65536:65536 DAR 16:9, 30 fps, 90k tbr, 90k tbn, 180k tbc
Stream #0.1(eng): Audio: libfaad, 48000 Hz, 2 channels, s16, 128 kb/s
[mpeg4 @ 09762200]removing common factors from framerate
[mpeg4 @ 09762200]timebase not supported by mpeg 4 standard
Output #0, mp4, to 'C:\\Users\\Rachel\\Desktop\\Tennis\\ServeCut.mp4':
Stream #0.0(eng): Video: mpeg4, yuv420p, 1280x720 [PAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 90k tbc
Stream #0.1(eng): Audio: libfaac, 48000 Hz, 2 channels, s16, 64 kb/s
Stream mapping:
Stream #0.0 -> #0.0 (Video)
Stream #0.1 -> #0.1 (Audio)
Error while opening encoder for output stream #0.0 (Video) - maybe incorrect parameters such as bit_rate, rate, width or height
Error while opening encoder for output stream #0.0 (Video) - maybe incorrect parameters such as bit_rate, rate, width or heightI don’t know much about FFmpeg or videos, so can anybody help me ?
Many thanks