
Recherche avancée
Médias (1)
-
SWFUpload Process
6 septembre 2011, par
Mis à jour : Septembre 2011
Langue : français
Type : Texte
Autres articles (50)
-
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir -
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 (...) -
Supporting all media types
13 avril 2011, parUnlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)
Sur d’autres sites (8613)
-
avcodec/png : support cICP chunks
17 janvier 2023, par Leo Izenavcodec/png : support cICP chunks
This commit adds both decode and encode support for cICP chunks, which
allow a PNG image's pixel data to be tagged by any of the enum values in
H.273, without an ICC profile.Upon decode, if a cICP chunk is present, the PNG decoder will tag output
AVFrames with the resulting enum color, and ignore iCCP, sRGB, gAMA, and
cHRM chunks, as per the spec.Upon encode, if the color space is known and specified, and it is not sRGB,
the PNG encoder will output a cICP chunk containing the color space. If the
color space is sRGB, then it will output an sRGB chunk instead of a cICP
chunk. If the color space of the input is not unspecified, it will not output
a cICP chunk tagging the PNG as unspecified.In either the sRGB case or the non-SRGB case, gAMA and cHRM are still written
as fallbacks provided the info is known.Signed-off-by : Leo Izen <leo.izen@gmail.com>
-
FFMPEG set -ss and -to with string
12 mai 2017, par NewUserI know I can set the start with -ss and end with -to but can someone please help me to format the following so that I can enter the
-ss
and-to
with a string ?I want
-ss
to come fromString start = editStart.getText().toString();
and
-to
to come fromString end = editEnd.getText().toString();
Here is my ffmpeg string I want to edit, I have entered
-ss
and-to
to show where I want the above strings to be.String s = "-i" + " " + mVideoUri.toString().replace("file:///", "") + " -i " + newBackgroundBitmap.getPath() + " -filter_complex [1:v][0:v]scale2ref=iw:ih[ovr][base];[ovr]colorchannelmixer=aa=0.7[ovrl];[base][ovrl]overlay[v] -ss -to -map [v] -c:v libx264 -preset ultrafast " + directoryToStore + "/" + FileName + mp4;
String[] arguments = s.split(" ");
ExecuteFFMPEG(arguments);EDIT
Here is the full ffmpeg
//Button onclick
public void onButtonClicked(View view) {
switch (view.getId()) {
//WHEN THE EXPORT BUTTON IS CLICKED
case Export:
String s = "-i" + " " + mVideoUri.toString() + " -i " + newBackgroundBitmap.getPath() + " -filter_complex [1:v][0:v]scale2ref=iw:ih[ovr][base];[ovr]colorchannelmixer=aa=0.7[ovrl];[base][ovrl]overlay[v] -map [v] -c:v libx264 -preset ultrafast " + directoryToStore + "/" + lastSaved + mp;
String[] arguments = s.split(" ");
ExecuteFFMPEG(arguments);
}
}
//Added onLoad FFMPEG
public void LoadFFMPEG() {
FFmpeg ffmpeg = FFmpeg.getInstance(getBaseContext());
try {
ffmpeg.loadBinary(new LoadBinaryResponseHandler() {
@Override
public void onStart() {
super.onStart();
}
@Override
public void onFailure() {
super.onFailure();
}
@Override
public void onSuccess() {
super.onSuccess();
}
@Override
public void onFinish() {
super.onFinish();
}
});
} catch (FFmpegNotSupportedException e1) {
e1.printStackTrace();
Log.d("[FFMPEGMain Exception]-", e1.toString());
}
}
//Added Exceute FFMPEG
public void ExecuteFFMPEG(String[] command) {
FFmpeg ffmpeg = FFmpeg.getInstance(getBaseContext());
try {
ffmpeg.execute(command, new ExecuteBinaryResponseHandler() {
@Override
public void onStart() {
super.onStart();
Log.d("[Start]", "start");
}
@Override
public void onProgress(String message) {
Log.d("[Progress]", message);
}
@Override
public void onFailure(String message) {
Log.d("[fail]", message);
}
@Override
public void onSuccess(String message) {
Log.d("[Success]", message);
}
@Override
public void onFinish() {
super.onFinish();
Log.d("[Finish]", "file output done");
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// Handle if FFmpeg is already running
Log.d("[FFMPEG Exception]-", e.toString());
}
}The above works perfectly as I was hoping. Now I want to set the start and end of the video (depending on the position the user selected). I get the start and end of the video back as a string, like this :
String valueRight = formatter.format(getValueRight);
String valueLeft = formatter.format(getValueLeft);
//this strings will return 00:00:00.000 DEPENDING on the position from the user
//just like when you would normally call -ss 00:00:50.849 -to 00:02:05.100As I mentioned above that I know it should be set as -ss and -to but I am looking for a wat to format my string to enter -ss and -to with a string, somthing like this :
-ss valueLeft -to valueRight
-
Get single buffer from AVFrame data and display it on Android Bitmap/Surface/SurfaceView
13 novembre 2011, par IvanI have decoded AVFrame from avcodec_decode_video2 function (FFmpeg) which is then passed to the SWS library and converted from YUV420P format to RGB565. How do I combine all colors and linesizes information i.e. frame->data[0..3], frame->linesize[0..3] into one buffer and how to display it then on the Android device say by using Android Bitmap or SurfaceView/View ? I don't want to use SurfaceFlinger because it is not official part of NDK and it is subject to change with every minor release.