
Recherche avancée
Médias (91)
-
#3 The Safest Place
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#4 Emo Creates
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#2 Typewriter Dance
15 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#1 The Wires
11 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
ED-ME-5 1-DVD
11 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Revolution of Open-source and film making towards open film making
6 octobre 2011, par
Mis à jour : Juillet 2013
Langue : English
Type : Texte
Autres articles (112)
-
Script d’installation automatique de MediaSPIP
25 avril 2011, parAfin de palier aux difficultés d’installation dues principalement aux dépendances logicielles coté serveur, un script d’installation "tout en un" en bash a été créé afin de faciliter cette étape sur un serveur doté d’une distribution Linux compatible.
Vous devez bénéficier d’un accès SSH à votre serveur et d’un compte "root" afin de l’utiliser, ce qui permettra d’installer les dépendances. Contactez votre hébergeur si vous ne disposez pas de cela.
La documentation de l’utilisation du script d’installation (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
La sauvegarde automatique de canaux SPIP
1er avril 2010, parDans le cadre de la mise en place d’une plateforme ouverte, il est important pour les hébergeurs de pouvoir disposer de sauvegardes assez régulières pour parer à tout problème éventuel.
Pour réaliser cette tâche on se base sur deux plugins SPIP : Saveauto qui permet une sauvegarde régulière de la base de donnée sous la forme d’un dump mysql (utilisable dans phpmyadmin) mes_fichiers_2 qui permet de réaliser une archive au format zip des données importantes du site (les documents, les éléments (...)
Sur d’autres sites (11525)
-
ffmpeg taking so much time to extract frames from mpeg-ts file
19 septembre 2016, par Syed AzaruddinI got a problem from one mpeg-ts video. Actually it was created by some one else and even I don’t know how they are created. The problem is that, ffmpeg is taking so much time to decode all frames from the mpeg-ts video. The command I used for this operation is...
ffmpeg -i shame-run.mov -r 24/1 test/output%d.jpg
Actually my application is integrated with ffmpeg v2.1.1. and I had a code for detecting black frames in a mpeg-ts video. Here, my code is not able to detect all black frames from ffmpeg for this mpeg-ts video. So, I taken standalone ffmpeg of same version as mentioned above and decoded standalone. But, it is taking so much time i.e., it is taken half an hour for decoding 1 min duration video.
So, is there any reason is that ffmpeg not able to extract as fast as required, and is there any reason that video got some errors.
-
Libav API : How to modify the start time of an audio stream ?
24 avril 2022, par xtingrayCurrently, I am working on a new feature for my software using the Libav API. I was able to merge a video file with and audio file, the output is an MP4 file and the source code works perfectly.


Right now, I have a new requirement : the start time for the video and the audio streams are the same. Both start at 00:00. My next challenge is to add an option to shift the start time for the audio stream based on a variable. For example, if audio start variable is equal to 10 seconds, then the audio stream should be played at time 00:10.


So I wonder, what is the best approach to implement this feature ? Should I insert silent packets before the audio start time is reached ? Or should I modify the timestamp information for every audio stream packet before it is written into the output container ?


Here is the piece of code I use to write the audio stream into the MP4 file. Right now it works like a charm, but I guess this is the place where I should implement the new requirement. I will appreciate any suggestion.


while (1) {
 AVStream *in_stream;

 int ret = av_read_frame(audioInputFormatContext, pkt);
 if (ret < 0)
 break;

 in_stream = audioInputFormatContext->streams[pkt->stream_index];
 pkt->stream_index = outIndex;

 AVRational out_time_base = audioStreamList.at(i)->time_base;

 // copy packet
 pkt->pts = av_rescale_q_rnd(pkt->pts, in_stream->time_base, audioStreamList.at(i)->time_base,
 static_cast<avrounding>(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
 pkt->dts = av_rescale_q_rnd(pkt->dts, in_stream->time_base, audioStreamList.at(i)->time_base,
 static_cast<avrounding>(AV_ROUND_NEAR_INF|AV_ROUND_PASS_MINMAX));
 pkt->duration = av_rescale_q(pkt->duration, in_stream->time_base, audioStreamList.at(i)->time_base);
 pkt->pos = -1;

 ret = av_interleaved_write_frame(formatContext, pkt);
 if (ret < 0) {
 fprintf(stderr, "Error muxing packet\n");
 break;
 }
 av_packet_unref(pkt);
}
</avrounding></avrounding>


-
FFMPEG streaming RTP : time base not set
25 octobre 2020, par ManagarmI'm trying to create a small demo to get a feeling for streaming programmatically with ffmpeg. I'm using the code from this question as a basis. I can compile my code, but when I try to run it I always get this error :





[rtp @ 0xbeb480] time base not set





The thing is, I have set the time base parameters. I even tried setting them for the stream (and the codec associated with the stream) as well, even though this should not be necessary as far as I understand it. This is the relevant section in my code :



AVCodec* codec = avcodec_find_encoder(AV_CODEC_ID_H264);
AVCodecContext* c = avcodec_alloc_context3(codec);
c->pix_fmt = AV_PIX_FMT_YUV420P;
c->flags = CODEC_FLAG_GLOBAL_HEADER;
c->width = WIDTH;
c->height = HEIGHT;
c->time_base.den = FPS;
c->time_base.num = 1;
c->gop_size = FPS;
c->bit_rate = BITRATE;

avcodec_open2(c, codec, NULL);
struct AVStream* stream = avformat_new_stream(avctx, codec);

// TODO: causes an error
avformat_write_header(avctx, NULL);




The error occurs when calling "avformat_write_header" near the end. All methods that can fail (like avcodec_open2) are checked, I just removed the checks to make the code more readable.



Digging through google and the ffmpeg source code didn't yield any useful results. I think it's really basic, but I'm stuck. Who can help me ?