
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (105)
-
Encoding and processing into web-friendly formats
13 avril 2011, parMediaSPIP automatically converts uploaded files to internet-compatible formats.
Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
All uploaded files are stored online in their original format, so you can (...) -
Formulaire personnalisable
21 juin 2013, parCette page présente les champs disponibles dans le formulaire de publication d’un média et il indique les différents champs qu’on peut ajouter. Formulaire de création d’un Media
Dans le cas d’un document de type média, les champs proposés par défaut sont : Texte Activer/Désactiver le forum ( on peut désactiver l’invite au commentaire pour chaque article ) Licence Ajout/suppression d’auteurs Tags
On peut modifier ce formulaire dans la partie :
Administration > Configuration des masques de formulaire. (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...)
Sur d’autres sites (9740)
-
change video resolution to specific resolution using ffmpeg in python
2 novembre 2022, par davidI am trying the change the resolution of some videos. The original video resolution is 1920x1080. first, I have to change the resolution to 640X480. for this I used the following code :


subprocess.call(['ffmpeg.exe', '-y', '-i', pname1, '-vf', 'scale=-1:480,setsar=1:1', '-c:v','libx264', '-c:a', 'copy', pname2])



when I used this code it produces a file that I cannot open and when I try to open it in cmd it said : "Invalid data found when processing input".
I changed the code to this to have 640X480 :


subprocess.call(['ffmpeg.exe', '-y', '-i', pname1, '-vf', 'scale=640:-2,setsar=1:1', '-c:v','libx264', '-c:a', 'copy', pname2])



but the output is 640X360, what is the problem and how can I change the resolution from 1920x1080 to 640x480 ?
after that I have to change the resolution of videos to their original resolution (1920x1080) again.


-
nvenc encoder performed resolution 2560 * 1440 encoding yuv444 failed ?
8 novembre 2022, par Travis990NVIDIA Gefore GTX 1660Ti graphics card, I use video-sdk-samples for HEVC encoding, YUV format : NV_ENC_BUFFER_FORMAT_YUV444, resolution “1920 * 1080” and “3840 * 2160” resolution encoding is successful, but resolution 2560*1440 encoding, prompting error info :NV_ENC_ERR_INVALID_PARAM, I do not know where the problem lies ?


void NvEncoder::DoEncode(NV_ENC_INPUT_PTR inputBuffer, std::vector<bool> &vKeyFrame, std::vector> &vPacket, NV_ENC_PIC_PARAMS *pPicParams)
{
 NV_ENC_PIC_PARAMS picParams = {};
 if (pPicParams)
 {
 picParams = *pPicParams;
 }
 picParams.version = NV_ENC_PIC_PARAMS_VER;
 picParams.pictureStruct = NV_ENC_PIC_STRUCT_FRAME;
 picParams.inputBuffer = inputBuffer;
 picParams.bufferFmt = GetPixelFormat();
 picParams.inputWidth = GetEncodeWidth();
 picParams.inputHeight = GetEncodeHeight();
 picParams.outputBitstream = m_vBitstreamOutputBuffer[m_iToSend % m_nEncoderBuffer];
 picParams.completionEvent = m_vpCompletionEvent[m_iToSend % m_nEncoderBuffer];
 NVENCSTATUS nvStatus = m_nvenc.nvEncEncodePicture(m_hEncoder, &picParams);
 if (nvStatus == NV_ENC_SUCCESS || nvStatus == NV_ENC_ERR_NEED_MORE_INPUT)
 {
 m_iToSend++;
 GetEncodedPacket(m_vBitstreamOutputBuffer, vKeyFrame, vPacket, false);
 }
 else
 {
 printf("picParams.inputWidth = %d,picParams.inputHeight = %d \n", picParams.inputWidth, picParams.inputHeight);
 NVENC_THROW_ERROR("nvEncEncodePicture API failed", nvStatus);
 }
}

error:
nvEncEncodePicture Prompt Error:NV_ENC_ERR_INVALID_PARAM 

</bool>


`


-
FFmpeg script for linux and windows batch video encode different settings depending on video resolution [closed]
28 décembre 2022, par Jaroslav HavelI'm looking for advice, help. I would like to convert all home videos to H265 using ffmpeg. Videos are in different formats and resolutions (3GP, mov, avi, mpg, mp4). I have an idea of which setting to set for which resolution, but I don't know how to write it all into a script (windows and linux). For these resolutions


CRF 18-22 for <= 576p use 20
CRF 19-23 for > 576 and <= 720p use 21
CRF 20-24 for >720 and <= 1080p use 22
CRF 22-28 for >= 2160p 4K use 25



For windows i have


@ECHO OFF

FOR %%F IN ("*.*") DO (
 ffmpeg -i %%F -c:v libx265 -crf 20 -preset faster -profile:v main -pix_fmt yuv420p -acodec libmp3lame -b:a 192k %%~nF_new.mkv
)



Big thanks for the help