
Recherche avancée
Autres articles (74)
-
Dépôt de média et thèmes par FTP
31 mai 2013, parL’outil MédiaSPIP traite aussi les média transférés par la voie FTP. Si vous préférez déposer par cette voie, récupérez les identifiants d’accès vers votre site MédiaSPIP et utilisez votre client FTP favori.
Vous trouverez dès le départ les dossiers suivants dans votre espace FTP : config/ : dossier de configuration du site IMG/ : dossier des média déjà traités et en ligne sur le site local/ : répertoire cache du site web themes/ : les thèmes ou les feuilles de style personnalisées tmp/ : dossier de travail (...) -
Mise à jour de la version 0.1 vers 0.2
24 juin 2013, parExplications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...) -
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 ;
Sur d’autres sites (9113)
-
hls : Sync the file number with the start sequence
29 avril 2014, par Luca Barbato -
x86/vvc/vvc_mc : set the correct number of used registers in vvc_w_avg functions
1er février 2024, par James Almer -
How to set the reference frame number correctly in ffmpeg x265
8 mai 2020, par luodonghui1234I have a problem when using x265 in ffmpeg. The following code is that I use x265 params to set the reference frame number of P frame. I have checked the x265 document and set the — ref parameter to achieve the purpose I want, but it is invalid. The resolution of the encoded P frame header to num_negative_pics is always 2. I need to set this number to 1, that is to say, any P frame only needs to refer to the previous frame.



m_cVideoCodeCtxt->flags |= AV_CODEC_FLAG_CLOSED_GOP;
m_cVideoCodeCtxt->rc_max_rate = m_iRate;
m_cVideoCodeCtxt->rc_min_rate = (int)m_iRate / 2;
m_cVideoCodeCtxt->rc_buffer_size = m_iRate;
m_cVideoCodeCtxt->bit_rate = (int)m_iRate;

m_cVideoCodeCtxt->width = 1920; 
m_cVideoCodeCtxt->height = 1080; 
m_cVideoCodeCtxt->time_base = { 1, 30 };
m_cVideoCodeCtxt->framerate = { 30 ,1};
m_cVideoCodeCtxt->frame_number = 1; 
m_cVideoCodeCtxt->gop_size = 30; 
m_cVideoCodeCtxt->max_b_frames = 0; 
m_cVideoCodeCtxt->thread_count = 4;
m_cVideoCodeCtxt->pix_fmt = pix_fmt;
m_cVideoCodeCtxt->codec_type = AVMEDIA_TYPE_VIDEO;
m_cVideoCodeCtxt->codec_id = m_fVideoFmCtxt->video_codec_id;
int ret = av_opt_set(m_cVideoCodeCtxt->priv_data, "preset", "ultrafast", 0);
ret = av_opt_set(m_cVideoCodeCtxt->priv_data, "tune", "zerolatency", 0);

CString cstrX265Parms = L"";
cstrX265Parms.Format(L"keyint=%d:ref=1:no-open-gop=1:weightp=1:b_pyramid=1:weightb=0:cutree=0:rc-lookahead=0:bframes=0:scenecut=0:b-adapt=0:repeat-headers=1:max-merge=1", m_iFrameRate);
USES_CONVERSION;
char* cX265Parms = W2A(cstrX265Parms);
ret = av_opt_set(m_cVideoCodeCtxt->priv_data, "x265-params", cX265Parms, 0);




Is there a problem with my code ? Or need to cooperate with other parameter settings