Recherche avancée

Médias (0)

Mot : - Tags -/performance

Aucun média correspondant à vos critères n’est disponible sur le site.

Autres articles (107)

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

  • Librairies et logiciels spécifiques aux médias

    10 décembre 2010, par

    Pour un fonctionnement correct et optimal, plusieurs choses sont à prendre en considération.
    Il est important, après avoir installé apache2, mysql et php5, d’installer d’autres logiciels nécessaires dont les installations sont décrites dans les liens afférants. Un ensemble de librairies multimedias (x264, libtheora, libvpx) utilisées pour l’encodage et le décodage des vidéos et sons afin de supporter le plus grand nombre de fichiers possibles. Cf. : ce tutoriel ; FFMpeg avec le maximum de décodeurs et (...)

Sur d’autres sites (8805)

  • youtube-dl python script postprocessing error : FFMPEG codecs aren't being recognized

    23 septembre 2016, par stackPusher

    My python script is trying to download youtube videos with youtube-dl.py. Works fine unless postprocessing is required. The code :

    import youtube_dl

    options = {
       'format':'bestaudio/best',
       'extractaudio':True,
       'audioformat':'mp3',
       'outtmpl':'%(id)s',     #name the file the ID of the video
       'noplaylist':True,
       'nocheckcertificate':True,
       'postprocessors': [{
           'key': 'FFmpegExtractAudio',
           'preferredcodec': 'mp3',
           'preferredquality': '192',
       }]
    }

    with youtube_dl.YoutubeDL(options) as ydl:
       ydl.download(['http://www.youtube.com/watch?v=BaW_jenozKc'])

    Below is the output I receive :enter image description here

    I get a similar error if I try setting ’preferredcodec’ to ’opus’ or ’best’.
    I’m not sure if this is relevant, but I can run the command line counterpart fine :

    youtube-dl -o 'test2.%(ext)s' --extract-audio --audio-format mp3 --no-check-certificate https://www.youtube.com/watch?v=BaW_jenozKc

    I’ve gotten a few clues from the internet and other questions and from what i understand this is most likely an issue with my ffmpeg, which isn’t a python module right ? Here is my ffmpeg version and configuration :
    enter image description here

    If the answer to my problem is to add some configuration setting to my ffmpeg please explain how i go about doing that.

  • Converting YUV420P to BGRA ruins CPU

    21 septembre 2016, par Sun Dro

    I’m trying to write some media/stream player using chrome native-client (nacl) and ffmpeg. The problem is that nacl supports only BGRA and RGB formats and the stream I want to play is YUV420P.

    I solved this problem using FFMPEG

    int NCDecoder_DecodeVideo(NACLDecoder *pDec, AVFrame **ppFrame, AVPixelFormat pixFmt, int nWidth, int nHeight)
    {
       if (!pDec->bStarted) return 0;

       AVFrame *pFrame = *ppFrame;
       int nRetVal = avcodec_decode_video2(pDec->pCodecCtxV, pDec->pFrameV, &pDec->nGotFrameV, &pDec->vPkt);
       if(pDec->nGotFrameV)
       {
           if (!nWidth && !nHeight)
           {
               nWidth = pDec->pFrameV->width;
               nHeight = pDec->pFrameV->height;
           }
           else if (!nWidth || !nHeight)
           {
               if (nWidth) nHeight = nWidth * pDec->pFrameV->height / pDec->pFrameV->width;
               else nWidth = nHeight * pDec->pFrameV->width / pDec->pFrameV->height;
           }

           pFrame->width = nWidth;
           pFrame->height = nHeight;
           pFrame->format = pixFmt;

           pDec->pSwsCtx = sws_getCachedContext(pDec->pSwsCtx, pDec->pFrameV->width, pDec->pFrameV->height,
               (AVPixelFormat)pDec->pFrameV->format, pFrame->width, pFrame->height, pixFmt, 0, NULL, NULL, NULL);

           sws_scale(pDec->pSwsCtx, (const uint8_t * const*)pDec->pFrameV->data, pDec->pFrameV->linesize, 0,
               pDec->pFrameV->height, pFrame->data, pFrame->linesize);

           return 1;
       }

       return 0;
    }

    Were argument pixFmt is AV_PIX_FMT_BGRA. Code works fine and I was happy until I try it on the full screen.

    When Im trying to scale image with full resolution, color format converting ruins my CPU memory and Its not even possible to watch video on the display.

    Is there any other fastest way to convert YUV to BGRA which not ruins my CPU usage or is there any way to display images using nacl-sdk with YUV color format ?

  • Stream Video from Raspberry Pi to my Webpage

    21 septembre 2016, par velu4689

    I want to live stream the video captured on my SJ 4000 Camera.

    The Camera is Connected to my Rpi by Wi-Fi and the stream is available using the following address : rtsp ://192.168.1.254/sjcam.mov

    Now, I want to watch this stream in my webpage by using a Streaming Engine on Raspberry Pi.

    The rtsp ://Camera addr works when I Connected the Camera directly to my Windows PC and attempted using VLC. But I wanted to do it by using Rpi as the streaming engine.

    I have attempted the following :

    1) Using ffmpeg -i "rtsp ://[IP_ADDR]" -vcodec -f http://[my_pc_IP_ADDR]
    But am getting an error message "Unable to find a suitable output format for ’http://192.168.55.39:5678".

    2) Installed OMX Player. But I do not find proper material to stream using OMX Player.

    3) Have come across GStreamer. But still the same problem..I did not find proper material.

    Kindly provide your valuable inputs.

    Thanks.