
Recherche avancée
Médias (1)
-
Rennes Emotion Map 2010-11
19 octobre 2011, par
Mis à jour : Juillet 2013
Langue : français
Type : Texte
Autres articles (76)
-
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 (...) -
MediaSPIP version 0.1 Beta
16 avril 2011, parMediaSPIP 0.1 beta est la première version de MediaSPIP décrétée comme "utilisable".
Le fichier zip ici présent contient uniquement les sources de MediaSPIP en version standalone.
Pour avoir une installation fonctionnelle, il est nécessaire d’installer manuellement l’ensemble des dépendances logicielles sur le serveur.
Si vous souhaitez utiliser cette archive pour une installation en mode ferme, il vous faudra également procéder à d’autres modifications (...) -
Amélioration de la version de base
13 septembre 2013Jolie sélection multiple
Le plugin Chosen permet d’améliorer l’ergonomie des champs de sélection multiple. Voir les deux images suivantes pour comparer.
Il suffit pour cela d’activer le plugin Chosen (Configuration générale du site > Gestion des plugins), puis de configurer le plugin (Les squelettes > Chosen) en activant l’utilisation de Chosen dans le site public et en spécifiant les éléments de formulaires à améliorer, par exemple select[multiple] pour les listes à sélection multiple (...)
Sur d’autres sites (8166)
-
Picking the right gpu for ffmpeg decoding/encoding with nvidia/cuda
14 avril 2020, par Reza MirI am writing code using ffmpeg/nvidia/cuda library to decode and encode some video. I am trying to pick one specific GPU for decoding/encoding among some existing GPUs installed on the system. Here is the list of existing GPUs :



nvidia-smi 
Tue Apr 14 00:14:59 2020 
+-----------------------------------------------------------------------------+
| NVIDIA-SMI 440.64.00 Driver Version: 440.64.00 CUDA Version: 10.2 |
|-------------------------------+----------------------+----------------------+
| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
|===============================+======================+======================|
| 0 GeForce RTX 208... On | 00000000:1A:00.0 Off | N/A |
| 41% 33C P8 20W / 260W | 0MiB / 11019MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 1 GeForce GTX 108... On | 00000000:1B:00.0 Off | N/A |
| 41% 65C P2 182W / 250W | 7167MiB / 11178MiB | 53% Default |
+-------------------------------+----------------------+----------------------+
| 2 GeForce GTX 108... On | 00000000:1E:00.0 Off | N/A |
| 14% 55C P2 61W / 250W | 1943MiB / 11178MiB | 26% Default |
+-------------------------------+----------------------+----------------------+
| 3 Quadro P5000 On | 00000000:3D:00.0 Off | Off |
| 26% 33C P8 6W / 180W | 1MiB / 16278MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 4 TITAN RTX On | 00000000:3E:00.0 Off | N/A |
| 41% 38C P0 72W / 280W | 0MiB / 24220MiB | 0% Default |
+-------------------------------+----------------------+----------------------+
| 5 TITAN RTX On | 00000000:41:00.0 Off | N/A |
| 40% 32C P8 14W / 280W | 0MiB / 24220MiB | 0% Default |
+-------------------------------+----------------------+----------------------+





I would like to pick GPU #3 in my code and use it for decoding. I am using h264_nvenc and h264_cuvid as encoder and decoder in my program and setting the options of decoder/encoder using the following code :



av_opt_set(decoder_context->priv_data, "gpu", "Quadro P5000", 0);




But this code doesn't pick Quadro GPU for decoding/encoding. Instead, it always goes to GPU #4 in my test :



nvidia-smi pmon | grep tx
 4 20096 C 22 3 44 16 tx 
 4 20096 C 26 4 49 17 tx 
 4 20096 C 25 4 49 17 tx 



-
Failing to push mpeg dash segment to webdav server using method PUT
18 avril 2020, par Safwan SadaI am trying to push mpeg dash segments to webdav server.



Here is the command :



ffmpeg -loglevel verbose -re -i /home/SAFWAN/URI.mp4 -codec copy -sc_threshold 0 -b_strategy 0 -use_timeline 0 -use_template 1 -window_size 10 -init_seg_name init-$RepresentationID$.mp4 -strict -2 -f dash -segment_list_flags +live -min_seg_duration 2000000 -method PUT http://192.168.22.112/webdav/SAFWAN5/manifest.mpd



