
Recherche avancée
Médias (1)
-
Carte de Schillerkiez
13 mai 2011, par
Mis à jour : Septembre 2011
Langue : English
Type : Texte
Autres articles (49)
-
Keeping control of your media in your hands
13 avril 2011, parThe vocabulary used on this site and around MediaSPIP in general, aims to avoid reference to Web 2.0 and the companies that profit from media-sharing.
While using MediaSPIP, you are invited to avoid using words like "Brand", "Cloud" and "Market".
MediaSPIP is designed to facilitate the sharing of creative media online, while allowing authors to retain complete control of their work.
MediaSPIP aims to be accessible to as many people as possible and development is based on expanding the (...) -
Demande de création d’un canal
12 mars 2010, parEn fonction de la configuration de la plateforme, l’utilisateur peu avoir à sa disposition deux méthodes différentes de demande de création de canal. La première est au moment de son inscription, la seconde, après son inscription en remplissant un formulaire de demande.
Les deux manières demandent les mêmes choses fonctionnent à peu près de la même manière, le futur utilisateur doit remplir une série de champ de formulaire permettant tout d’abord aux administrateurs d’avoir des informations quant à (...) -
Installation en mode ferme
4 février 2011, parLe mode ferme permet d’héberger plusieurs sites de type MediaSPIP en n’installant qu’une seule fois son noyau fonctionnel.
C’est la méthode que nous utilisons sur cette même plateforme.
L’utilisation en mode ferme nécessite de connaïtre un peu le mécanisme de SPIP contrairement à la version standalone qui ne nécessite pas réellement de connaissances spécifique puisque l’espace privé habituel de SPIP n’est plus utilisé.
Dans un premier temps, vous devez avoir installé les mêmes fichiers que l’installation (...)
Sur d’autres sites (7594)
-
How to optimize ffmpeg command
25 juin 2020, par Mikołaj HenklewskiI have such command :


ffmpeg -i /media/4f908e5e971140d09eb19590c3a571ab.mp4 
-loop 1 -i /assets/531d9a4daf6a4ee2ae0746d5b15498e0.png -t 2.0 
-filter_complex "[1:v]format=rgba,colorchannelmixer=aa=1.0[alpha];[alpha]scale=iw*2:ih*2[alpha_big];[alpha_big]rotate=0.0:c=none:ow=rotw(0.0):oh=roth(0.0)[alpha_big_rot];[alpha_big_rot]format=rgba,fade=t=out:d=1.0:alpha=true:st=0.54[alpha_big_rot_fade];
[alpha_big_rot_fade]scale=iw/4:ih/4[alpha_rot_fade];
[0:v][alpha_rot_fade] overlay=x=0.0:y=0.0:enable='between(t,0.0,1.54)'" -preset ultrafast -crf 0 /media/b47470cd610941949f6e01b06fe5b2e6.mp4



here you have log for above command :


ffmpeg version 3.2.14-1~deb9u1 Copyright (c) 2000-2019 the FFmpeg developers
 built with gcc 6.3.0 (Debian 6.3.0-18+deb9u1) 20170516
 configuration: --prefix=/usr --extra-version='1~deb9u1' --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --disable-stripping --enable-avresample --enable-avisynth --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libebur128 --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-omx --enable-openal --enable-opengl --enable-sdl2 --enable-libdc1394 --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libopencv --enable-libx264 --enable-shared
 libavutil 55. 34.101 / 55. 34.101
 libavcodec 57. 64.101 / 57. 64.101
 libavformat 57. 56.101 / 57. 56.101
 libavdevice 57. 1.100 / 57. 1.100
 libavfilter 6. 65.100 / 6. 65.100
 libavresample 3. 1. 0 / 3. 1. 0
 libswscale 4. 2.100 / 4. 2.100
 libswresample 2. 3.100 / 2. 3.100
 libpostproc 54. 1.100 / 54. 1.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/media/4f908e5e971140d09eb19590c3a571ab.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.56.101
 Duration: 00:00:02.00, start: 0.000000, bitrate: 1495 kb/s
 Stream #0:0(und): Video: h264 (High 4:4:4 Predictive) (avc1 / 0x31637661), yuv420p, 720x720 [SAR 1:1 DAR 1:1], 1491 kb/s, 23.98 fps, 23.98 tbr, 19184 tbn, 47.96 tbc (default)
 Metadata:
 handler_name : VideoHandler
