
Recherche avancée
Médias (1)
-
SPIP - plugins - embed code - Exemple
2 septembre 2013, par
Mis à jour : Septembre 2013
Langue : français
Type : Image
Autres articles (98)
-
MediaSPIP 0.1 Beta version
25 avril 2011, parMediaSPIP 0.1 beta is the first version of MediaSPIP proclaimed as "usable".
The zip file provided here only contains the sources of MediaSPIP in its standalone version.
To get a working installation, you must manually install all-software dependencies on the server.
If you want to use this archive for an installation in "farm mode", you will also need to proceed to other manual (...) -
Personnaliser en ajoutant son logo, sa bannière ou son image de fond
5 septembre 2013, parCertains 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 ;
-
Multilang : améliorer l’interface pour les blocs multilingues
18 février 2011, parMultilang est un plugin supplémentaire qui n’est pas activé par défaut lors de l’initialisation de MediaSPIP.
Après son activation, une préconfiguration est mise en place automatiquement par MediaSPIP init permettant à la nouvelle fonctionnalité d’être automatiquement opérationnelle. Il n’est donc pas obligatoire de passer par une étape de configuration pour cela.
Sur d’autres sites (13115)
-
How to record audio and video on macos with ffmpeg ?
5 janvier 2024, par chovy$ ffmpeg -f avfoundation -list_devices true -i ""
...
[AVFoundation indev @ 0x7fa8c24312c0] AVFoundation video devices:
[AVFoundation indev @ 0x7fa8c24312c0] [0] FaceTime HD Camera
[AVFoundation indev @ 0x7fa8c24312c0] [1] Capture screen 0
[AVFoundation indev @ 0x7fa8c24312c0] AVFoundation audio devices:
[AVFoundation indev @ 0x7fa8c24312c0] [0] MacBook Pro Microphone



These are my audio and video devices.
I'm trying to record audio from mic and video capture of screen.
However when I try to run the command I get this error :


$ ffmpeg -f avfoundation -i "1:0" \ 
 ~/Videos/screencast.mp4
ffmpeg version 4.3.2 Copyright (c) 2000-2021 the FFmpeg developers
 built with Apple clang version 12.0.0 (clang-1200.0.32.29)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/4.3.2 --enable-shared --enable-pthreads --enable-version3 --enable-avresample --cc=clang --host-cflags= --host-ldflags= --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libbluray --enable-libdav1d --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libtesseract --enable-libtheora --enable-libvidstab --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-librtmp --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox
 libavutil 56. 51.100 / 56. 51.100
 libavcodec 58. 91.100 / 58. 91.100
 libavformat 58. 45.100 / 58. 45.100
 libavdevice 58. 10.100 / 58. 10.100
 libavfilter 7. 85.100 / 7. 85.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 7.100 / 5. 7.100
 libswresample 3. 7.100 / 3. 7.100
 libpostproc 55. 7.100 / 55. 7.100
[AVFoundation indev @ 0x7fced1c315c0] Configuration of video device failed, falling back to default.
[avfoundation @ 0x7fced2009000] Selected pixel format (yuv420p) is not supported by the input device.
[avfoundation @ 0x7fced2009000] Supported pixel formats:
[avfoundation @ 0x7fced2009000] uyvy422
[avfoundation @ 0x7fced2009000] yuyv422
[avfoundation @ 0x7fced2009000] nv12
[avfoundation @ 0x7fced2009000] 0rgb
[avfoundation @ 0x7fced2009000] bgr0
[avfoundation @ 0x7fced2009000] Overriding selected pixel format to use uyvy422 instead.



Additionally I'd like to capture camera in lower right. This is how I do it on Linux, but the basics don't even work on MacOS.


screencap() {
 file=`date +%Y-%m-%d-%H.%M.%S`
 ffmpeg -f alsa -i pulse -f x11grab -thread_queue_size 64 -i :0.0 \
 -video_size 384x216 -i /dev/video0 \
 -filter_complex 'overlay=main_w-overlay_w:main_h-overlay_h' \
 -r 60 -preset ultrafast ~/Videos/screencast-${file}.mp4
}



