
Recherche avancée
Autres articles (89)
-
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 (...) -
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 (...) -
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 (12869)
-
Create 1 video using image with length of audio
19 septembre 2017, par VishnuI am trying to create video with the length of an audio file , and 1 single image as the background for whole video.
I use following code
'ffmpeg -y -loop 1 -f image2 -r 24 -i subtitle.jpg -i audio.mp3 -c:v libx264 -c:a copy -shortest video.flv';
But problem is processing time is too slow , and sometime video length is not same as audio length.Can some one suggest me alternative ideas.
p.s : audio length is just 3 to 8 seconds.
Below is my output
ffmpeg version N-83443-gc03029a Copyright (c) 2000-2017 the FFmpeg
developers built with gcc 4.8.5 (GCC) 20150623 (Red Hat 4.8.5-11)
configuration : —enable-gpl —enable-version3 —enable-libfdk_aac
—enable-libmp3lame —enable-libtheora —enable-libvorbis —enable-libvpx —enable-libx264 —enable-nonfree —enable-libopencore-amrnb —enable-libopencore-amrwb —enable-libgsm —enable-libxvid —disable-static —enable-shared libavutil 55. 46.100 / 55. 46.100 libavcodec 57. 75.100 / 57. 75.100 libavformat 57. 66.101
/ 57. 66.101 libavdevice 57. 2.100 / 57. 2.100 libavfilter 6. 73.100 /
6. 73.100 libswscale 4. 3.101 / 4. 3.101 libswresample 2. 4.100 / 2. 4.100 libpostproc 54. 2.100 / 54. 2.100 Input #0, image2, from ’subtitle/1.jpg’ : Duration : 00:00:00.04, start : 0.000000, bitrate : N/A
Stream #0:0 : Video : mjpeg, yuvj420p(pc, bt470bg/unknown/unknown),
1280x720 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 24 tbn, 24 tbc [mp3 @
0x1013ee0] Estimating duration from bitrate, this may be inaccurate
Input #1, mp3, from ’audio/1.mp3’ : Metadata : encoder : Lavf57.71.100
Duration : 00:00:05.98, start : 0.000000, bitrate : 32 kb/s Stream #1:0 :
Audio : mp3, 22050 Hz, mono, s16p, 32 kb/s No pixel format specified,
yuvj420p for H.264 encoding chosen. Use -pix_fmt yuv420p for
compatibility with outdated media players. [libx264 @ 0x1020600] using
SAR=1/1 [libx264 @ 0x1020600] using cpu capabilities : MMX2 SSE2Fast
SSSE3 SSE4.2 AVX [libx264 @ 0x1020600] profile High, level 3.1
[libx264 @ 0x1020600] 264 - core 148 r2762 90a61ec - H.264/MPEG-4 AVC
codec - Copyleft 2003-2017 - 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=3 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=24 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, flv, to ’video/1.flv’ : Metadata : encoder :
Lavf57.66.101 Stream #0:0 : Video : h264 (libx264) ([7][0][0][0] /
0x0007), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=-1—1, 24 fps,
1k tbn, 24 tbc Metadata : encoder : Lavc57.75.100 libx264 Side data :
cpb : bitrate max/min/avg : 0/0/0 buffer size : 0 vbv_delay : -1 Stream0:1 : Audio : mp3 ([2][0][0][0] / 0x0002), 22050 Hz, mono, s16p, 32 kb/s Stream mapping : Stream #0:0 -> #0:0 (mjpeg (native) -> h264
(libx264)) Stream #1:0 -> #0:1 (copy) Press [q] to stop, [?] for help
[image2 @ 0x1011680] Thread message queue blocking ; consider raising
the thread_queue_size option (current value : 8) frame= 32 fps=0.0
q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x frame= 53 fps=
51 q=28.0 size= 210kB time=00:00:00.13 bitrate=13157.8kbits/s
speed=0.126x frame= 73 fps= 47 q=28.0 size= 216kB time=00:00:00.96
bitrate=1828.9kbits/s speed=0.622x frame= 93 fps= 45 q=28.0 size=
221kB time=00:00:01.79 bitrate=1009.9kbits/s speed=0.859x frame= 109
fps= 42 q=28.0 size= 225kB time=00:00:02.45 bitrate= 750.6kbits/s
speed=0.95x frame= 126 fps= 40 q=28.0 size= 230kB time=00:00:03.16
bitrate= 594.3kbits/s speed=1.02x frame= 145 fps= 40 q=28.0 size=
235kB time=00:00:03.95 bitrate= 485.7kbits/s speed=1.09x frame= 162
fps= 39 q=28.0 size= 239kB time=00:00:04.67 bitrate= 419.3kbits/s
speed=1.12x frame= 181 fps= 39 q=28.0 size= 244kB time=00:00:05.46
bitrate= 366.5kbits/s speed=1.17x frame= 193 fps= 33 q=28.0 Lsize=
248kB time=00:00:05.95 bitrate= 340.4kbits/s speed=1.03x video:217kB
audio:23kB subtitle:0kB other streams:0kB global headers:0kB muxing
overhead : 2.834417% [libx264 @ 0x1020600] frame I:1 Avg QP:17.19
size:212155 [libx264 @ 0x1020600] frame P:48 Avg QP:18.02 size : 140
[libx264 @ 0x1020600] frame B:144 Avg QP:27.33 size : 43 [libx264 @
0x1020600] consecutive B-frames : 0.5% 0.0% 0.0% 99.5% [libx264 @
0x1020600] mb I I16..4 : 3.1% 86.8% 10.2% [libx264 @ 0x1020600] mb P
I16..4 : 0.0% 0.0% 0.0% P16..4 : 1.0% 0.0% 0.0% 0.0% 0.0% skip:99.0%
[libx264 @ 0x1020600] mb B I16..4 : 0.0% 0.0% 0.0% B16..8 : 0.1% 0.0%
0.0% direct : 0.0% skip:99.8% L0 : 9.1% L1:90.9% BI : 0.0% [libx264 @ 0x1020600] 8x8 transform intra:82.0% inter:55.7% [libx264 @ 0x1020600]
coded y,uvDC,uvAC intra : 87.6% 80.7% 62.5% inter : 0.0% 0.2% 0.0%
[libx264 @ 0x1020600] i16 v,h,dc,p : 76% 22% 2% 1% [libx264 @
0x1020600] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu : 11% 15% 24% 7% 9% 7% 10% 6%
10% [libx264 @ 0x1020600] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu : 23% 27% 9% 7%
8% 6% 8% 5% 8% [libx264 @ 0x1020600] i8c dc,h,v,p : 55% 23% 14% 8%
[libx264 @ 0x1020600] Weighted P-Frames : Y:0.0% UV:0.0% [libx264 @
0x1020600] ref P L0 : 95.1% 0.1% 3.2% 1.6% [libx264 @ 0x1020600] ref B
L0 : 91.7% 3.3% 5.0% [libx264 @ 0x1020600] ref B L1 : 86.1% 13.9%
[libx264 @ 0x1020600] kb/s:223.84 0 -
ffmpeg throw a silent video output when trying to merge video and audio
31 janvier 2023, par porororoI tried to combine mp4 format video and wav format audio.
The video is shorter than the audio and start second is same as 00:00.


