
Recherche avancée
Autres articles (61)
-
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)
Sur d’autres sites (11648)
-
PHP&FFMPEG, How to make sure the result video is suitable for web browsers ?
30 juillet 2016, par DrupalistI need to split a section of a video, paste a logo and also blur a video online. I know how to do these but the problem is, I don’t know how to make sure that the result video is suitable for web. For example there is a
mp4
video in my website which is playing via the browser, and using this code I cut a section of it :exec("ffmpeg -i ".$source." -ss ".$start." -to ".$end." -c copy ".$newVideo);
The problem is, when the distance between
$start
and$end
is more than a few minutes, the split operation is done but it is not played via browser.What codec or library do I need to add as filter to make sure that the result video is always playing on all modern browsers ?
-
FFmpeg output seeking result to Android LruCache
26 mai 2016, par vxh.vietDear fellow StackOverflower,
In my Android application, I’m trying to quickly retrieve a frame from a video using ffmpeg-android-java to display in an
ImageView
. The problem is using a typicalffmpeg
’s-ss
seeking command will require to write the output into the memory which I suppose is the big hit on performance :ffmpeg -ss 00:23:00 -i Mononoke.Hime.mkv -frames:v 1 out1.jpg
A typical command execution like above takes around 700 - 1200 milliseconds. So instead of writing into the memory, I would like to write it into
LruCache
hoping to achieve a better performance.The problem is
ffmpeg-android-java
is a wrapper to executeffmpeg
command and as such I don’t know how to correctly supply theLruCache
’s address for the command.Below is my code snippet :
private void seekToPosition(long currentVideoPosition){
String position = DiskUtils.formatMillisForFFmpeg(currentVideoPosition);
String[] cmd = {"-ss", String.valueOf(position), "-i", mVideoPath,
"-y", "-an", "-frames:v", "1",
"/storage/emulated/0/Videos/out.jpg"}; //this the problem, I would like to change this to the address of LruCache
try {
// to execute "ffmpeg -version" command you just need to pass "-version"
mFFmpeg.execute(cmd, new ExecuteBinaryResponseHandler() {
long start;
long end;
@Override
public void onStart() {
canSeek = false;
start = System.currentTimeMillis();
}
@Override
public void onProgress(String message) {}
@Override
public void onFailure(String message) {
Log.d(TAG, "FFmpeg cmd failure");
}
@Override
public void onSuccess(String message) {
Log.d(TAG, "FFmpeg cmd success");
/*mFFmpeg.killRunningProcesses();
Log.d(TAG, "FFmpeg kill running process: " + mFFmpeg.killRunningProcesses());*/
}
@Override
public void onFinish() {
canSeek = true;
Log.d(TAG, "FFmpeg cmd finished: is FFmpeg process running: " + mFFmpeg.isFFmpegCommandRunning());
end = System.currentTimeMillis();
Log.d(TAG, "FFmpeg excuted in: " + (end - start) + " milliseconds");
}
});
} catch (FFmpegCommandAlreadyRunningException e) {
// Handle if FFmpeg is already running
Log.d(TAG, "FFmpeg exception: " + e);
}
} -
Not sure what ffmpeg flags are needed for the proper end result
13 avril 2016, par shaunUsing ffmpeg vs stated below.
ffmpeg version N-76684-g1fe82ab Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 5.2.0 (GCC)We are trying to work with some AVIs and convert them to an MP4s changing the audio from pcm_s16le to AAC and keeping the video as h264. However some of our AVIs got encoded wrong and pix_fmt is missing in the ffprobe of the file. We know that the pix_fmt should be yuv420p from the files that got encoded correctly on the same devices.
If we try to just get the probe info of the avis we get this error right away :
C:\>ffmpeg -loglevel warning -y -i 1E03004920160411093036001.avi
[avi @ 00000000004d2660] Could not find codec parameters for stream 0 (Video: h264 (H264 / 0x34363248), none, 720x480, 501 kb/s): unspecified pixel format
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Guessed Channel Layout for Input Stream #0.1 : monoSo we tried to specify the pix_fmt of the incoming AVI so it would play nicely however all we get is this error :
C:\>ffmpeg -loglevel warning -y -pix_fmt yuv420p -i 1E03004920160411093036001.avi
Option pixel_format not found.Our long term goal is to convert them just like :
ffmpeg -y -i 1E03004920160411093036001.avi -c:v copy -c:a aac -strict -2 -movflags +faststart 1E03004920160411093036001.mp4
OR
ffmpeg -y -i 1E03004920160411093036001.avi -c:v copy -c:a libfdk_aac -b:a 41k -movflags +faststart 1E03004920160411093036001.mp4
Just like every other video of ours however we keep running into one of these two errors.
Currently this is bypassed using mencoder :
mencoder -idx 1E03004920160411093036001.avi -ovc copy -oac copy -o 1E03004920160411093036001-a.avi
But we would like to get away from this interim step and just tell all our files what pix_fmt to use no matter what. Is there any way to do this ?