Recherche avancée

Médias (91)

Autres articles (29)

  • Qualité du média après traitement

    21 juin 2013, par

    Le bon réglage du logiciel qui traite les média est important pour un équilibre entre les partis ( bande passante de l’hébergeur, qualité du média pour le rédacteur et le visiteur, accessibilité pour le visiteur ). Comment régler la qualité de son média ?
    Plus la qualité du média est importante, plus la bande passante sera utilisée. Le visiteur avec une connexion internet à petit débit devra attendre plus longtemps. Inversement plus, la qualité du média est pauvre et donc le média devient dégradé voire (...)

  • Ajouter notes et légendes aux images

    7 février 2011, par

    Pour pouvoir ajouter notes et légendes aux images, la première étape est d’installer le plugin "Légendes".
    Une fois le plugin activé, vous pouvez le configurer dans l’espace de configuration afin de modifier les droits de création / modification et de suppression des notes. Par défaut seuls les administrateurs du site peuvent ajouter des notes aux images.
    Modification lors de l’ajout d’un média
    Lors de l’ajout d’un média de type "image" un nouveau bouton apparait au dessus de la prévisualisation (...)

  • Selection of projects using MediaSPIP

    2 mai 2011, par

    The examples below are representative elements of MediaSPIP specific uses for specific projects.
    MediaSPIP farm @ Infini
    The non profit organizationInfini develops hospitality activities, internet access point, training, realizing innovative projects in the field of information and communication technologies and Communication, and hosting of websites. It plays a unique and prominent role in the Brest (France) area, at the national level, among the half-dozen such association. Its members (...)

Sur d’autres sites (4292)

  • FFmpeg changing Keyframe Interval / GoP values while reencoding a Livestream ?

    17 juin 2015, par eCronik

    I am using ffmpeg in an nginx environment to reencode Livestreams on Ubuntu.

    So there are 2 Livestreams with the exact identical options going into the reencode. Both are streaming to a server in germany - one comes from germany, the other comes from the US eastcoast. So I have the problem, that the receiver after the reencode moans after some time about the Keyframe Interval growing higher of the stream coming from the US - until a certain point where it stops. This is not always happening in the same amount of time or to the same extent.

    This is the line I am using to reencode :

    exec_push ffmpeg -i rtmp://localhost/input/$name -c:v libx264 -preset slow -profile:v main -b:v 2175k -minrate 2175k -maxrate 2175k -bufsize 2175k -r 40 -g 80 -c:a aac -strict -2 -b:a 160k -f flv rtmp://server \-c copy -f flv rtmp://server;

    Does anybody have a clue what could cause this and how to prevent it ? Changing x264 cpu preset on the machine where the stream comes from to something faster doesn’t work, and the reencode-server is just at 50% usage with ’slow’ as well.

    Here my version info :

    ffmpeg version 2.6.3 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
    configuration: --extra-libs=-ldl --prefix=/opt/ffmpeg --enable-avresample --disable-debug --enable-nonfree --enable-gpl --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --disable-decoder=amrnb --disable-decoder=amrwb --enable-libpulse --enable-libx264 --enable-libx265 --enable-libfdk-aac --enable-libvorbis --enable-libmp3lame --enable-libopus --enable-libvpx --enable-libspeex --enable-libass --enable-avisynth --enable-libsoxr --enable-libxvid --enable-libvo-aacenc --enable-libvidstab
    libavutil      54. 20.100 / 54. 20.100
    libavcodec     56. 26.100 / 56. 26.100
    libavformat    56. 25.101 / 56. 25.101
    libavdevice    56.  4.100 / 56.  4.100
    libavfilter     5. 11.102 /  5. 11.102
    libavresample   2.  1.  0 /  2.  1.  0
    libswscale      3.  1.101 /  3.  1.101
    libswresample   1.  1.100 /  1.  1.100
    libpostproc    53.  3.100 / 53.  3.100

    Thanks a bunch,
    eC

  • JavaCV 0.11 FrameGrabber.grab() not grabbing image NullPointerException

    6 avril 2015, par Noah Lutz

    I just updated JavaCV to 0.11 and my code stoped working. I am grabbing the frames from an mp4 file and displaying them using CanvasFrame.showImage(). This was working in the 0.10 version but is now throwing a NullPointerException.

    public static void main(String[] args){
       FrameGrabber frameGrabber = new FFmpegFrameGrabber("/path/to/video.mp4");
       CanvasFrame canvasFrame = new CanvasFrame("Test");

       frameGrabber.start();
       for(int i = 0; icode>

    I tried checking to see if frameGrabber.grab() was returning null by adding this to the for loop.

    if(frameGrabber.grab() == null){
       System.out.println("Frame is null");
    }

    But it never printed. Then I noticed in the debugger that frameGrabber.grab() returned an object called Frame and it had an image value. This is the output from when I printed the image value.

    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    null
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd
    [Ljava.nio.Buffer;@38c95fbd

    So what seems to be happening is frameGrabber.grab() is only grabbing some of the frames from the video.

    Any clue as to why this is happening or how to fix it ?

  • avfilter's anull says "Rematrix is needed between stereo and 0 channels but there is not enough information to do it"

    24 mai 2017, par kuanyui

    I’m trying to write a transcoder according to FFMpeg’s official example with ffmpeg 3.2.4 (official prebuild Win32), and try to transcode a video with stereo audio stream source (from avformat’s dshow).

    In the example code, which passes anull into avfilter_graph_parse_ptr() for audio stream, and "time_base=1/44100:sample_rate=44100:sample_fmt=s16:channels=2:channel_layout=0x3" is passed into avfilter_graph_create_filter(), occurs error in the following avfilter_graph_config() :

    [auto-inserted scaler 0 @ 32f77600] w:iw h:ih flags:'bilinear' interl:0
    [Parsed_null_0 @ 2e9d79a0] auto-inserting filter 'auto-inserted scaler 0' between the filter 'in' and the filter 'Parsed_null_0'
    [swscaler @ 3331bfe0] deprecated pixel format used, make sure you did set range correctly
    [auto-inserted scaler 0 @ 32f77600] w:1920 h:1080 fmt:yuvj422p sar:1/1 -> w:1920 h:1080 fmt:yuv420p sar:1/1 flags:0x2
    [libmp3lame @ 2e90a360] Channel layout not specified
    [in @ 3866e8a0] tb:1/44100 samplefmt:s16 samplerate:44100 chlayout:0x3
    [Parsed_anull_0 @ 330e8820] auto-inserting filter 'auto-inserted resampler 0' between the filter 'in' and the filter 'Parsed_anull_0'
    [auto-inserted resampler 0 @ 330e8dc0] [SWR @ 3809b620] Rematrix is needed between stereo and 0 channels but there is not enough information to do it
    [auto-inserted resampler 0 @ 330e8dc0] Failed to configure output pad on auto-inserted resampler 0

    I’ve googled for days but didn’t find any clue for it. Doesn’t what anull do is only "Pass the audio source unchanged to the output", why libav want to resample stereo to 0 channel ? What’s going wrong ?