Input #1, png_pipe, from '/assets/531d9a4daf6a4ee2ae0746d5b15498e0.png':
 Duration: N/A, bitrate: N/A
 Stream #1:0: Video: png, rgba(pc), 1627x1440, 25 fps, 25 tbr, 25 tbn, 25 tbc
[libx264 @ 0x558c06195660] using SAR=1/1
[libx264 @ 0x558c06195660] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
[libx264 @ 0x558c06195660] profile High 4:4:4 Predictive, level 3.1, 4:2:0 8-bit
[libx264 @ 0x558c06195660] 264 - core 148 r2748 97eaef2 - H.264/MPEG-4 AVC codec - Copyleft 2003-2016 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0 chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 keyint=250 keyint_min=23 scenecut=0 intra_refresh=0 rc=cqp mbtree=0 qp=0
Output #0, mp4, to '/media/b47470cd610941949f6e01b06fe5b2e6.mp4':
 Metadata:
 major_brand : isom
 minor_version : 512
 compatible_brands: isomiso2avc1mp41
 encoder : Lavf57.56.101
 Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuv420p, 720x720 [SAR 1:1 DAR 1:1], q=-1--1, 23.98 fps, 19184 tbn, 23.98 tbc (default)
 Metadata:
 encoder : Lavc57.64.101 libx264
 Side data:
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
Stream mapping:
 Stream #0:0 (h264) -> overlay:main
 Stream #1:0 (png) -> format
 overlay -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
frame= 8 fps=7.2 q=0.0 size= 274kB time=00:00:00.00 bitrate=43232461.5kbits/s speed=4.66e-05x Past duration 0.998741 too large 5605kB time=00:00:01.66 bitrate=27523.4kbits/s speed=0.265x
frame= 48 fps=7.5 q=-1.0 Lsize= 5606kB time=00:00:01.96 bitrate=23428.8kbits/s speed=0.306x
video:5605kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.018714%
[libx264 @ 0x558c06195660] frame I:1 Avg QP: 0.00 size:280440
[libx264 @ 0x558c06195660] frame P:47 Avg QP: 0.00 size:116129
[libx264 @ 0x558c06195660] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x558c06195660] mb P I16..4: 11.9% 0.0% 0.0% P16..4: 38.6% 0.0% 0.0% 0.0% 0.0% skip:49.5%
[libx264 @ 0x558c06195660] coded y,uvDC,uvAC intra: 100.0% 95.9% 95.9% inter: 42.8% 26.3% 26.2%
[libx264 @ 0x558c06195660] i16 v,h,dc,p: 4% 96% 0% 0%
[libx264 @ 0x558c06195660] i8c dc,h,v,p: 5% 85% 11% 0%
[libx264 @ 0x558c06195660] kb/s:22934.92



Is there any way to execute it faster ? Or maybe I have to use gpu to proceed it faster ? Any ideas ? I execute it very often and any shortening time would be great.


I read about hardware acceleration, but I am not sure if it will help. It is possible also to upgrade version of ffpmeg, but will it help ?