-
avcodec/aarch64/vvc : Optimised version of classify function.
9 septembre, par Georgii Zagoruikoavcodec/aarch64/vvc : Optimised version of classify function.
Macbook Air (M2) :
vvc_alf_classify_8x8_8_c : 2.6 ( 1.00x)
vvc_alf_classify_8x8_8_neon : 1.0 ( 2.47x)
vvc_alf_classify_8x8_10_c : 2.7 ( 1.00x)
vvc_alf_classify_8x8_10_neon : 0.9 ( 2.98x)
vvc_alf_classify_8x8_12_c : 2.7 ( 1.00x)
vvc_alf_classify_8x8_12_neon : 0.9 ( 2.97x)
vvc_alf_classify_16x16_8_c : 7.3 ( 1.00x)
vvc_alf_classify_16x16_8_neon : 3.4 ( 2.12x)
vvc_alf_classify_16x16_10_c : 4.3 ( 1.00x)
vvc_alf_classify_16x16_10_neon : 2.9 ( 1.47x)
vvc_alf_classify_16x16_12_c : 4.3 ( 1.00x)
vvc_alf_classify_16x16_12_neon : 3.0 ( 1.44x)
vvc_alf_classify_32x32_8_c : 13.7 ( 1.00x)
vvc_alf_classify_32x32_8_neon : 10.7 ( 1.29x)
vvc_alf_classify_32x32_10_c : 12.3 ( 1.00x)
vvc_alf_classify_32x32_10_neon : 8.7 ( 1.42x)
vvc_alf_classify_32x32_12_c : 12.2 ( 1.00x)
vvc_alf_classify_32x32_12_neon : 8.7 ( 1.40x)
vvc_alf_classify_64x64_8_c : 45.8 ( 1.00x)
vvc_alf_classify_64x64_8_neon : 37.1 ( 1.23x)
vvc_alf_classify_64x64_10_c : 41.3 ( 1.00x)
vvc_alf_classify_64x64_10_neon : 32.8 ( 1.26x)
vvc_alf_classify_64x64_12_c : 41.4 ( 1.00x)
vvc_alf_classify_64x64_12_neon : 32.4 ( 1.28x)
vvc_alf_classify_128x128_8_c : 163.7 ( 1.00x)
vvc_alf_classify_128x128_8_neon : 138.3 ( 1.18x)
vvc_alf_classify_128x128_10_c : 149.1 ( 1.00x)
vvc_alf_classify_128x128_10_neon : 120.3 ( 1.24x)
vvc_alf_classify_128x128_12_c : 148.7 ( 1.00x)
vvc_alf_classify_128x128_12_neon : 119.4 ( 1.25x)RPi4 (Cortex-A72) :
vvc_alf_classify_8x8_8_c : 1251.6 ( 1.00x)
vvc_alf_classify_8x8_8_neon : 700.7 ( 1.79x)
vvc_alf_classify_8x8_10_c : 1141.9 ( 1.00x)
vvc_alf_classify_8x8_10_neon : 659.7 ( 1.73x)
vvc_alf_classify_8x8_12_c : 1075.8 ( 1.00x)
vvc_alf_classify_8x8_12_neon : 658.7 ( 1.63x)
vvc_alf_classify_16x16_8_c : 3574.1 ( 1.00x)
vvc_alf_classify_16x16_8_neon : 1849.8 ( 1.93x)
vvc_alf_classify_16x16_10_c : 3270.0 ( 1.00x)
vvc_alf_classify_16x16_10_neon : 1786.1 ( 1.83x)
vvc_alf_classify_16x16_12_c : 3271.7 ( 1.00x)
vvc_alf_classify_16x16_12_neon : 1785.5 ( 1.83x)
vvc_alf_classify_32x32_8_c : 12451.9 ( 1.00x)
vvc_alf_classify_32x32_8_neon : 5984.3 ( 2.08x)
vvc_alf_classify_32x32_10_c : 11428.9 ( 1.00x)
vvc_alf_classify_32x32_10_neon : 5756.3 ( 1.99x)
vvc_alf_classify_32x32_12_c : 11252.8 ( 1.00x)
vvc_alf_classify_32x32_12_neon : 5755.7 ( 1.96x)
vvc_alf_classify_64x64_8_c : 47625.5 ( 1.00x)
vvc_alf_classify_64x64_8_neon : 21071.9 ( 2.26x)
vvc_alf_classify_64x64_10_c : 44576.3 ( 1.00x)
vvc_alf_classify_64x64_10_neon : 21544.7 ( 2.07x)
vvc_alf_classify_64x64_12_c : 44600.5 ( 1.00x)
vvc_alf_classify_64x64_12_neon : 21491.2 ( 2.08x)
vvc_alf_classify_128x128_8_c : 192143.3 ( 1.00x)
vvc_alf_classify_128x128_8_neon : 82387.6 ( 2.33x)
vvc_alf_classify_128x128_10_c : 177583.1 ( 1.00x)
vvc_alf_classify_128x128_10_neon : 81628.8 ( 2.18x)
vvc_alf_classify_128x128_12_c : 177582.2 ( 1.00x)
vvc_alf_classify_128x128_12_neon : 81625.1 ( 2.18x) -
Playing 120fps in browser between original and re-made video, original is normal speed, new video is slo-mo
1er mars 2023, par Patrick VelliaI used my GoPro Hero10 to record at 4k 120fps on a green screen. This original video plays slo-mo in QuickTime but "normal" speed in the browser. I want it playing normal speed, and if end user wants to slow it down they have the extra frames for that to maintain clarity, which is why I record at 120.


