Recherche avancée

Médias (0)

Mot : - Tags -/xmlrpc

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

Autres articles (33)

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

  • Publier sur MédiaSpip

    13 juin 2013

    Puis-je poster des contenus à partir d’une tablette Ipad ?
    Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir

  • Support de tous types de médias

    10 avril 2011

    Contrairement à beaucoup de logiciels et autres plate-formes modernes de partage de documents, MediaSPIP a l’ambition de gérer un maximum de formats de documents différents qu’ils soient de type : images (png, gif, jpg, bmp et autres...) ; audio (MP3, Ogg, Wav et autres...) ; vidéo (Avi, MP4, Ogv, mpg, mov, wmv et autres...) ; contenu textuel, code ou autres (open office, microsoft office (tableur, présentation), web (html, css), LaTeX, Google Earth) (...)

Sur d’autres sites (6934)

  • FFmpeg First 2 Seconds of Video Not Showing

    18 janvier 2016, par Pamela

    This code works fine for some audio files (makes a slideshow of JPG pictures with a PNG watermark and MP3 audio, while maintaining aspect ratio) but for this audio file, the pictures are not showing for the first two seconds or so of the video :

    ffmpeg -y -framerate 1/12 -i "media/%03d.jpg" -i "media/audio.mp3" -loop 1 -i "media/watermark.png" -filter_complex "[0:v]scale=iw*min(3840/iw\,2160/ih):ih*min(3840/iw\,2160/ih), pad=3840:2160:(3840-iw)/2:(2160-ih)/2[ss]; [ss][2:v] overlay=main_w-overlay_w-10:main_h-overlay_h-10:shortest=1[out]" -map "[out]" -map 1:a -c:v libx264 -r 24 -preset veryfast -tune stillimage -pix_fmt yuv420p -c:a copy -map_metadata -1 "media/video.mkv" -report

    I tried converting the audio into different formats of MP3, tried changing bitrates, changed audio to stereo, and even tried converting it to a WAV. None of these things worked.

    Here are the report results for when I run this command.

    If it makes a difference, I’m using Ubuntu 14.04 and FFmpeg version N-77455-g4707497 (latest version).

  • ffmpeg convert and add silent audio track to an mpeg

    13 janvier 2016, par vollschauer

    I need to remove the B-Frames and also add a silent audio track to an mpeg. This is my source file (mediainfo input.mpg) :

    General
    Complete name                            : input.mpg
    Format                                   : MPEG-PS
    File size                                : 3.88 MiB
    Duration                                 : 4s 0ms
    Overall bit rate                         : 8 131 Kbps
    Writing library                          : encoded by TMPGEnc (ver. 2.525.64.184)

    Video
    ID                                       : 224 (0xE0)
    Format                                   : MPEG Video
    Format version                           : Version 1
    Format settings, BVOP                    : Yes
    Format settings, Matrix                  : Default
    Format settings, GOP                     : M=3, N=9
    Duration                                 : 4s 0ms
    Bit rate                                 : 8 000 Kbps
    Width                                    : 800 pixels
    Height                                   : 600 pixels
    Display aspect ratio                     : 4:3
    Frame rate                               : 30.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.556
    Time code of first frame                 : 00:00:00:00
    Time code source                         : Group of pictures header
    GOP, Open/Closed                         : Open
    GOP, Open/Closed of first frame          : Closed
    Stream size                              : 3.80 MiB (98%)
    Writing library                          : TMPGEnc 2.525.64.184

    I’m trying it with :

    ffmpeg -f lavfi -i anullsrc -i input.mpg -c:v mpeg1video -b:v 8000k \
    -minrate 8000k -maxrate 8000k -pix_fmt yuv420p -g 9 -acodec mp2 \
    -ac 2 -ab 128k -ar 44100 -async 1 -shortest -y out.mpg

    mediainfo out.mpg

    General
    Complete name                            : out.mpg
    Format                                   : MPEG-PS
    File size                                : 3.96 MiB
    Duration                                 : 4s 23ms
    Overall bit rate                         : 8 251 Kbps

    Video
    ID                                       : 224 (0xE0)
    Format                                   : MPEG Video
    Format version                           : Version 1
    Format settings, BVOP                    : No
    Format settings, Matrix                  : Default
    Format settings, GOP                     : N=9
    Duration                                 : 4s 0ms
    Bit rate                                 : 8 000 Kbps
    Width                                    : 800 pixels
    Height                                   : 600 pixels
    Display aspect ratio                     : 4:3
    Frame rate                               : 30.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : Progressive
    Compression mode                         : Lossy
    Bits/(Pixel*Frame)                       : 0.556
    Time code of first frame                 : 00:00:00:00
    Time code source                         : Group of pictures header
    GOP, Open/Closed                         : Open
    GOP, Open/Closed of first frame          : Closed
    Stream size                              : 3.80 MiB (96%)

    Audio
    ID                                       : 192 (0xC0)
    Format                                   : MPEG Audio
    Format version                           : Version 1
    Format profile                           : Layer 2
    Duration                                 : 4s 23ms
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Sampling rate                            : 44.1 KHz
    Compression mode                         : Lossy
    Delay relative to video                  : -11ms
    Stream size                              : 62.9 KiB (2%)

    Unfortunately is the audio duration different to the video duration and there is some "Delay relative to video" of -11ms
    I found in another post this option :

    -af asetpts=PTS+0.011/TB

    which gives me this output :

    Audio
    ID                                       : 192 (0xC0)
    Format                                   : MPEG Audio
    Format version                           : Version 1
    Format profile                           : Layer 2
    Duration                                 : 3s 997ms
    Bit rate mode                            : Constant
    Bit rate                                 : 128 Kbps
    Channel(s)                               : 2 channels
    Sampling rate                            : 44.1 KHz
    Compression mode                         : Lossy
    Stream size                              : 62.5 KiB (2%)

    This one is close but still not my "4s 0ms" what I expected. How can I
    add a silent audio track with the "absoutly exact" duration ? And do I encode the video right ?

  • How to use FFmpeg filters setsar and setdar when generating animated gif ?

    1er janvier 2016, par Konstantin

    I would like to make an animated gif from a small section of an mp4 video file. Unfortunately the mp4 video file has bad aspect ratio. Instead of 4:3 (640x480) it is 3:2 (720x480). When I call "ffmpeg -i" on the video I can see :

    Stream #0:0(und): Video: h264 (Main) (avc1 / 0x31637661), yuv420p(tv, smpte170m/smpte170m/bt709), 720x480 [SAR 8:9 DAR 4:3], 1835 kb/s, 29.97 fps, 29.97 tbr, 90k tbn, 180k tbc (default)

    When I play it with VLC media player, it shows corrected aspect ratio, becasue I think it honours the DAR value (4:3), which is set in the mp4 video. However when I try to transcode to animated gif, that animated image file format doesn’t store such an information as DAR, because the pixels are always square shaped. So when I call my simple conversion script called movie2gif :

    #!/bin/sh

    video=$1
    max_colors=$2
    ss=$3
    t=$4
    out=$5
    palette="/tmp/palette.png"
    fps=18
    filt="fps=fps=$fps,setdar=4:3,scale=150:-1,lutyuv=y=gammaval(0.4),"


    ffmpeg -ss $ss -t $t -i "$video" -sws_flags lanczos -lavfi "$filt palettegen=max_colors=$max_colors:stats_mode=full" -vsync 0 -y "$palette"
    ffmpeg -ss $ss -i "$video" -i "$palette" -sws_flags lanczos -lavfi "$filt paletteuse=dither=bayer:bayer_scale=1" -vsync 0 -t $t -pix_fmt pal8 -gifflags +transdiff -y -f gif "$5"

    I always get a 150x100 pixel animated gif. I tried different values / expressions for setting both or one of the values of "setsar" and "setdar", in different order, placing them before the "scale" and after the "scale" filter, they have no effect on the resulting animated gif dimensions, it is always 150x100 pixels. How can I use these two filter properly to get a correct result, a 150x112 animated gif image ?