
Recherche avancée
Médias (1)
-
La conservation du net art au musée. Les stratégies à l’œuvre
26 mai 2011
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (86)
-
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 -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
ANNEXE : Les plugins utilisés spécifiquement pour la ferme
5 mars 2010, parLe site central/maître de la ferme a besoin d’utiliser plusieurs plugins supplémentaires vis à vis des canaux pour son bon fonctionnement. le plugin Gestion de la mutualisation ; le plugin inscription3 pour gérer les inscriptions et les demandes de création d’instance de mutualisation dès l’inscription des utilisateurs ; le plugin verifier qui fournit une API de vérification des champs (utilisé par inscription3) ; le plugin champs extras v2 nécessité par inscription3 (...)
Sur d’autres sites (9227)
-
How can I overlay an angled gradient or fade over the corner of a video with ffmpeg ?
16 février 2021, par grgoelykI want to darken the corner of a video with a (for instance) 45-degree black gradient. I'd like to customize the angle, feathering, color and opacity. My video is 10-bit UHD HEVC and I need to output to 10-bit lossless intermediate (probably v210 codec). How can I do all of this in ffmpeg ?


Here is a mockup of what I want to do :




-
Video rotation using Android ffmpeg Library
13 septembre 2014, par Adroid FreakI’m using Android ffmpeg Library, The library is working fine, the only issue I’m having is that the video is rotated. The original video is rotated by 90 degree, I tried many options by adding them to the library function below, the commented code is a sample of what I tried, I tried many other options but none of them is working.
Anyone of you guys got it to work ?
public void processVideo(Clip in, Clip out, boolean enableExperimental, ShellCallback sc) throws Exception {
ArrayList<string> cmd = new ArrayList<string>();
cmd.add(mFfmpegBin);
// cmd.add("-vf \"transpose=1\"");Not working
// cmd.add(" -vfilters \"rotate=90\"");Not working
cmd.add("-y");
if (in.format != null)
{
cmd.add(Argument.FORMAT);
cmd.add(in.format);
}
if (in.videoCodec != null)
{
cmd.add(Argument.VIDEOCODEC);
cmd.add(in.videoCodec);
}
if (in.audioCodec != null)
{
cmd.add(Argument.AUDIOCODEC);
cmd.add(in.audioCodec);
}
cmd.add("-i");
cmd.add(new File(in.path).getCanonicalPath());
if (out.videoBitrate > 0)
{
cmd.add(Argument.BITRATE_VIDEO);
cmd.add(out.videoBitrate + "k");
}
if (out.width > 0)
{
cmd.add(Argument.SIZE);
cmd.add(out.width + "x" + out.height);
}
if (out.videoFps != null)
{
cmd.add(Argument.FRAMERATE);
cmd.add(out.videoFps);
}
if (out.videoCodec != null)
{
cmd.add(Argument.VIDEOCODEC);
cmd.add(out.videoCodec);
}
if (out.videoBitStreamFilter != null)
{
cmd.add(Argument.VIDEOBITSTREAMFILTER);
cmd.add(out.videoBitStreamFilter);
}
if (out.videoFilter != null)
{
cmd.add("-vf");
cmd.add(out.videoFilter);
}
if (out.audioCodec != null)
{
cmd.add(Argument.AUDIOCODEC);
cmd.add(out.audioCodec);
}
if (out.audioBitStreamFilter != null)
{
cmd.add(Argument.AUDIOBITSTREAMFILTER);
cmd.add(out.audioBitStreamFilter);
}
if (out.audioChannels > 0)
{
cmd.add(Argument.CHANNELS_AUDIO);
cmd.add(out.audioChannels+"");
}
if (out.audioBitrate > 0)
{
cmd.add(Argument.BITRATE_AUDIO);
cmd.add(out.audioBitrate + "k");
}
if (out.format != null)
{
cmd.add("-f");
cmd.add(out.format);
}
if (enableExperimental)
{
cmd.add("-strict");
cmd.add("-2");//experimental
}
// cmd.add("-metadata:s:v rotate=\"0\"");Not working
// cmd.add("rotate=\"0\""); Not working
cmd.add(new File(out.path).getCanonicalPath());
execFFMPEG(cmd, sc);
}
</string></string>This is how I’m using it btw,
FfmpegController fc = new FfmpegController(this, fileTmp);
clip_out.videoFps = "30";
clip_out.width = 480;
clip_out.height = 320;
clip_out.videoCodec = "mpeg4";
clip_out.audioCodec = "copy";
clip_out.videoBitrate = 450;
fc.processVideo(clip_in, clip_out, false, new ShellUtils.ShellCallback()Information about the compilation,
/data/data/com.example.testffmpeg/app_bin/ffmpeg -filters
ffmpeg version 0.11.1 Copyright (c) 2000-2012 the FFmpeg developers
built on Nov 15 2013 00:50:10 with gcc 4.6 20120106 (prerelease)
configuration: --arch=arm --cpu=cortex-a8 --target-os=linux --enable-runtime-cpudetect --enable-small --prefix=/data/data/info.guardianproject.ffmpeg/app_opt --enable-pic --disable-shared --enable-static --cross-prefix=/home/n8fr8/dev/android/ndk//toolchains/arm-linux-androideabi-4.6/prebuilt/linux-x86_64/bin/arm-linux-androideabi- --sysroot=/home/n8fr8/dev/android/ndk//platforms/android-3/arch-arm --extra-cflags='-I../x264 -mfloat-abi=softfp -mfpu=neon' --extra-ldflags=-L../x264 --enable-version3 --enable-gpl --disable-doc --enable-yasm --enable-decoders --enable-encoders --enable-muxers --enable-demuxers --enable-parsers --enable-protocols --enable-filters --enable-avresample --enable-libfreetype --disable-indevs --enable-indev=lavfi --disable-outdevs --enable-hwaccels --enable-ffmpeg --disable-ffplay --disable-ffprobe --disable-ffserver --disable-network --enable-libx264 --enable-zlib --enable-muxer=md5 -
C# The specified executable is not a valid application for this OS platform
22 avril 2015, par Mihai CiullyI’m making a Video sharing application(the likes of youtube) for my bachelor degree(the project is done in asp.net web forms)
And i want to convert any video the user uploads to mp4.For this i’m using the Nreco ffmpeg wrapper for asp.I’m doing all this locally and this project is not going live.
The video conversion is done in a separate thread.
protected void Upload_Click(object sender, EventArgs e)
{
//File Uploads to Server
Thread t1 = new Thread(
unused => compressVideo(Video_Path, Final_Path,User_id)
);
t1.Start();
}
public static void compressVideo(string Video_Path, string Final_Path,string UID)
{
var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
ffMpeg2.ConvertProgress += (o, args) =>
{
//SignalR calls.Doing this to update the ui
};
ffMpeg.ConvertMedia(Video_Path, Final_Path, NReco.VideoConverter.Format.mp4);
}First time i did this it all worked fine,not a single problem.
Two weeks late,after not modifying this page,i try it again and the application throws this exception :An unhandled exception of type ’System.ComponentModel.Win32Exception’
occurred in NReco.VideoConverter.dllAdditional information : The specified executable is not a valid
application for this OS platform.on the line :
ffMpeg.ConvertMedia(Video_Path, Final_Path, NReco.VideoConverter.Format.mp4);
If i call the
ffMpeg.ConvertMedia()
,the exception is not thrown and the code works as expected.So im guessing it has something to do with threads.But that’s not all.
After messing around with the code trying to solve this and not succeeding i revert back to the original code.In a last attempt i try it again(with the original code) and the application gave the build error.attempted to access an unloaded appdomain.
Any modification i did to the code was ignored and i was always getting that error when compiling.
After taking a five minutes break to calm down, i try it again.It magically fixed its self.The build error was gone and even the conversion was working.But the dream didn’t last long.After a few minutes the conversion thread started throwing the same exception again.
I was not able to replicate the same result.My experience and knowledge with asp.net web forms and web design in general are fairly low,so please keep the answers as simple as possible.