Recherche avancée

Médias (0)

Mot : - Tags -/content

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

Autres articles (18)

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

  • Emballe médias : à quoi cela sert ?

    4 février 2011, par

    Ce plugin vise à gérer des sites de mise en ligne de documents de tous types.
    Il crée des "médias", à savoir : un "média" est un article au sens SPIP créé automatiquement lors du téléversement d’un document qu’il soit audio, vidéo, image ou textuel ; un seul document ne peut être lié à un article dit "média" ;

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

Sur d’autres sites (3808)

  • Incomplete video when using ffmpeg to weave WAV and PNG

    18 avril 2023, par Howard Baek

    I am trying to "weave" PNG image files with a WAV file. Here is the ffmpeg command that I used :

    


    '/opt/homebrew/Cellar/ffmpeg/5.1.2_6/bin/ffmpeg' -y -f concat -safe 0 -i '/private/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T/Rtmp8gnKo7/ari_input_NQIg95oycVnb.txt' -i '/private/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T/Rtmp8gnKo7/ari_audio_ngNm5vr2vFta.wav' -c:v libx264 -c:a aac -ac 2    -shortest -fps_mode auto -pix_fmt yuv420p  -vf fps=5,\"scale=trunc(iw/2)*2:trunc(ih/2)*2\"   -strict experimental -max_muxing_queue_size 9999 -threads 2 '/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T//Rtmp8gnKo7/file46521ffd4ef8.mp4'


    


    While ffmpeg is doing its thing, I get this long message :

    


    ffmpeg version 5.1.2 Copyright (c) 2000-2022 the FFmpeg developers
  built with Apple clang version 14.0.0 (clang-1400.0.29.202)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/5.1.2_6 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-neon
  libavutil      57. 28.100 / 57. 28.100
  libavcodec     59. 37.100 / 59. 37.100
  libavformat    59. 27.100 / 59. 27.100
  libavdevice    59.  7.100 / 59.  7.100
  libavfilter     8. 44.100 /  8. 44.100
  libswscale      6.  7.100 /  6.  7.100
  libswresample   4.  7.100 /  4.  7.100
  libpostproc    56.  6.100 / 56.  6.100
Input #0, concat, from '/private/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T/Rtmp8gnKo7/ari_input_NQIg95oycVnb.txt':
  Duration: 00:00:37.00, start: 0.000000, bitrate: 0 kb/s
  Stream #0:0: Video: png, rgb24(pc), 6000x3375 [SAR 23622:23622 DAR 16:9], 25 fps, 25 tbr, 25 tbn
Input #1, wav, from '/private/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T/Rtmp8gnKo7/ari_audio_ngNm5vr2vFta.wav':
  Duration: 00:00:37.00, bitrate: 352 kb/s
  Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, 1 channels (FL), s16, 352 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
  Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x13c9084e0] using SAR=3374/3375
[libx264 @ 0x13c9084e0] using cpu capabilities: ARMv8 NEON
[libx264 @ 0x13c9084e0] profile High, level 6.0, 4:2:0, 8-bit
[libx264 @ 0x13c9084e0] 264 - core 164 r3095 baee400 - H.264/MPEG-4 AVC codec - Copyleft 2003-2022 - 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=-2 threads=2 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=5 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 '/var/folders/bb/m2b0ry595ys7bfs1r397lnf40000gp/T//Rtmp8gnKo7/file46521ffd4ef8.mp4':
  Metadata:
    encoder         : Lavf59.27.100
  Stream #0:0: Video: h264 (avc1 / 0x31637661), yuv420p(tv, progressive), 6000x3374 [SAR 3374:3375 DAR 16:9], q=2-31, 5 fps, 10240 tbn
    Metadata:
      encoder         : Lavc59.37.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
  Stream #0:1: Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, stereo, fltp, 128 kb/s
    Metadata:
      encoder         : Lavc59.37.100 aac
