
Recherche avancée
Médias (1)
-
The pirate bay depuis la Belgique
1er avril 2013, par
Mis à jour : Avril 2013
Langue : français
Type : Image
Autres articles (105)
-
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. -
Creating farms of unique websites
13 avril 2011, parMediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...) -
Contribute to a better visual interface
13 avril 2011MediaSPIP is based on a system of themes and templates. Templates define the placement of information on the page, and can be adapted to a wide range of uses. Themes define the overall graphic appearance of the site.
Anyone can submit a new graphic theme or template and make it available to the MediaSPIP community.
Sur d’autres sites (12605)
-
How to capture multiple screenshot from youtube video using ffmpeg with specific seek time
9 août 2017, par Md. Mehedi HasanI’m using ffmpeg to take screenshot from youtube video. I want to seek multiple timeline. I’ve used the following command to capture 1 screenshot by seek command :
ffmpeg -ss 00:02:10 -i "youtube-stream-url" -frames:v 1 out1.jpgHow I can take multiple screenshot via multiple seek time. I’ve searched for the solution but no success.
I’ve used the following command to take multiple screenshot as follows :
ffmpeg -noaccurate_seek -ss 00:01:10 -i "youtube-stream-url" -map 0:v:0 -vframes 1 -f mpeg "thumb/output_01.jpg" -ss 00:02:10 -i "youtube-stream-url" -map 1:v:0 -vframes 1 -f mpeg "thumb/output_02.jpg"Is there any way to generate screenshots from same input via seek command ? How to make it more faster ? How to skip multiple input(-i param) ? I’ve also tried with other commands but those are more slower. Can anyone help me ?
-
avconv : when using -loop option bail out if seek to start fails
30 juin 2017, par Peter Große -
FFmpeg SwrContext incorrectly converting leftover data after seek
27 avril 2017, par trigger_deathI currently have my own custom SFML SoundFileReader that uses FFmpeg for more file formats. It works great for the most part until you seek and then you get leftover data from the previous location when using
swr_convert
. I currently have a hackish (I think) solution to the problem where I callswr_init
after seeking to remove whatever data is leftover in there. I assumed thatswr_convert
’s documentation on flushing would be the solution to the issue yet either it doesn’t help or I’m not doing it correctly. Is there a proper way to clear the leftover data in theSwrContext
after seeking ?void seekBeginning() {
av_seek_frame(
m_formatContext, m_audioStream,
m_formatContext->streams[m_audioStream]->first_dts,
AVSEEK_FLAG_BACKWARD | AVSEEK_FLAG_ANY
);
avcodec_flush_buffers(m_codecContext);
// This fixes the issue but it seems like a horribly incorrect way of doing it
swr_init(m_convertContext);
// I've tried this but it doesn't seem to work
//swr_convert(m_convertContext, NULL, 0, NULL, 0);
}
Uint64 read(Int16* samples, Uint64 maxCount) {
Uint64 count = 0;
while (count < maxCount) {
if (m_packet->stream_index == m_audioStream) {
while (m_packet->size > 0) {
int gotFrame = 0;
int result = avcodec_decode_audio4(m_codecContext, m_frame, &gotFrame, m_packet);
if (result >= 0 && gotFrame) {
int samplesToRead = static_cast<int>(maxCount - count) / m_codecContext->channels;
if (samplesToRead > m_frame->nb_samples)
samplesToRead = m_frame->nb_samples;
m_packet->size -= result;
m_packet->data += result;
result = swr_convert(m_convertContext, (uint8_t**)&samples, samplesToRead, (const uint8_t**)m_frame->data, m_frame->nb_samples);
if (result > 0) {
count += result * m_codecContext->channels;
samples += result * m_codecContext->channels;
}
else {
m_packet->size = 0;
m_packet->data = NULL;
}
}
else {
m_packet->size = 0;
m_packet->data = NULL;
}
}
}
av_free_packet(m_packet);
}
return count;
}
</int>