
Recherche avancée
Médias (1)
-
Richard Stallman et le logiciel libre
19 octobre 2011, par
Mis à jour : Mai 2013
Langue : français
Type : Texte
Autres articles (47)
-
List of compatible distributions
26 avril 2011, parThe table below is the list of Linux distributions compatible with the automated installation script of MediaSPIP. Distribution nameVersion nameVersion number Debian Squeeze 6.x.x Debian Weezy 7.x.x Debian Jessie 8.x.x Ubuntu The Precise Pangolin 12.04 LTS Ubuntu The Trusty Tahr 14.04
If you want to help us improve this list, you can provide us access to a machine whose distribution is not mentioned above or send the necessary fixes to add (...) -
MediaSPIP Core : La Configuration
9 novembre 2010, parMediaSPIP Core fournit par défaut trois pages différentes de configuration (ces pages utilisent le plugin de configuration CFG pour fonctionner) : une page spécifique à la configuration générale du squelettes ; une page spécifique à la configuration de la page d’accueil du site ; une page spécifique à la configuration des secteurs ;
Il fournit également une page supplémentaire qui n’apparait que lorsque certains plugins sont activés permettant de contrôler l’affichage et les fonctionnalités spécifiques (...) -
Gestion des droits de création et d’édition des objets
8 février 2011, parPar défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;
Sur d’autres sites (9250)
-
Adding Subtitles to a VAAPI/QSV 10bit Accelerated Transcode
17 juin 2023, par EnverexI've been converting some of my BluRays to watch on a streaming machine elsewhere in the house but I'm having trouble when it comes to burning subtitles, or more specifically, I'm having trouble figuring out what FFMPEG wants from me to make the process actually work.


It's easy enough to do this in software, but I'm using hardware decoding and encoding and that's where the complexity seems to come from (VAAPI/QSV for decoding, QSV AV1 for encoding).


I can use the following when dealing with SDR content :


-vf "scale_vaapi=w='min(1920,iw)':h=-8:mode=nl_anamorphic:format=p010le:extra_hw_frames=120,hwmap=derive_device=qsv,format=qsv"



And the following when dealing with HDR content :


-vf "scale_vaapi=w='min(1920,iw)':h=-8:mode=nl_anamorphic:format=p010le,tonemap_vaapi=format=p010le:t=bt709:m=bt709:p=bt709:extra_hw_frames=120,hwmap=derive_device=qsv,format=qsv"



But I cannot, in the hundreds of permutations I've tried now, find a single way to shoehorn subtitle baking into the process. I'm using SRT files for simplicity, so I just need to add
subtitles=blah.srt
somewhere to get it to work, but the crux of the issue is knowing where in the chain it needs to go and more importantly, what supporting arguments it needs with it (e.g. hwupload, hwdownload, and their associated switches, etc).

Pretty much every single attempt just results in :




Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0'
Error reinitializing filters !
Failed to inject frame into filter network : Function not implemented




So, what am I missing ?


-
ffmpeg : how to replace img_convert() with sws_scale()
23 juillet 2017, par YoohooI have an old version FFmpeg code like this :
int ret = img_convert((AVPicture *)picture, c->pix_fmt,
(AVPicture *)input_picture, (PixelFormat)input_pix_fmt,
width, height);
if (ret < 0)
return false;I noticed that in new ffmpeg, the img_convert() has been replaced by sws_scale(), I followed the format and change like this :
int w = width;
int h = height;
static struct SwsContext *img_convert_ctx
= sws_getContext(w, h, (PixelFormat)input_pix_fmt,
w, h, c->pix_fmt,
SWS_BICUBIC, NULL, NULL, NULL);
int ret = sws_scale(img_convert_ctx,
input_picture->data,
input_picture->linesize,
0,
height,
(AVPicture *)picture,
(AVPicture *)picture);
if (ret < 0) {
return false;
}
sws_freeContext(img_convert_ctx);but it gives the error :
error: cannot convert ‘AVPicture*’ to ⏎
‘uint8_t* const* {aka unsigned char* const*}’ for argument ‘6’ to ⏎
‘int sws_scale(SwsContext*, const uint8_t* const*, ⏎
const int*, int, int, uint8_t* const*, const int*)’It seems the error falls in the last two parameters of sws_scale. How should I modify it ?
And is it caused by c and c++ incompatible problem ? I am now run FFmpeg in C, and use extern C to include the headers.
-
ffmpeg : how to repalce img_convert() with sws_scale()
24 août 2016, par YoohooI have an old version FFmpeg code like this :
int ret = img_convert((AVPicture *)picture, c->pix_fmt,
(AVPicture *)input_picture, (PixelFormat)input_pix_fmt,
width, height);
if (ret < 0)
return false;I noticed that in new ffmpeg, the img_convert() has been replaced by sws_scale(), I followed the format and change like this :
int w = width;
int h = height;
static struct SwsContext *img_convert_ctx
= sws_getContext(w, h, (PixelFormat)input_pix_fmt,
w, h, c->pix_fmt,
SWS_BICUBIC, NULL, NULL, NULL);
int ret = sws_scale(img_convert_ctx,
input_picture->data,
input_picture->linesize,
0,
height,
(AVPicture *)picture,
(AVPicture *)picture);
if (ret < 0) {
return false;
}
sws_freeContext(img_convert_ctx);but it gives the error :
error: cannot convert ‘AVPicture*’ to ⏎
‘uint8_t* const* {aka unsigned char* const*}’ for argument ‘6’ to ⏎
‘int sws_scale(SwsContext*, const uint8_t* const*, ⏎
const int*, int, int, uint8_t* const*, const int*)’It seems the error falls in the last two parameters of sws_scale. How should I modify it ?
And is it caused by c and c++ incompatible problem ? I am now run FFmpeg in C, and use extern C to include the headers.