
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (75)
-
L’espace de configuration de MediaSPIP
29 novembre 2010, parL’espace de configuration de MediaSPIP est réservé aux administrateurs. Un lien de menu "administrer" est généralement affiché en haut de la page [1].
Il permet de configurer finement votre site.
La navigation de cet espace de configuration est divisé en trois parties : la configuration générale du site qui permet notamment de modifier : les informations principales concernant le site (...) -
HTML5 audio and video support
13 avril 2011, parMediaSPIP uses HTML5 video and audio tags to play multimedia files, taking advantage of the latest W3C innovations supported by modern browsers.
The MediaSPIP player used has been created specifically for MediaSPIP and can be easily adapted to fit in with a specific theme.
For older browsers the Flowplayer flash fallback is used.
MediaSPIP allows for media playback on major mobile platforms with the above (...) -
Support audio et vidéo HTML5
10 avril 2011MediaSPIP utilise les balises HTML5 video et audio pour la lecture de documents multimedia en profitant des dernières innovations du W3C supportées par les navigateurs modernes.
Pour les navigateurs plus anciens, le lecteur flash Flowplayer est utilisé.
Le lecteur HTML5 utilisé a été spécifiquement créé pour MediaSPIP : il est complètement modifiable graphiquement pour correspondre à un thème choisi.
Ces technologies permettent de distribuer vidéo et son à la fois sur des ordinateurs conventionnels (...)
Sur d’autres sites (6969)
-
Problems with ffmpeg build in Xcode
16 décembre 2016, par jonHi I have a problem with getting ffmpeg libraries to build in my Xcode project. It is in C++ . I have installed it using homebrew and have checked that all the correct libraries have installed via terminal. I have tried with and without extern C as I know it is a c library.
#include <iostream>
#include <opencv2></opencv2>opencv.hpp>
#include <libavformat>
//extern "C" {
// #include <libavformat>
//}
</libavformat></libavformat></iostream>The linker flags have been set by using (e.g. pkg-config —libs libavcodec) in terminal and these flags do not throw up an error when building. The header files are also found with no problems as the autocomplete flags them top while typing.
Please see attached pictures for Xcode build settings. Really stuck pease help
-
ffmpeg Exception : Working Directory : null Environment : null
13 décembre 2016, par DylanCreating the Android app, I am trying to crop video using ffmpeg library and store it in the app directory. I created the command :
String command = "ffmpeg -i /storage/emulated/0/DMC/diamondVideo.mp4 -vf crop=471:592:162:462 -c:a copy /storage/sdcard0/DMC/diamondVideoCropped.mp4";
String[] cmd = command.toString().split(" ");After that I pass this command to the AsyncTask :
new CropVideoTask().execute(cmd);
And in my AsyncTask I execute this command :
private class CropVideoTask extends AsyncTask {
protected Void doInBackground(String[]... cmd) {
FFmpeg ffmpeg = FFmpeg.getInstance(getContext());
try {
ffmpeg.execute(cmd[0], new ExecuteBinaryResponseHandler() {
@Override
public void onStart() {}
@Override
public void onProgress(String message) {}
@Override
public void onFailure(String message) {}
@Override
public void onSuccess(String message) {}
@Override
public void onFinish() {}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// Handle if FFmpeg is already running
}
return null;
}After the code enters in onStart method, it throw an Exception :
12-13 15:43:02.832 28941-32324/com.example.dmc E/FFmpeg: Exception while trying to run: [Ljava.lang.String;@42851b38
java.io.IOException: Error running exec(). Command: [/data/data/com.studioidan.dmc/files/ffmpeg, ffmpeg, -i, /storage/sdcard0/DMC/diamondVideo.mp4, -vf, crop=471:592:162:462, -c:a, copy, /storage/sdcard0/DMC/diamondVideoCropped.mp4] Working Directory: null Environment: null
at java.lang.ProcessManager.exec(ProcessManager.java:211)
at java.lang.Runtime.exec(Runtime.java:168)
at java.lang.Runtime.exec(Runtime.java:123)
at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)
at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)
at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)
Caused by: java.io.IOException: No such file or directory
at java.lang.ProcessManager.exec(Native Method)
at java.lang.ProcessManager.exec(ProcessManager.java:209)
at java.lang.Runtime.exec(Runtime.java:168)
at java.lang.Runtime.exec(Runtime.java:123)
at com.github.hiteshsondhi88.libffmpeg.ShellCommand.run(ShellCommand.java:10)
at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:38)
at com.github.hiteshsondhi88.libffmpeg.FFmpegExecuteAsyncTask.doInBackground(FFmpegExecuteAsyncTask.java:10)
at android.os.AsyncTask$2.call(AsyncTask.java:287)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:305)
at java.util.concurrent.FutureTask.run(FutureTask.java:137)
at android.os.AsyncTask$SerialExecutor$1.run(AsyncTask.java:230)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1076)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:569)
at java.lang.Thread.run(Thread.java:856)Manifest.xml contains premission
Did I miss something ?
-
ffmpeg transpose corrupts video [on hold]
15 décembre 2016, par Victor.dMdBI’m trying to set up a transcoding pipeline with ffmpeg C lib, but if I transpose it, the video is corrupted as shown below.
If I don’t transpose, the video is fine, ie the rest of the pipeline is correctly set up.
I’m not actually sure what is actually the issue, is it a problem with the pxiel format ? Why is the transpose corrupting the video stream ? Is there something wrong with my code (added below) ?
The constructor (code was taken from here)
MyFilter::MyFilter(const std::string filter_desc, AVCodecContext *data_ctx){
avfilter_register_all();
buffersrc_ctx = NULL;
buffersink_ctx = NULL;
filter_graph = avfilter_graph_alloc();
AVFilter *buffersink = avfilter_get_by_name("buffersink");
if (!buffersink) {
throw error("filtering sink element not found\n");
}
if (avfilter_graph_create_filter(&buffersink_ctx, buffersink, "out", NULL, NULL, filter_graph) < 0) {
throw error("Cannot create buffer sink\n");
}
filterInputs = avfilter_inout_alloc();
filterInputs->name = av_strdup("out");
filterInputs->filter_ctx = buffersink_ctx;
filterInputs->pad_idx = 0;
filterInputs->next = NULL;
AVFilter *buffersrc = avfilter_get_by_name("buffer");
if (!buffersrc) {
throw error("filtering source element not found\n");
}
char args[512];
snprintf(args, sizeof(args), "video_size=%dx%d:pix_fmt=%d:time_base=%d/%d:pixel_aspect=%d/%d",
data_ctx->width, data_ctx->height, data_ctx->pix_fmt,
data_ctx->time_base.num, data_ctx->time_base.den,
data_ctx->sample_aspect_ratio.num, data_ctx->sample_aspect_ratio.den);
log(Info, "Setting filter input with %s", args);
if (avfilter_graph_create_filter(&buffersrc_ctx, buffersrc, "in", args, NULL, filter_graph) < 0) {
throw error("Cannot create buffer source\n");
}
filterOutputs = avfilter_inout_alloc();
filterOutputs->name = av_strdup("in");
filterOutputs->filter_ctx = buffersrc_ctx;
filterOutputs->pad_idx = 0;
filterOutputs->next = NULL;
if ((avfilter_graph_parse(filter_graph, filter_desc.c_str(), filterInputs, filterOutputs, NULL)) < 0)
log(Warning,"Could not parse input filters");
if ((avfilter_graph_config(filter_graph, NULL)) < 0)
log(Warning,"Could not configure filter graph");
}And the process
AVFrame * MyFilter::process(AVFrame *inFrame){
if (av_buffersrc_add_frame_flags(buffersrc_ctx, inFrame->get(), AV_BUFFERSRC_FLAG_PUSH | AV_BUFFERSRC_FLAG_KEEP_REF ) < 0) {
throw error("Error while feeding the filtergraph\n");
}
int i = 0;
AVFrame* outFrame = av_frame_alloc();
if( av_buffersink_get_frame(buffersink_ctx, outFrame) < 0 ){
throw error("Couldnt find a frame\n");
}
return outFrame;
}And the filter I’m using is :
std::string filter_desc = "transpose=cclock"
As an extra note, it seems like the top bar(visible in the screen capture above) is actually composed of properly rotated pixels, and this works for the whole video. It just degrades for the remaining 99% of pixels.
EDIT :
Using this works
std::string filter_desc = "rotate=1.58"
, but then the resolution is not properly shifted.