Recherche avancée

Médias (91)

Autres articles (61)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • Automated installation script of MediaSPIP

    25 avril 2011, par

    To overcome the difficulties mainly due to the installation of server side software dependencies, an "all-in-one" installation script written in bash was created to facilitate this step on a server with a compatible Linux distribution.
    You must have access to your server via SSH and a root account to use it, which will install the dependencies. Contact your provider if you do not have that.
    The documentation of the use of this installation script is available here.
    The code of this (...)

  • Demande de création d’un canal

    12 mars 2010, par

    En fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
    Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...)

Sur d’autres sites (5130)

  • change video resolution to specific resolution using ffmpeg in python

    2 novembre 2022, par david

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

    NVIDIA 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> &amp;vKeyFrame, std::vector> &amp;vPacket, NV_ENC_PIC_PARAMS *pPicParams)&#xA;{&#xA;    NV_ENC_PIC_PARAMS picParams = {};&#xA;    if (pPicParams)&#xA;    {&#xA;        picParams = *pPicParams;&#xA;    }&#xA;    picParams.version = NV_ENC_PIC_PARAMS_VER;&#xA;    picParams.pictureStruct = NV_ENC_PIC_STRUCT_FRAME;&#xA;    picParams.inputBuffer = inputBuffer;&#xA;    picParams.bufferFmt = GetPixelFormat();&#xA;    picParams.inputWidth = GetEncodeWidth();&#xA;    picParams.inputHeight = GetEncodeHeight();&#xA;    picParams.outputBitstream = m_vBitstreamOutputBuffer[m_iToSend % m_nEncoderBuffer];&#xA;    picParams.completionEvent = m_vpCompletionEvent[m_iToSend % m_nEncoderBuffer];&#xA;    NVENCSTATUS nvStatus = m_nvenc.nvEncEncodePicture(m_hEncoder, &amp;picParams);&#xA;    if (nvStatus == NV_ENC_SUCCESS || nvStatus == NV_ENC_ERR_NEED_MORE_INPUT)&#xA;    {&#xA;        m_iToSend&#x2B;&#x2B;;&#xA;        GetEncodedPacket(m_vBitstreamOutputBuffer, vKeyFrame, vPacket, false);&#xA;    }&#xA;    else&#xA;    {&#xA;        printf("picParams.inputWidth = %d,picParams.inputHeight = %d \n", picParams.inputWidth, picParams.inputHeight);&#xA;        NVENC_THROW_ERROR("nvEncEncodePicture API failed", nvStatus);&#xA;    }&#xA;}&#xA;&#xA;error:&#xA;nvEncEncodePicture Prompt Error:NV_ENC_ERR_INVALID_PARAM &#xA;&#xA;</bool>

    &#xA;

    `

    &#xA;

  • FFmpeg script for linux and windows batch video encode different settings depending on video resolution [closed]

    28 décembre 2022, par Jaroslav Havel

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

    &#xA;

    CRF 18-22 for &lt;= 576p use 20&#xA;CRF 19-23 for > 576 and &lt;= 720p use 21&#xA;CRF 20-24 for >720 and &lt;= 1080p use 22&#xA;CRF 22-28 for >= 2160p 4K use 25&#xA;

    &#xA;

    For windows i have

    &#xA;

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

    &#xA;

    Big thanks for the help

    &#xA;