
Recherche avancée
Médias (91)
-
Chuck D with Fine Arts Militia - No Meaning No
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Paul Westerberg - Looking Up in Heaven
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Le Tigre - Fake French
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Thievery Corporation - DC 3000
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Dan the Automator - Relaxation Spa Treatment
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
-
Gilberto Gil - Oslodum
15 septembre 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Audio
Autres articles (54)
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela. -
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 (9514)
-
prores : Change type of stride parameters to ptrdiff_t
24 août 2016, par Diego Biurrunprores : Change type of stride parameters to ptrdiff_t
This avoids SIMD-optimized functions having to sign-extend their
line size argument manually to be able to do pointer arithmetic.Also adjust parameter names to be "linesize" everywhere.
-
Video Trimming Using FFMPEG(ANDROID)
16 juin 2016, par user3669034I am using Video Triming code for trim videos using FFMPEG. I used below code first, but the app crashed when I add second video.
#include
#include "include/net_video_trimmer_natives_VideoTrimmer.h"
#include "libswscale/swscale.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "ffmpeg.h"
#include
#include
#include <android></android>log.h>
void log_message(char* message) {
__android_log_write(ANDROID_LOG_ERROR, "VideoTrimmer", message);
}
void reverse(char s[])
{
int i, j;
char c;
for (i = 0, j = strlen(s)-1; i* itoa: convert n to characters in s */
void itoa(int n, char s[])
{
int i, sign;
if ((sign = n) < 0) /* record sign */
n = -n; /* make n positive */
i = 0;
do { /* generate digits in reverse order */
s[i++] = n % 10 + '0'; /* get next digit */
} while ((n /= 10) > 0); /* delete it */
if (sign < 0)
s[i++] = '-';
s[i] = '\0';
reverse(s);
}
JNIEXPORT jint JNICALL Java_net_video_trimmer_natives_VideoTrimmer_trim(JNIEnv *env,
jclass someclass, jstring inputFile, jstring outFile, jint startTime,
jint length) {
log_message("Starting to cut");
int numberOfArgs = 12;
char** arguments = calloc(numberOfArgs, sizeof(char*));
char start[5], duration[5];
const char *in, *out;
itoa(startTime, start);
itoa(length, duration);
in = (*env)->GetStringUTFChars(env, inputFile, 0);
out = (*env)->GetStringUTFChars(env, outFile, 0);
arguments[0] = "ffmpeg";
arguments[1] = "-i";
arguments[2] = in;
arguments[3] = "-ss";
arguments[4] = start;
arguments[5] = "-t";
arguments[6] = duration;
arguments[7] = "-vcodec";
arguments[8] = "copy";
arguments[9] = "-acodec";
arguments[10] = "copy";
// arguments[11] = "-strict";
// arguments[12] = "experimental";
// arguments[13] = "-ab";
// arguments[14] = "12k";
arguments[11] = out;
int i;
for (i = 0; i < numberOfArgs; i++) {
log_message(arguments[i]);
}
log_message("Printed all");
ffmpeg_main(numberOfArgs, arguments);
log_message("Finished cutting");
free(arguments);
(*env)->ReleaseStringUTFChars(env, inputFile, in);
(*env)->ReleaseStringUTFChars(env, outFile, out);
return 0;
}I searched over the internet for this problem and try to close it when the Trimming operation is done and add
handle = dlopen("/data/data/my.package.com/lib/libffmpeg.so", RTLD_LAZY),
ffmpeg_main= (func)dlsym(handle, "Java_net_video_trimmer_natives_VideoTrimmer_trim") ;
dlclose(handle) ;
But right now it doesn’t even make the first trim and crash when start to trimming.#include
#include "include/net_video_trimmer_natives_VideoTrimmer.h"
#include "libswscale/swscale.h"
#include "libavcodec/avcodec.h"
#include "libavformat/avformat.h"
#include "ffmpeg.h"
#include
#include
#include <android></android>log.h>
#include
void log_message(char* message) {
__android_log_write(ANDROID_LOG_ERROR, "VideoTrimmer", message);
}
void reverse(char s[])
{
int i, j;
char c;
for (i = 0, j = strlen(s)-1; i* itoa: convert n to characters in s */
void itoa(int n, char s[])
{
int i, sign;
if ((sign = n) < 0) /* record sign */
n = -n; /* make n positive */
i = 0;
do { /* generate digits in reverse order */
s[i++] = n % 10 + '0'; /* get next digit */
} while ((n /= 10) > 0); /* delete it */
if (sign < 0)
s[i++] = '-';
s[i] = '\0';
reverse(s);
}
JNIEXPORT jint JNICALL Java_net_video_trimmer_natives_VideoTrimmer_trim(JNIEnv *env,
jclass someclass, jstring inputFile, jstring outFile, jint startTime,
jint length) {
log_message("Starting to cut");
void* handle;
int (*ffmpeg_main)(int,char **); // define function prototype
int numberOfArgs = 12;
char** arguments = calloc(numberOfArgs, sizeof(char*));
char start[5], duration[5];
const char *in, *out;
itoa(startTime, start);
itoa(length, duration);
in = (*env)->GetStringUTFChars(env, inputFile, 0);
out = (*env)->GetStringUTFChars(env, outFile, 0);
handle = dlopen("/data/data/package_name/lib/libffmpeg.so", RTLD_LAZY);
arguments[0] = "ffmpeg";
arguments[1] = "-i";
arguments[2] = in;
arguments[3] = "-ss";
arguments[4] = start;
arguments[5] = "-t";
arguments[6] = duration;
arguments[7] = "-vcodec";
arguments[8] = "copy";
arguments[9] = "-acodec";
arguments[10] = "copy";
// arguments[11] = "-strict";
// arguments[12] = "experimental";
// arguments[13] = "-ab";
// arguments[14] = "12k";
arguments[11] = out;
int i;
for (i = 0; i < numberOfArgs; i++) {
log_message(arguments[i]);
}
log_message("Printed all");
(*env)->ReleaseStringUTFChars(env, inputFile, in);
(*env)->ReleaseStringUTFChars(env, outFile, out);
ffmpeg_main= dlsym(handle, "Java_net_video_trimmer_natives_VideoTrimmer_trim");
ffmpeg_main(numberOfArgs, arguments);
log_message("Finished cutting");
dlclose(handle);
return 0;
}Please help me with your advice and let me know where I have to change the code.
Thanks -
What is Audience Segmentation ? The 5 Main Types & Examples
16 novembre 2023, par Erin — Analytics Tips