我正在尝试制作一个视频表单列表,其中包含名为1.jpg 2.jpg ..的图像。但是我遇到了此错误:“使用了过时的像素格式,请确保您正确设置了范围”。如何制作图像的视频表单列表?
ffmpeg -framerate 1 -i images/%d.jpg output.mp4
ffmpeg version N-94251-gf83b46e218 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 9.1.1 (GCC) 20190621
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-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth --enable-libopenmpt
libavutil 56. 30.100 / 56. 30.100
libavcodec 58. 53.101 / 58. 53.101
libavformat 58. 28.101 / 58. 28.101
libavdevice 58. 7.100 / 58. 7.100
libavfilter 7. 56.101 / 7. 56.101
libswscale 5. 4.101 / 5. 4.101
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
Input #0, image2, from 'images/%d.jpg':
Duration: 00:00:10.00, start: 0.000000, bitrate: N/A
Stream #0:0: Video: mjpeg (Progressive), yuvj444p(pc, bt470bg/unknown/unknown), 612x409 [SAR 300:300 DAR 612:409], 1 fps, 1 tbr, 1 tbn, 1 tbc
Stream mapping:
Stream #0:0 -> #0:0 (mjpeg (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001e44fbac740] using SAR=1/1
[libx264 @ 000001e44fbac740] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001e44fbac740] profile High 4:4:4 Predictive, level 2.2, 4:4:4, 8-bit
[libx264 @ 000001e44fbac740] 264 - core 157 r2970 5493be8 - 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=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.28.101
Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuvj444p(pc), 612x409 [SAR 300:300 DAR 612:409], q=-1--1, 1 fps, 16384 tbn, 1 tbc
Metadata:
encoder : Lavc58.53.101 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
[swscaler @ 000001e450a5ef00] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 000001e45061b340] deprecated pixel format used, make sure you did set range correctly
[swscaler @ 000001e44fbea400] deprecated pixel format used, make sure you did set range correctly
Last message repeated 4 times
frame= 10 fps=0.0 q=-1.0 Lsize= 594kB time=00:00:07.00 bitrate= 695.5kbits/s speed=27.9x
video:593kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.148593%
[libx264 @ 000001e44fbac740] frame I:1 Avg QP:17.27 size: 51016
[libx264 @ 000001e44fbac740] frame P:9 Avg QP:17.36 size: 61778
[libx264 @ 000001e44fbac740] mb I I16..4: 1.4% 96.0% 2.7%
[libx264 @ 000001e44fbac740] mb P I16..4: 4.0% 83.5% 11.1% P16..4: 0.7% 0.4% 0.2% 0.0% 0.0% skip: 0.0%
[libx264 @ 000001e44fbac740] 8x8 transform intra:85.8% inter:98.3%
[libx264 @ 000001e44fbac740] coded y,u,v intra: 92.4% 60.1% 62.2% inter: 98.5% 93.8% 93.8%
[libx264 @ 000001e44fbac740] i16 v,h,dc,p: 5% 50% 10% 35%
[libx264 @ 000001e44fbac740] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 29% 18% 6% 6% 5% 9% 6% 10%
[libx264 @ 000001e44fbac740] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 24% 12% 6% 10% 9% 9% 6% 7%
[libx264 @ 000001e44fbac740] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 000001e44fbac740] ref P L0: 33.3% 15.4% 30.8% 20.4%
[libx264 @ 000001e44fbac740] kb/s:485.61
output.mp4发生了,但是没有显示任何图像。