
Recherche avancée
Médias (2)
-
GetID3 - Bloc informations de fichiers
9 avril 2013, par
Mis à jour : Mai 2013
Langue : français
Type : Image
-
GetID3 - Boutons supplémentaires
9 avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (69)
-
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 est la première version de MediaSPIP stable.
Sa date de sortie officielle est le 21 juin 2013 et est annoncée ici.
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Comme pour la version précédente, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
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 -
Configuration spécifique pour PHP5
4 février 2011, parPHP5 est obligatoire, vous pouvez l’installer en suivant ce tutoriel spécifique.
Il est recommandé dans un premier temps de désactiver le safe_mode, cependant, s’il est correctement configuré et que les binaires nécessaires sont accessibles, MediaSPIP devrait fonctionner correctement avec le safe_mode activé.
Modules spécifiques
Il est nécessaire d’installer certains modules PHP spécifiques, via le gestionnaire de paquet de votre distribution ou manuellement : php5-mysql pour la connectivité avec la (...)
Sur d’autres sites (10553)
-
How to find video time by using FFProbe in java ?
13 octobre 2022, par Dadireddy ChennaI have used the below logic to get the duration but how can i convert to time using any library ?


<dependency>
 <groupid>net.bramp.ffmpeg</groupid>
 <artifactid>ffmpeg</artifactid>
 <version>0.7.0</version>
 </dependency>

 FFprobe ffprobe = new FFprobe();
 FFmpegProbeResult probeResult = ffprobe.probe(mediaPath);
 FFmpegFormat format = probeResult.getFormat();
 double duration = format.duration;
 // how to convert double to video time (01:29:01)



ffprobe -i /video/sample.mp4 -show_entries format=duration -v quiet -of csv="p=0" -sexagesimal


-
where can i find the file and android write in JNI
14 janvier 2016, par chaoqiI wirte a test demo for ffmpeg, read a
flac
file and decoder it to a newpcm
file.after done the work, i could not find the output file.
so I open the output file with a new
FILE
pointer, and open is ok, does anybody give any tips, thanks.static int decode_packet(int *got_frame, int cached)
{
int ret = 0;
int decoded = pkt.size;
*got_frame = 0;
if (pkt.stream_index == audio_stream_idx) {
/* decode audio frame */
ret = avcodec_decode_audio4(audio_dec_ctx, frame, got_frame, &pkt);
if (ret < 0) {
LOG("Error decoding audio frame (%s)\n", av_err2str(ret));
return ret;
}
decoded = FFMIN(ret, pkt.size);
if (*got_frame) {
LOG("frame->format: %d", frame->format);
size_t unpadded_linesize = frame->nb_samples * av_get_bytes_per_sample(AV_SAMPLE_FMT_S16/*frame->format*/);
LOG("audio_frame%s n:%d nb_samples:%d pts:%s\n", cached ? "(cached)" : "", audio_frame_count++, frame->nb_samples,
av_ts2timestr(frame->pts, &audio_dec_ctx->time_base));
fwrite(frame->extended_data[0], 1, unpadded_linesize, audio_dst_file);
}
}
if (*got_frame && api_mode == API_MODE_NEW_API_REF_COUNT)
av_frame_unref(frame);
return decoded;
}
// as convient i write the abspath `/storage/emulated/0` which i got by rountine Environment.getExternalStorageDirectory().getAbsolutePath()
const char *src_filename = "/storage/emulated/0/pyghlkn.flac";
const char *audio_dst_filename = "/storage/emulated/0/test.pcm";
FILE *audio_dst_file = NULL;
FILE *audio_dump = NULL;
JNIEXPORT void JNICALL Java_cn_com_longmaster_ffmpeg_encoder
(JNIEnv *, jobject)
{
//......
/* read frames from the file */
while (av_read_frame(fmt_ctx, &pkt) >= 0) {
AVPacket orig_pkt = pkt;
do {
ret = decode_packet(&got_frame, 0);
LOG("write decode_packet... pkt.size: %d ", pkt.size);
if (ret < 0)
break;
pkt.data += ret;
pkt.size -= ret;
} while (pkt.size > 0);
av_free_packet(&orig_pkt);
}
/* flush cached frames */
pkt.data = NULL;
pkt.size = 0;
do {
decode_packet(&got_frame, 1);
LOG("flush cached frames");
} while (got_frame);
if (audio_dump)
{
LOG("default audio_dump ready...");
}
else
{
LOG("default audio_dump not ready...");
}
audio_dump = fopen(audio_dst_filename, "rb");
if (audio_dump) {
LOG("open pcm file ok...");
} else {
LOG("open pcm file fail...");
}
avcodec_close(audio_dec_ctx);
avformat_close_input(&fmt_ctx);
if (audio_dst_file) {
fclose(audio_dst_file);
}
av_frame_free(&frame);
return ;
} -
Find all video files in directory with FLAC audio codec
8 septembre 2023, par JSSpenIs it possible to search a directory and output a text file listing every video file that has FLAC audio ?


My television doesn't support FLAC so when I run into one I have been converting them with a FFMPEG script but it would be nice to be able to find them all in advance instead of waiting until I hit the problem while trying to play the files. I'm hoping there is a way that doesn't involve just opening every file in Mediainfo and checking manually.


Maybe there is a way to just output all of the Mediainfo information for a directory and then I can just find all FLAC occurrences in a csv sheet ?