
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 (15)
-
Les formats acceptés
28 janvier 2010, parLes commandes suivantes permettent d’avoir des informations sur les formats et codecs gérés par l’installation local de ffmpeg :
ffmpeg -codecs ffmpeg -formats
Les format videos acceptés en entrée
Cette liste est non exhaustive, elle met en exergue les principaux formats utilisés : h264 : H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 m4v : raw MPEG-4 video format flv : Flash Video (FLV) / Sorenson Spark / Sorenson H.263 Theora wmv :
Les formats vidéos de sortie possibles
Dans un premier temps on (...) -
Ajouter notes et légendes aux images
7 février 2011, parPour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
Modification lors de l’ajout d’un média
Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...) -
MediaSPIP v0.2
21 juin 2013, parMediaSPIP 0.2 is the first MediaSPIP stable release.
Its official release date is June 21, 2013 and is announced here.
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...)
Sur d’autres sites (2098)
-
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


-
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>


`


-
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.