
Recherche avancée
Médias (1)
-
Publier une image simplement
13 avril 2011, par ,
Mis à jour : Février 2012
Langue : français
Type : Video
Autres articles (39)
-
Les tâches Cron régulières de la ferme
1er décembre 2010, parLa gestion de la ferme passe par l’exécution à intervalle régulier de plusieurs tâches répétitives dites Cron.
Le super Cron (gestion_mutu_super_cron)
Cette tâche, planifiée chaque minute, a pour simple effet d’appeler le Cron de l’ensemble des instances de la mutualisation régulièrement. Couplée avec un Cron système sur le site central de la mutualisation, cela permet de simplement générer des visites régulières sur les différents sites et éviter que les tâches des sites peu visités soient trop (...) -
Qu’est ce qu’un masque de formulaire
13 juin 2013, parUn masque de formulaire consiste en la personnalisation du formulaire de mise en ligne des médias, rubriques, actualités, éditoriaux et liens vers des sites.
Chaque formulaire de publication d’objet peut donc être personnalisé.
Pour accéder à la personnalisation des champs de formulaires, il est nécessaire d’aller dans l’administration de votre MediaSPIP puis de sélectionner "Configuration des masques de formulaires".
Sélectionnez ensuite le formulaire à modifier en cliquant sur sont type d’objet. (...) -
Publier sur MédiaSpip
13 juin 2013Puis-je poster des contenus à partir d’une tablette Ipad ?
Oui, si votre Médiaspip installé est à la version 0.2 ou supérieure. Contacter au besoin l’administrateur de votre MédiaSpip pour le savoir
Sur d’autres sites (8201)
-
Generating video from images and audio by FFmpeg
24 mars 2020, par CodyI am new to FFmpeg and video/audio encoding. I try to use Fluent ffmpeg to generate a MP4 video from images and audio.
There are 2 inputs only :
- JPG images with filename NOT in numbering sequence (e.g. foo.jpg, bar.jpg)
- .wav audio
If the audio duration is longer video length, just discard the excessive part of audio at the end.
And all the images have to be shown in same duration.(i.e. The video should be inn/d
FPS forn
images and video withd
second)Since the image input are not in number sequence, I use concat demuxer as input :
let VIDEO_DURATION = 8;
let ffmpeg = await FfmpegUtil.createCommand();
let imageFiles: string[] = ["foo.jpg", "bar.jpg", ...]; //assume there are 67 image files
let demuxerFile = await FfmpegUtil.createConcatDemuxerFile(imageFiles);
let audioFile: string = "path/to/audio.wav";
ffmpeg.input(demuxerFile)
.inputOption(
"-f", "concat",
"-safe", "0",
)
.input(audioFile)
.outputOption(
"-r", `${imageFiles.length}/${VIDEO_DURATION}`,
)
.duration(VIDEO_DURATION)
.save("path/to/output.mp4")
;it will spawn a ffmpeg command :
ffmpeg
-f concat
-safe 0
-i path/to/demuxerFile.txt
-i path/to/audio.wav
-y
-r 67/8
-t 8
path/to/output.mp4However the output file cannot be played.
I also tried
"-framerate", ${imageFiles.length}/${VIDEO_DURATION}
in.outputOption()
, it still output a file cannot be played and I found the frame rate always be 25 in its file property.Update 1 (added spawned command & ffmpeg console log) :
spawned ffmpeg command & console log (
"-r", `${imageFiles.length}/${VIDEO_DURATION}`
asoutputOption
) :ffmpeg -f concat -safe 0 -i path/to/demuxerFile.txt -i path/to/audio.wav -y -r 67/8 -t 8 path/to/output_r.mp4
ffmpeg version git-2020-01-26-5e62100 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122
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. 38.100 / 56. 38.100
libavcodec 58. 67.100 / 58. 67.100
libavformat 58. 36.100 / 58. 36.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 71.100 / 7. 71.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, concat, from 'path/to/demuxerFile.txt':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 4677x4677 [SAR 256:256 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from 'path/to/audio.wav':
Metadata:
artist : TextAloud: IVONA Kimberly22
date : 2018
genre : Speech
title : 38750336.mp3
album : Created: 7/26/2018 4:56:13 PM
encoder : Lavf58.16.100
encoded_by : Lame MP3
Duration: 00:00:15.57, bitrate: 705 kb/s
Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, stereo, s16, 705 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 000001e395041400] using SAR=1/1
[libx264 @ 000001e395041400] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001e395041400] profile High 4:4:4 Predictive, level 6.0, 4:4:4, 8-bit
[libx264 @ 000001e395041400] 264 - core 159 - 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=8 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 'path/to/output_r.mp4':
Metadata:
encoder : Lavf58.36.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj444p(pc, progressive), 4677x4677 [SAR 256:256 DAR 1:1], q=-1--1, 8.38 fps, 17152 tbn, 8.38 tbc
Metadata:
encoder : Lavc58.67.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 : Lavc58.67.100 aac
frame= 3 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 5 fps=4.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=4 speed= 0x
frame= 6 fps=3.4 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=7 speed= 0x
frame= 8 fps=3.4 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=10 speed= 0x
frame= 10 fps=3.5 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=14 speed= 0x
frame= 11 fps=3.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=16 speed= 0x
frame= 13 fps=3.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=20 speed= 0x
frame= 14 fps=3.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=22 speed= 0x
frame= 16 fps=3.1 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=26 speed= 0x
frame= 17 fps=2.9 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=28 speed= 0x
frame= 18 fps=2.8 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=31 speed= 0x
frame= 20 fps=2.9 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=34 speed= 0x
frame= 21 fps=2.8 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=36 speed= 0x
frame= 23 fps=2.9 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=40 speed= 0x
frame= 24 fps=2.8 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A dup=0 drop=42 speed= 0x
frame= 24 fps=0.7 q=-1.0 Lsize= 752kB time=00:00:08.03 bitrate= 766.4kbits/s dup=0 drop=43 speed=0.22x
video:624kB audio:125kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.359236%
[libx264 @ 000001e395041400] frame I:1 Avg QP:12.79 size:257554
[libx264 @ 000001e395041400] frame P:15 Avg QP:13.10 size: 20487
[libx264 @ 000001e395041400] frame B:8 Avg QP:13.10 size: 9231
[libx264 @ 000001e395041400] consecutive B-frames: 45.8% 25.0% 12.5% 16.7%
[libx264 @ 000001e395041400] mb I I16..4: 18.4% 79.2% 2.4%
[libx264 @ 000001e395041400] mb P I16..4: 1.0% 3.3% 0.4% P16..4: 1.0% 0.2% 0.2% 0.0% 0.0% skip:93.9%
[libx264 @ 000001e395041400] mb B I16..4: 0.1% 0.2% 0.1% B16..8: 1.8% 0.1% 0.0% direct: 2.9% skip:94.7% L0:58.1% L1:40.2% BI: 1.7%
[libx264 @ 000001e395041400] 8x8 transform intra:75.0% inter:82.7%
[libx264 @ 000001e395041400] coded y,u,v intra: 6.1% 3.5% 4.4% inter: 0.2% 1.2% 0.5%
[libx264 @ 000001e395041400] i16 v,h,dc,p: 80% 16% 3% 2%
[libx264 @ 000001e395041400] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 46% 8% 44% 0% 0% 0% 0% 0% 0%
[libx264 @ 000001e395041400] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 27% 25% 3% 3% 3% 4% 3% 3%
[libx264 @ 000001e395041400] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001e395041400] ref P L0: 75.6% 3.3% 14.8% 6.3%
[libx264 @ 000001e395041400] ref B L0: 88.6% 10.7% 0.7%
[libx264 @ 000001e395041400] ref B L1: 98.7% 1.3%
[libx264 @ 000001e395041400] kb/s:1783.06
[aac @ 000001e3951e7f80] Qavg: 55135.730spawned ffmpeg command & console log (
"-framerate", `${imageFiles.length}/${VIDEO_DURATION}`
asoutputOption
) :ffmpeg -f concat -safe 0 -i path/to/demuxerFile.txt -i path/to/audio.wav -y -framerate 67/8 -t 8 path/to/output_framerate.mp4
ffmpeg version git-2020-01-26-5e62100 Copyright (c) 2000-2020 the FFmpeg developers
built with gcc 9.2.1 (GCC) 20200122
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. 38.100 / 56. 38.100
libavcodec 58. 67.100 / 58. 67.100
libavformat 58. 36.100 / 58. 36.100
libavdevice 58. 9.103 / 58. 9.103
libavfilter 7. 71.100 / 7. 71.100
libswscale 5. 6.100 / 5. 6.100
libswresample 3. 6.100 / 3. 6.100
libpostproc 55. 6.100 / 55. 6.100
Input #0, concat, from 'path/to/demuxerFile.txt':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg (Baseline), yuvj444p(pc, bt470bg/unknown/unknown), 4677x4677 [SAR 256:256 DAR 1:1], 25 tbr, 25 tbn, 25 tbc
Guessed Channel Layout for Input Stream #1.0 : stereo
Input #1, wav, from 'path/to/audio.wav':
Metadata:
artist : TextAloud: IVONA Kimberly22
date : 2018
genre : Speech
title : 38750336.mp3
album : Created: 7/26/2018 4:56:13 PM
encoder : Lavf58.16.100
encoded_by : Lame MP3
Duration: 00:00:15.57, bitrate: 705 kb/s
Stream #1:0: Audio: pcm_s16le ([1][0][0][0] / 0x0001), 22050 Hz, stereo, s16, 705 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> aac (native))
Press [q] to stop, [?] for help
[libx264 @ 000002460bda4740] using SAR=1/1
[libx264 @ 000002460bda4740] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000002460bda4740] profile High 4:4:4 Predictive, level 6.0, 4:4:4, 8-bit
[libx264 @ 000002460bda4740] 264 - core 159 - 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=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 'path/to/output_framerate.mp4':
Metadata:
encoder : Lavf58.36.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj444p(pc, progressive), 4677x4677 [SAR 256:256 DAR 1:1], q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc58.67.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 : Lavc58.67.100 aac
frame= 3 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 6 fps=5.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 9 fps=5.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 12 fps=5.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 14 fps=4.6 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 16 fps=4.4 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 18 fps=3.9 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 20 fps=3.9 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 22 fps=3.8 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 23 fps=3.6 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 25 fps=3.6 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 27 fps=3.3 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 28 fps=3.1 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 30 fps=3.1 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 33 fps=3.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 36 fps=3.3 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 38 fps=3.1 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 39 fps=3.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 40 fps=2.6 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 41 fps=2.4 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 42 fps=2.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 43 fps=1.9 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 44 fps=1.9 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 45 fps=1.8 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 46 fps=1.8 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 47 fps=1.4 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 49 fps=1.5 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 50 fps=1.5 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 51 fps=1.5 q=28.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 51 fps=1.3 q=28.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x
frame= 52 fps=1.3 q=28.0 size= 0kB time=00:00:00.04 bitrate= 8.3kbits/s speed=0.00114x
frame= 53 fps=1.3 q=28.0 size= 0kB time=00:00:00.04 bitrate= 8.3kbits/s speed=0.00111x
frame= 54 fps=1.2 q=28.0 size= 0kB time=00:00:00.04 bitrate= 8.3kbits/s speed=0.00101x
frame= 55 fps=1.2 q=28.0 size= 0kB time=00:00:00.13 bitrate= 2.8kbits/s speed=0.00297x
frame= 56 fps=1.1 q=28.0 size= 0kB time=00:00:00.18 bitrate= 2.1kbits/s speed=0.00377x
frame= 57 fps=1.1 q=28.0 size= 256kB time=00:00:00.23 bitrate=9033.3kbits/s speed=0.00461x
frame= 58 fps=1.1 q=28.0 size= 256kB time=00:00:00.27 bitrate=7527.8kbits/s speed=0.00514x
frame= 59 fps=1.0 q=28.0 size= 256kB time=00:00:00.32 bitrate=6452.4kbits/s speed=0.00571x
frame= 60 fps=1.0 q=28.0 size= 256kB time=00:00:00.37 bitrate=5645.8kbits/s speed=0.00643x
frame= 62 fps=1.0 q=28.0 size= 256kB time=00:00:00.37 bitrate=5645.8kbits/s speed=0.00605x
frame= 62 fps=1.0 q=28.0 size= 256kB time=00:00:00.41 bitrate=5018.5kbits/s speed=0.00668x
frame= 63 fps=1.0 q=28.0 size= 256kB time=00:00:00.46 bitrate=4516.7kbits/s speed=0.00727x
frame= 64 fps=1.0 q=28.0 size= 256kB time=00:00:00.51 bitrate=4106.1kbits/s speed=0.00778x
frame= 65 fps=1.0 q=28.0 size= 256kB time=00:00:00.55 bitrate=3763.9kbits/s speed=0.00827x
frame= 66 fps=1.0 q=28.0 size= 256kB time=00:00:00.60 bitrate=3474.4kbits/s speed=0.00884x
frame= 67 fps=1.0 q=28.0 size= 256kB time=00:00:00.65 bitrate=3226.2kbits/s speed=0.00943x
frame= 67 fps=0.6 q=-1.0 Lsize= 872kB time=00:00:08.03 bitrate= 888.9kbits/s speed=0.0752x
video:744kB audio:125kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.391708%
[libx264 @ 000002460bda4740] frame I:1 Avg QP:15.80 size:216204
[libx264 @ 000002460bda4740] frame P:29 Avg QP:15.19 size: 10747
[libx264 @ 000002460bda4740] frame B:37 Avg QP:17.07 size: 6300
[libx264 @ 000002460bda4740] consecutive B-frames: 17.9% 14.9% 31.3% 35.8%
[libx264 @ 000002460bda4740] mb I I16..4: 11.4% 86.0% 2.6%
[libx264 @ 000002460bda4740] mb P I16..4: 0.5% 1.9% 0.2% P16..4: 0.7% 0.2% 0.1% 0.0% 0.0% skip:96.5%
[libx264 @ 000002460bda4740] mb B I16..4: 0.1% 0.2% 0.0% B16..8: 1.3% 0.2% 0.0% direct: 0.7% skip:97.5% L0:57.4% L1:40.7% BI: 1.9%
[libx264 @ 000002460bda4740] 8x8 transform intra:79.7% inter:31.4%
[libx264 @ 000002460bda4740] coded y,u,v intra: 5.7% 2.9% 3.7% inter: 0.1% 0.5% 0.2%
[libx264 @ 000002460bda4740] i16 v,h,dc,p: 70% 23% 4% 2%
[libx264 @ 000002460bda4740] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 45% 8% 45% 0% 0% 0% 0% 0% 0%
[libx264 @ 000002460bda4740] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 26% 25% 3% 3% 4% 4% 3% 2%
[libx264 @ 000002460bda4740] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000002460bda4740] ref P L0: 72.6% 3.0% 16.6% 7.7%
[libx264 @ 000002460bda4740] ref B L0: 75.7% 20.6% 3.7%
[libx264 @ 000002460bda4740] ref B L1: 97.7% 2.3%
[libx264 @ 000002460bda4740] kb/s:2271.59
[aac @ 000002460bda8580] Qavg: 55135.730 -
Measuring success for your SEO content
20 mars 2020, par Jake Thornton — Uncategorized -
How to install dense trajectory without sudoers permission
7 février 2019, par AlbeI’m stuck for a week trying to install iDT(https://github.com/chuckcho/iDT) in a server hosted by university in which I don’t have root permissions. (VERSION=12.04.5 LTS)
I tried to install the 2 main libraries (opencv and ffmpeg) following part(different versions) of this tutorial : http://dridini.blogspot.com/
I managed (I think) to install the libraries in local :
ffmpeg -version
ffmpeg version N-93084-g835ab35 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 4.6 (Ubuntu/Linaro 4.6.3-1ubuntu5)
configuration: --prefix=/home/XXXXX/ffmpeg_build --extra-cflags=-I/home/XXXXX/ffmpeg_build/include --extra-ldflags=-L/home/XXXXX/ffmpeg_build/lib --bindir=/home/XXXXX/bin --enable-gpl --enable-nonfree --enable-libfdk-aac --enable-libmp3lame --enable-libvorbis --enable-libx264 --enable-pic --enable-shared
libavutil 56. 26.100 / 56. 26.100
libavcodec 58. 46.100 / 58. 46.100
libavformat 58. 26.100 / 58. 26.100
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 48.100 / 7. 48.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
pkg-config --modversion opencv
2.4.13.5I exported the LD_LIBRARY_PATH where all .so are.(I cannot perform ldconfig after)
But when I try to make this is the result :g++ -L/home/chuck/opencv-2.4.11-cuda7.5/lib -L/opt/lib -pipe -Wall -O3 -ggdb -o release/DenseTrackStab -lopencv_core -lopencv_highgui -lopencv_video -lopencv_imgproc -lopencv_calib3d -lopencv_features2d -lopencv_nonfree -lopencv_ocl -lavformat -lavdevice -lavutil -lavcodec -lswscale
/usr/bin/ld: cannot find -lopencv_core
/usr/bin/ld: cannot find -lopencv_highgui
/usr/bin/ld: cannot find -lopencv_video
/usr/bin/ld: cannot find -lopencv_imgproc
/usr/bin/ld: cannot find -lopencv_calib3d
/usr/bin/ld: cannot find -lopencv_features2d
/usr/bin/ld: cannot find -lopencv_nonfree
/usr/bin/ld: cannot find -lopencv_ocl
/usr/bin/ld: cannot find -lavformat
/usr/bin/ld: cannot find -lavdevice
/usr/bin/ld: cannot find -lavutil
/usr/bin/ld: cannot find -lavcodec
/usr/bin/ld: cannot find -lswscale
collect2: ld returned 1 exit status
make: *** [release/DenseTrackStab] Error 1I tried to modify the makeFile in order to add there the path or typing make with ldflag ( make "LDFLAGS=-L/$HOME/lib/opencv-2.4.13.5/lib/ -L/$HOME/ffmpeg_build/lib") giving me the same result :
g++ -L/home/XXXXX/opencv-2.4.13.5/release/lib -L/opt/lib -pipe -Wall -O3 -ggdb -o release/DenseTrackStab -lopencv_core -lopencv_highgui -lopencv_video -lopencv_imgproc -lopencv_calib3d -lopencv_features2d -lopencv_nonfree -lopencv_ocl -lavformat -lavdevice -lavutil -lavcodec -lswscale
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 0 has invalid symbol index 10
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 1 has invalid symbol index 11
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 2 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 3 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 4 has invalid symbol index 10
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 5 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 6 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 7 has invalid symbol index 12
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 8 has invalid symbol index 2
/usr/bin/ld: /usr/lib/debug/usr/lib/x86_64-linux-gnu/crt1.o(.debug_info): relocation 9 has invalid symbol index 2This is the original Makefile
# custom opencv
OPENCV_INC := /home/chuck/opencv-2.4.11-cuda7.5/include
OPENCV_LIB := /home/chuck/opencv-2.4.11-cuda7.5/lib
# set the binaries that have to be built
TARGETS := DenseTrackStab Video
# set the build configuration set
BUILD := release
#BUILD := debug
# set bin and build dirs
BUILDDIR := .build_$(BUILD)
BINDIR := $(BUILD)
# libraries
LDLIBS = $(addprefix -l, $(LIBS) $(LIBS_$(notdir $*)))
LIBS := \
opencv_core opencv_highgui opencv_video opencv_imgproc opencv_calib3d opencv_features2d opencv_nonfree \
opencv_ocl \
avformat avdevice avutil avcodec swscale
# set some flags and compiler/linker specific commands
CXXFLAGS = -pipe -D __STDC_CONSTANT_MACROS -D STD=std -Wall $(CXXFLAGS_$(BUILD)) -I. -I$(OPENCV_INC) -I/opt/include
CXXFLAGS_debug := -ggdb
CXXFLAGS_release := -O3 -DNDEBUG -ggdb
LDFLAGS = -L$(OPENCV_LIB) -L/opt/lib -pipe -Wall $(LDFLAGS_$(BUILD))
LDFLAGS_debug := -ggdb
LDFLAGS_release := -O3 -ggdb
include make/generic.mkIs it possible what I’m trying to do or I must give up ? Any better solution for using this software ?
thank you