
Recherche avancée
Autres articles (61)
-
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 ;
-
Ecrire une actualité
21 juin 2013, parPrésentez les changements dans votre MédiaSPIP ou les actualités de vos projets sur votre MédiaSPIP grâce à la rubrique actualités.
Dans le thème par défaut spipeo de MédiaSPIP, les actualités sont affichées en bas de la page principale sous les éditoriaux.
Vous pouvez personnaliser le formulaire de création d’une actualité.
Formulaire de création d’une actualité Dans le cas d’un document de type actualité, les champs proposés par défaut sont : Date de publication ( personnaliser la date de publication ) (...) -
Websites made with MediaSPIP
2 mai 2011, parThis page lists some websites based on MediaSPIP.
Sur d’autres sites (8861)
-
Inputing a List of Files for Concatenation with Node.js Module fluent-ffmpeg
26 juin 2018, par carpiediemVersion information
- fluent-ffmpeg version : 2.1.2
- ffmpeg version : 3.4.2
- OS : Windows 10
Code to reproduce
ffmpeg('C:/path/to/list.txt').mergeToFile('C:/path/to/out.mp4', 'C:/path/to/temp');
list.txt :
file 'C:/path/to/chunk01.ts'
file 'C:/path/to/chunk02.ts'
file 'C:/path/to/chunk03.ts'
file 'C:/path/to/chunk04.ts'Note : I’ve tried both absolute and relative paths, with the same result.
Expected results
A video file at
C:/path/to/out.mp4
that matches the 4 files in list.txt, concatenated end-to-end.Observed results
An empty file at
C:/path/to/out.mp4
with 0 duration and only 15kB in size. No errors were thrown.This is the command that I’m trying to duplicate (it works as expected, with relative paths in list.txt) :
C:/path/to> ffmpeg -f concat -i list.txt -c copy out.ts
stdout & stderr
stdout was empty. stderr is copied below (with file names modified to match the ones above) :
ffmpeg version 3.4.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.0 (GCC)
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass --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-libmfx --enable-cuda --enable-cuvid --enable-d3d11va --enable-nvenc --enable-dxva2 --enable-avisynth
libavutil 55. 78.100 / 55. 78.100
libavcodec 57.107.100 / 57.107.100
libavformat 57. 83.100 / 57. 83.100
libavdevice 57. 10.100 / 57. 10.100
libavfilter 6.107.100 / 6.107.100
libswscale 4. 8.100 / 4. 8.100
libswresample 2. 9.100 / 2. 9.100
libpostproc 54. 7.100 / 54. 7.100
Input #0, tty, from 'C:/path/to/list.txt':
Duration: 00:00:00.08, bitrate: 42 kb/s
Stream #0:0: Video: ansi, pal8, 640x400, 25 fps, 25 tbr, 25 tbn, 25 tbc
Stream mapping:
Stream #0:0 (ansi) -> concat
concat -> Stream #0:0 (libx264)
Press [q] to stop, [?] for help
[libx264 @ 000001e385b45040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001e385b45040] profile High 4:4:4 Predictive, level 3.0, 4:4:4 8-bit
[libx264 @ 000001e385b45040] 264 - core 155 r2901 7d0ff22 - 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=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 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 'C:/path/to/out.mp4':
Metadata:
encoder : Lavf57.83.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 640x400, q=-1--1, 25 fps, 12800 tbn, 25 tbc
Metadata:
encoder : Lavc57.107.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 2 fps=0.0 q=-1.0 Lsize= 15kB time=00:00:00.04 bitrate=3099.0kbits/s speed=1.55x
video:14kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 5.619430%
[libx264 @ 000001e385b45040] frame I:1 Avg QP:12.71 size: 8083
[libx264 @ 000001e385b45040] frame P:1 Avg QP:29.71 size: 5928
[libx264 @ 000001e385b45040] mb I I16..4: 87.9% 0.0% 12.1%
[libx264 @ 000001e385b45040] mb P I16..4: 9.3% 0.0% 0.0% P16..4: 0.4% 0.0% 0.0% 0.0% 0.0% skip:90.3%
[libx264 @ 000001e385b45040] coded y,u,v intra: 17.9% 0.0% 0.0% inter: 0.1% 0.0% 0.0%
[libx264 @ 000001e385b45040] i16 v,h,dc,p: 88% 8% 4% 0%
[libx264 @ 000001e385b45040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 28% 31% 19% 3% 2% 3% 7% 4% 3%
[libx264 @ 000001e385b45040] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001e385b45040] kb/s:1401.10 -
ffmpeg video slideshow only takes first image
14 décembre 2018, par ErhanI wanted to create an .mp4 video with a framerate of 1 fps out of 10 images. I followed https://trac.ffmpeg.org/wiki/Slideshow and got to (my images are in the folder I am running the command from and are name img000.png, img001.png, etc.)
path_to_ffmpeg\ffmpeg.exe -framerate 1 -i img%03d.png output.mp4
However only the first image is taken to the video and it only shows one image !
After trying multiple permutations of -framerate and -r options and positions of the options, I did not recieve any better results.
Does anyone know what might have gone wrong even in this simple case ? Thanks.
Full log :
C:\Users\foo\Documents\path>C:\bar\ffmpeg-4.0.2-win64-static\bin\ffmpeg.ex
e -framerate 1 -i img%03d.png output.mp4
ffmpeg version 4.0.2 Copyright (c) 2000-2018 the FFmpeg developers
built with gcc 7.3.1 (GCC) 20180722
configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --e
nable-fontconfig --enable-gnutls --enable-iconv --enable-libass --enable-libblur
ay --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enab
le-libsnappy --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-li
bvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --en
able-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-
libvidstab --enable-libvorbis --enable-libvo-amrwbenc --enable-libmysofa --enabl
e-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enabl
e-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enab
le-dxva2 --enable-avisynth
libavutil 56. 14.100 / 56. 14.100
libavcodec 58. 18.100 / 58. 18.100
libavformat 58. 12.100 / 58. 12.100
libavdevice 58. 3.100 / 58. 3.100
libavfilter 7. 16.100 / 7. 16.100
libswscale 5. 1.100 / 5. 1.100
libswresample 3. 1.100 / 3. 1.100
libpostproc 55. 1.100 / 55. 1.100
Input #0, image2, from 'img%03d.png':
Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: png, rgba(pc), 959x550 [SAR 2834:2834 DAR 959:550], 1 fp
s, 1 tbr, 1 tbn, 1 tbc
File 'output.mp4' already exists. Overwrite ? [y/N] y
Stream mapping:
Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0000000000611040] using SAR=1/1
[libx264 @ 0000000000611040] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
AVX FMA3 BMI2 AVX2
[libx264 @ 0000000000611040] profile High 4:4:4 Predictive, level 3.1, 4:4:4 8-b
it
[libx264 @ 0000000000611040] 264 - core 155 r2901 7d0ff22 - H.264/MPEG-4 AVC cod
ec - Copyleft 2003-2018 - http://www.videolan.org/x264.html - options: cabac=1 r
ef=3 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed
_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pski
p=1 chroma_qp_offset=4 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 deci
mate=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=1
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 'output.mp4':
Metadata:
encoder : Lavf58.12.100
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv444p, 959x550 [SA
R 1:1 DAR 959:550], q=-1--1, 1 fps, 16384 tbn, 1 tbc
Metadata:
encoder : Lavc58.18.100 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 10 fps=0.0 q=-1.0 Lsize= 20kB time=00:00:07.00 bitrate= 23.1kbits
/s speed=68.6x
video:19kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing ov
erhead: 5.046419%
[libx264 @ 0000000000611040] frame I:1 Avg QP: 4.41 size: 14084
[libx264 @ 0000000000611040] frame P:3 Avg QP:12.31 size: 632
[libx264 @ 0000000000611040] frame B:6 Avg QP:19.11 size: 436
[libx264 @ 0000000000611040] consecutive B-frames: 20.0% 0.0% 0.0% 80.0%
[libx264 @ 0000000000611040] mb I I16..4: 89.7% 0.0% 10.3%
[libx264 @ 0000000000611040] mb P I16..4: 0.2% 0.0% 0.1% P16..4: 0.5% 0.1
% 0.1% 0.0% 0.0% skip:98.9%
[libx264 @ 0000000000611040] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.6% 0.1
% 0.1% direct: 0.0% skip:99.1% L0:22.0% L1:73.7% BI: 4.3%
[libx264 @ 0000000000611040] coded y,u,v intra: 6.1% 2.5% 2.6% inter: 0.2% 0.1%
0.1%
[libx264 @ 0000000000611040] i16 v,h,dc,p: 72% 25% 3% 0%
[libx264 @ 0000000000611040] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 35% 31% 20% 2% 2%
2% 3% 5% 2%
[libx264 @ 0000000000611040] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0000000000611040] ref P L0: 65.8% 1.5% 26.5% 6.1%
[libx264 @ 0000000000611040] ref B L0: 77.0% 12.7% 10.3%
[libx264 @ 0000000000611040] ref B L1: 88.6% 11.4%
[libx264 @ 0000000000611040] kb/s:14.87 -
FFMPEG, H264 Encoding : If frame size exceeds level limit, does it lead to video encoding failed ?
4 février 2021, par Nafia MahjabinI want to reencode an mp4 file with h264 encoding.
Run the following command :




