Recherche avancée

Médias (0)

Mot : - Tags -/auteurs

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

Autres articles (79)

  • 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

  • Encoding and processing into web-friendly formats

    13 avril 2011, par

    MediaSPIP automatically converts uploaded files to internet-compatible formats.
    Video files are encoded in MP4, Ogv and WebM (supported by HTML5) and MP4 (supported by Flash).
    Audio files are encoded in MP3 and Ogg (supported by HTML5) and MP3 (supported by Flash).
    Where possible, text is analyzed in order to retrieve the data needed for search engine detection, and then exported as a series of image files.
    All uploaded files are stored online in their original format, so you can (...)

  • Submit bugs and patches

    13 avril 2011

    Unfortunately a software is never perfect.
    If you think you have found a bug, report it using our ticket system. Please to help us to fix it by providing the following information : the browser you are using, including the exact version as precise an explanation as possible of the problem if possible, the steps taken resulting in the problem a link to the site / page in question
    If you think you have solved the bug, fill in a ticket and attach to it a corrective patch.
    You may also (...)

Sur d’autres sites (7548)

  • Video Created By FFMPEG is Blank [on hold]

    11 octobre 2015, par Larry Holze

    New to FFMPEG and trying to use it very simplistically. I have a sequence of images that I want to make into a video. Using this command :

    ffmpeg -framerate 30 -i "fr_%05d.jpg" out.mp4

    Creates the out.mp4 file OK, but when I play it back it is just blank.
    Pictures in the .jpg sequence are definitely not blank.

    Am I missing some option(s) ?

    Command window output :

    ffmpeg version N-74700-g628a73f Copyright (c) 2000-2015 the FFmpeg developers

    Built with gcc 4.9.3 (GCC)


    configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av

    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab

    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --

    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l

    ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab

    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en

    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena

    ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc

    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl

    e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena

    ble-decklink --enable-zlib

     libavutil      54. 31.100 / 54. 31.100

     libavcodec     56. 59.100 / 56. 59.100

     libavformat    56. 40.101 / 56. 40.101

     libavdevice    56.  4.100 / 56.  4.100

     libavfilter     5. 39.100 /  5. 39.100

     libswscale      3.  1.101 /  3.  1.101

     libswresample   1.  2.101 /  1.  2.101

     libpostproc    53.  3.100 / 53.  3.100

    Input #0, image2, from 'fr_%05d.jpg':

     Duration: 00:00:30.03, start: 0.000000, bitrate: N/A

       Stream #0:0: Video: mjpeg, gray(bt470bg/unknown/unknown), 300x200 [SAR 90:90

    DAR 3:2], 30 fps, 30 tbr, 30 tbn, 30 tbc

    [swscaler @ 0000000002f88c60] deprecated pixel format used, make sure you did se

    t range correctly

    No pixel format specified, yuvj444p for H.264 encoding chosen.

    Use -pix_fmt yuv420p for compatibility with outdated media players.

    [libx264 @ 000000000589b0c0] using SAR=1/1

    [libx264 @ 000000000589b0c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2

    AVX

    [libx264 @ 000000000589b0c0] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-b

    it

    [libx264 @ 000000000589b0c0] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC cod

    ec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 r

    ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed

    _ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pski

    p=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decim

    ate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_a

    dapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25

    scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60

    qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00

    Output #0, mp4, to 'out.mp4':

     Metadata:

       encoder         : Lavf56.40.101

       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj444p(pc), 3

    00x200 [SAR 1:1 DAR 3:2], q=-1--1, 30 fps, 15360 tbn, 30 tbc

       Metadata:

         encoder         : Lavc56.59.100 libx264

    Stream mapping:

     Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))

    Press [q] to stop, [?] for help

    Input stream #0:0 frame changed from size:300x200 fmt:gray to size:300x200 fmt:y

    uvj444p

    Input stream #0:0 frame changed from size:300x200 fmt:yuvj444p to size:300x200 f

    mt:gray

    [swscaler @ 00000000095b75c0] deprecated pixel format used, make sure you did se

    t range correctly

    Input stream #0:0 frame changed from size:300x200 fmt:gray to size:300x200 fmt:y

    uvj444p

    Input stream #0:0 frame changed from size:300x200 fmt:yuvj444p to size:300x200 f

    mt:gray

    [swscaler @ 00000000095b75c0] deprecated pixel format used, make sure you did se

    t range correctly

    Input stream #0:0 frame changed from size:300x200 fmt:gray to size:300x200 fmt:y

    uvj444p

    frame=  244 fps=0.0 q=29.0 size=      15kB time=00:00:06.40 bitrate=  19.6kbits/

    Input stream #0:0 frame changed from size:300x200 fmt:yuvj444p to size:300x200 f

    mt:gray

    [swscaler @ 00000000095b75c0] deprecated pixel format used, make sure you did se

    t range correctly

    Input stream #0:0 frame changed from size:300x200 fmt:gray to size:300x200 fmt:y

    uvj444p

    frame=  325 fps=316 q=29.0 size=      23kB time=00:00:09.10 bitrate=  20.4kbits/

    frame=  382 fps=247 q=29.0 size=      34kB time=00:00:11.00 bitrate=  25.1kbits/

    frame=  417 fps=203 q=29.0 size=      36kB time=00:00:12.16 bitrate=  24.5kbits/

    frame=  482 fps=187 q=29.0 size=      38kB time=00:00:14.33 bitrate=  21.7kbits/

    frame=  541 fps=175 q=29.0 size=      39kB time=00:00:16.30 bitrate=  19.8kbits/

    frame=  611 fps=170 q=29.0 size=      41kB time=00:00:18.63 bitrate=  18.1kbits/

    frame=  881 fps=214 q=29.0 size=      54kB time=00:00:27.63 bitrate=  15.9kbits/

    frame=  901 fps=214 q=-1.0 Lsize=      66kB time=00:00:29.96 bitrate=  18.1kbits

    /s

    video:55kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ov

    erhead: 20.648893%

    [libx264 @ 000000000589b0c0] frame I:8     Avg QP:18.01  size:  2331

    [libx264 @ 000000000589b0c0] frame P:239   Avg QP:22.95  size:    91

    [libx264 @ 000000000589b0c0] frame B:654   Avg QP:33.33  size:    23

    [libx264 @ 000000000589b0c0] consecutive B-frames:  2.9%  0.7%  1.0% 95.4%

    [libx264 @ 000000000589b0c0] mb I  I16..4: 36.6% 53.8%  9.6%

    [libx264 @ 000000000589b0c0] mb P  I16..4:  0.1%  0.4%  0.2%  P16..4:  0.6%  0.0

    %  0.0%  0.0%  0.0%    skip:98.6%

    [libx264 @ 000000000589b0c0] mb B  I16..4:  0.0%  0.9%  0.0%  B16..8:  1.7%  0.0

    %  0.0%  direct: 0.0%  skip:97.4%  L0:55.9% L1:44.1% BI: 0.0%

    [libx264 @ 000000000589b0c0] 8x8 transform intra:70.8% inter:12.0%

    [libx264 @ 000000000589b0c0] coded y,u,v intra: 5.9% 4.9% 5.0% inter: 0.0% 0.0%

    0.0%

    [libx264 @ 000000000589b0c0] i16 v,h,dc,p: 54% 46%  0%  0%

    [libx264 @ 000000000589b0c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13%  5% 83%  0%  0%

    0%  0%  0%  0%

    [libx264 @ 000000000589b0c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 15% 10%  4%  6%

    5%  4%  4%  4%

    [libx264 @ 000000000589b0c0] Weighted P-Frames: Y:0.0% UV:0.0%

    [libx264 @ 000000000589b0c0] ref P L0: 47.6%  2.6% 44.9%  5.0%

    [libx264 @ 000000000589b0c0] ref B L0: 55.9% 40.1%  4.0%

    [libx264 @ 000000000589b0c0] ref B L1: 93.3%  6.7%

    [libx264 @
  • FFMpeg is dropping video track when clipping an mpg video

    16 juin 2017, par M. Grishaber

    I am extracting a clip from an mpg video using the following command.
    ffmpeg.exe -i 271b.mpg -ss 00:00:05.000 -t 00:00:03.200 -c copy out_271b.mpg

    I am using the copy parameter to avoid reencoding the clip.
    The resulting mpg file only has the audio track, no video.
    The following is the FFMpeg screen dump.

    C:\ffmpeg-20170615\bin>ffmpeg.exe -i 271b.mpg -ss 00:00:05.000 -t 00:00:03.200 -c copy out_271b.mpg
       ffmpeg version N-86482-gbc40674 Copyright (c) 2000-2017 the FFmpeg developers
         built with gcc 7.1.0 (GCC)
         configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
         libavutil      55. 66.100 / 55. 66.100
         libavcodec     57. 99.100 / 57. 99.100
         libavformat    57. 73.100 / 57. 73.100
         libavdevice    57.  7.100 / 57.  7.100
         libavfilter     6. 92.100 /  6. 92.100
         libswscale      4.  7.101 /  4.  7.101
         libswresample   2.  8.100 /  2.  8.100
         libpostproc    54.  6.100 / 54.  6.100
       Input #0, mpeg, from '271b.mpg':
         Duration: 00:01:11.44, start: 0.460000, bitrate: 2154 kb/s
           Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], 2000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
           Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
       [mpeg @ 0000000000666aa0] VBV buffer size not set, using default size of 130KB
       If you want the mpeg file to be compliant to some specification
       Like DVD, VCD or others, make sure you set the correct buffer size
       Output #0, mpeg, to 'out_271b.mpg':
         Metadata:
           encoder         : Lavf57.73.100
           Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], q=2-31, 2000 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
           Stream #0:1: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
       Stream mapping:
         Stream #0:0 -> #0:0 (copy)
         Stream #0:1 -> #0:1 (copy)
       Press [q] to stop, [?] for help
       frame=   74 fps=0.0 q=-1.0 Lsize=     786kB time=00:00:03.17 bitrate=2027.2kbits/s speed= 198x
       video:730kB audio:50kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.843343%

    Thanks

    Addition : I tried to open the generated clip file with ffplay and got the following results. Note that ffplay was able to open and play the original mpg file.

    ffplay.exe out_271b.mpg
    ffplay version N-86482-gbc40674 Copyright (c) 2003-2017 the FFmpeg developers
     built with gcc 7.1.0 (GCC)
     configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
     libavutil      55. 66.100 / 55. 66.100
     libavcodec     57. 99.100 / 57. 99.100
     libavformat    57. 73.100 / 57. 73.100
     libavdevice    57.  7.100 / 57.  7.100
     libavfilter     6. 92.100 /  6. 92.100
     libswscale      4.  7.101 /  4.  7.101
     libswresample   2.  8.100 /  2.  8.100
     libpostproc    54.  6.100 / 54.  6.100
    [mpeg @ 00000000023cde80] probed stream 2 failedB sq=    0B f=0/0
    [mpeg @ 00000000023cde80] start time for stream 0 is not set in estimate_timings_from_pts
    [mpeg @ 00000000023cde80] Could not find codec parameters for stream 2 (Video: none, none): unknown codec
    Consider increasing the value for the 'analyzeduration' and 'probesize' options
    Input #0, mpeg, from 'out_271bb.mpg':
     Duration: 00:00:03.22, start: 0.500000, bitrate: 2068 kb/s
       Stream #0:0[0x1bf]: Data: dvd_nav_packet  0KB sq=    0B f=0/0
       Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
       Stream #0:2[0x1e0]: Video: none, none, 25 fps, 25 tbr, 90k tbn
    SDL_OpenAudio (1 channels, 44100 Hz): DirectSoundCreate: No audio device found
    No more combinations to try, audio open failed
    No codec could be found with id 0
    Failed to open file 'out_271b.mpg' or configure filtergraph
  • ffmpeg : how to correctly program input framerate calculation, given desired video length duration and output framerate ?

    19 septembre 2015, par user89

    Let us say that I have n pictures named as imgXY.png (where XY represent the numbers 0 to n-1, properly padded with zeros).

    From these, I would like to create a video that is t seconds long, that has an (output) framerate R.

    I want to figure out what the input framerate should be, so I do the following calculation :

    • time spent per frame : t_per_frame = t/n

    • input framerate : 1/t_per_frame = n/t

    However, when I then try to create a movie using the following command :

    ffmpeg -framerate n/t -i img%02d.png -r 30 test_output.mp4

    I don’t get a movie that is t seconds long, and only two of the frames end up getting displayed. Why is this the case ?

    The following questions were unhelpful :

    How to successfully use ffmpeg to convert images into videos

    Turning images into videos with ffmpeg

    I think I am misunderstanding what is meant by input framerate, and what is meant by output framerate. Could you help clarify ? I am using a Python script to call ffmpeg, as documented here : http://zulko.github.io/blog/2013/09/27/read-and-write-video-frames-in-python-using-ffmpeg/

    Here’s the output from the following manually executed command :

    ffmpeg -framerate 24/5 -i img%02d.png -c:v libx264 -r 30 -pix_fmt yuv420p test_output.mp4

    ffmpeg version N-75204-g314bc20 Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.3 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
    isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
    le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
    enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
    ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
    le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
    able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
    ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
    --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
    e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
    ble-decklink --enable-opencl --enable-zlib
     libavutil      55.  2.100 / 55.  2.100
     libavcodec     57.  1.100 / 57.  1.100
     libavformat    57.  0.100 / 57.  0.100
     libavdevice    57.  0.100 / 57.  0.100
     libavfilter     6.  1.100 /  6.  1.100
     libswscale      4.  0.100 /  4.  0.100
     libswresample   2.  0.100 /  2.  0.100
     libpostproc    54.  0.100 / 54.  0.100
    Input #0, image2, from 'img%02d.png':
     Duration: 00:00:00.42, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgb24(pc), 800x400, 4.80 tbr, 4.80 tbn, 4.80 tbc
    File 'test_output.mp4' already exists. Overwrite ? [y/N] y
    [libx264 @ 0000000004f16ba0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
    AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 0000000004f16ba0] profile High, level 3.0
    [libx264 @ 0000000004f16ba0] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC cod
    ec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 r
    ef=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed
    _ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pski
    p=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 dec
    imate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b
    _adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=
    25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.
    60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'test_output.mp4':
     Metadata:
       encoder         : Lavf57.0.100
       Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 800x40
    0, q=-1--1, 30 fps, 15360 tbn, 30 tbc
       Metadata:
         encoder         : Lavc57.1.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=   12 fps=0.0 q=-1.0 Lsize=       3kB time=00:00:00.33 bitrate=  62.2kbits
    /s dup=10 drop=0
    video:2kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ove
    rhead: 60.557274%
    [libx264 @ 0000000004f16ba0] frame I:1     Avg QP:10.12  size:   566
    [libx264 @ 0000000004f16ba0] frame P:3     Avg QP:18.10  size:    62
    [libx264 @ 0000000004f16ba0] frame B:8     Avg QP:13.75  size:    22
    [libx264 @ 0000000004f16ba0] consecutive B-frames:  8.3%  0.0% 25.0% 66.7%
    [libx264 @ 0000000004f16ba0] mb I  I16..4: 99.4%  0.0%  0.6%
    [libx264 @ 0000000004f16ba0] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.0%  0.0
    %  0.0%  0.0%  0.0%    skip:99.9%
    [libx264 @ 0000000004f16ba0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.1%  0.0
    %  0.0%  direct: 0.0%  skip:99.9%  L0:37.5% L1:62.5% BI: 0.0%
    [libx264 @ 0000000004f16ba0] 8x8 transform intra:0.0% inter:0.0%
    [libx264 @ 0000000004f16ba0] coded y,uvDC,uvAC intra: 0.6% 0.0% 0.0% inter: 0.0%
    0.0% 0.0%
    [libx264 @ 0000000004f16ba0] i16 v,h,dc,p: 96%  0%  4%  0%
    [libx264 @ 0000000004f16ba0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 18% 36%  2%  2%
    3%  3%  5%  1%
    [libx264 @ 0000000004f16ba0] i8c dc,h,v,p: 100%  0%  0%  0%
    [libx264 @ 0000000004f16ba0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 0000000004f16ba0] ref P L0: 50.0% 50.0%
    [libx264 @ 0000000004f16ba0] kb/s:18.50