How to make a slow motion video with Yi Action Camera

I have a Yi Action Camera. It is a low-end GoPro alternative.

  • Ambarella A7LS chipset, low-power digital signal processing (DSP) technology, high-definition (HD) H.264/ MJPEG video engine and a 700-MHz ARM11 applications processor. 
  • Sony IMX206, 1/2.3″, 16MP CMOS image sensor with Exmor R ability / Panasonic MN34120PA, 1/2.3″, 16MP CMOS image sensor 
  • 1080P/60FPS, 720P/120FPS, 848*480/240FPS 
  • Bluetooth (4.0BLE low power consumption) and Built-in (802.11 bgn) Single band 2.4G Wi-Fi 

 

I tried to use video capture function of this camera at the followin settings:

1280×720 @120fps

I took 10 seconds video and move the video to the computer. It just has a higher frame rate, but not slow motion.

 

Then I tried to find the software, which can help me convert the video to slow motion one.

At last, I found the free tool, ffmpeg.

Download the ffmpeg windows bin file.

https://ffmpeg.zeranoe.com/builds/

I chose the latest static windows 64bit build. It is a package. I only need the ffmpeg.exe file. Find it in the package and extract it to the working directory.

Put the original video file in the same folder.

Run the following command in the command window.

ffmpeg -i ydxj1364.mp4 -filter:v "setpts=5*PTS" -r 25 test-1364.mp4

ydxj1364.mp4 is the original video file.
test-1364.mp4 is the output file name.
-filter:v “setpts=5*PTS” is to slow down the video by 5 times.
-r 25 is to force the output file to 25fps.

The command I run above has the following output.

 

ffmpeg version N-93217-ga899b3b3c5 Copyright (c) 2000-2019 the FFmpeg developers
built with gcc 8.2.1 (GCC) 20190212
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. 26.100 / 56. 26.100
libavcodec 58. 47.102 / 58. 47.102
libavformat 58. 26.101 / 58. 26.101
libavdevice 58. 6.101 / 58. 6.101
libavfilter 7. 48.100 / 7. 48.100
libswscale 5. 4.100 / 5. 4.100
libswresample 3. 4.100 / 3. 4.100
libpostproc 55. 4.100 / 55. 4.100
[mov,mp4,m4a,3gp,3g2,mj2 @ 000001b9fce99cc0] unsupported color_parameter_type aclc
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ydxj1364.mp4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
creation_time : 2019-02-22T12:55:06.000000Z
Duration: 00:00:11.91, start: 0.000000, bitrate: 18107 kb/s
Stream #0:0(eng): Video: h264 (Main) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], 18063 kb/s, 119.88 fps, 119.88 tbr, 120k tbn, 239.76 tbc (default)
Metadata:
creation_time : 2019-02-22T12:55:06.000000Z
handler_name :
: XiaoYi AVC
encoder : XiaoYi AVC encoder
Stream mapping:
Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 000001b9fceb9840] using SAR=1/1
[libx264 @ 000001b9fceb9840] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 000001b9fceb9840] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 000001b9fceb9840] 264 - core 157 r2935 545de2f - 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=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=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 'test-1364.mp4':
Metadata:
major_brand : avc1
minor_version : 0
compatible_brands: avc1isom
encoder : Lavf58.26.101
Stream #0:0(eng): Video: h264 (libx264) (avc1 / 0x31637661), yuvj420p(pc), 1280x720 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 12800 tbn, 25 tbc (default)
Metadata:
creation_time : 2019-02-22T12:55:06.000000Z
handler_name :
: XiaoYi AVC
encoder : Lavc58.47.102 libx264
Side data:
cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
frame= 1488 fps= 45 q=-1.0 Lsize= 25879kB time=00:00:59.40 bitrate=3569.0kbits/s dup=60 drop=0 speed=1.79x
video:25860kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.071957%
[libx264 @ 000001b9fceb9840] frame I:6 Avg QP:20.70 size:167506
[libx264 @ 000001b9fceb9840] frame P:381 Avg QP:23.36 size: 54533
[libx264 @ 000001b9fceb9840] frame B:1101 Avg QP:28.55 size: 4267
[libx264 @ 000001b9fceb9840] consecutive B-frames: 0.6% 1.9% 1.0% 96.5%
[libx264 @ 000001b9fceb9840] mb I I16..4: 17.5% 24.0% 58.5%
[libx264 @ 000001b9fceb9840] mb P I16..4: 0.4% 1.3% 1.6% P16..4: 41.6% 22.2% 18.2% 0.0% 0.0% skip:14.8%
[libx264 @ 000001b9fceb9840] mb B I16..4: 0.0% 0.0% 0.0% B16..8: 48.7% 3.8% 1.5% direct: 2.2% skip:43.9% L0:53.8% L1:43.2% BI: 3.0%
[libx264 @ 000001b9fceb9840] 8x8 transform intra:34.9% inter:28.4%
[libx264 @ 000001b9fceb9840] coded y,uvDC,uvAC intra: 95.7% 40.8% 0.3% inter: 18.4% 7.4% 0.0%
[libx264 @ 000001b9fceb9840] i16 v,h,dc,p: 6% 11% 61% 21%
[libx264 @ 000001b9fceb9840] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 10% 21% 23% 5% 7% 5% 12% 5% 11%
[libx264 @ 000001b9fceb9840] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 14% 20% 20% 7% 7% 6% 9% 6% 11%
[libx264 @ 000001b9fceb9840] i8c dc,h,v,p: 71% 17% 11% 1%
[libx264 @ 000001b9fceb9840] Weighted P-Frames: Y:18.1% UV:0.0%
[libx264 @ 000001b9fceb9840] ref P L0: 55.6% 11.3% 22.8% 8.3% 2.0%
[libx264 @ 000001b9fceb9840] ref B L0: 92.5% 7.1% 0.4%
[libx264 @ 000001b9fceb9840] ref B L1: 96.3% 3.7%
[libx264 @ 000001b9fceb9840] kb/s:3559.20