Recherche avancée

Médias (0)

Mot : - Tags -/alertes

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

Autres articles (54)

  • Les autorisations surchargées par les plugins

    27 avril 2010, par

    Mediaspip core
    autoriser_auteur_modifier() afin que les visiteurs soient capables de modifier leurs informations sur la page d’auteurs

  • L’utiliser, en parler, le critiquer

    10 avril 2011

    La première attitude à adopter est d’en parler, soit directement avec les personnes impliquées dans son développement, soit autour de vous pour convaincre de nouvelles personnes à l’utiliser.
    Plus la communauté sera nombreuse et plus les évolutions seront rapides ...
    Une liste de discussion est disponible pour tout échange entre utilisateurs.

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

Sur d’autres sites (10310)

  • does ffmpeg not support rtsp push with udp ?

    29 septembre 2017, par jimmy

    I’m trying to push a mp4 file through rtsp,and work ok using the cmd below :

    ffmpeg  -i 1.mp4  -vcodec copy -an -rtsp_transport tcp -f rtsp rtsp://192.168.164.40/test.sdp

    But when I try rtsp with udp protocol,it’s not work,cmd like this :

    ffmpeg  -i 1.mp4  -vcodec copy -an -f rtsp rtsp://192.168.164.40/test.sdp

    I tryed to add "-preset:v ultrafast -tune:v zerolatency",and it not worked,and I trace the package flow,and find that ffmpeg just TEARDOWN rtsp after 192.168.164.40 reply RECORD call.

    Below is the output log :

    ffmpeg version 3.3.2 Copyright (c) 2000-2017 the FFmpeg developers
     built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.3)
     configuration: --enable-gpl --enable-nonfree --prefix=/home/share/_release --cc= --enable-nvenc --enable-cuda --enable-cuvid --enable-libnpp --enable-static --disable-shared --disable-debug --extra-cflags='-I/home/server/share/_release/include -I/usr/local/cuda/include' --extra-ldflags='-L/home/server/share/_release/lib -L/usr/local/cuda/lib64 -lm -ldl' --disable-ffplay --disable-ffprobe --disable-ffserver --disable-doc --enable-postproc --enable-zlib --enable-parsers --enable-libx264 --enable-libmp3lame --enable-libfdk-aac --enable-pthreads --extra-libs=-lpthread --enable-encoders --enable-decoders --enable-avfilter --enable-muxers --enable-demuxers
     libavutil      55. 58.100 / 55. 58.100
     libavcodec     57. 89.100 / 57. 89.100
     libavformat    57. 71.100 / 57. 71.100
     libavdevice    57.  6.100 / 57.  6.100
     libavfilter     6. 82.100 /  6. 82.100
     libswscale      4.  6.100 /  4.  6.100
     libswresample   2.  7.100 /  2.  7.100
     libpostproc    54.  5.100 / 54.  5.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/home/server/share/media/1.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 1
       compatible_brands: isom
       creation_time   : 2017-02-08T02:33:57.000000Z
       encoder         : My MP4Box GUI 0.6.0.6 /my-mp4box-gui.zymichost.com>
     Duration: 00:57:23.35, start: 0.000000, bitrate: 330 kb/s
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], 164 kb/s, 30 fps, 30 tbr, 30k tbn, 60 tbc (default)
       Metadata:
         creation_time   : 2015-12-23T15:11:53.000000Z
         handler_name    : 1.mp4
         encoder         : AVC Coding
       Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 125 kb/s (default)
       Metadata:
         creation_time   : 2017-02-08T02:34:00.000000Z
         handler_name    : 1.mp4
       Stream #0:2(und): Data: none (rtp  / 0x20707472), 25 kb/s (default)
       Metadata:
         creation_time   : 2017-02-08T02:34:03.000000Z
         handler_name    : GPAC ISO Hint Handler
       Stream #0:3(und): Data: none (rtp  / 0x20707472), 9 kb/s (default)
       Metadata:
         creation_time   : 2017-02-08T02:34:07.000000Z
         handler_name    : GPAC ISO Hint Handler
    Output #0, rtsp, to 'rtsp://192.168.164.40/test.sdp':
     Metadata:
       major_brand     : isom
       minor_version   : 1
       compatible_brands: isom
       encoder         : Lavf57.71.100
       Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv), 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 164 kb/s, 30 fps, 30 tbr, 90k tbn, 30 tbc (default)
       Metadata:
         creation_time   : 2015-12-23T15:11:53.000000Z
         handler_name    : 1.mp4
         encoder         : AVC Coding
    Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    av_interleaved_write_frame(): Invalid argument
    frame=    1 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=0.0647x    
    video:41kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB
    muxing overhead: unknown
    Conversion failed!

    Here is some of the debug log,past it here

       Stream mapping:
     Stream #0:0 -> #0:0 (copy)
    Press [q] to stop, [?] for help
    cur_dts is invalid (this is harmless if it occurs once at the start per stream)
    [rtp @ 0x27379c0] Sending NAL 6 of len 15 M=0
    [rtp @ 0x27379c0] Sending NAL 5 of len 42371 M=1
    [rtp @ 0x27379c0] NAL size 42371 > 1460
    av_interleaved_write_frame(): Invalid argument
    No more output streams to write to, finishing.
    [AVIOContext @ 0x2d4ad80] Statistics: 0 seeks, 32 writeouts
    frame=    1 fps=0.0 q=-1.0 Lsize=N/A time=00:00:00.00 bitrate=N/A speed=0.0743x    
    video:41kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
    Input file #0 (/home/server/share/media/1.mp4):
    Input stream #0:0 (video): 1 packets read (42394 bytes);
     Input stream #0:1 (audio): 0 packets read (0 bytes);
     Input stream #0:2 (data): 0 packets read (0 bytes);
     Input stream #0:3 (data): 0 packets read (0 bytes);
     Total: 1 packets (42394 bytes) demuxed
    Output file #0 (rtsp://192.168.164.40/test.sdp):
     Output stream #0:0 (video): 1 packets muxed (42394 bytes);
    Total: 1 packets (42394 bytes) muxed
    0 frames successfully decoded, 0 decoding errors
    [AVIOContext @ 0x273afa0] Statistics: 2119132 bytes read, 2 seeks
    Conversion failed!

    I googled one day up with no idea,any one helps me !

  • yet another screenshot encoding exercise with ffmpeg - stuck at getting AVFrame from ALT::CImage - VC++

    11 septembre 2013, par sith

    Total AV newbee here - trying to learn the ropes on using FFMpeg functions to encode movies. On searching for tutorials I found a few similar questions that I have linked here for reference :

    Encoding a screenshot into a video using FFMPEG

    [Libav-user] Encoding a screenshot into a video using FFMPEG

    Save bitmap to video (libavcodec ffmpeg)

    When converting from RGB to YUV using ffmpeg the video file the color is spread why ?

    How to convert RGB from YUV420p for ffmpeg encoder ?

    Encode bmp sequence with libavcodec...Help !

    Not able to encode image with ffmpeg

    For my setup FFMPEG is on VS12 - VC++ with MFC on win7.

    With the help of above samples, I am able to get "some" output from the encoder, but I am not sure in what format or state the output has been encoded. Neither VLC nor WMP can play this file. It does not even seem to recognize the metadata in the file to display the FPS or video length. What would normally cause that ? Also any pointers on what could be going wrong and how to approach fixing the problems would be great. [1]

    Here is the flow of my code :

    Step1 : capture desktop on to a CImg :

    int W=GetSystemMetrics(SM_CXSCREEN), H=GetSystemMetrics(SM_CYSCREEN), bpp=24;
    CImage cImg; cImg.Create(W,H,bpp)
    HDC hDC = cImg.GetDC();
    CWindowDC winDC(GetDesktopWindow());

    BitBlt(hDC, 0,0, rez.W(), rez.H(), winDC.m_hDC, 0, 0, SRCCOPY);

    At this point I am able to dump a screen shot into a bmp file -
    using cImg.Save( _T("test.bmp"), Gdiplus::ImageFormatBMP) ;

    Step2 : Extract the BMP bits from the CImg.

    HBITMAP hBitmap = (HBITMAP)cImg;
    HDC memDC = CreateCompatibleDC(NULL);
    SelectObject( memDC, hBitmap );

    BITMAPINFO bmi; // initialized bmi with {W,-H, plane=1, bitCount=24, comp=BI_RGB, size=W*H*3 }
    << removed bmi init code for conciseness. >>>

    BYTE *rgb24Data = new BYTE[W*H*3]; // 3 for 24bpp. 4 for 32...
    int ret = GetDIBits(memDC, hBitmap, 0, H, rgb24Data, &bmi, DIB_RGB_COLORS);

    At this point I faithfully believe rgb24Data points to pixel data :) - copied out of the cImg bitmap

    Step 3 : next I try to create an AV frame with the rgb24Data got from this CImg. Also this is where I have a massive knowledge gap. I am going to try and recover

    // setup the codecs and contexts here as per mohM's post

    AVCodec *currCodec = avcodec_find_encoder(CODEC_ID_MPEG4);

    AVCodecContext *codeCtxt = avcodec_alloc_context();  // init this with bate=400k, W, H,
    << removed codeCtxt init code for conciseness. >>>   //  time base 1/25, gop=10, max_b=1, fmt=YUV420

    avcodec_open(codeCtxt, currCodec);

    SwsContext *currSWSCtxt = sws_getContext( W, H, AV_PIX_FMT_RGB24, // FROM
                                             W, H, AV_PIX_FMT_YUV420P, // TO
                                             SWS_FAST_BILINEAR,
                                             NULL, NULL, NULL);

    // allocate and fill AVFrame
    int numBytes = avpicture_get_size(PIX_FMT_YUV420P, W, H);
    uint8_t *buffer=new uint8_t[numBytes];
    AVFrame *avFrame = avcodec_alloc_frame();
    avpicture_fill( (AVPicture*)avFrame, buffer, PIX_FMT_YUV420P, W, H );

    Step 4 : transform the data frame into YUV420P as we fill the frame.

    uint8_t * inData[1] = { rgb24Data };
    int inLinesize[1] = { 3*W }; // RGB stride
    sws_scale( currSWSCtxt, inData, inLinesize, 0, H,
              avFrame->data, avFrame->linesize);

    step 5 encode the frame and write out the output buffer into a file.

    int out_size = avcodec_encode_video( codeCtxt,
                                        outBuf,
                                        outBufSize,
                                        avFrame );

    fwrite(outBuf, 1, outBufSize, outFile );

    finally I close the file off with [0x00 0x00 0x01 0xb7]

    The first hint of things gone haywire is that for a 50 screens of 1920X1080 at 24bpp encoded at 25fps gives me a 507MB unplayable-mpeg file.

    As mentioned earlier, neither VLC nor WMP can play this file nor they even recognize the metadata in the file to display the FPS or video length. What would normally cause that ? Also any pointers on what could be going wrong and how to approach fixing the problems would be great. [2]

    Any guidance is much appreciated.

  • How to use ffmpeg capture screen (not command) ?

    16 novembre 2022, par Tom

    I am looking for example on the Internet, but none of the relevant examples can be run. Always I compile the no match ffmpeg version. Could someone share a example to learn ?