I used command as bellows :


ffmpeg -i video.mp4 -i audio.wav -filter_complex "[0:a]volume=0.2[A];[1:a][A]amerge[Aout]" -map 0:v -map [Aout] -y -shortest output_video.mp4



The problem is the output_video.mp4 is a silent video without the sound.


How can I get the output_video.mp4 with sound from audio.wav ?


ffmpeg output is :




ffmpeg version 4.2.2 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 7.3.0 (crosstool-NG 1.23.0.449-a04d0)
configuration: --prefix=/tmp/build/80754af9/ffmpeg_1587154242452/\_h_env_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placehold_placeho --cc=/tmp/build/80754af9/ffmpeg_1587154242452/\_build_env/bin/x86_64-conda_cos6-linux-gnu-cc --disable-doc --enable-avresample --enable-gmp --enable-hardcoded-tables --enable-libfreetype --enable-libvpx --enable-pthreads --enable-libopus --enable-postproc --enable-pic --enable-pthreads --enable-shared --enable-static --enable-version3 --enable-zlib --enable-libmp3lame --disable-nonfree --enable-gpl --enable-gnutls --disable-openssl --enable-libopenh264 --enable-libx264
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 'video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.29.100
Duration: 00:00:19.04, start: 0.000000, bitrate: 510 kb/s
Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280x720, 373 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)
Metadata:
handler_name : VideoHandler
Stream #0:1(und): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
Metadata:
handler_name : SoundHandler
Guessed Channel Layout for Input Stream #1.0 : mono
Input #1, wav, from 'audio.wav':
Duration: 00:00:14.70, bitrate: 352 kb/s
Stream #1:0: Audio: pcm_s16le (\[1\]\[0\]\[0\]\[0\] / 0x0001), 22050 Hz, mono, s16, 352 kb/s
Stream mapping:
Stream #0:1 (aac) -\> volume (graph 0)
Stream #1:0 (pcm_s16le) -\> amerge:in0 (graph 0)
Stream #0:0 -\> #0:0 (h264 (native) -\> h264 (libx264))
amerge (graph 0) -\> Stream #0:1 (aac)
Press \[q\] to stop, \[?\] for help
\[libx264 @ 0x55aa9a642ac0\] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2 AVX512
\[libx264 @ 0x55aa9a642ac0\] profile High, level 3.1, 4:2:0, 8-bit
\[libx264 @ 0x55aa9a642ac0\] 264 - core 157 - 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=22 lookahead_threads=3 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
\[Parsed_amerge_1 @ 0x55aa9b37c140\] No channel layout for input 1
Output #0, mp4, to 'output_video.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2avc1mp41
encoder : Lavf58.29.100
Stream #0:0(und): Video: h264 (libx264) (avc1 / 0x31637661), yuv420p(progressive), 1280x720, q=-1--1, 30 fps, 15360 tbn, 30 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: Audio: aac (LC) (mp4a / 0x6134706D), 22050 Hz, 3.0, fltp, 197 kb/s (default)
Metadata:
encoder : Lavc58.54.100 aac
frame= 507 fps=291 q=-1.0 Lsize= 1116kB time=00:00:16.80 bitrate= 544.3kbits/s speed=9.64x 
video:760kB audio:342kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 1.242977%
\[libx264 @ 0x55aa9a642ac0\] frame I:3 Avg QP:16.24 size: 19770
\[libx264 @ 0x55aa9a642ac0\] frame P:154 Avg QP:20.29 size: 3227
\[libx264 @ 0x55aa9a642ac0\] frame B:350 Avg QP:19.84 size: 633
\[libx264 @ 0x55aa9a642ac0\] consecutive B-frames: 0.6% 15.8% 18.9% 64.7%
\[libx264 @ 0x55aa9a642ac0\] mb I I16..4: 23.5% 67.4% 9.1%
\[libx264 @ 0x55aa9a642ac0\] mb P I16..4: 0.7% 3.0% 0.3% P16..4: 13.0% 3.1% 1.0% 0.0% 0.0% skip:78.8%
\[libx264 @ 0x55aa9a642ac0\] mb B I16..4: 0.2% 0.1% 0.0% B16..8: 10.4% 0.3% 0.0% direct: 0.6% skip:88.3% L0:41.5% L1:57.2% BI: 1.3%
\[libx264 @ 0x55aa9a642ac0\] 8x8 transform intra:68.2% inter:81.9%
\[libx264 @ 0x55aa9a642ac0\] coded y,uvDC,uvAC intra: 24.6% 22.9% 6.1% inter: 1.2% 1.7% 0.0%
\[libx264 @ 0x55aa9a642ac0\] i16 v,h,dc,p: 68% 16% 6% 10%
\[libx264 @ 0x55aa9a642ac0\] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 10% 50% 2% 2% 3% 2% 4% 3%
\[libx264 @ 0x55aa9a642ac0\] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 32% 25% 13% 5% 5% 6% 5% 6% 4%
\[libx264 @ 0x55aa9a642ac0\] i8c dc,h,v,p: 75% 10% 12% 2%
\[libx264 @ 0x55aa9a642ac0\] Weighted P-Frames: Y:0.0% UV:0.0%
\[libx264 @ 0x55aa9a642ac0\] ref P L0: 65.9% 16.2% 13.5% 4.4%
\[libx264 @ 0x55aa9a642ac0\] ref B L0: 84.1% 13.4% 2.5%
\[libx264 @ 0x55aa9a642ac0\] ref B L1: 97.1% 2.9%
\[libx264 @ 0x55aa9a642ac0\] kb/s:368.24
\[aac @ 0x55aa9a62a280\] Qavg: 8290.713







