一、不改变分辨率:
ffmpeg -i 01小学_6上习作二_大声说出我爱你.mp4 01小学_6上习作二_大声说出我爱你_t.mp4
前面为源视频文件,后面为目标视频文件
二、改变分辨率:
流畅点播_H264_TD_480*360
标清点播_H264_WLAN_1024*576
高清点播_H264_WLAN_720P
ffmpeg -i 01小学_6上习作二_大声说出我爱你_t.mp4 -s 480x360 01小学_6上习作二_大声说出我爱你_t_480x360.mp4
后为源视频文件, -s 表示设置目标视频文件的分辨率 01小学_6上习作二_大声说出我爱你_t_480x360.mp4为目的视频文件
-
E:\vod\ffmpeg-3.2.4-win32-static\bin>ffmpeg -i 01小学_6上习作二_大声说出我爱你_t.mp4 -s 480×360 01小学_6上习作二_大声说出我爱你_t_480x360.mp4
-
ffmpeg version N-79344-g196cfc2 Copyright (c) 2000-2016 the FFmpeg developers
-
built with gcc 5.3.0 (GCC)
-
configuration: –enable-gpl –enable-version3 –disable-w32threads –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-libmfx –enable-libmp3lame –enable-libopencore-amrnb –enable-libopencore-amrwb –enable-libopenjpeg –enable-libopus –enable-librtmp –enable-libschroedinger –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-decklink –enable-zlib
-
libavutil 55. 20.100 / 55. 20.100
-
libavcodec 57. 34.100 / 57. 34.100
-
libavformat 57. 33.100 / 57. 33.100
-
libavdevice 57. 0.101 / 57. 0.101
-
libavfilter 6. 41.100 / 6. 41.100
-
libswscale 4. 1.100 / 4. 1.100
-
libswresample 2. 0.101 / 2. 0.101
-
libpostproc 54. 0.100 / 54. 0.100
-
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’01灏忓_6涓婁範浣滀簩_澶у0璇村嚭鎴戠埍浣燺t.mp4′:
-
Metadata:
-
major_brand : isom
-
minor_version : 512
-
compatible_brands: isomiso2avc1mp41
-
encoder : Lavf57.33.100
-
Duration: 00:10:23.32, start: 0.000000, bitrate: 208 kb/s
-
Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 1280×720 [SAR 1:1 DAR 16:9], 76 kb/s, 15 fps, 15 tbr, 15360 tbn (default)
-
Metadata:
-
handler_name : VideoHandler
-
Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
-
Metadata:
-
handler_name : SoundHandler
-
[libx264 @ 054a8fe0] using SAR=4/3
-
[libx264 @ 054a8fe0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
-
[libx264 @ 054a8fe0] profile High, level 2.1
-
[libx264 @ 054a8fe0] 264 – core 148 r2665 a01e339 – H.264/MPEG-4 AVC codec – Copyleft 2003-2016 – 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=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=15 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
-
[mp4 @ 04f2c8e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
-
Last message repeated 1 times
-
Output #0, mp4, to ’01灏忓_6涓婁範浣滀簩_澶у0璇村嚭鎴戠埍浣燺t_480x360.mp4′:
-
Metadata:
-
major_brand : isom
-
minor_version : 512
-
compatible_brands: isomiso2avc1mp41
-
encoder : Lavf57.33.100
-
Stream #0:0(eng): Video: h264 ([33][0][0][0] / 0x0021), yuv420p, 480×360 [SAR 4:3 DAR 16:9], q=2-31, 15 fps, 15360 tbn (default)
-
Metadata:
-
handler_name : VideoHandler
-
encoder : Lavc57.34.100 libx264
-
Side data:
-
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: –1
-
Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
-
Metadata:
-
handler_name : SoundHandler
-
encoder : Lavc57.34.100 aac
-
Stream mapping:
-
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
-
Stream #0:1 -> #0:1 (aac (native) -> aac (native))
-
Press [q] to stop, [?] for help
-
frame= 9349 fps=126 q=-1.0 Lsize= 12019kB time=00:10:23.29 bitrate= 158.0kbits/s speed=8.38x
-
video:1943kB audio:9761kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.699088%
-
[libx264 @ 054a8fe0] frame I:41 Avg QP:11.18 size: 15855
-
[libx264 @ 054a8fe0] frame P:2514 Avg QP:12.44 size: 438
-
[libx264 @ 054a8fe0] frame B:6794 Avg QP:12.08 size: 35
-
[libx264 @ 054a8fe0] consecutive B-frames: 2.9% 0.4% 0.7% 96.0%
-
[libx264 @ 054a8fe0] mb I I16..4: 56.9% 17.3% 25.8%
-
[libx264 @ 054a8fe0] mb P I16..4: 0.5% 0.5% 0.3% P16..4: 2.2% 0.6% 0.5% 0.0% 0.0% skip:95.4%
-
[libx264 @ 054a8fe0] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 0.8% 0.1% 0.0% direct: 0.1% skip:99.0% L0:45.6% L1:50.1% BI: 4.3%
-
[libx264 @ 054a8fe0] 8×8 transform intra:28.9% inter:53.6%
-
[libx264 @ 054a8fe0] coded y,uvDC,uvAC intra: 30.6% 32.5% 26.8% inter: 0.4% 0.5% 0.2%
-
[libx264 @ 054a8fe0] i16 v,h,dc,p: 67% 26% 7% 1%
-
[libx264 @ 054a8fe0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 22% 34% 2% 3% 2% 3% 3% 4%
-
[libx264 @ 054a8fe0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 26% 14% 4% 5% 5% 5% 6% 5%
-
[libx264 @ 054a8fe0] i8c dc,h,v,p: 69% 15% 14% 3%
-
[libx264 @ 054a8fe0] Weighted P-Frames: Y:0.9% UV:0.3%
-
[libx264 @ 054a8fe0] ref P L0: 75.5% 13.5% 7.8% 3.2% 0.1%
-
[libx264 @ 054a8fe0] ref B L0: 70.3% 28.7% 0.9%
-
[libx264 @ 054a8fe0] ref B L1: 95.5% 4.5%
-
[libx264 @ 054a8fe0] kb/s:25.52
-
[aac @ 04ef2740] Qavg: 3132.729
-
-
E:\vod\ffmpeg-3.2.4-win32-static\bin>
转载于:https://my.oschina.net/yizhichao/blog/1305325