frame=  150 fps= 11 q=-1.0 Lsize=     658kB time=00:00:30.00 bitrate= 179.7kbits/s speed=2.21x    
video:286kB audio:364kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.219465%
[libx264 @ 0x13c9084e0] frame I:2     Avg QP: 2.27  size: 77096
[libx264 @ 0x13c9084e0] frame P:38    Avg QP:12.33  size:  1831
[libx264 @ 0x13c9084e0] frame B:110   Avg QP:12.66  size:   622
[libx264 @ 0x13c9084e0] consecutive B-frames:  2.0%  0.0%  2.0% 96.0%
[libx264 @ 0x13c9084e0] mb I  I16..4: 95.0%  2.4%  2.5%
[libx264 @ 0x13c9084e0] mb P  I16..4:  0.0%  0.0%  0.0%  P16..4:  0.1%  0.0%  0.0%  0.0%  0.0%    skip:99.9%
[libx264 @ 0x13c9084e0] 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:60.3% L1:39.7% BI: 0.0%
[libx264 @ 0x13c9084e0] 8x8 transform intra:3.0% inter:3.7%
[libx264 @ 0x13c9084e0] coded y,uvDC,uvAC intra: 1.7% 0.4% 0.4% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x13c9084e0] i16 v,h,dc,p: 99%  1%  1%  0%
[libx264 @ 0x13c9084e0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 79%  2% 19%  0%  0%  0%  0%  0%  0%
[libx264 @ 0x13c9084e0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 16% 24%  2%  2%  3%  3%  2%  2%
[libx264 @ 0x13c9084e0] i8c dc,h,v,p: 99%  1%  0%  0%
[libx264 @ 0x13c9084e0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x13c9084e0] ref P L0: 87.6%  1.9%  9.4%  1.1%
[libx264 @ 0x13c9084e0] ref B L0: 56.8% 41.9%  1.3%
[libx264 @ 0x13c9084e0] ref B L1: 97.9%  2.1%
[libx264 @ 0x13c9084e0] kb/s:77.92
[aac @ 0x13c9098c0] Qavg: 60691.250


    


    The output, a mp4 video file, isn't what I expected. I expected 6 PNG images embedded with my combined WAV file, but the video only shows 5 PNG images and a shortened WAV file.

    


    Here is the content of the txt file, ari_input_NQIg95oycVnb.txt :

    


    file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide1.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide2.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide3.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide4.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide5.png'
duration 6
file '/Users/howardbaek/Documents/sandbox/loqui/png_files/slide6.png'
duration 7


    


    I wanted to attach my WAV file and PNG files to make this question more reproducible, but couldn't so I'll redirect you to my GitHub issue, which contains 6 separate WAV files and 6 PNG files.

    


  • Matomo maker InnoCraft named 2023 Hi-Tech Awards finalist

    20 avril 2023, par Erin — Press Releases

    WELLINGTON, N.Z., April 20, 2023 – InnoCraft, the makers of world-leading open-source web analytics platform Matomo, has been named an ASX Hi-Tech Emerging Company of the Year finalist in the 2023 Hi-Tech Awards. 



    Matomo founder Matthieu Aubry says, “At Matomo, we believe in empowering individuals and organizations to make informed decisions about their digital presence. By providing an open-source website analytics platform, we have created a more transparent and trustworthy digital ecosystem. We are proud to be recognised as a finalist for the Hi-Tech Awards, and we will continue to work towards a more open and ethical digital landscape, and grow the business in New Zealand and worldwide.”



    About Matomo

    Matomo, launched in 2007 as an open-source, privacy-friendly Google Analytics alternative, is trusted by over 1.5 million websites in 220 countries and has been translated in over 50 languages. Matomo tracks and analyses online visits and traffic to give users a deeper understanding of their website visitors to drive conversions and revenue ; while keeping businesses compliant with privacy laws worldwide, such as the EU’s General Data Protection Regulation (GDPR) and The California Consumer Privacy Act (CCPA).

    Aubry says Matomo is performing extremely well internationally as consumers and organizations look for privacy-focused analytics solutions, with several European countries already ruling the use of Google Analytics illegal due to data transfers to the US. In addition, Matomo’s user increase was recognized earlier this year with W3Tech’s award for the best web analytics software in its Web Technologies of the Year 2022 – with previous winners including Google Analytics and Facebook Pixel.



    A record number of companies entered the 2023 Hi-Tech Awards, with entries coming in from across the country and from all areas of the Hi-Tech sector. This depth is reflected in the line-up of finalists this year, according to David Downs, Chair of the Hi-Tech Trust, who says the standard of entries continue to grow every year.

”

    The hi-tech sector continues to flourish and it’s fantastic to see the success that so many of our companies enjoy on the international stage. This sector continues to prove its resilience and is at the forefront of our export economy in turbulent times,” says Downs.



    The Hi-Tech Awards Gala Dinner will take place on Friday, the 23rd of June, in Christchurch. 


     

    &lt;script type=&quot;text/javascript&quot;&gt;<br />
    console.log('script started!!!!');<br />
       var _paq = _paq || [];<br />
       _paq.push(['AbTesting::create', {<br />
           name: 'LanceTesting', // you can also use '18' (ID of the experiment) to hide the name<br />
           percentage: 100,<br />
           includedTargets: [{&quot;attribute&quot;:&quot;url&quot;,&quot;inverted&quot;:&quot;0&quot;,&quot;type&quot;:&quot;equals_simple&quot;,&quot;value&quot;:&quot;https:\/\/matomo.org\/blog\/2023\/01\/matomo-privacy-friendly-web-analytics-software-named-best-of-the-year-2022\/&quot;}],<br />
           excludedTargets: [],<br />
           variations: [<br />
               {<br />
                   name: 'original',<br />
                   activate: function (event) {<br />
                       // usually nothing needs to be done here<br />
                       console.log('group1');<br />
                   }<br />
               },<br />
               {<br />
                   name: 'Variation1', // you can also use '45' (ID of the variation) to hide the name<br />
                   percentage: 90,<br />
                   activate: function(event) {<br />
                       console.log('group2');<br />
                       event.redirect('https://matomo.org/blog/2023/08/matomo-named-2023-hi-tech-awards-finalist/');<br />
                   }<br />
               }            <br />
           ],<br />
           trigger: function () {<br />
               return true; // here you can further customize which of your visitors will participate in this experiment<br />
           }<br />
       }]);<br />
    &lt;/script&gt;
  • Burning subtitles into video using ffmpeg overlay on react native

    25 avril 2023, par Youssef

    I have managed to complete this task on node server but it's too slow I don't want to upgrade my instance so I decided to do the conversion on the front end, my app is on react native can please somebody help me convert the code and keep the same args and options

    &#xA;

    Server code

    &#xA;

    // Execute the ffmpeg command to burn the subtitles into the video&#xA;const ffmpeg = spawn("ffmpeg", [&#xA;  "-i",&#xA;  "pipe:0",&#xA;  "-vf",&#xA;  `subtitles=${subtitlePath}:force_style=&#x27;Alignment=10,OutlineColour=&amp;H100000000,BorderStyle=3,Outline=1,Shadow=0,Fontsize=10&#x27;`,&#xA;  "-c:a",&#xA;  "copy",&#xA;  "-progress", "pipe:1",&#xA;  outputPath,&#xA;]);&#xA;&#xA;// Pipe the videoResponse array buffer to FFmpeg&#xA;ffmpeg.stdin.write(videoResponse.data);&#xA;ffmpeg.stdin.end();&#xA;&#xA;// Send the output file as a response once the process is complete&#xA;ffmpeg.on("close", () => {&#xA;  fs.readFile(outputPath, (err, data) => {&#xA;    if (err) {&#xA;      console.error(err);&#xA;    } else {&#xA;      console.log(outputPath)&#xA;    }&#xA;  });&#xA;});&#xA;

    &#xA;

    My try on react native but failed for several issues including, main ones are :

    &#xA;

    &#xA;

    No such filter : 'subtitles' Failed to inject frame into filter

    &#xA;

    &#xA;

    &#xA;

    Invalid argument

    &#xA;

    &#xA;

    &#xA;

    Error initializing complex filters.

    &#xA;

    &#xA;

    This is what I come up with so far

    &#xA;

      componentDidMount() {&#xA;    FFmpegKit.executeAsync(`-i ${inputFilePath} -i ${subtitleFilePath} -filter_complex "[0:v][1:s]overlay=10:main_h-overlay_h-10" -c:a copy ${outputFilePath}`)&#xA;    .then((session) => {&#xA;      FFmpegKit.cancel();&#xA;  &#xA;      const returnCode = session.getReturnCode();&#xA;  &#xA;      if (ReturnCode.isSuccess(returnCode)) {&#xA;        console.log(&#x27;Video with subtitles was created successfully!&#x27;);&#xA;      } else {&#xA;        console.log(&#x27;Error creating video with subtitles&#x27;);&#xA;      }&#xA;    })&#xA;    .catch((error) => {&#xA;      console.log(&#x27;Error creating video with subtitles&#x27;, error);&#xA;    });&#xA;  }&#xA;

    &#xA;

    If you want to see the logs you can find them below

    &#xA;

     LOG  init firebase : videocap-71b4a&#xA; LOG  Running "videocap" with {"rootTag":11,"initialProps":{}}&#xA; LOG  Loading ffmpeg-kit-react-native.&#xA; LOG  Loaded ffmpeg-kit-react-native-ios-https-x86_64-5.1.0.&#xA; LOG  Error creating video with subtitles [TypeError: undefined is not a function]&#xA; LOG  ffmpeg version n5.1.2&#xA; LOG   Copyright (c) 2000-2022 the FFmpeg developers&#xA; LOG  &#xA; LOG    built with Apple clang version 14.0.0 (clang-1400.0.29.102)&#xA; LOG    configuration: --cross-prefix=x86_64-ios-darwin- --sysroot=/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk --prefix=/Users/taner/Projects/ffmpeg-kit/prebuilt/apple-ios-x86_64/ffmpeg --pkg-config=/opt/homebrew/bin/pkg-config --enable-version3 --arch=x86_64 --cpu=x86_64 --target-os=darwin --disable-neon --disable-asm --ar=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ar --cc=clang --cxx=clang&#x2B;&#x2B; --as=&#x27;clang -arch x86_64 -target x86_64-apple-ios12.1-simulator -march=x86-64 -msse4.2 -mpopcnt -m64 -DFFMPEG_KIT_X86_64 -Wno-unused-function -Wno-deprecated-declarations -fstrict-aliasing -DIOS -DFFMPEG_KIT_BUILD_DATE=20220929 -isysroot /Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk -O2 -mios-simulator-version-min=12.1 -I/Applications/Xcode-v13.4.1.app/Contents/Developer/Platforms/iPhoneSimulator.platform/Developer/SDKs/iPhoneSimulator16.0.sdk/usr/include&#x27; --ranlib=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/ranlib --strip=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/strip --nm=/Applications/Xcode-v13.4.1.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/nm --extra-ldflags=&#x27;-mios-simulator-version-min=12.1&#x27; --disable-autodetect --enable-cross-compile --enable-pic --enable-inline-asm --enable-optimizations --enable-swscale --enable-shared --disable-static --install-name-dir=&#x27;@rpath&#x27; --enable-pthreads --disable-v4l2-m2m --disable-outdev=v4l2 --disable-outdev=fbdev --disable-indev=v4l2 --disable-indev=fbdev --enable-small --disable-xmm-clobber-test --disable-debug --disable-neon-clobber-test --disable-programs --disable-postproc --disable-doc --disable-htmlpages --disable-manpages --disable-podpages --disable-txtpages --disable-sndio --disable-schannel --disable-securetransport --disable-xlib --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --disable-alsa --disable-cuda --disable-cuvid --disable-nvenc --disable-vaapi --disable-vdpau --enable-gmp --enable-gnutls --disable-sdl2 --disable-openssl --enable-zlib --enable-audiotoolbox --disable-outdev=audiotoolbox --enable-bzlib --enable-videotoolbox --enable-avfoundation --enable-iconv --disable-coreimage --disable-appkit --disable-opencl --disable-opengl&#xA; LOG    libavutil      57. 28.100 / 57. 28.100&#xA; LOG    libavcodec     59. 37.100 / 59. 37.100&#xA; LOG    libavformat    59. 27.100 / 59. 27.100&#xA; LOG    libavdevice    59.  7.100 / 59.  7.100&#xA; LOG    libavfilter     8. 44.100 /  8. 44.100&#xA; LOG    libswscale      6.  7.100 /  6.  7.100&#xA; LOG    libswresample   4.  7.100 /  4.  7.100&#xA; LOG  Input #0, mov,mp4,m4a,3gp,3g2,mj2, from &#x27;/Users/master/Documents/Code/videocap-mobile/media.mp4&#x27;:&#xA; LOG    Metadata:&#xA; LOG      major_brand     :&#xA; LOG  isom&#xA; LOG  &#xA; LOG      minor_version   :&#xA; LOG  512&#xA; LOG  &#xA; LOG      compatible_brands:&#xA; LOG  isomiso2avc1mp41&#xA; LOG  &#xA; LOG      encoder         :&#xA; LOG  Lavf58.76.100&#xA; LOG  &#xA; LOG    Duration:&#xA; LOG  00:00:11.82&#xA; LOG  , start:&#xA; LOG  0.000000&#xA; LOG  , bitrate:&#xA; LOG  813 kb/s&#xA; LOG  &#xA; LOG    Stream #0:0&#xA; LOG  [0x1]&#xA; LOG  (und)&#xA; LOG  : Video: h264 (avc1 / 0x31637661), yuv420p(tv, bt470bg/bt470bg/smpte170m, progressive), 480x608, 682 kb/s&#xA; LOG  , SAR 32757:32326 DAR 491355:614194&#xA; LOG  ,&#xA; LOG  24.15 fps,&#xA; LOG  24 tbr,&#xA; LOG  1000k tbn&#xA; LOG   (default)&#xA; LOG  &#xA; LOG      Metadata:&#xA; LOG        handler_name    :&#xA; LOG  VideoHandler&#xA; LOG  &#xA; LOG        vendor_id       :&#xA; LOG  [0][0][0][0]&#xA; LOG  &#xA; LOG    Stream #0:1&#xA; LOG  [0x2]&#xA; LOG  (und)&#xA; LOG  : Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 126 kb/s&#xA; LOG   (default)&#xA; LOG  &#xA; LOG      Metadata:&#xA; LOG        handler_name    :&#xA; LOG  SoundHandler&#xA; LOG  &#xA; LOG        vendor_id       :&#xA; LOG  [0][0][0][0]&#xA; LOG  &#xA; LOG  /Users/master/Documents/Code/videocap-mobile/transcription.srt: Immediate exit requested&#xA; LOG  Exiting normally, received signal 2.&#xA;

    &#xA;

    Please help

    &#xA;