I then used FFMPEG to create an image sequence of the video.


Then I ran Image Magic to create the transparent frames.


Then I put it back together with the following command for a HEVC mov file :


ffmpeg -r 120 -f image2 -i transparent/image_transparent_%08d.png -vcodec hevc_videotoolbox -crf 28 -alpha_quality 1 -tag:v hvc1 output.mov



I am still on an Intel MacBook Pro running FFMPEG 4.6 (as I've found 5+ was buggy with one of my commands a few months ago but can't remember which one, I think it was the videotoolbox).


The GoPro video has the following stream data as input to the FFMPEG :


Duration: 00:00:08.15, start: 0.000000, bitrate: 60160 kb/s
 Stream #0:0(eng): Video: hevc (Main) (hvc1 / 0x31637668), yuvj420p(pc, bt709), 3840x2160 [SAR 1:1 DAR 16:9], 59891 kb/s, 119.88 fps, 119.88 tbr, 120k tbn, 119.88 tbc (default)
 Metadata:
 creation_time : 2023-02-28T19:06:41.000000Z
 handler_name : GoPro H.265
 vendor_id : [0][0][0][0]
 encoder : GoPro H.265 encoder
 timecode : 19:05:32:105
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 189 kb/s (default)
 Metadata:
 creation_time : 2023-02-28T19:06:41.000000Z
 handler_name : GoPro AAC 
 vendor_id : [0][0][0][0]
 timecode : 19:05:32:105
 Stream #0:2(eng): Data: none (tmcd / 0x64636D74), 0 kb/s (default)
 Metadata:
 creation_time : 2023-02-28T19:06:41.000000Z
 handler_name : GoPro TCD 
 timecode : 19:05:32:105
 Stream #0:3(eng): Data: bin_data (gpmd / 0x646D7067), 76 kb/s (default)
 Metadata:
 creation_time : 2023-02-28T19:06:41.000000Z
 handler_name : GoPro MET 



Whereas the re-constructed video has the following data :


Duration: 00:00:08.13, start: 0.000000, bitrate: 763650 kb/s
 Stream #0:0: Video: hevc (Main) (hvc1 / 0x31637668), yuv420p(tv, progressive), 3840x2160 [SAR 1:1 DAR 16:9], 763696 kb/s, 120 fps, 120 tbr, 15360 tbn, 15360 tbc (default)
 Metadata:
 handler_name : VideoHandler
 vendor_id : FFMP
 encoder : Lavc58.134.100 hevc_videotoolbo



When this re-constructed video plays in the browser, it is in slow-mo and I need to set the playbackRate to 4.0 for it to play "normally".


Is there something I need to add to the video for the browser to play it at "normal" speed ?