
Recherche avancée
Médias (1)
-
Video d’abeille en portrait
14 mai 2011, par
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (62)
-
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 -
Le profil des utilisateurs
12 avril 2011, parChaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...) -
Configurer la prise en compte des langues
15 novembre 2010, parAccéder à la configuration et ajouter des langues prises en compte
Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)
Sur d’autres sites (7066)
-
nutenc : do not use has_b_frames
15 novembre 2014, par Anton Khirnov -
NoClassDefFoundError at FFmpegFrameRecorder
30 janvier 2015, par Sanjay RapoluI am developing a android application and converting set of images into videos is one of its functionality. whenever I am trying to create an object of FFmpegFrameRecorder, NoClassDefFoundError java lang.ClassNotFoundException org.bytedeco.javacv.FFmpegFraerecorder exception is getting throwed. Here is the code on which I’m working. can anyone please suggest the reason for this error and the solution ?
package com.example.makevideo;
import java.io.File;
import org.bytedeco.javacpp.opencv_core;
import org.bytedeco.javacpp.opencv_core.IplImage;
import org.bytedeco.javacv.FFmpegFrameRecorder;
import android.app.Activity;
import android.os.Bundle;
import android.os.Environment;
import android.util.Log;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;
import static org.bytedeco.javacpp.opencv_highgui.cvLoadImage;
public class MainActivity extends Activity {
private static final String EXTR_DIR = "Screenshot";
String path = Environment.getExternalStorageDirectory() + File.separator
+ EXTR_DIR;
Button Record;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
System.out.println("Application Runs");
Toast.makeText(getApplicationContext(), path, Toast.LENGTH_SHORT)
.show();
;
recording();
}
private void recording() {
// TODO Auto-generated method stub
Record = (Button) findViewById(R.id.Record);
Record.setOnClickListener(new View.OnClickListener() {
@Override
public void onClick(View v) {
// TODO Auto-generated method stub
System.out.println(path);
Toast.makeText(getApplicationContext(), path, Toast.LENGTH_LONG)
.show();
Log.d("Record",
"Environment.getExternalStorageDirectory().getPath() : "
+ path);
record();
}
});
}
private void record() {
File folder = new File(path);
File[] listOfFiles = folder.listFiles();
opencv_core.IplImage[] iplimage = null;
if (listOfFiles.length > 0) {
System.out.println("in IFFF...");
// Toast.makeText(getApplicationContext(), listOfFiles.length,
// Toast.LENGTH_SHORT).show();
iplimage = new opencv_core.IplImage[listOfFiles.length];
for (int j = 0; j < listOfFiles.length; j++) {
String files = "";
if (listOfFiles[j].isFile()) {
files = listOfFiles[j].getName();
System.out.println(" j " + j + listOfFiles[j]);
}
String[] tokens = files.split("\\.(?=[^\\.]+$)");
String name = tokens[0];
Toast.makeText(getApplicationContext(),
"size=" + listOfFiles.length, Toast.LENGTH_SHORT)
.show();
iplimage[j] = cvLoadImage(path + File.separator + name + ".jpg");
}
}
FFmpegFrameRecorder recorder = new FFmpegFrameRecorder(path
+ File.separator + "OUTPUT" + System.currentTimeMillis()
+ ".mp4", 200, 150);
try {
recorder.setVideoCodec(13); // CODEC_ID_MPEG4 //CODEC_ID_MPEG1VIDEO
// //http://stackoverflow.com/questions/14125758/javacv-ffmpegframerecorder-properties-explanation-needed
recorder.setFrameRate(1); // This is the frame rate for video. If
// you really want to have good video
// quality you need to provide large set
// of images.
recorder.setPixelFormat(0); // PIX_FMT_YUV420P
recorder.start();
for (int i = 0; i < iplimage.length; i++) {
recorder.record(iplimage[i]);
}
recorder.stop();
Toast.makeText(MainActivity.this, "Record Completed",
Toast.LENGTH_SHORT).show();
} catch (Exception e) {
e.printStackTrace();
}
}
} -
check video actual resolution, not from metadata, on ubuntu
7 juillet 2015, par coral chenI need to check the dimension of a video. When I check its properties on Ubuntu 14.04, it shows 1920*1080, which is correct. However when I check it using ffmpeg, it shows 640*480 and PAR 1:1, which is set incorrectly in metadata.
How can I find out the actual dimension the video display without changing the metadata (since there are a lot of video like this) ? Or if anyone can explain how Ubuntu default video player can read it correctly ?