ffmpeg -i input.mp4 -f mp4 -vcodec h264 -profile:v baseline -level 3.0 -pix_fmt yuv420p -color_range 2 -vf scale=1080:1920 -acodec aac -async 1 output.mp4




Process fails saying
Video encoding failed.

Error Message given by ffmpeg :

[h264 @ 0x7a467000] Reinit context to 640x1152, pix_fmt: yuv420p\n
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':\n 
 Metadata:\n 
 major_brand : mp42\n 
 minor_version : 0\n 
 compatible_brands: mp42mp41iso4\n 
 creation_time : 2020-07-26T20:32:55.000000Z\n 
 Duration: 00:00:36.20, start: 0.000000, bitrate: 938 kb/s\n 
 Stream #0:0(und): Video: h264, 1 reference frame (avc1 / 0x31637661), yuv420p(left), 640x1138 (640x1152), 935 kb/s, 30 fps, 30 tbr, 15360 tbn, 60 tbc (default)\n 
 Metadata:\n 
 creation_time : 2020-07-26T20:32:55.000000Z\n 
 handler_name : Vireo Eyes v2.5.3\n 
 encoder : AVC Coding\n
 Matched encoder 'libx264' for codec 'h264'.\n
 Stream mapping:\n 
 Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))\nPress [q] to stop, [?] for help\n
 [Parsed_scale_0 @ 0x80be6220] w:1080 h:1920 flags:'bicubic' interl:0\n
 [graph 0 input from stream 0:0 @ 0x80be6280] w:640 h:1138 pixfmt:yuv420p tb:1/15360 fr:30/1 sar:0/1\n
 [graph 0 input from stream 0:0 @ 0x80be6280] sws_param option is deprecated and ignored\n[Parsed_scale_0 @ 0x80be6220] w:640 h:1138 fmt:yuv420p sar:0/1 -> w:1080 h:1920 fmt:yuv420p sar:0/1 flags:0x4\n
 [libx264 @ 0x7a1d4000] frame MB size (68x120) > level limit (1620)\n
 [libx264 @ 0x7a1d4000] DPB size (1 frames, 8160 mbs) > level limit (0 frames, 8100 mbs)\n
 [libx264 @ 0x7a1d4000] MB rate (244800) > level limit (40500)\n[libx264 @ 0x7a1d4000] using cpu capabilities: ARMv6 NEON\n
 [libx264 @ 0x7a1d4000] profile Constrained Baseline, level 3.0, 4:2:0, 8-bit\n[libx264 @ 0x7a1d4000] 264 - core 160 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=0 ref=1 deblock=1:0:0 analyse=0x1:0x111 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=1 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=12 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0 weightp=0 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\n
 Output #0, mp4, to 'output.mp4':\n 
 Metadata:\n 
 major_brand : mp42\n 
 minor_version : 0\n 
 compatible_brands: mp42mp41iso4\n 
 encoder : Lavf58.48.100\n 
 Stream #0:0(und): Video: h264 (libx264), 1 reference frame (avc1 / 0x31637661), yuv420p(pc, left), 1080x1920, q=-1--1, 30 fps, 15360 tbn, 30 tbc (default)\n
 Metadata:\n 
 creation_time : 2020-07-26T20:32:55.000000Z\n 
 handler_name : Vireo Eyes v2.5.3\n 
 encoder : Lavc58.96.100 libx264\n 
 Side data:\n 
 cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A\n
 frame= 3 fps=0.0 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x \n
 frame= 7 fps=6.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x \n
 frame= 11 fps=6.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x \n
 frame= 15 fps=6.3 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x \n
 frame= 19 fps=6.3 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x \n
 frame= 23 fps=6.3 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x \n
 frame= 26 fps=6.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x \n
 frame= 30 fps=6.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x \n
 frame= 33 fps=6.2 q=0.0 size= 0kB time=00:00:00.00 bitrate=N/A speed= 0x \n
 Video encoding failed\n[AVIOContext @ 0x7a42cd80] Statistics: 0 seeks, 1 writeouts\n
 [AVIOContext @ 0x7a42ccc0] Statistics: 229376 bytes read, 0 seeks\nConversion failed!\n\n\n\n\n



I tried to figure out the reason for fail. I'm guessing from error message from the line
frame MB size (68x120) > level limit (1620)
, frame size exceeds h264 level limits may be the issue.

Is it the issue ? if it is, what's the solution for this ? if it's not, what went wrong ?


Can somebody help please ? Thank you !