Recherche avancée

Médias (29)

Mot : - Tags -/Musique

Autres articles (64)

  • Mise à jour de la version 0.1 vers 0.2

    24 juin 2013, par

    Explications des différents changements notables lors du passage de la version 0.1 de MediaSPIP à la version 0.3. Quelles sont les nouveautés
    Au niveau des dépendances logicielles Utilisation des dernières versions de FFMpeg (>= v1.2.1) ; Installation des dépendances pour Smush ; Installation de MediaInfo et FFprobe pour la récupération des métadonnées ; On n’utilise plus ffmpeg2theora ; On n’installe plus flvtool2 au profit de flvtool++ ; On n’installe plus ffmpeg-php qui n’est plus maintenu au (...)

  • Personnaliser en ajoutant son logo, sa bannière ou son image de fond

    5 septembre 2013, par

    Certains thèmes prennent en compte trois éléments de personnalisation : l’ajout d’un logo ; l’ajout d’une bannière l’ajout d’une image de fond ;

  • Ecrire une actualité

    21 juin 2013, par

    Présentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
    Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
    Vous pouvez personnaliser le formulaire de création d’une actualité.
    Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...)

Sur d’autres sites (12938)

  • FFMPEG command works on Mac but not on Windows [duplicate]

    24 décembre 2019, par Arthur

    Hi I’m working on a project which needs to create animations by playing 2000 charts in 50 fps using FFMPEG, the command is :

    ffmpeg -y -framerate 50 -i img-%04d.png -vb 40M -vcodec h264 esez.mp4

    charts are located in the same folder with name as img-0001.png img-2000.png

    It worked well on my Mac. On Windows, the command can run and generate a mp4 file. But the animation is just black screen on Windows media player. I also tried open with VLC, it has some image, but not proper at all.

    log from Windows CMD :

    ffmpeg version git-2019-12-11-4110029 Copyright (c) 2000-2019 the FFmpeg developers
     built with gcc 9.2.1 (GCC) 20191125
     configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libdav1d --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt --enable-amf
     libavutil      56. 36.101 / 56. 36.101
     libavcodec     58. 64.101 / 58. 64.101
     libavformat    58. 35.101 / 58. 35.101
     libavdevice    58.  9.101 / 58.  9.101
     libavfilter     7. 68.100 /  7. 68.100
     libswscale      5.  6.100 /  5.  6.100
     libswresample   3.  6.100 /  3.  6.100
     libpostproc    55.  6.100 / 55.  6.100
    Input #0, image2, from 'img-%04d.png':
     Duration: 00:00:40.18, start: 0.000000, bitrate: N/A
       Stream #0:0: Video: png, rgba(pc), 1000x800, 50 fps, 50 tbr, 50 tbn, 50 tbc
    Stream mapping:
     Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
    Press [q] to stop, [?] for help
    [libx264 @ 00000242aaacc6c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
    [libx264 @ 00000242aaacc6c0] profile High 4:4:4 Predictive, level 3.2, 4:4:4, 8-bit
    [libx264 @ 00000242aaacc6c0] 264 - core 158 - H.264/MPEG-4 AVC codec - Copyleft 2003-2019 - 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=6 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=abr mbtree=1 bitrate=40000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, mp4, to 'esez.mp4':
     Metadata:
       encoder         : Lavf58.35.101
       Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 1000x800, q=-1--1, 40000 kb/s, 50 fps, 12800 tbn, 50 tbc
       Metadata:
         encoder         : Lavc58.64.101 libx264
       Side data:
         cpb: bitrate max/min/avg: 0/0/40000000 buffer size: 0 vbv_delay: N/A
    frame= 2009 fps= 90 q=-1.0 Lsize=    7569kB time=00:00:40.12 bitrate=1545.6kbits/s speed= 1.8x
    video:7545kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.322921%
    [libx264 @ 00000242aaacc6c0] frame I:9     Avg QP: 0.35  size: 60878
    [libx264 @ 00000242aaacc6c0] frame P:511   Avg QP: 0.74  size:  5275
    [libx264 @ 00000242aaacc6c0] frame B:1489  Avg QP: 4.35  size:  3010
    [libx264 @ 00000242aaacc6c0] consecutive B-frames:  0.7%  0.7%  2.2% 96.4%
    [libx264 @ 00000242aaacc6c0] mb I  I16..4: 85.1%  1.6% 13.3%
    [libx264 @ 00000242aaacc6c0] mb P  I16..4:  0.7%  0.0%  0.2%  P16..4:  1.3%  0.8%  0.4%  0.0%  0.0%    skip:96.7%
    [libx264 @ 00000242aaacc6c0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.6%  0.7%  0.2%  direct: 0.1%  skip:97.2%  L0:48.2% L1:39.0% BI:12.8%
    [libx264 @ 00000242aaacc6c0] final ratefactor: -35.51
    [libx264 @ 00000242aaacc6c0] 8x8 transform intra:2.6% inter:5.9%
    [libx264 @ 00000242aaacc6c0] coded y,u,v intra: 12.9% 2.5% 2.6% inter: 0.9% 0.5% 0.6%
    [libx264 @ 00000242aaacc6c0] i16 v,h,dc,p: 84% 14%  2%  0%
    [libx264 @ 00000242aaacc6c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18%  2% 77%  0%  1%  1%  0%  0%  0%
    [libx264 @ 00000242aaacc6c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 36% 22% 19%  4%  4%  4%  4%  6%  2%
    [libx264 @ 00000242aaacc6c0] Weighted P-Frames: Y:0.0% UV:0.0%
    [libx264 @ 00000242aaacc6c0] ref P L0: 60.2%  0.7% 21.4% 17.7%
    [libx264 @ 00000242aaacc6c0] ref B L0: 72.6% 20.2%  7.3%
    [libx264 @ 00000242aaacc6c0] ref B L1: 88.4% 11.6%
    [libx264 @ 00000242aaacc6c0] kb/s:1538.15

    Could anybody please help me with this problem ?

    Happy Holiday to all !

  • AForge.Video.VideoFileWriter, Video Quality loss after a second

    29 décembre 2019, par Just another Dev

    I tried to use AForge to create mp4 video from images..but experience this quality loss after about 1 - 2 second into the video. Just wondering if anyone knows what went wrong with my code ?

    using AForge.Video.FFMPEG;
    VideoFileWriter writer = new VideoFileWriter();
    writer.Open(fileName, _width, _height, _frameRate, VideoCodec.MPEG4, 800000);
    var s = AForge.Imaging.Image.FromFile(@"[path]\image.jpg");
    int frameCount = _frameRate * scene.Time;
    for (int i = 0; i < frameCount; i++)
    {
       writer.WriteVideoFrame(s);
    }
    writer.Close();

    I use the above code to create a 3 second 1080p video with frame rate 60, bit rate 800k, and using this image as an example : https://www.bushandbeach.co.nz/wp-content/uploads/2019/05/A-Taste-of-Auckland-Full-Day-1-opt.jpg

    the output video is in here : https://youtu.be/j0z7711cyOM

    as you can see the image quality seems to be ok, for about 2 seconds and then it blurs out in the last second.

    Thanks so much

  • ffmpeg and libx264 videos do not play on video player

    24 décembre 2019, par Tobi

    for a few months now I encountered a problem using FFmpeg in combination with the video code h264. The video generation works fine and without any errors. I am using the following script since 2015 to build my videos from single pictures :

    #!/bin/bash                                                                    
    # ------------------------------------------------------------------------------
    #                                                                              
    # Video generator                                                              
    # Tobias Holzmann                                                              
    # Date: 18.03.15                                                                
    # Update: 24.12.2019                                                            
    # Switch back to ffmpeg from avconv                                            
    #                                                                              
    # ------------------------------------------------------------------------------

    frameRate=30                                                                    
    vcodec="h264"                                                                  
    crf=18              # Between 0-51; 23 is default. 0 = lossless                


    # ------------------------------------------------------------------------------

    ffmpeg \                                                                        
       -f image2 \                                                                
       -r $frameRate \                                                            
       -i animation.%4d.png \                                                      
       -r $frameRate \                                                            
       -crf $crf \                                                                
       -vcodec $vcodec \                                                          
       AVideo.flv                                                                  


    # ------------------------------------------------------------------------------

    Today I made it a bit more fancy and easier to use. However, the problem is, that all videos I generate with h264 do not play at all using the vlc player or the common Ubuntu video player. I get errors such as :

    shorty@animation: vlc AVideo.flv
    VLC media player 3.0.8 Vetinari (revision 3.0.8-0-gf350b6b5a7)
    [000055c0e70af420] main libvlc: Running vlc with the default interface. Use 'cvlc' to use vlc without interface.
    [NULL @ 0x7fe318c2c2a0] Invalid NAL unit size (30490 > 15039).
    [NULL @ 0x7fe318c2c2a0] missing picture in access unit with size 15733
    [h264 @ 0x7fe318c2c2a0] Invalid NAL unit size (30490 > 15039).
    [h264 @ 0x7fe318c2c2a0] Error splitting the input into NAL units.
    [00007fe324c1c420] avcodec decoder: Using NVIDIA VDPAU Driver Shared Library  430.50  Thu Sep  5 22:38:52 CDT 2019 for hardware decoding
    [h264 @ 0x7fe325428ac0] hardware accelerator failed to decode picture
    [h264 @ 0x7fe324c1fb00] hardware accelerator failed to decode picture
    [h264 @ 0x7fe324eb9d80] hardware accelerator failed to decode picture
    [h264 @ 0x7fe324ed6080] hardware accelerator failed to decode picture
    [h264 @ 0x7fe324ef2400] hardware accelerator failed to decode picture
    [h264 @ 0x7fe324f0e780] hardware accelerator failed to decode picture
    [h264 @ 0x7fe325428ac0] hardware accelerator failed to decode picture
    [h264 @ 0x7fe324c1fb00] hardware accelerator failed to decode picture
    [h264 @ 0x7fe324eb9d80] hardware accelerator failed to decode picture
    [h264 @ 0x7fe324ed6080] hardware accelerator failed to decode picture
    [h264 @ 0x7fe324ef2400] hardware accelerator failed to decode picture
    [00007fe324c1c420] main decoder error: buffer deadlock prevented
    [h264 @ 0x7fe324f0e780] hardware accelerator failed to decode picture
    ...
    ...

    I am wondering if someone does know where the problem is located. Any hint or feedback is appreciated. Thank you in advance and kind regards, Tobi.