-
Video Created By FFMPEG is Blank [on hold]
11 octobre 2015, par Larry HolzeNew to FFMPEG and trying to use it very simplistically. I have a sequence of images that I want to make into a video. Using this command :
ffmpeg -framerate 30 -i "fr_%05d.jpg" out.mp4
Creates the
out.mp4
file OK, but when I play it back it is just blank.
Pictures in the.jpg
sequence are definitely not blank.Am I missing some option(s) ?
Command window output :
ffmpeg version N-74700-g628a73f Copyright (c) 2000-2015 the FFmpeg developers
Built with gcc 4.9.3 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --
enable-libdcadec --enable-libfreetype --enable-libgme --enable-libgsm --enable-l
ibilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enab
le-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --en
able-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --ena
ble-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc
--enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enabl
e-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-lzma --ena
ble-decklink --enable-zlib
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 59.100 / 56. 59.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 39.100 / 5. 39.100
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
Input #0, image2, from 'fr_%05d.jpg':
Duration: 00:00:30.03, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg, gray(bt470bg/unknown/unknown), 300x200 [SAR 90:90
DAR 3:2], 30 fps, 30 tbr, 30 tbn, 30 tbc
[swscaler @ 0000000002f88c60] deprecated pixel format used, make sure you did se
t range correctly
No pixel format specified, yuvj444p for H.264 encoding chosen.
Use -pix_fmt yuv420p for compatibility with outdated media players.
[libx264 @ 000000000589b0c0] using SAR=1/1
[libx264 @ 000000000589b0c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX
[libx264 @ 000000000589b0c0] profile High 4:4:4 Predictive, level 1.3, 4:4:4 8-b
it
[libx264 @ 000000000589b0c0] 264 - core 148 r2597 e86f3a1 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2015 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=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_pski
p=1 chroma_qp_offset=4 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decim
ate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_a
dapt=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 'out.mp4':
Metadata:
encoder : Lavf56.40.101
Stream #0:0: Video: h264 (libx264) ([33][0][0][0] / 0x0021), yuvj444p(pc), 3
00x200 [SAR 1:1 DAR 3:2], q=-1--1, 30 fps, 15360 tbn, 30 tbc
Metadata:
encoder : Lavc56.59.100 libx264
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
Input stream #0:0 frame changed from size:300x200 fmt:gray to size:300x200 fmt:y
uvj444p
Input stream #0:0 frame changed from size:300x200 fmt:yuvj444p to size:300x200 f
mt:gray
[swscaler @ 00000000095b75c0] deprecated pixel format used, make sure you did se
t range correctly
Input stream #0:0 frame changed from size:300x200 fmt:gray to size:300x200 fmt:y
uvj444p
Input stream #0:0 frame changed from size:300x200 fmt:yuvj444p to size:300x200 f
mt:gray
[swscaler @ 00000000095b75c0] deprecated pixel format used, make sure you did se
t range correctly
Input stream #0:0 frame changed from size:300x200 fmt:gray to size:300x200 fmt:y
uvj444p
frame= 244 fps=0.0 q=29.0 size= 15kB time=00:00:06.40 bitrate= 19.6kbits/
Input stream #0:0 frame changed from size:300x200 fmt:yuvj444p to size:300x200 f
mt:gray
[swscaler @ 00000000095b75c0] deprecated pixel format used, make sure you did se
t range correctly
Input stream #0:0 frame changed from size:300x200 fmt:gray to size:300x200 fmt:y
uvj444p
frame= 325 fps=316 q=29.0 size= 23kB time=00:00:09.10 bitrate= 20.4kbits/
frame= 382 fps=247 q=29.0 size= 34kB time=00:00:11.00 bitrate= 25.1kbits/
frame= 417 fps=203 q=29.0 size= 36kB time=00:00:12.16 bitrate= 24.5kbits/
frame= 482 fps=187 q=29.0 size= 38kB time=00:00:14.33 bitrate= 21.7kbits/
frame= 541 fps=175 q=29.0 size= 39kB time=00:00:16.30 bitrate= 19.8kbits/
frame= 611 fps=170 q=29.0 size= 41kB time=00:00:18.63 bitrate= 18.1kbits/
frame= 881 fps=214 q=29.0 size= 54kB time=00:00:27.63 bitrate= 15.9kbits/
frame= 901 fps=214 q=-1.0 Lsize= 66kB time=00:00:29.96 bitrate= 18.1kbits
/s
video:55kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ov
erhead: 20.648893%
[libx264 @ 000000000589b0c0] frame I:8 Avg QP:18.01 size: 2331
[libx264 @ 000000000589b0c0] frame P:239 Avg QP:22.95 size: 91
[libx264 @ 000000000589b0c0] frame B:654 Avg QP:33.33 size: 23
[libx264 @ 000000000589b0c0] consecutive B-frames: 2.9% 0.7% 1.0% 95.4%
[libx264 @ 000000000589b0c0] mb I I16..4: 36.6% 53.8% 9.6%
[libx264 @ 000000000589b0c0] mb P I16..4: 0.1% 0.4% 0.2% P16..4: 0.6% 0.0
% 0.0% 0.0% 0.0% skip:98.6%
[libx264 @ 000000000589b0c0] mb B I16..4: 0.0% 0.9% 0.0% B16..8: 1.7% 0.0
% 0.0% direct: 0.0% skip:97.4% L0:55.9% L1:44.1% BI: 0.0%
[libx264 @ 000000000589b0c0] 8x8 transform intra:70.8% inter:12.0%
[libx264 @ 000000000589b0c0] coded y,u,v intra: 5.9% 4.9% 5.0% inter: 0.0% 0.0%
0.0%
[libx264 @ 000000000589b0c0] i16 v,h,dc,p: 54% 46% 0% 0%
[libx264 @ 000000000589b0c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 13% 5% 83% 0% 0%
0% 0% 0% 0%
[libx264 @ 000000000589b0c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 47% 15% 10% 4% 6%
5% 4% 4% 4%
[libx264 @ 000000000589b0c0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000000000589b0c0] ref P L0: 47.6% 2.6% 44.9% 5.0%
[libx264 @ 000000000589b0c0] ref B L0: 55.9% 40.1% 4.0%
[libx264 @ 000000000589b0c0] ref B L1: 93.3% 6.7%
[libx264 @ -
FFMpeg is dropping video track when clipping an mpg video
16 juin 2017, par M. GrishaberI am extracting a clip from an mpg video using the following command.
ffmpeg.exe -i 271b.mpg -ss 00:00:05.000 -t 00:00:03.200 -c copy out_271b.mpgI am using the copy parameter to avoid reencoding the clip.
The resulting mpg file only has the audio track, no video.
The following is the FFMpeg screen dump.C:\ffmpeg-20170615\bin>ffmpeg.exe -i 271b.mpg -ss 00:00:05.000 -t 00:00:03.200 -c copy out_271b.mpg
ffmpeg version N-86482-gbc40674 Copyright (c) 2000-2017 the FFmpeg developers
built with gcc 7.1.0 (GCC)
configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 66.100 / 55. 66.100
libavcodec 57. 99.100 / 57. 99.100
libavformat 57. 73.100 / 57. 73.100
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 92.100 / 6. 92.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
Input #0, mpeg, from '271b.mpg':
Duration: 00:01:11.44, start: 0.460000, bitrate: 2154 kb/s
Stream #0:0[0x1e0]: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], 2000 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
[mpeg @ 0000000000666aa0] VBV buffer size not set, using default size of 130KB
If you want the mpeg file to be compliant to some specification
Like DVD, VCD or others, make sure you set the correct buffer size
Output #0, mpeg, to 'out_271b.mpg':
Metadata:
encoder : Lavf57.73.100
Stream #0:0: Video: mpeg2video (Main), yuv420p(tv, bt470bg, progressive), 640x480 [SAR 1:1 DAR 4:3], q=2-31, 2000 kb/s, 25 fps, 25 tbr, 90k tbn, 25 tbc
Stream #0:1: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
frame= 74 fps=0.0 q=-1.0 Lsize= 786kB time=00:00:03.17 bitrate=2027.2kbits/s speed= 198x
video:730kB audio:50kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.843343%Thanks
Addition : I tried to open the generated clip file with ffplay and got the following results. Note that ffplay was able to open and play the original mpg file.
ffplay.exe out_271b.mpg
ffplay version N-86482-gbc40674 Copyright (c) 2003-2017 the FFmpeg developers
built with gcc 7.1.0 (GCC)
configuration: --disable-static --enable-shared --enable-gpl --enable-version3 --enable-cuda --enable-cuvid --enable-d3d11va --enable-dxva2 --enable-libmfx --enable-nvenc --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenh264 --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-zlib
libavutil 55. 66.100 / 55. 66.100
libavcodec 57. 99.100 / 57. 99.100
libavformat 57. 73.100 / 57. 73.100
libavdevice 57. 7.100 / 57. 7.100
libavfilter 6. 92.100 / 6. 92.100
libswscale 4. 7.101 / 4. 7.101
libswresample 2. 8.100 / 2. 8.100
libpostproc 54. 6.100 / 54. 6.100
[mpeg @ 00000000023cde80] probed stream 2 failedB sq= 0B f=0/0
[mpeg @ 00000000023cde80] start time for stream 0 is not set in estimate_timings_from_pts
[mpeg @ 00000000023cde80] Could not find codec parameters for stream 2 (Video: none, none): unknown codec
Consider increasing the value for the 'analyzeduration' and 'probesize' options
Input #0, mpeg, from 'out_271bb.mpg':
Duration: 00:00:03.22, start: 0.500000, bitrate: 2068 kb/s
Stream #0:0[0x1bf]: Data: dvd_nav_packet 0KB sq= 0B f=0/0
Stream #0:1[0x1c0]: Audio: mp2, 44100 Hz, mono, s16p, 128 kb/s
Stream #0:2[0x1e0]: Video: none, none, 25 fps, 25 tbr, 90k tbn
SDL_OpenAudio (1 channels, 44100 Hz): DirectSoundCreate: No audio device found
No more combinations to try, audio open failed
No codec could be found with id 0
Failed to open file 'out_271b.mpg' or configure filtergraph