
Recherche avancée
Autres articles (62)
-
L’agrémenter visuellement
10 avril 2011MediaSPIP est basé sur un système de thèmes et de squelettes. Les squelettes définissent le placement des informations dans la page, définissant un usage spécifique de la plateforme, et les thèmes l’habillage graphique général.
Chacun peut proposer un nouveau thème graphique ou un squelette et le mettre à disposition de la communauté. -
Les autorisations surchargées par les plugins
27 avril 2010, parMediaspip core
autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs -
Personnaliser les catégories
21 juin 2013, parFormulaire de création d’une catégorie
Pour ceux qui connaissent bien SPIP, une catégorie peut être assimilée à une rubrique.
Dans le cas d’un document de type catégorie, les champs proposés par défaut sont : Texte
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire.
Dans le cas d’un document de type média, les champs non affichés par défaut sont : Descriptif rapide
Par ailleurs, c’est dans cette partie configuration qu’on peut indiquer le (...)
Sur d’autres sites (12156)
-
FFMPEG on Android java application
11 juillet 2015, par Kim TI’m prototyping a Hybrid app using Cordova : https://cordova.apache.org. Also using this plugin : https://github.com/jbavari/cordova-plugin-video-editor
The plugin renders a video into new formats using FFMPEG. The specific piece of code which does this is here :
https://github.com/jbavari/cordova-plugin-video-editor/blob/master/src/android/VideoEditor.java
al.add("ffmpeg");
al.add("-i");
al.add(videoSrcPath);
String[] ffmpegCommand = al.toArray(new String[al.size()]);
vk.run(ffmpegCommand, workFolder, appContext);
Log.d(TAG, Arrays.toString(ffmpegCommand));When logged out in Android Studio with variables it is :
[ffmpeg, -y, -i, /storage/emulated/0/DCIM/Camera/20150709_172753.mp4, -strict, experimental, -s, 320x320, -r, 24, -vcodec, libx264, -preset, ultrafast, -b, 2097152, -ac, 1, -ar, 22050, -t, 2.0, /storage/emulated/0/Movies/HelloWorld/VID_render-1436477283566.mp4]
This is working perfectly.
I want to modify this command to allow multiple videos, and other options. Here is an FFMPEG terminal command i’ve tested on my machine working :
./ffmpeg -i a.mp4 -i b.mp4 -filter_complex "[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]" -map "[v]" -map "[a]" -loglevel debug -strict -2 output.mp4
I’ve attempted to modify the java code but this fails :
al.add("ffmpeg");
al.add("-i");
al.add(videoSrcPath);
al.add("-i");
al.add(videoSrcPath2);
al.add("-filter_complex");
al.add("[0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a]");
al.add("-map");
al.add("[v]");
al.add("-map");
al.add("[a]");
al.add("-strict");
al.add("-2");This is the failing command when logged out with variables :
[ffmpeg, -y, -i, /storage/emulated/0/DCIM/Camera/20150709_175137.mp4, -i, /storage/emulated/0/Movies/HelloWorld/20150709_234321.mp4, -filter_complex, [0:0] [0:1] [1:0] [1:1] concat=n=2:v=1:a=1 [v] [a], -map, [v], -map, [a], -strict, -2, experimental, -s, 320x320, -r, 24, -vcodec, libx264, -preset, ultrafast, -b, 2097152, -ac, 1, -ar, 22050, -t, 2.0, /storage/emulated/0/Movies/HelloWorld/VID_render-1436478706526.mp4]
I try to use the logging feature of FFMPEG, I can’t get it to return back to the Java Log, which really restricts what I can debug :(
al.add("-loglevel");
al.add("debug");Any help would be greatly appreciated !
-
java.io.IOException : Cannot append Mp4TrackImpl{handler='vide'} to Mp4TrackImpl{handler='vide'} since their Sample Description Boxes differ :
6 février 2014, par Arslan AhmadWhile Merging the multiple videos using ffmpeg I have got this Exception.
java.io.IOException: Cannot append Mp4TrackImpl{handler='vide'} to Mp4TrackImpl{handler='vide'} since their Sample Description Boxes differ:
-
Unwarping 180 VR Footage with FFmpeg v360 Filter
5 avril 2021, par Ted WilmontI am struggling at present. I have searched high and low for days and can't find a command that achieves what we want to do.


We have stereoscopic 180 degrees VR footage in a side-by-side equirectangular format that we want to convert to flat so we can process using further AI software.


We have already split the file in half across the width using FFmpeg so we have a "right" eye and a "left" eye video file.


For each video file, we need to convert the 180-degree equirectangular footage to a flat, unwarped video file using FFmpeg (and the v360 filter).


We've tried the following for example :


ffmpeg -i 2LEFT.mp4 -vf "v360=input=equirect:ih_fov=180:iv_fov=180:output=flat" 2LEFTTEST.mp4



However, this results in a very warped/misaligned video.


Some command examples, tips, suggestions as to convert the now monoscopic 180-degree equirectangular footage to a flat video file will be greatly appreciated.


Thank you for your help in advance.