
Recherche avancée
Médias (91)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
-
Stereo master soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Audio
-
Elephants Dream - Cover of the soundtrack
17 octobre 2011, par
Mis à jour : Octobre 2011
Langue : English
Type : Image
-
#7 Ambience
16 octobre 2011, par
Mis à jour : Juin 2015
Langue : English
Type : Audio
-
#6 Teaser Music
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
-
#5 End Title
16 octobre 2011, par
Mis à jour : Février 2013
Langue : English
Type : Audio
Autres articles (50)
-
La file d’attente de SPIPmotion
28 novembre 2010, parUne file d’attente stockée dans la base de donnée
Lors de son installation, SPIPmotion crée une nouvelle table dans la base de donnée intitulée spip_spipmotion_attentes.
Cette nouvelle table est constituée des champs suivants : id_spipmotion_attente, l’identifiant numérique unique de la tâche à traiter ; id_document, l’identifiant numérique du document original à encoder ; id_objet l’identifiant unique de l’objet auquel le document encodé devra être attaché automatiquement ; objet, le type d’objet auquel (...) -
MediaSPIP Init et Diogène : types de publications de MediaSPIP
11 novembre 2010, parÀ l’installation d’un site MediaSPIP, le plugin MediaSPIP Init réalise certaines opérations dont la principale consiste à créer quatre rubriques principales dans le site et de créer cinq templates de formulaire pour Diogène.
Ces quatre rubriques principales (aussi appelées secteurs) sont : Medias ; Sites ; Editos ; Actualités ;
Pour chacune de ces rubriques est créé un template de formulaire spécifique éponyme. Pour la rubrique "Medias" un second template "catégorie" est créé permettant d’ajouter (...) -
Changer son thème graphique
22 février 2011, parLe thème graphique ne touche pas à la disposition à proprement dite des éléments dans la page. Il ne fait que modifier l’apparence des éléments.
Le placement peut être modifié effectivement, mais cette modification n’est que visuelle et non pas au niveau de la représentation sémantique de la page.
Modifier le thème graphique utilisé
Pour modifier le thème graphique utilisé, il est nécessaire que le plugin zen-garden soit activé sur le site.
Il suffit ensuite de se rendre dans l’espace de configuration du (...)
Sur d’autres sites (5107)
-
FFmpeg image2 output : Control JPG image quality when using mjpeg_qsv
11 avril 2022, par clicMy FFmpeg command ouputs a series of JPG images. Simplified :




ffmpeg -f dshow -video_size 3840x2160 -framerate 25 -i "video=My
Webcam" -qscale:v 5 -vcodec mjpeg_qsv "C :\out\%d.jpg"




I want to use
-vcodec mjpeg_qsv
to leverage GPU acceleration. Usually (without "_qsv") I can control JPG image quality by usingqscale:v
, but it seems to have no effect in combination with mjpeg_qsv.

Is it even possible to control JPG image quality when using mjpeg_qsv ? If yes, any ideas how ? Thanks !


-
Google Analytics 4 (GA4) vs Matomo
7 avril 2022, par Erin -
Using ffmpeg avcodec_decode_video2 got_picture_ptr returns 0
3 septembre 2014, par kaikenI’m trying to playback the gopro live feed which consists of a series of very short .ts files encoded using H264. I tested it on videos with different containers (mkv,avi,mp4) and different codecs (MPEG4, H264, MSVIDEO1). However, the files from the gopro always returns
got_picture_ptr
as 0 fromavcodec_decode_video2
while the function returns the packet’s size. If I use ffplay or vlc it play the file without problem. I’m not sure what I’m doing wrong. I’m not very experienced with ffmpeg or video in general.Here is my test code. I based it off of this tutorial which is out of date but I was able to update the depreciated functions.
AVFormatContext *pFormatCtx = NULL;
AVCodecContext *pCodecCtx;
AVStream *pStream = NULL;
int videoStream;
AVCodec *pCodec;
AVFrame *pFrame=NULL, *pFrameRGB=NULL;
HBITMAP membmp;
int widht,height;
BYTE *membits;
int frameFinished;
AVPacket packet;
img_convert_ctx = NULL;
uint8_t *buffer;
int numBytes;
// Open video file
if(avformat_open_input(&pFormatCtx,params->fname,NULL,NULL)!=0)
return -1;
// Retrieve stream information
if(avformat_find_stream_info(pFormatCtx,NULL)<0)
return -1;
//av_dump_format(pFormatCtx, 0, path, 0);
// Find the first video stream
for(int i=0; inb_streams; i++)
if(pFormatCtx->streams[i]->codec->codec_type==AVMEDIA_TYPE_VIDEO)
{
pStream=pFormatCtx->streams[i];
videoStream = i;
break;
}
if(pStream==NULL)
return -1; // Didn't find a video stream
// Get a pointer to the codec context for the video stream
pCodecCtx=pStream->codec;
// Find the decoder for the video stream
pCodec=avcodec_find_decoder(pCodecCtx->codec_id);
if(pCodec==NULL) {
fprintf(stderr, "Unsupported codec!\n");
return -1; // Codec not found
}
// Open codec
if(avcodec_open2(pCodecCtx, pCodec, NULL)<0)
return -1;
// Allocate an AVFrame structure
pFrame=avcodec_alloc_frame();
pFrameRGB=avcodec_alloc_frame();
if(pFrameRGB==NULL)
return -1;
MakeBitmap(*params->memdc,membmp,(void**)&membits,pCodecCtx->width,pCodecCtx->height);
// Assign appropriate parts of buffer to image planes in pFrameRGB
// Note that pFrameRGB is an AVFrame, but AVFrame is a superset
// of AVPicture
avpicture_fill((AVPicture *)pFrameRGB, membits, PIX_FMT_RGB24,
pCodecCtx->width, pCodecCtx->height);
while (av_read_frame(pFormatCtx, &packet) >= 0)
{
// Is this a packet from the video stream?
if (packet.stream_index == videoStream)
{
// Decode video frame
int bytesUsed = avcodec_decode_video2(pCodecCtx, pFrame, &frameFinished, &packet);
// Did we get a video frame?
if(frameFinished)
{
//Do stuff with frame
}
}
// Free the packet that was allocated by av_read_frame
av_free_packet(&packet);
//if(i++>500)
// break;
}
DeleteObject(membmp);
// Free the frames
av_free(pFrameRGB);
av_free(pFrame);
// Close the codec
avcodec_close(pCodecCtx);
// Close the video file
avformat_close_input(&pFormatCtx);
return -1;For reference I’m doing this on Windows with the versions of the dlls :
- avcodec-56.dll
- avdevice-56.dll
- avfilter-5.dll
- avformat-56.dll
- avutil-54.dll
- postproc-53.dll
- swresample-1.dll
- swscale-3.dll
and sample video file https://www.dropbox.com/s/htlinnv3qk5dfiu/amba_hls-2.ts?dl=0