
Recherche avancée
Autres articles (55)
-
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (7405)
-
Object detection in video file (ffmpeg & tensorflow ?)
13 mai 2021, par totolinoI would like to scan several video files for person in it.


Best way would be with ffmpeg and something like tensorflow.


tensorflow checks for persons in it, ffmpeg cuts the rest and the result is a video which only contains the frames with persons in it.


Is there a way to do this ?


-
SDL2 + ffmpeg2 intermittent clicks instead of audio
25 janvier 2014, par FertoVordalastrUsing c++, SDL2, SDL2_mix, ffmpeg2.
Inited SDL2_mix with callback
Mix_HookMusic(MusicPlayer, &g_audioPos);
Decoded audio from ogg to AVFrame* by this code :
while(av_read_frame(m_formatContext, &m_packet) >= 0)
{
if(m_packet.stream_index == m_audioStream)
{
int audio_frame_finished;
avcodec_decode_audio4(m_audioCodecContext, m_audioFrame, &audio_frame_finished, &m_packet);
if(!audio_frame_finished)
{
continue;
}
}
}After this code i have frame with some
m_audioFrame->data[0]
andm_audioFrame->linesize[0] == 4096
Once in a while my callback being called :
void MusicPlayer(void *_udata, Uint8 *_stream, int _len)
{
if(!g_audioData)
{
return;
}
AudioData* audio = reinterpret_cast(g_audioData);
if(!audio || audio->Frame->linesize[0] == 0)
{
return;
}
SDL_memcpy((Uint8*)audio->Data + audio->Pos, (Uint8*)audio->Frame->data[0], audio->Frame->linesize[0]);
audio->Pos+= audio->Frame->linesize[0];
int rest = g_chunkSize - audio->Pos;//frame->linesize[0];
if(rest <= 0)
{
SDL_memcpy(_stream, audio->Data, _len);
audio->Pos = 0;
*(int*)_udata += _len;
}
}_len == 8192, so i must push 2 frames to fill stream, but all i get - clicks in my speaker. What am i doing wrong ?
PS : Tried to reopen MIX with
Mix_OpenAudio(m_audioCodecContext->sample_rate, AUDIO_S16SYS, m_audioCodecContext->channels, 4096);
. Interesting thing ism_audioCodecContext->channels == 2
and when my callback being called_len = 16384
. Have no idea what to do. Please help !!! -
ffmpeg glitch while converting DNG sequence into mp4 video
21 août 2020, par AnnoyedByAdsI have two problems with FFmpeg, when I use it to join DNG files sequence into mp4 video file. I also need to downgrade the resolution of the video from 6016x3200 to 2030x1080.
First of all I got almost black screen in the resulting video. Had to play with gamma and brightness options. But it was not enough !


New problems :


- 

-
something strange happens with aspect ratio in resulting video file : in the first frame aspect is normal, just like in the original picture, but all the rest frames are getting squeezed. can't figure out why this happen !? (see picture attached).


-
colors are desaturated. despite the fact that I set "saturation" option to the maximum value. and also, the first frame of the video is different from the rest (while DNG files are all similar, first is no exception)








I tried prores codec as well, with the same result.


command I use is simple :


ffmpeg.exe -start_number 1 -i "K:\video\copter_R%5d.dng" -c:v libx264 -vf "fps=25,format=yuv420p, eq=gamma=3.2:brightness=0.2:contrast=1.6:saturation=3, scale=w=2030:h=1080" e:\output.mp4



I tried to use different variants of scale parameter : "scale=-1:1080" as well.


Illustration :




UPDATE : ffmpeg log report for operation :


https://drive.google.com/file/d/1H6bdpU0Eo4WfR3h-SRtgf7WBNYVFRwz2/view?usp=sharing


-