
Recherche avancée
Médias (1)
-
Sintel MP4 Surround 5.1 Full
13 mai 2011, par
Mis à jour : Février 2012
Langue : English
Type : Video
Autres articles (61)
-
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
-
Diogene : création de masques spécifiques de formulaires d’édition de contenus
26 octobre 2010, parDiogene est un des plugins ? SPIP activé par défaut (extension) lors de l’initialisation de MediaSPIP.
A quoi sert ce plugin
Création de masques de formulaires
Le plugin Diogène permet de créer des masques de formulaires spécifiques par secteur sur les trois objets spécifiques SPIP que sont : les articles ; les rubriques ; les sites
Il permet ainsi de définir en fonction d’un secteur particulier, un masque de formulaire par objet, ajoutant ou enlevant ainsi des champs afin de rendre le formulaire (...) -
Utilisation et configuration du script
19 janvier 2011, parInformations spécifiques à la distribution Debian
Si vous utilisez cette distribution, vous devrez activer les dépôts "debian-multimedia" comme expliqué ici :
Depuis la version 0.3.1 du script, le dépôt peut être automatiquement activé à la suite d’une question.
Récupération du script
Le script d’installation peut être récupéré de deux manières différentes.
Via svn en utilisant la commande pour récupérer le code source à jour :
svn co (...)
Sur d’autres sites (6653)
-
How to properly pass an asset FileDescriptor to FFmpeg using JNI in Android
6 janvier 2021, par William SeemannI'm trying to retrieve metadata in Android using FFmpeg, JNI and a Java FileDescriptor and it isn't' working. I know FFmpeg supports the pipe protocol so I'm trying to emmulate : "
cat test.mp3 | ffmpeg i pipe:0
" programmatically. I use the following code to get a FileDescriptor from an asset bundled with the Android application :


FileDescriptor fd = getContext().getAssets().openFd("test.mp3").getFileDescriptor();
setDataSource(fd, 0, 0x7ffffffffffffffL); // native function, shown below




Then, in my native (In C++) code I get the FileDescriptor by calling :



static void wseemann_media_FFmpegMediaMetadataRetriever_setDataSource(JNIEnv *env, jobject thiz, jobject fileDescriptor, jlong offset, jlong length)
{
 //...

 int fd = jniGetFDFromFileDescriptor(env, fileDescriptor); // function contents show below

 //...
}

// function contents
static int jniGetFDFromFileDescriptor(JNIEnv * env, jobject fileDescriptor) {
 jint fd = -1;
 jclass fdClass = env->FindClass("java/io/FileDescriptor");

 if (fdClass != NULL) {
 jfieldID fdClassDescriptorFieldID = env->GetFieldID(fdClass, "descriptor", "I");
 if (fdClassDescriptorFieldID != NULL && fileDescriptor != NULL) {
 fd = env->GetIntField(fileDescriptor, fdClassDescriptorFieldID);
 }
 }

 return fd;
}




I then pass the file descriptor pipe # (In C) to FFmpeg :



char path[256] = "";

FILE *file = fdopen(fd, "rb");

if (file && (fseek(file, offset, SEEK_SET) == 0)) {
 char str[20];
 sprintf(str, "pipe:%d", fd);
 strcat(path, str);
}

State *state = av_mallocz(sizeof(State));
state->pFormatCtx = NULL;

if (avformat_open_input(&state->pFormatCtx, path, NULL, &options) != 0) { // Note: path is in the format "pipe:<the fd="fd">"
 printf("Metadata could not be retrieved\n");
 *ps = NULL;
 return FAILURE;
}

if (avformat_find_stream_info(state->pFormatCtx, NULL) < 0) {
 printf("Metadata could not be retrieved\n");
 avformat_close_input(&state->pFormatCtx);
 *ps = NULL;
 return FAILURE;
}

// Find the first audio and video stream
for (i = 0; i < state->pFormatCtx->nb_streams; i++) {
 if (state->pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_VIDEO && video_index < 0) {
 video_index = i;
 }

 if (state->pFormatCtx->streams[i]->codec->codec_type == AVMEDIA_TYPE_AUDIO && audio_index < 0) {
 audio_index = i;
 }

 set_codec(state->pFormatCtx, i);
}

if (audio_index >= 0) {
 stream_component_open(state, audio_index);
}

if (video_index >= 0) {
 stream_component_open(state, video_index);
}

printf("Found metadata\n");
AVDictionaryEntry *tag = NULL;
while ((tag = av_dict_get(state->pFormatCtx->metadata, "", tag, AV_DICT_IGNORE_SUFFIX))) {
 printf("Key %s: \n", tag->key);
 printf("Value %s: \n", tag->value);
}

*ps = state;
return SUCCESS;
</the>



My issue is
avformat_open_input
doesn't fail but it also doesn't let me retrieve any metadata or frames, The same code works if I use a regular file URI (e.g file ://sdcard/test.mp3) as the path. What am I doing wrong ? Thanks in advance.


Note : if you would like to look at all of the code I'm trying to solve the issue in order to provide this functionality for my library : FFmpegMediaMetadataRetriever.


-
How to iterate over a certain patter of file names to use it on FFMPEG and PowerShell
26 novembre 2019, par Francisco LaferrièreI’m fairly inexperienced with PowerShell and I use it in certain occasions when I need to have total control of the conversion needed.
So, I am facing a problem where I have a collection of 20 videos. All share the same number pattern from 1300 to 1319, and I want to convert the whole collection of "MOV" files into "MP4" files using this command :
ffmpeg -i my-video-1300.mov -vcodec h264 -acodec mp2 my-video-1300.mp4
Is there a way to use a Regular Expression, wildcard, or whatever name is given to simply create a single line conversion command.
My idea of what it "should look like" is :
ffmpeg -i my-video-13[00-19].mov -vcodec h264 -acodec mp2 my-video-13[00-19].mp4
Of course this last line doesn’t work, but I would like to learn the correct way of doing it.
Thanks. -
doc : Update to Doxygen 1.7.6.1
18 novembre 2019, par NotTsunamidoc : Update to Doxygen 1.7.6.1
This will bring our doxyfile closer to the modern world and clean up some warnings in the doxygen output during a regular build. I believe it is pretty fair to use 1.7.6.1 given it released in 2011, with the 1.7.x branch a year prior. The current branch is 1.8, which released 2012, but I believe 1.7.6.1 is sufficient.
Updated by running doxygen -u doc/Doxygen.in with Doxygen 1.7.6.1. The only manual change was adding 'Free Lossless Audio Codec' to PROJECT_BRIEF.