Recherche avancée

Médias (0)

Mot : - Tags -/objet éditorial

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

Autres articles (91)

  • Configurer la prise en compte des langues

    15 novembre 2010, par

    Accéder à la configuration et ajouter des langues prises en compte
    Afin de configurer la prise en compte de nouvelles langues, il est nécessaire de se rendre dans la partie "Administrer" du site.
    De là, dans le menu de navigation, vous pouvez accéder à une partie "Gestion des langues" permettant d’activer la prise en compte de nouvelles langues.
    Chaque nouvelle langue ajoutée reste désactivable tant qu’aucun objet n’est créé dans cette langue. Dans ce cas, elle devient grisée dans la configuration et (...)

  • 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

  • Le profil des utilisateurs

    12 avril 2011, par

    Chaque utilisateur dispose d’une page de profil lui permettant de modifier ses informations personnelle. Dans le menu de haut de page par défaut, un élément de menu est automatiquement créé à l’initialisation de MediaSPIP, visible uniquement si le visiteur est identifié sur le site.
    L’utilisateur a accès à la modification de profil depuis sa page auteur, un lien dans la navigation "Modifier votre profil" est (...)

Sur d’autres sites (9809)

  • ffmpeg Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height

    24 septembre 2015, par and93hil

    So I am getting some errors wehn concerting with ffmpeg, here is the complete output, what have i specified wrongly ?

    command

    /usr/bin/ffmpeg -i /home/user/144310492683541.avi -vcodec flv -acodec libmp3lame -s 854x480 -preset medium -f mp4 -b:v 512000 -minrate 512000 -maxrate 512000 -b:a 128000 -minrate 128000 -maxrate 128000 -r 25 -ar 22050 /home/user/files/videos/2015/09/24/144310492683541.mp4

    ffmpeg output

    ffmpeg version N-74748-gbaeb8f5 Copyright (c) 2000-2015 the FFmpeg developers
    built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
    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-libdcadec --enable-libfreetype --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. 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. 40.100 / 5. 40.100
    libavresample 2. 1. 0 / 2. 1. 0
    libswscale 3. 1.101 / 3. 1.101
    libswresample 1. 2.101 / 1. 2.101
    libpostproc 53. 3.100 / 53. 3.100
    Input #0, avi, from '/home/user/144310492683541.avi':
    Metadata:
    encoder : Lavf56.22.100
    Duration: 00:01:36.13, start: 0.000000, bitrate: 3447 kb/s
    Stream #0:0: Video: mpeg4 (Simple Profile) (DIVX / 0x58564944), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 3871 kb/s, 30 fps, 30 tbr, 30 tbn, 30 tbc
    Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 44100 Hz, stereo, fltp, 11 kb/s
    Codec AVOption preset (Set the encoding preset (cf. x264 --fullhelp)) specified for output file #0 (/home/user/files/videos/2015/09/24/144310492683541.mp4) has not been used for any stream. The most likely reason is either wrong type (e.g. a video option with no video streams) or that it is a private option of some encoder which was not actually used for any stream.
    [flv @ 0x2d74100] Either both buffer size and max rate or neither must be specified
    Output #0, mp4, to '/home/user/files/videos/2015/09/24/144310492683541.mp4':
    Metadata:
    encoder : Lavf56.22.100
    Stream #0:0: Video: flv1, none, q=2-31, 128 kb/s, SAR 1280:1281 DAR 0:0, 25 fps
    Metadata:
    encoder : Lavc56.59.100 flv
    Stream #0:1: Audio: mp3, 0 channels, 128 kb/s
    Metadata:
    encoder : Lavc56.59.100 libmp3lame
    Stream mapping:
    Stream #0:0 -> #0:0 (mpeg4 (native) -> flv1 (flv))
    Stream #0:1 -> #0:1 (aac (native) -> mp3 (libmp3lame))
    Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
  • 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
  • ffmpeg mp4 fade output appears faulty [duplicate]

    19 septembre 2015, par DaveTheRave

    This question already has an answer here :

    I can add a fade in and out to an existing MP4 with the following command and it works perfectly (from and to black) - it plays in all browsers and a range of Android devices

    ffmpeg -i phpF21_i_v.mp4 -vf "fade=in:1:30, fade=out:st=4:d=1.0" -y phpF21_i_final.mp4 >phpF21_i_f.log 2>&1

    But if I try to fade from and to white, the following command doesn’t work - it only plays in Chrome - no other browser - not on Android

    ffmpeg -i phpF21_i_v.mp4 -vf "fade=in:1:30:color=white, fade=out:st=4:d=1.0:color=white" -y phpF21_i_final.mp4 >phpF21_i_f.log 2>&1

    Am I missing something obvious ?

    Cheers

    Dave

    The ffmpeg log when if fails :

    `

    ffmpeg version N-72298-g02cf59f Copyright (c) 2000-2015 the FFmpeg developers
     built with gcc 4.9.2 (GCC)
     configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --enable-decklink --enable-zlib
     libavutil      54. 23.101 / 54. 23.101
     libavcodec     56. 40.100 / 56. 40.100
     libavformat    56. 33.101 / 56. 33.101
     libavdevice    56.  4.100 / 56.  4.100
     libavfilter     5. 16.101 /  5. 16.101
     libswscale      3.  1.101 /  3.  1.101
     libswresample   1.  1.100 /  1.  1.100
     libpostproc    53.  3.100 / 53.  3.100
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'phpF21_i_v.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.33.101
     Duration: 00:00:05.00, start: 0.000000, bitrate: 910 kb/s
       Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1920x1080, 906 kb/s, 25 fps, 25 tbr, 12800 tbn, 50 tbc (default)
       Metadata:
         handler_name    : VideoHandler
    No pixel format specified, yuv444p for H.264 encoding chosen.
    Use -pix_fmt yuv420p for compatibility with outdated media players.
    [libx264 @ 00000000055144c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
    [libx264 @ 00000000055144c0] profile High 4:4:4 Predictive, level 4.0, 4:4:4 8-bit
    [libx264 @ 00000000055144c0] 264 - core 146 r2538 121396c - H.264/MPEG-4 AVC codec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 ref=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_pskip=1 chroma_qp_offset=4 threads=9 lookahead_threads=1 sliced_threads=0 nr=0 decimate=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 'phpF21_i_final.mp4':
     Metadata:
       major_brand     : isom
       minor_version   : 512
       compatible_brands: isomiso2avc1mp41
       encoder         : Lavf56.33.101
       Stream #0:0(und): Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv444p, 1920x1080, q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
       Metadata:
         handler_name    : VideoHandler
         encoder         : Lavc56.40.100 libx264
    Stream mapping:
     Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    frame=   16 fps=0.0 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
    frame=   35 fps= 34 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
    frame=   47 fps= 25 q=0.0 size=       0kB time=00:00:00.00 bitrate=N/A    
    frame=   55 fps= 23 q=28.0 size=       1kB time=00:00:00.00 bitrate=N/A    
    frame=   64 fps= 21 q=28.0 size=     154kB time=00:00:00.36 bitrate=3502.7kbits/s    
    frame=   74 fps= 21 q=28.0 size=     427kB time=00:00:00.76 bitrate=4600.5kbits/s    
    frame=   87 fps= 21 q=28.0 size=     746kB time=00:00:01.28 bitrate=4776.4kbits/s    
    frame=  107 fps= 23 q=28.0 size=     814kB time=00:00:02.08 bitrate=3206.4kbits/s    
    frame=  125 fps= 24 q=28.0 size=     836kB time=00:00:02.80 bitrate=2446.0kbits/s    
    frame=  125 fps= 21 q=-1.0 Lsize=     876kB time=00:00:04.92 bitrate=1458.0kbits/s    
    video:873kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.253249%
    [libx264 @ 00000000055144c0] frame I:2     Avg QP:15.56  size:  9114
    [libx264 @ 00000000055144c0] frame P:39    Avg QP:18.53  size: 21193
    [libx264 @ 00000000055144c0] frame B:84    Avg QP:17.81  size:   582
    [libx264 @ 00000000055144c0] consecutive B-frames:  8.8%  4.8%  0.0% 86.4%
    [libx264 @ 00000000055144c0] mb I  I16..4: 17.0% 82.3%  0.7%
    [libx264 @ 00000000055144c0] mb P  I16..4:  2.8%  4.7%  0.2%  P16..4: 17.6%  2.9%  2.7%  0.0%  0.0%    skip:69.1%
    [libx264 @ 00000000055144c0] mb B  I16..4:  0.2%  0.2%  0.0%  B16..8:  5.1%  0.0%  0.0%  direct: 0.0%  skip:94.4%  L0:15.6% L1:54.1% BI:30.3%
    [libx264 @ 00000000055144c0] 8x8 transform intra:68.2% inter:64.0%
    [libx264 @ 00000000055144c0] coded y,u,v intra: 18.5% 6.4% 6.4% inter: 3.7% 1.6% 1.7%
    [libx264 @ 00000000055144c0] i16 v,h,dc,p: 20% 45%  7% 28%
    [libx264 @ 00000000055144c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 19% 19% 49%  2%  2%  2%  3%  1%  3%
    [libx264 @ 00000000055144c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 27% 33%  4%  6%  3%  6%  3%  4%
    [libx264 @ 00000000055144c0] Weighted P-Frames: Y:53.8% UV:53.8%
    [libx264 @ 00000000055144c0] ref P L0: 72.5% 14.0%  8.7%  4.8%  0.0%
    [libx264 @ 00000000055144c0] ref B L0: 39.9% 48.3% 11.7%
    [libx264 @ 00000000055144c0] ref B L1: 95.8%  4.2%
    [libx264 @ 00000000055144c0] kb/s:1429.90

    `