Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (50)

  • Gestion des droits de création et d’édition des objets

    8 février 2011, par

    Par défaut, beaucoup de fonctionnalités sont limitées aux administrateurs mais restent configurables indépendamment pour modifier leur statut minimal d’utilisation notamment : la rédaction de contenus sur le site modifiables dans la gestion des templates de formulaires ; l’ajout de notes aux articles ; l’ajout de légendes et d’annotations sur les images ;

  • Les images

    15 mai 2013
  • Supporting all media types

    13 avril 2011, par

    Unlike most software and media-sharing platforms, MediaSPIP aims to manage as many different media types as possible. The following are just a few examples from an ever-expanding list of supported formats : images : png, gif, jpg, bmp and more audio : MP3, Ogg, Wav and more video : AVI, MP4, OGV, mpg, mov, wmv and more text, code and other data : OpenOffice, Microsoft Office (Word, PowerPoint, Excel), web (html, CSS), LaTeX, Google Earth and (...)

Sur d’autres sites (5529)

  • FFmpeg TLS : Protocol not found

    30 août 2016, par bot3663369

    I am trying to stream a video securely, and this is what I have tried :

    Console 1

    $ ffmpeg -i out.webm -f format tls://127.0.0.1:8554?listen&cert=test.crt&key=test.key
    [1] 46061
    [2] 46062    
    $ ffmpeg version N-81392-ga453bbb Copyright (c) 2000-2016 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
     configuration: --pkg-config-flags=--static --enable-shared --enable-pic --enable-libvpx --prefix=/home/ytan/Dev/build-x64
     libavutil      55. 29.100 / 55. 29.100
     libavcodec     57. 54.100 / 57. 54.100
     libavformat    57. 47.101 / 57. 47.101
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 52.100 /  6. 52.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100

    (...waiting indefinitely)

    Console 2

    $ ffplay tls://127.0.0.1:8554
    ffplay version N-81392-ga453bbb Copyright (c) 2003-2016 the FFmpeg developers
     built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.2) 20160609
     configuration:
     libavutil      55. 29.100 / 55. 29.100
     libavcodec     57. 54.100 / 57. 54.100
     libavformat    57. 47.101 / 57. 47.101
     libavdevice    57.  0.102 / 57.  0.102
     libavfilter     6. 52.100 /  6. 52.100
     libswscale      4.  1.100 /  4.  1.100
     libswresample   2.  1.100 /  2.  1.100
    tls://127.0.0.1:8554: Protocol not foundq=    0KB sq=    0B f=0/0  
    $

    I have generated my key and certificate using OpenSSL :

    $ openssl req -newkey rsa:2048 -nodes -keyout domain.key -x509 -days 365 -out domain.crt
    $ sudo cp test.crt /usr/local/share/ca-certificates/
    $ sudo update-ca-certificates

    Can someone drop me a hint or a pointer ?

  • Send H.264 encoded stream through RTMP using FFmpeg

    15 novembre 2016, par Galaxy

    I followed this to encode a sequences images to h.264 video.

    Here is outputting part of my code :

    int srcstride = outwidth*4;
    sws_scale(convertCtx, src_data, &srcstride, 0, outheight, pic_in.img.plane, pic_in.img.i_stride);
    x264_nal_t* nals;
    int i_nals;
    int frame_size = x264_encoder_encode(encoder, &nals, &i_nals, &pic_in, &pic_out);
    if (frame_size) {
       fwrite(nals[0].p_payload, frame_size, 1, fp);
    }

    This is in a loop to process frames and write them into a file.

    Now, I’m trying to stream these encoded frames through RTMP. As I know, the container for the RTMP is FLV. So I used command line as a trial :

    ffmpeg -i test.h264 -vcodec copy -f flv rtmp://localhost:1935/hls/test

    This one works well as streaming a h.264 encoded video file.

    But how can I implement it as C++ code and stream the frames at the same time when they are generated, just like what I did to stream my Facetime camera.

    ffmpeg -f avfoundation -pix_fmt uyvy422  -video_size 1280x720 -framerate 30 -i "1:0" -pix_fmt yuv420p -vcodec libx264 -preset veryfast -acodec libvo_aacenc -f flv -framerate 30 rtmp://localhost:1935/hls/test

    This may be a common and practical topic. But I’m stuck here for days, really need some relevant exprience. Thank you !

  • Send H.264 encoded stream through RTMP using FFmpeg

    15 novembre 2016, par Galaxy

    I followed this to encode a sequences images to h.264 video.

    Here is outputting part of my code :

    int srcstride = outwidth*4;
    sws_scale(convertCtx, src_data, &srcstride, 0, outheight, pic_in.img.plane, pic_in.img.i_stride);
    x264_nal_t* nals;
    int i_nals;
    int frame_size = x264_encoder_encode(encoder, &nals, &i_nals, &pic_in, &pic_out);
    if (frame_size) {
       fwrite(nals[0].p_payload, frame_size, 1, fp);
    }

    This is in a loop to process frames and write them into a file.

    Now, I’m trying to stream these encoded frames through RTMP. As I know, the container for the RTMP is FLV. So I used command line as a trial :

    ffmpeg -i test.h264 -vcodec copy -f flv rtmp://localhost:1935/hls/test

    This one works well as streaming a h.264 encoded video file.

    But how can I implement it as C++ code and stream the frames at the same time when they are generated, just like what I did to stream my Facetime camera.

    ffmpeg -f avfoundation -pix_fmt uyvy422  -video_size 1280x720 -framerate 30 -i "1:0" -pix_fmt yuv420p -vcodec libx264 -preset veryfast -acodec libvo_aacenc -f flv -framerate 30 rtmp://localhost:1935/hls/test

    This may be a common and practical topic. But I’m stuck here for days, really need some relevant exprience. Thank you !