Recherche avancée

Médias (91)

Autres articles (55)

  • Websites made ​​with MediaSPIP

    2 mai 2011, par

    This page lists some websites based on MediaSPIP.

  • List of compatible distributions

    26 avril 2011, par

    The 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 (...)

  • Creating farms of unique websites

    13 avril 2011, par

    MediaSPIP platforms can be installed as a farm, with a single "core" hosted on a dedicated server and used by multiple websites.
    This allows (among other things) : implementation costs to be shared between several different projects / individuals rapid deployment of multiple unique sites creation of groups of like-minded sites, making it possible to browse media in a more controlled and selective environment than the major "open" (...)

Sur d’autres sites (12574)

  • change resolution of video using ffmpeg

    28 octobre 2022, par david

    I have a folder that contains videos with a resolution of 1080 and different bitrates. I am trying to change their resolution to 480 and using the following code :

    


    subprocess.call(['ffmpeg.exe','-i', pname1,'-vf', 'scale=-1:480,setsar=1:1','-c:v','libx264','-pix_fmt' ,'yuv420p','-b:v', str(cnt)+'K', '-bufsize', str(cnt)+'K' ,'-minrate', str(cnt)+'K','-maxrate', str(cnt)+'K', '-x264opts','keyint=60:min-keyint=60','-preset', 'veryfast', '-profile:v', 'high', '-f', 'hls', '-hls_time', '2', '-hls_list_size','0', pname2])


    


    but it produces noting in the related filename (pname2). it also shows no error.
what is the problem and how can I change the resolution to 480 ?

    


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