一、不改变分辨率:

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为目的视频文件

 

  1.  
    E:\vod\ffmpeg-3.2.4-win32-static\bin>ffmpeg -i 01小学_6上习作二_大声说出我爱你_t.mp4 -s 480×360 01小学_6上习作二_大声说出我爱你_t_480x360.mp4
  2.  
    ffmpeg version N-79344-g196cfc2 Copyright (c) 2000-2016 the FFmpeg developers
  3.  
    built with gcc 5.3.0 (GCC)
  4.  
    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
  5.  
    libavutil 55. 20.100 / 55. 20.100
  6.  
    libavcodec 57. 34.100 / 57. 34.100
  7.  
    libavformat 57. 33.100 / 57. 33.100
  8.  
    libavdevice 57. 0.101 / 57. 0.101
  9.  
    libavfilter 6. 41.100 / 6. 41.100
  10.  
    libswscale 4. 1.100 / 4. 1.100
  11.  
    libswresample 2. 0.101 / 2. 0.101
  12.  
    libpostproc 54. 0.100 / 54. 0.100
  13.  
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from ’01灏忓_6涓婁範浣滀簩_澶у0璇村嚭鎴戠埍浣燺t.mp4′:
  14.  
    Metadata:
  15.  
    major_brand : isom
  16.  
    minor_version : 512
  17.  
    compatible_brands: isomiso2avc1mp41
  18.  
    encoder : Lavf57.33.100
  19.  
    Duration: 00:10:23.32, start: 0.000000, bitrate: 208 kb/s
  20.  
    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)
  21.  
    Metadata:
  22.  
    handler_name : VideoHandler
  23.  
    Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 44100 Hz, stereo, fltp, 128 kb/s (default)
  24.  
    Metadata:
  25.  
    handler_name : SoundHandler
  26.  
    [libx264 @ 054a8fe0] using SAR=4/3
  27.  
    [libx264 @ 054a8fe0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
  28.  
    [libx264 @ 054a8fe0] profile High, level 2.1
  29.  
    [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
  30.  
    [mp4 @ 04f2c8e0] Using AVStream.codec to pass codec parameters to muxers is deprecated, use AVStream.codecpar instead.
  31.  
    Last message repeated 1 times
  32.  
    Output #0, mp4, to ’01灏忓_6涓婁範浣滀簩_澶у0璇村嚭鎴戠埍浣燺t_480x360.mp4′:
  33.  
    Metadata:
  34.  
    major_brand : isom
  35.  
    minor_version : 512
  36.  
    compatible_brands: isomiso2avc1mp41
  37.  
    encoder : Lavf57.33.100
  38.  
    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)
  39.  
    Metadata:
  40.  
    handler_name : VideoHandler
  41.  
    encoder : Lavc57.34.100 libx264
  42.  
    Side data:
  43.  
    cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: –1
  44.  
    Stream #0:1(eng): Audio: aac (LC) ([64][0][0][0] / 0x0040), 44100 Hz, stereo, fltp, 128 kb/s (default)
  45.  
    Metadata:
  46.  
    handler_name : SoundHandler
  47.  
    encoder : Lavc57.34.100 aac
  48.  
    Stream mapping:
  49.  
    Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  50.  
    Stream #0:1 -> #0:1 (aac (native) -> aac (native))
  51.  
    Press [q] to stop, [?] for help
  52.  
    frame= 9349 fps=126 q=-1.0 Lsize= 12019kB time=00:10:23.29 bitrate= 158.0kbits/s speed=8.38x
  53.  
    video:1943kB audio:9761kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 2.699088%
  54.  
    [libx264 @ 054a8fe0] frame I:41 Avg QP:11.18 size: 15855
  55.  
    [libx264 @ 054a8fe0] frame P:2514 Avg QP:12.44 size: 438
  56.  
    [libx264 @ 054a8fe0] frame B:6794 Avg QP:12.08 size: 35
  57.  
    [libx264 @ 054a8fe0] consecutive B-frames: 2.9% 0.4% 0.7% 96.0%
  58.  
    [libx264 @ 054a8fe0] mb I I16..4: 56.9% 17.3% 25.8%
  59.  
    [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%
  60.  
    [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%
  61.  
    [libx264 @ 054a8fe0] 8×8 transform intra:28.9% inter:53.6%
  62.  
    [libx264 @ 054a8fe0] coded y,uvDC,uvAC intra: 30.6% 32.5% 26.8% inter: 0.4% 0.5% 0.2%
  63.  
    [libx264 @ 054a8fe0] i16 v,h,dc,p: 67% 26% 7% 1%
  64.  
    [libx264 @ 054a8fe0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 22% 34% 2% 3% 2% 3% 3% 4%
  65.  
    [libx264 @ 054a8fe0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 31% 26% 14% 4% 5% 5% 5% 6% 5%
  66.  
    [libx264 @ 054a8fe0] i8c dc,h,v,p: 69% 15% 14% 3%
  67.  
    [libx264 @ 054a8fe0] Weighted P-Frames: Y:0.9% UV:0.3%
  68.  
    [libx264 @ 054a8fe0] ref P L0: 75.5% 13.5% 7.8% 3.2% 0.1%
  69.  
    [libx264 @ 054a8fe0] ref B L0: 70.3% 28.7% 0.9%
  70.  
    [libx264 @ 054a8fe0] ref B L1: 95.5% 4.5%
  71.  
    [libx264 @ 054a8fe0] kb/s:25.52
  72.  
    [aac @ 04ef2740] Qavg: 3132.729
  73.  
     
  74.  
    E:\vod\ffmpeg-3.2.4-win32-static\bin>

 

 

转载于:https://my.oschina.net/yizhichao/blog/1305325