But I am able to push hls segments using sample ffmpeg command :
ffmpeg -loglevel verbose -re -i /home/SAFWAN/URI.mp4 -codec copy -method PUT -f hls http://192.168.22.112/webdav/SAFWAN5/master.m3u8



Here is the apache2 access log :
183.82.0.170 - - [18/Apr/2020:10:32:28 -0400] "POST /webdav/SAFWAN5/manifest.mpd HTTP/1.1" 200 292 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:38 -0400] "POST /webdav/SAFWAN5/chunk-stream0-00004.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:38 -0400] "POST /webdav/SAFWAN5/chunk-stream1-00004.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:39 -0400] "POST /webdav/SAFWAN5/manifest.mpd HTTP/1.1" 200 292 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:48 -0400] "POST /webdav/SAFWAN5/chunk-stream0-00005.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:48 -0400] "POST /webdav/SAFWAN5/chunk-stream1-00005.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:49 -0400] "POST /webdav/SAFWAN5/manifest.mpd HTTP/1.1" 200 292 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:53 -0400] "POST /webdav/SAFWAN5/chunk-stream0-00006.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:53 -0400] "POST /webdav/SAFWAN5/chunk-stream1-00006.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:53 -0400] "POST /webdav/SAFWAN5/manifest.mpd HTTP/1.1" 200 292 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:57 -0400] "POST /webdav/SAFWAN5/chunk-stream0-00007.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:57 -0400] "POST /webdav/SAFWAN5/chunk-stream1-00007.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:32:57 -0400] "POST /webdav/SAFWAN5/manifest.mpd HTTP/1.1" 200 292 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:33:00 -0400] "POST /webdav/SAFWAN5/chunk-stream0-00008.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:33:00 -0400] "POST /webdav/SAFWAN5/chunk-stream1-00008.m4s HTTP/1.1" 404 498 "-" "Lavf/57.83.100"
183.82.0.170 - - [18/Apr/2020:10:33:01 -0400] "POST /webdav/SAFWAN5/manifest.mpd HTTP/1.1" 200 292 "-" "Lavf/57.83.100"



Please let me know why the dash segments is failing to push to webdav server ?


-
FFmpeg concatenate video and add watermark
18 avril 2020, par user7356972I have command to overlay two video one on other.



ffmpeg -i input.mp4 -vf "movie= overlay.mov [a]; [1][a]scale2ref[2nd][ref];[2nd][ref]overlay=0:0 [c]" output.mp4 




Now I want to add water watermark and concatenate a new video
append.mov
in above command. I have found a command to add watermark.


ffmpeg -i output.mp4 -i watermark.png -filter_complex "overlay=10:10" outputwatermark.mp4




But I want to merge both the command and also need to concatenate
append.mov
tooutput.mp4
.


Also above overlay two video command takes too long time to process if video size is large. Any suggestion on that(should not affect quality of video) ?



I tried following command to concatenate video.



ffmpeg -i abc.mp4 -i ../input/overlay2.mov append.mp4




The video was not concatenate, below is the output.



ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
 built with Apple clang version 11.0.0 (clang-1100.0.33.17)
 configuration: --prefix=/usr/local/Cellar/ffmpeg/4.2.2_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-libmp3lame --enable-libopus --enable-librubberband --enable-libsnappy --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --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-videotoolbox --disable-libjack --disable-indev=jack
 libavutil 56. 31.100 / 56. 31.100
 libavcodec 58. 54.100 / 58. 54.100
 libavformat 58. 29.100 / 58. 29.100
 libavdevice 58. 8.100 / 58. 8.100
 libavfilter 7. 57.100 / 7. 57.100
 libavresample 4. 0. 0 / 4. 0. 0
 libswscale 5. 5.100 / 5. 5.100
 libswresample 3. 5.100 / 3. 5.100
 libpostproc 55. 5.100 / 55. 5.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'abc.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.29.100
 Duration: 00:00:37.40, start: 0.000000, bitrate: 474 kb/s
 Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 960x540 [SAR 3:4 DAR 4:3], 324 kb/s, 1k fps, 1k tbr, 16k tbn, 2k tbc (default)
 Metadata:
 handler_name : VideoHandler
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default)
 Metadata:
 handler_name : SoundHandler