-
How to record desktop while on x2go session via a command line tool ?
4 décembre 2017, par harageithe Goal :
I am trying to record a specific X display on a remote server with a command line tool.the Problem :
The output file contains a pure black video stream for the whole duration of the recording.My Approach :
I am connecting to a remote server via x2go. The Server runs Ubuntu 16.04.2 with Xfce Desktop Environment. The Display I try to record is :50 (which gets created when I connect to the x2go server). I can control the remote server totally fine through x2go.My commands for recording via ffmpeg (or avconv/recordmydesktop, which use ffmpeg underneath) all look more or less the same and are like this :
ffmpeg -f x11grab -r 25 -s 1854x1176 -i :50.0 -c:v libx264 screencast.mkvSample output :
user@machine:~/$ ffmpeg -f x11grab -r 25 -s 1854x1176 -i :50.0+0,0 -c:v libx264 -vb 4000k -an screencast.mkv
ffmpeg version N-86766-g264f6c6 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.4) 20160609
configuration: --prefix=/home/user/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/user/ffmpeg_build/include --extra-ldflags=-L/home/user/ffmpeg_build/lib --bindir=/home/user/bin --enable-gpl --enable-libass --enable-libfdk-aac --enable-libfreetype --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-nonfree
libavutil 55. 67.100 / 55. 67.100
libavcodec 57.100.104 / 57.100.104
libavformat 57. 75.100 / 57. 75.100
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 95.100 / 6. 95.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[x11grab @ 0x1fd9b40] XFixes not available, cannot draw the mouse.
[x11grab @ 0x1fd9b40] Stream #0: not enough frames to estimate rate; consider increasing probesize
Input #0, x11grab, from ':50.0+0,0':
Duration: N/A, start: 1500041497.684675, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1854x1176, 25 fps, 1000k tbr, 1000k tbn, 1000k tbc
File 'screencast.mkv' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x1fe3040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x1fe3040] profile High 4:4:4 Predictive, level 4.2, 4:4:4 8-bit
[libx264 @ 0x1fe3040] 264 - core 148 r2643 5c65704 - 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=12 lookahead_threads=2 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=4000 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'screencast.mkv':
Metadata:
encoder : Lavf57.75.100
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p, 1854x1176, q=-1--1, 4000 kb/s, 25 fps, 1k tbn, 25 tbc
Metadata:
encoder : Lavc57.100.104 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/4000000 buffer size: 0 vbv_delay: -1
[swscaler @ 0x1fe94e0] Warning: data is not aligned! This can lead to a speedloss
frame= 179 fps= 36 q=-1.0 Lsize= 16kB time=00:00:07.04 bitrate= 18.8kbits/s speed=1.43x
video:14kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 12.869934%
[libx264 @ 0x1fe3040] frame I:1 Avg QP: 6.00 size: 518
[libx264 @ 0x1fe3040] frame P:45 Avg QP: 0.44 size: 81
[libx264 @ 0x1fe3040] frame B:133 Avg QP: 0.94 size: 73
[libx264 @ 0x1fe3040] consecutive B-frames: 0.6% 1.1% 0.0% 98.3%
[libx264 @ 0x1fe3040] mb I I16..4: 0.0% 100.0% 0.0%
[libx264 @ 0x1fe3040] mb P I16..4: 0.0% 0.0% 0.0% P16..4: 0.0% 0.0% 0.0% 0.0% 0.0% skip:100.0%
[libx264 @ 0x1fe3040] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.0% 0.0% 0.0% direct: 0.0% skip:100.0%
[libx264 @ 0x1fe3040] final ratefactor: -23.85
[libx264 @ 0x1fe3040] 8x8 transform intra:100.0%
[libx264 @ 0x1fe3040] coded y,u,v intra: 0.0% 0.0% 0.0% inter: 0.0% 0.0% 0.0%
[libx264 @ 0x1fe3040] i16 v,h,dc,p: 0% 0% 100% 0%
[libx264 @ 0x1fe3040] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 0% 0% 100% 0% 0% 0% 0% 0% 0%
[libx264 @ 0x1fe3040] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x1fe3040] kb/s:15.56Using : Ubuntu 16.04.2 LTS
I have successfully accomplished to capture the display :50 with "simplescreenrecorder", but that tool has no command line interface. It uses ffmpeg also, so it somehow should be possible to caputure the display but I can´t get it to work properly.