Input #1, mov,mp4,m4a,3gp,3g2,mj2, from '../input/overlay2.mov':
 Metadata:
 major_brand : qt 
 minor_version : 537199360
 compatible_brands: qt 
 creation_time : 2020-03-27T16:32:23.000000Z
 Duration: 00:00:37.44, start: 0.000000, bitrate: 3519 kb/s
 Stream #1:0(eng): Video: qtrle (rle / 0x20656C72), argb(progressive), 640x352, 3295 kb/s, SAR 1:1 DAR 20:11, 25 fps, 25 tbr, 25 tbn, 25 tbc (default)
 Metadata:
 creation_time : 2020-03-27T16:32:23.000000Z
 handler_name : Apple Video Media Handler
 encoder : Animation
 timecode : 00:00:00:00
 Stream #1:1(eng): Data: none (tmcd / 0x64636D74) (default)
 Metadata:
 creation_time : 2020-03-27T16:32:23.000000Z
 handler_name : Time Code Media Handler
 timecode : 00:00:00:00
File 'append.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
 Stream #0:1 -> #0:1 (aac (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 0x7ff35a012200] using SAR=3/4
[libx264 @ 0x7ff35a012200] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x7ff35a012200] profile High, level 5.2
[libx264 @ 0x7ff35a012200] 264 - core 155 r2917 0a84d98 - H.264/MPEG-4 AVC codec - Copyleft 2003-2018 - 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=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=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 'append.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf58.29.100
 Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 960x540 [SAR 3:4 DAR 4:3], q=-1--1, 1k fps, 16k tbn, 1k tbc (default)
 Metadata:
 handler_name : VideoHandler
 encoder : Lavc58.54.100 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, mono, fltp, 69 kb/s (default)
 Metadata:
 handler_name : SoundHandler
 encoder : Lavc58.54.100 aac
frame=37399 fps=378 q=-1.0 Lsize= 2138kB time=00:00:37.39 bitrate= 468.4kbits/s speed=0.378x 
video:1454kB audio:221kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 27.624002%
[libx264 @ 0x7ff35a012200] frame I:150 Avg QP:11.47 size: 1655
[libx264 @ 0x7ff35a012200] frame P:9423 Avg QP:14.43 size: 52
[libx264 @ 0x7ff35a012200] frame B:27826 Avg QP:17.67 size: 27
[libx264 @ 0x7ff35a012200] consecutive B-frames: 0.8% 0.0% 0.0% 99.2%
[libx264 @ 0x7ff35a012200] mb I I16..4: 94.0% 4.3% 1.7%
[libx264 @ 0x7ff35a012200] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.1% 0.0% 0.0% 0.0% 0.0% skip:99.8%
[libx264 @ 0x7ff35a012200] 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:54.5% L1:45.5% BI: 0.1%
[libx264 @ 0x7ff35a012200] 8x8 transform intra:4.8% inter:84.4%
[libx264 @ 0x7ff35a012200] coded y,uvDC,uvAC intra: 1.6% 2.3% 2.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x7ff35a012200] i16 v,h,dc,p: 96% 0% 3% 0%
[libx264 @ 0x7ff35a012200] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 58% 9% 28% 1% 1% 1% 1% 1% 1%
[libx264 @ 0x7ff35a012200] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 22% 15% 4% 4% 5% 5% 4% 4%
[libx264 @ 0x7ff35a012200] i8c dc,h,v,p: 97% 1% 1% 0%
[libx264 @ 0x7ff35a012200] Weighted P-Frames: Y:1.9% UV:1.9%
[libx264 @ 0x7ff35a012200] ref P L0: 86.3% 8.4% 4.5% 0.8% 0.0%
[libx264 @ 0x7ff35a012200] ref B L0: 75.4% 24.0% 0.5%
[libx264 @ 0x7ff35a012200] ref B L1: 98.1% 1.9%
[libx264 @ 0x7ff35a012200] kb/s:318.42
[aac @ 0x7ff35a013a00] Qavg: 152.336